/* ==========================================================
   CoolMix — Persian / RTL overlay (revised)
   Loaded AFTER coolmix.webflow.css. Only touches Persian text.
   Strategy: keep CSS architecture intact; only set Persian font
   on body and explicit RTL elements. Product/brand Latin display
   titles keep their original decorative fonts.
   ========================================================== */

@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('/YekanBakh3-Pro/Pro/Yekan%20Bakh%20Family/webfonts/woff2/YekanBakh-Thin.woff2') format('woff2');
}

/* Deployment guard: prevent decorative homepage elements from widening the page. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.marquee-horizontal-wrap,
.marquee-horizontal-wrap.alternate.divider {
  max-width: 100vw;
  overflow: hidden;
}

.subscribe-grid-block,
.subscribe-heading,
.subscribe-heading.scroll {
  min-width: 0;
  max-width: 100%;
}

@media screen and (max-width: 767px) {
  .subscribe-grid-block {
    overflow: hidden;
  }
}

html[lang="fa"] .ai-heading-fa {
  direction: rtl !important;
  text-transform: none !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(.2rem, 1vw, .65rem) !important;
  width: 100% !important;
  max-width: min(100%, 42rem) !important;
  margin-inline: auto !important;
  overflow: visible !important;
}

html[lang="fa"] .ai-heading-fa span {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  color: #f3efe7 !important;
  font-family: var(--fa-font) !important;
  font-size: clamp(2.65rem, 7.2vw, 5.45rem) !important;
  font-weight: 900 !important;
  line-height: .96 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: nowrap !important;
  transform: none !important;
  -webkit-text-stroke: .35px currentColor;
  text-shadow: 0 0 .01px currentColor;
}

html[lang="fa"] .ai-heading-fa .subscribe-span-04 {
  direction: ltr !important;
  color: #b62e2d !important;
  font-family: 'Chieezy Burger-Distressed', var(--fa-font), sans-serif !important;
  font-size: clamp(2.78rem, 7.55vw, 5.65rem) !important;
  font-weight: 500 !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}

html[lang="fa"] .quality-heading-fa {
  font-size: 4.4rem !important;
  font-weight: 900 !important;
  line-height: 1.02 !important;
  text-align: right !important;
  -webkit-text-stroke: .25px currentColor;
  text-shadow: 0 0 .01px currentColor;
}

html[lang="fa"] .occasion-heading-fa {
  font-size: 6.4rem !important;
  font-weight: 900 !important;
  line-height: .95 !important;
  -webkit-text-stroke: .25px currentColor;
  text-shadow: 0 0 .01px currentColor;
}

@media screen and (max-width: 767px) {
  html[lang="fa"] .ai-heading-fa {
    max-width: calc(100vw - 3rem) !important;
    gap: .25rem !important;
  }

  html[lang="fa"] .ai-heading-fa span {
    font-size: clamp(2.25rem, 11.4vw, 3.85rem) !important;
    line-height: 1.02 !important;
  }

  html[lang="fa"] .ai-heading-fa .subscribe-span-04 {
    font-size: clamp(2.35rem, 11.9vw, 4rem) !important;
  }

  html[lang="fa"] .quality-heading-fa {
    font-size: 4rem !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: right !important;
  }

  html[lang="fa"] .occasion-heading-fa {
    font-size: 5.6rem !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

@media screen and (max-width: 479px) {
  html[lang="fa"] .quality-heading-fa {
    font-size: 2.8rem !important;
    text-align: right !important;
  }

  html[lang="fa"] .occasion-heading-fa {
    font-size: 3.2rem !important;
    text-align: center !important;
  }
}

html[lang="fa"] .details-container,
html[lang="fa"] .subscribe-details-grid,
html[lang="fa"] .subcribe-details-text-container {
  direction: rtl !important;
}

html[lang="fa"] .subcribe-details-text-container {
  text-align: right !important;
  justify-items: end !important;
  align-items: flex-end !important;
}

html[lang="fa"] .details-container .subscribe-icon-image {
  display: block !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  width: 4rem !important;
  filter: brightness(0) saturate(100%) invert(20%) sepia(72%) saturate(2201%) hue-rotate(342deg) brightness(89%) contrast(91%) !important;
}

html[lang="fa"] .subscribe-grid-h3,
html[lang="fa"] .subscribe-details-paragraph {
  direction: rtl !important;
  text-align: right !important;
  font-family: var(--fa-font) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[lang="fa"] .subscribe-grid-h3 {
  width: 100% !important;
  font-weight: 900 !important;
}

html[lang="fa"] .subscribe-grid-h3 span[dir="ltr"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
}

html[lang="fa"] .subscribe-details-paragraph {
  width: 100% !important;
  max-width: 20rem !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  font-weight: 700 !important;
  line-height: 1.85 !important;
}

@media screen and (max-width: 767px) {
  html[lang="fa"] .subscribe-details-paragraph {
    max-width: 12.8rem !important;
  }

  html[lang="fa"] .details-container {
    padding-inline: clamp(.9rem, 4vw, 1.25rem) !important;
    overflow: visible !important;
  }

  html[lang="fa"] .subscribe-details-grid {
    position: relative !important;
    grid-template-columns: 3.2rem minmax(0, 1fr) !important;
    grid-template-rows: repeat(3, auto) !important;
    grid-template-areas:
      "Icon-1 Details-1"
      "Icon-2 Details-2"
      "Icon-3 Details-3" !important;
    column-gap: clamp(.85rem, 3.6vw, 1.35rem) !important;
    row-gap: clamp(2.1rem, 8vw, 3rem) !important;
    align-items: start !important;
    overflow: visible !important;
  }

  html[lang="fa"] .subscribe-details-grid::before {
    content: "";
    position: absolute;
    top: 1.15rem;
    bottom: 1.15rem;
    right: 1.6rem;
    width: 2px;
    background-color: #e3dfd6;
    opacity: .9;
    z-index: 0;
  }

  html[lang="fa"] .subscribe-line-container {
    display: none !important;
  }

  html[lang="fa"] .subscribe-icon-container {
    align-self: start !important;
    justify-self: center !important;
    position: relative !important;
    z-index: 2 !important;
  }

  html[lang="fa"] .subcribe-details-text-container,
  html[lang="fa"] .subcribe-details-text-container._01,
  html[lang="fa"] .subcribe-details-text-container._02,
  html[lang="fa"] .subcribe-details-text-container._03 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: .45rem !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
  }

  html[lang="fa"] .details-container .subscribe-icon-image {
    width: 3.2rem !important;
    max-width: 3.2rem !important;
    height: auto !important;
    flex: 0 0 auto !important;
    margin: 0 0 .1rem auto !important;
    padding: 0 !important;
    position: static !important;
  }

  html[lang="fa"] .subscribe-grid-h3 {
    max-width: 14rem !important;
    margin: 0 !important;
    font-size: clamp(1.65rem, 7.2vw, 2rem) !important;
    line-height: 1.16 !important;
  }

  html[lang="fa"] .subscribe-details-paragraph {
    max-width: 14rem !important;
    margin: 0 !important;
    font-size: clamp(.82rem, 3.45vw, .98rem) !important;
    line-height: 1.75 !important;
  }
}

@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/YekanBakh3-Pro/Pro/Yekan%20Bakh%20Family/webfonts/woff2/YekanBakh-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/YekanBakh3-Pro/Pro/Yekan%20Bakh%20Family/webfonts/woff2/YekanBakh-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/YekanBakh3-Pro/Pro/Yekan%20Bakh%20Family/webfonts/woff2/YekanBakh-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/YekanBakh3-Pro/Pro/Yekan%20Bakh%20Family/webfonts/woff2/YekanBakh-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/YekanBakh3-Pro/Pro/Yekan%20Bakh%20Family/webfonts/woff2/YekanBakh-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/YekanBakh3-Pro/Pro/Yekan%20Bakh%20Family/webfonts/woff2/YekanBakh-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/YekanBakh3-Pro/Pro/Yekan%20Bakh%20Family/webfonts/woff2/YekanBakh-Black.woff2') format('woff2');
}

:root {
  --fa-font: 'YekanBakh', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

/* Persian default font: body handles inherited copy; the targeted
   selectors below override Webflow and inline Persian text styles. */
html[lang="fa"] body {
  font-family: var(--fa-font);
}

/* Form fields and editable / Persian-text areas need Persian font */
html[lang="fa"] input.text-field,
html[lang="fa"] input.text-input-field,
html[lang="fa"] input.w-input,
html[lang="fa"] textarea.text-area,
html[lang="fa"] textarea.text-input-field,
html[lang="fa"] textarea.w-input,
html[lang="fa"] select,
html[lang="fa"] .input-content-wrapper,
html[lang="fa"] .field-label,
html[lang="fa"] .footer-link-dark,
html[lang="fa"] .nav-text-link,
html[lang="fa"] .footer-menu-title,
html[lang="fa"] .small-paragraph,
html[lang="fa"] .paragraph,
html[lang="fa"] .text-block,
html[lang="fa"] .price,
html[lang="fa"] .product-flavor-text,
html[lang="fa"] .party-jar-word,
html[lang="fa"] .product-tab-title,
html[lang="fa"] .h2-heading,
html[lang="fa"] .h3-heading,
html[lang="fa"] .h1-heading.categories,
html[lang="fa"] .h1-heading.contact,
html[lang="fa"] .h1-heading._404,
html[lang="fa"] .general-button,
html[lang="fa"] .general-button.contact,
html[lang="fa"] .nav-button,
html[lang="fa"] .contact-us-button,
html[lang="fa"] .w-commerce-commerceaddtocartbutton,
html[lang="fa"] .bottom-footer-link,
html[lang="fa"] .testimonial-paragraph,
html[lang="fa"] .founder-name,
html[lang="fa"] .founder-quote,
html[lang="fa"] .ambassador-name,
html[lang="fa"] .ambassador-title {
  font-family: var(--fa-font) !important;
}

/* Persian weight scale mapped to the loaded Yekan Bakh files */
html[lang="fa"] .paragraph,
html[lang="fa"] .small-paragraph,
html[lang="fa"] .footer-link-dark,
html[lang="fa"] .text-block,
html[lang="fa"] input.w-input,
html[lang="fa"] textarea.w-input {
  font-weight: 400;
}

html[lang="fa"] .nav-text-link,
html[lang="fa"] .nav-button,
html[lang="fa"] .general-button,
html[lang="fa"] .contact-us-button,
html[lang="fa"] .category-button,
html[lang="fa"] .field-label,
html[lang="fa"] .product-tab-title,
html[lang="fa"] .price,
html[lang="fa"] .product-flavor-text {
  font-weight: 600;
}

html[lang="fa"] .h1-heading.categories,
html[lang="fa"] .h1-heading.contact,
html[lang="fa"] .h1-heading._404,
html[lang="fa"] .h2-heading,
html[lang="fa"] .h3-heading,
html[lang="fa"] .footer-menu-title,
html[lang="fa"] .sales-heading,
html[lang="fa"] .party-jar-word {
  font-weight: 700;
}

html[lang="fa"] .h1-heading.categories.latin-category-heading {
  direction: ltr;
  text-align: center;
  font-family: "Playlist Script", cursive !important;
  font-weight: 400;
}

/* Best-sellers cards: larger centered flavor labels. */
html[data-wf-item-slug="best-sellers"] .product-collection-card-wrapper,
html[data-wf-item-slug="best-sellers"] .product-collection-content-info-wrapper,
html[data-wf-item-slug="best-sellers"] .product-collection-content-info-wrapper .text-box-general {
  text-align: center !important;
}

html[data-wf-item-slug="best-sellers"] .product-collection-content-info-wrapper .text-box-general {
  width: 100%;
  display: block;
}

html[data-wf-item-slug="best-sellers"] .product-collection-content-info-wrapper .price {
  width: 100%;
  display: block;
  text-align: center !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
}

html[lang="en"][data-wf-item-slug="best-sellers"] .product-collection-content-info-wrapper .price {
  font-size: 2.7rem !important;
}

html[lang="fa"][data-wf-item-slug="best-sellers"] .product-collection-content-info-wrapper .price {
  font-family: var(--fa-font) !important;
  font-size: 1.89rem !important;
}

html[data-wf-item-slug="mintora"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01,
html[data-wf-item-slug="mintora"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02,
html[data-wf-item-slug="citrina"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01,
html[data-wf-item-slug="citrina"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02,
html[data-wf-item-slug="ruby-noir"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01,
html[data-wf-item-slug="ruby-noir"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02 {
  width: clamp(5.95rem, 17vw, 8.5rem) !important;
  z-index: 3;
  pointer-events: auto;
}

html[data-wf-item-slug="mintora"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01,
html[data-wf-item-slug="citrina"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01,
html[data-wf-item-slug="ruby-noir"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01 {
  inset: -2% auto auto 10% !important;
}

html[data-wf-item-slug="mintora"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02,
html[data-wf-item-slug="citrina"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02,
html[data-wf-item-slug="ruby-noir"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02 {
  inset: auto 9% 6% auto !important;
}

@media screen and (max-width: 767px) {
  html[data-wf-item-slug="mintora"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01,
  html[data-wf-item-slug="mintora"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02,
  html[data-wf-item-slug="citrina"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01,
  html[data-wf-item-slug="citrina"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02,
  html[data-wf-item-slug="ruby-noir"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01,
  html[data-wf-item-slug="ruby-noir"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02 {
    width: clamp(5.95rem, 24vw, 8.5rem) !important;
  }

  html[data-wf-item-slug="mintora"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01,
  html[data-wf-item-slug="citrina"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01,
  html[data-wf-item-slug="ruby-noir"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-01 {
    inset: -2% auto auto 9% !important;
  }

  html[data-wf-item-slug="mintora"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02,
  html[data-wf-item-slug="citrina"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02,
  html[data-wf-item-slug="ruby-noir"] body.product-page-body .product-page-image-wrapper .image-wrapper.cube.product-page-02 {
    inset: auto 8% 5% auto !important;
  }
}

@media screen and (max-width: 767px) {
  html[data-wf-item-slug="best-sellers"] .product-image-category-page.product-collection-card {
    width: clamp(18rem, 78vw, 20rem) !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html[data-wf-item-slug="best-sellers"] .content-image.product-collection-image-front {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
  }
}

/* RTL text scopes */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: var(--fa-font) !important;
}

[dir="rtl"] .padding-right {
  padding-right: 0;
  padding-left: 1em;
}

[dir="rtl"] input.text-field,
[dir="rtl"] textarea.text-area,
[dir="rtl"] .input-content-wrapper {
  text-align: right;
  direction: rtl;
}

/* Footer Persian columns */
html[lang="fa"] .footer-grid-block,
html[lang="fa"] .footer-text-box {
  text-align: right;
  direction: rtl;
}

html[lang="fa"] .footer-text-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Numbers / phone / email always LTR */
.num,
[dir="rtl"] .num,
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* ==========================================================
   Product page description copy (FA)
   Original Webflow rules force `direction: ltr` and
   `text-align-last: left/center` on `.guide-copy` / `.mix-copy` /
   `.mix-copy-lead`. We need !important + matching specificity
   (data-wf-item-slug attribute) to override them.
   ========================================================== */
html[lang="fa"] body.product-page-body .small-paragraph,
html[lang="fa"] body.product-page-body .w-tab-pane,
html[lang="fa"] body.product-page-body .w-tab-pane p,
html[lang="fa"] body.product-page-body .tabs-pane,
html[lang="fa"] body.product-page-body .tabs-pane p,
html[lang="fa"] body.product-page-body .product-description-tabs p,
html[lang="fa"] body.product-page-body .product-information-text-box,
html[lang="fa"] body.product-page-body .product-information-text-box .small-paragraph,
html[lang="fa"] body.product-page-body .text-box,
html[lang="fa"] body.product-page-body .text-box .small-paragraph {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: embed;
}

/* Specifically beat the original rule on .guide-copy (line 7532 in coolmix.webflow.css) */
html[lang="fa"] body.product-page-body .guide-copy,
html[lang="fa"][data-wf-item-slug] body.product-page-body .guide-copy {
  direction: rtl !important;
  text-align: right !important;
  text-align-last: right !important;
  unicode-bidi: plaintext;
  line-height: 2;
}

/* And beat the per-slug rules on .mix-copy / .mix-copy-lead */
html[lang="fa"] body.product-page-body .mix-copy,
html[lang="fa"][data-wf-item-slug="citrina"] body.product-page-body .mix-copy,
html[lang="fa"][data-wf-item-slug="mintora"] body.product-page-body .mix-copy,
html[lang="fa"][data-wf-item-slug="ruby-noir"] body.product-page-body .mix-copy {
  direction: rtl !important;
  text-align: right !important;
  text-align-last: right !important;
}

html[lang="fa"] body.product-page-body .mix-copy-lead,
html[lang="fa"][data-wf-item-slug="citrina"] body.product-page-body .mix-copy-lead,
html[lang="fa"][data-wf-item-slug="mintora"] body.product-page-body .mix-copy-lead,
html[lang="fa"][data-wf-item-slug="ruby-noir"] body.product-page-body .mix-copy-lead {
  direction: rtl !important;
  display: block !important;
  text-align: right !important;
  white-space: normal;
}

/* Tab labels */
html[lang="fa"] body.product-page-body .product-tab-title {
  direction: rtl;
  text-align: right;
}

html[lang="fa"] body.product-page-body .product-description-tabs {
  direction: rtl !important;
  --fa-product-tabs-right-shift: clamp(.55rem, 1.5vw, .75rem);
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  text-align: right !important;
  transform: translateX(var(--fa-product-tabs-right-shift));
}

html[lang="fa"] body.product-page-body .product-description-tabs-menu {
  direction: rtl !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: clamp(10px, 3.1vw, 23px);
}

html[lang="fa"] body.product-page-body .product-description-tab-link {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html[lang="fa"] body.product-page-body .w-tab-content,
html[lang="fa"] body.product-page-body .tabs-pane,
html[lang="fa"] body.product-page-body .tabs-pane .text-box,
html[lang="fa"] body.product-page-body .tabs-pane .small-paragraph {
  width: 100% !important;
  max-width: 100% !important;
}

/* Hero / marquee / horizontal-scroll: stay LTR */
html[lang="fa"] .section.hero,
html[lang="fa"] .marquees,
html[lang="fa"] .horizontal-products-container,
html[lang="fa"] .horizontal-products-wrapper,
html[lang="fa"] .scroll-track {
  direction: ltr;
}

@media screen and (max-width: 767px) {
  html[lang="fa"] .hero-heading-container {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
  }

  html[lang="fa"] .h1-heading.hero {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media screen and (max-width: 767px) {
  html[lang="fa"] .horizontal-products-container .product-image-container {
    transform: scale(1.15) !important;
    transform-origin: center center !important;
  }

  html[lang="fa"] .horizontal-products-container .product-flavor-text {
    display: block !important;
    width: max-content !important;
    min-width: 9.25rem !important;
    max-width: 72% !important;
    margin: .35rem 0 .85rem !important;
    direction: rtl !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  html[lang="fa"] .horizontal-products-container .product-button-container.home._02 {
    width: max-content !important;
    margin-top: 0 !important;
    justify-content: flex-start !important;
  }

  html[lang="fa"] .horizontal-products-container .product-button-container.home._02 .general-button {
    padding: .4rem .8rem !important;
    border-width: .1rem !important;
    font-size: 1.28rem !important;
    line-height: 1 !important;
    box-shadow: 3.2px 3.2px 0 .1rem #fff !important;
  }

  html[lang="fa"] .horizontal-products-container .panel-01 .general-button {
    background-color: #3bbc9a !important;
  }

  html[lang="fa"] .horizontal-products-container .panel-02 .general-button {
    background-color: #2bb673 !important;
  }

  html[lang="fa"] .horizontal-products-container .panel-03 .general-button {
    background-color: #206781 !important;
  }
}

@media screen and (max-width: 479px) {
  html[lang="fa"] .horizontal-products-container .product-button-container.home._02 .general-button {
    font-size: .96rem !important;
  }
}

/* Contact page */
html[lang="fa"] body.contact-page .h1-heading.contact,
html[lang="fa"] body.contact-page .paragraph {
  direction: rtl;
  text-align: center;
}

/* 404 */
html[lang="fa"] .h1-heading._404,
html[lang="fa"] body .container._404 .paragraph {
  direction: rtl;
  text-align: center;
}

/* Commerce / form messages */
html[lang="fa"] .w-commerce-commerceaddtocarterror,
html[lang="fa"] .w-form-done,
html[lang="fa"] .w-form-fail {
  direction: rtl;
  text-align: right;
  font-family: var(--fa-font);
}

/* Buttons: no extra letter-spacing in Persian */
html[lang="fa"] .general-button,
html[lang="fa"] .nav-button,
html[lang="fa"] .contact-us-button,
html[lang="fa"] .w-commerce-commerceaddtocartbutton {
  letter-spacing: 0;
}

/* ==========================================================
   Header — RTL flip for Persian
   Original layout:  [left-block] [middle-logo] [right-block]
   Persian layout:   [right-block] [middle-logo] [left-block]
   ========================================================== */
html[lang="fa"] .header-nav-container {
  direction: rtl;
}
html[lang="fa"] .navigation-menu,
html[lang="fa"] .nav-text-links-container,
html[lang="fa"] .nav-right-block {
  direction: rtl;
}
html[lang="fa"] .nav-text-link {
  direction: rtl;
  text-align: right;
}

/* Show the in-menu AI link in Persian (hidden by default via display-none-tablet)
   and prevent wrapping. Order is the natural HTML order: خانه → محصولات → AI,
   which under RTL flex reads from the right as the user expects. */
html[lang="fa"] .nav-text-links-container.display-none-tablet {
  display: flex;
}
html[lang="fa"] .navigation-menu {
  min-width: 0;
  max-width: none;
  gap: 1.25rem;
}
html[lang="fa"] .navigation-menu .nav-text-link {
  white-space: nowrap;
  font-size: .95rem;
}
/* AI menu link is shown for FA; stays white on dark product headers and
   inherits the regular menu colour elsewhere. We only emphasise it with
   weight so contrast on every background is preserved. */
html[lang="fa"] .nav-text-links-container.display-none-tablet .nav-text-link {
  font-weight: 600;
  font-size: .92rem;
}

/* Make sure prominent AI link in nav-right-block (when present) doesn't wrap */
html[lang="fa"] .nav-right-block .nav-text-link {
  white-space: nowrap;
}

/* Language switcher button: keep its own letters LTR but place naturally */
html[lang="fa"] .lang-switch {
  direction: ltr;
  unicode-bidi: embed;
  margin-left: .5rem;
  margin-right: 0;
}
html[lang="en"] .lang-switch,
html:not([lang="fa"]) .lang-switch {
  margin-right: .5rem;
}
.lang-switch {
  font-family: var(--fa-font) !important;
  font-size: .9rem;
  letter-spacing: 0;
  padding: 0;
  min-height: 0;
  white-space: nowrap;
}

/* Header links/buttons: keep the top menu text-only and visually consistent. */
.header-nav .nav-buttons-desktop,
.blue-header-nav .nav-buttons-desktop,
.pink-header-nav .nav-buttons-desktop {
  align-items: center;
  gap: 1rem;
}

.header-nav .nav-button.blue.general,
.header-nav .nav-button.blue.general:hover,
.header-nav .nav-button.blue.general.w--current,
.blue-header-nav .nav-button.blue.general,
.blue-header-nav .nav-button.blue.general:hover,
.blue-header-nav .nav-button.blue.general.w--current,
.pink-header-nav .nav-button.blue.general,
.pink-header-nav .nav-button.blue.general:hover,
.pink-header-nav .nav-button.blue.general.w--current,
html[data-wf-item-slug] body.product-page-body [role="banner"] .nav-button.blue.general,
html[data-wf-item-slug] body.product-page-body [role="banner"] .nav-button.blue.general:hover {
  color: #383353 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
  text-decoration: none;
}

.header-nav .nav-text-link,
.header-nav .nav-button.blue.general,
.header-nav .lang-switch,
.header-nav .nav-right-block > .nav-text-link,
.blue-header-nav .nav-text-link,
.blue-header-nav .nav-button.blue.general,
.blue-header-nav .lang-switch,
.pink-header-nav .nav-text-link,
.pink-header-nav .nav-button.blue.general,
.pink-header-nav .lang-switch {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

html[lang="fa"] .header-nav .nav-text-links-container.display-none-tablet .nav-text-link {
  color: #383353 !important;
  font-weight: 800 !important;
}

html[data-wf-item-slug] body.product-page-body [role="banner"] .nav-button.blue.general,
html[data-wf-item-slug] body.product-page-body [role="banner"] .lang-switch {
  color: #fff !important;
}

html[lang="fa"] .header-nav .nav-text-link,
html[lang="fa"] .header-nav .nav-button.blue.general,
html[lang="fa"] .header-nav .lang-switch {
  font-weight: 800 !important;
}

html[lang="fa"] [role="banner"] .nav-text-link,
html[lang="fa"] [role="banner"] .nav-button.blue.general,
html[lang="fa"] [role="banner"] .lang-switch {
  font-weight: 800 !important;
}

/* ==========================================================
   Header sizing refinements (both EN and FA) — prevent the
   nav-right-block from wrapping after the lang switcher was
   added. We shrink AI link slightly and let the right block
   grow as needed.
   ========================================================== */
.nav-right-block {
  min-width: 0 !important;
  max-width: none !important;
  gap: .25rem;
}
.nav-text-link.blue.main {
  font-size: .98rem;
  margin-right: .6rem;
  white-space: nowrap;
}
.nav-button.blue.general {
  white-space: nowrap;
}

/* ==========================================================
   Footer — RTL columns for Persian
   ========================================================== */
html[lang="fa"] .footer-container,
html[lang="fa"] .footer-container.general,
html[lang="fa"] .footer-grid-large,
html[lang="fa"] .footer-grid-block,
html[lang="fa"] .footer-grid-block-small,
html[lang="fa"] .newsletter-legal-wrap {
  direction: rtl;
}

/* Reverse grid order so socials end up on the left */
html[lang="fa"] .footer-grid-large {
  direction: rtl;
}

/* Each footer column: title and links right-aligned */
html[lang="fa"] .footer-grid-block {
  text-align: right;
}
html[lang="fa"] .footer-menu-title {
  text-align: right;
  direction: rtl;
}
html[lang="fa"] .footer-text-box {
  align-items: flex-end;
  text-align: right;
  direction: rtl;
}
html[lang="fa"] .footer-link-dark,
html[lang="fa"] .bottom-footer-link {
  text-align: right;
  direction: rtl;
}

/* Social icons block stays LTR for icons */
html[lang="fa"] .footer-grid-block-small {
  direction: ltr;
}

/* Footer absolute boxes — DO NOT mirror.
   The brand wordmark image (.footer-logo-image-wrapper) is ~62vw wide;
   moving it to left:2rem makes it stretch into the column area and
   overlap everything. The wordmark is a brand mark (neutral), and the
   copyright shows year + coolmix.ir, so leaving them at right:2rem is
   visually correct in both EN and FA.
   We just keep the column text RTL and remove the column translate so
   columns sit naturally on the left without crashing into the wordmark. */
html[lang="fa"] .footer-grid-large > .footer-grid-block:first-of-type,
html[lang="fa"] .footer-grid-large .footer-grid-block-small {
  transform: none;
}

/* Reverse the visible flex order so for Persian readers the column
   group reads right-to-left within its left-side cluster:
   socials | pages   →   pages | socials  (pages closer to centre).
   Only on tablet+; on phones we keep the Webflow column stack. */
@media (min-width: 768px) {
  html[lang="fa"] .footer-grid-large {
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2rem;
  }
}

/* Bottom-footer (copyright): keep its native LTR-ish layout (numbers + url). */
html[lang="fa"] .newsletter-legal-wrap .bottom-footer-link {
  text-align: right;
  direction: rtl;
}
html[lang="fa"] .newsletter-legal-wrap .bottom-footer-link .num,
html[lang="fa"] .newsletter-legal-wrap {
  direction: rtl;
}

/* ==========================================================
   Responsive sweep (applies to both EN and FA where needed)
   ========================================================== */

/* Tablet/phone: nav-right-block can shrink; lang-switch & contact wrap nicely */
@media (max-width: 991px) {
  .nav-right-block {
    flex-wrap: wrap;
    gap: .35rem;
  }
  .nav-text-link.blue.main {
    font-size: .9rem;
    margin-right: .4rem;
  }
  .lang-switch {
    font-size: .78rem;
    padding: .45rem .75rem;
  }
  .nav-buttons-desktop {
    gap: .35rem;
    display: flex;
  }
  /* AI menu link in tablet sidebar (mobile menu is column-flex Webflow original) */
  html[lang="fa"] .nav-text-links-container.display-none-tablet {
    display: flex;
  }
  html[lang="fa"] .navigation-menu .nav-text-link,
  .navigation-menu .nav-text-link {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  :root {
    --mobile-nav-bg: #e3dfd6;
    --mobile-nav-radius: 10px;
  }

  .header-nav.transparent {
    overflow: visible !important;
    border-radius: var(--mobile-nav-radius) !important;
    background-color: var(--mobile-nav-bg) !important;
    transition: border-radius .2s ease, box-shadow .2s ease;
  }

  .header-nav-container,
  html[lang="fa"] .header-nav-container {
    direction: ltr;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 3.75rem;
    padding: .45rem .7rem;
    gap: .35rem;
    border-radius: var(--mobile-nav-radius) !important;
    background-color: var(--mobile-nav-bg) !important;
    transition: border-radius .2s ease;
  }

  .header-nav.transparent .nav-background-02.nav-tablet-dropdown {
    inset: 0 !important;
    height: 100% !important;
    min-width: 100%;
    border-radius: var(--mobile-nav-radius) !important;
    background-color: var(--mobile-nav-bg) !important;
    transition: border-radius .2s ease, background-color .2s ease;
  }

  .header-nav.transparent:has(.menu-button-tablet.w--open),
  .header-nav.transparent:has(.menu-button-tablet.w--open) .header-nav-container,
  .header-nav-container:has(.menu-button-tablet.w--open) .nav-background-02.nav-tablet-dropdown {
    border-radius: var(--mobile-nav-radius) var(--mobile-nav-radius) 0 0 !important;
  }

  .navigation-left-block {
    position: absolute;
    inset: calc(100% - 1px) 0 auto 0 !important;
    z-index: 900;
    pointer-events: auto;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 0 0 var(--mobile-nav-radius) var(--mobile-nav-radius) !important;
    transform-origin: top center;
  }

  .navigation-left-block .navigation-menu {
    pointer-events: auto;
  }

  .navigation-menu {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    padding: .95rem 1.35rem .9rem 1rem !important;
    align-items: stretch !important;
    border: 0 !important;
    border-top: 1px solid rgba(56, 51, 83, .08) !important;
    border-radius: 0 0 var(--mobile-nav-radius) var(--mobile-nav-radius) !important;
    background-color: var(--mobile-nav-bg) !important;
    box-shadow: 0 12px 22px rgba(56, 51, 83, .1);
    transform-origin: top center;
    transform: translateY(0) !important;
    will-change: opacity, transform;
  }

  .header-nav.transparent:has(.menu-button-tablet.w--open) .navigation-left-block {
    animation: mobileMenuDrop .18s ease-out both;
  }

  .navigation-menu .nav-text-links-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .navigation-menu .nav-text-link,
  html[lang="fa"] .navigation-menu .nav-text-link {
    box-sizing: border-box;
    width: 100% !important;
    padding: .72rem .75rem !important;
    text-align: right !important;
    line-height: 1.25;
  }

  .navigation-middle-block {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header-logo-image-wrapper.no-margin,
  .header-logo-image-wrapper.no-margin.w--current {
    width: clamp(5rem, 23vw, 6.2rem);
    max-width: clamp(5rem, 23vw, 6.2rem) !important;
    padding-left: 0;
  }

  .header-nav.transparent .header-nav-logo-image {
    width: 100% !important;
    height: auto;
    display: block;
  }

  .nav-right-block,
  html[lang="fa"] .nav-right-block {
    order: 1;
    direction: ltr;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
    max-width: none;
    gap: .35rem;
  }

  .tablet-menu-button-holder {
    order: 1;
    flex: 0 0 auto;
    margin: 0 !important;
    position: relative;
    z-index: 1100;
    pointer-events: auto;
  }

  .menu-button-tablet.purple,
  .menu-button-tablet.no-background {
    width: 2.35rem !important;
    height: 2.35rem !important;
    min-width: 2.35rem;
    min-height: 2.35rem;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px;
    position: relative;
    z-index: 1101;
    cursor: pointer;
    touch-action: manipulation;
  }

  .tablet-menu-icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .nav-buttons-desktop {
    order: 2;
    display: flex !important;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: .35rem;
    min-width: 0;
  }

  .nav-buttons-desktop .nav-button:not(.lang-switch) {
    order: 1;
  }

  .nav-buttons-desktop .lang-switch {
    order: 2;
  }

  .nav-button.blue.general,
  .lang-switch {
    height: 2rem !important;
    min-height: 2rem !important;
    margin: 0 !important;
    padding: 0 .62rem !important;
    align-items: center;
    justify-content: center;
    font-size: .68rem !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  .nav-text-link.blue.main {
    font-size: .85rem;
    margin-right: .3rem;
  }
  .lang-switch {
    font-size: .75rem;
    padding: .4rem .65rem;
  }

  html[lang="fa"] .header-nav-container {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    grid-template-rows: auto;
    column-gap: .35rem;
    direction: ltr;
  }

  html[lang="fa"] .nav-right-block {
    display: contents !important;
  }

  html[lang="fa"] .tablet-menu-button-holder {
    grid-column: 5;
    grid-row: 1;
    order: initial;
    justify-self: end;
  }

  html[lang="fa"] .navigation-middle-block {
    grid-column: 4;
    grid-row: 1;
    order: initial;
    margin: 0 !important;
    justify-self: end;
  }

  html[lang="fa"] .nav-buttons-desktop {
    grid-column: 1 / 3;
    grid-row: 1;
    order: initial;
    justify-self: start;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  html[lang="fa"] .nav-buttons-desktop .lang-switch {
    order: 1;
  }

  html[lang="fa"] .nav-buttons-desktop .nav-button:not(.lang-switch) {
    order: 2;
  }

  html[lang="fa"] .nav-buttons-desktop .nav-button.blue.general,
  html[lang="fa"] .nav-buttons-desktop .lang-switch {
    font-size: .78rem !important;
    font-weight: 900 !important;
  }

  html:not([lang="fa"]) .header-nav-container {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    grid-template-rows: auto;
    column-gap: .35rem;
    direction: ltr;
  }

  html:not([lang="fa"]) .nav-right-block {
    display: contents !important;
  }

  html:not([lang="fa"]) .nav-right-block > .nav-text-link {
    display: none !important;
  }

  html:not([lang="fa"]) .tablet-menu-button-holder {
    grid-column: 1;
    grid-row: 1;
    order: initial;
    justify-self: start;
  }

  html:not([lang="fa"]) .navigation-middle-block {
    grid-column: 2;
    grid-row: 1;
    order: initial;
    margin: 0 !important;
    justify-self: start;
  }

  html:not([lang="fa"]) .nav-buttons-desktop {
    grid-column: 4 / 6;
    grid-row: 1;
    order: initial;
    justify-self: end;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  html:not([lang="fa"]) .nav-buttons-desktop .nav-button:not(.lang-switch) {
    order: 1;
  }

  html:not([lang="fa"]) .nav-buttons-desktop .lang-switch {
    order: 2;
  }

  html:not([lang="fa"]) .nav-buttons-desktop .nav-button.blue.general,
  html:not([lang="fa"]) .nav-buttons-desktop .lang-switch {
    font-size: .78rem !important;
    font-weight: 900 !important;
  }

  /* Footer absolute boxes: collapse to static on phones so nothing overlaps */
  .newsletter-legal-wrap,
  html[lang="fa"] .newsletter-legal-wrap {
    position: static;
    inset: auto;
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
  }
  .footer-logo-image-wrapper,
  html[lang="fa"] .footer-logo-image-wrapper {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none;
    text-align: center;
    margin-top: 1rem;
  }
  .footer-grid-large > .footer-grid-block:first-of-type,
  .footer-grid-large .footer-grid-block-small,
  html[lang="fa"] .footer-grid-large > .footer-grid-block:first-of-type,
  html[lang="fa"] .footer-grid-large .footer-grid-block-small {
    transform: none;
  }
  /* Footer: stack columns */
  .footer-grid-large {
    flex-direction: column;
    gap: 1.5rem;
  }
  html[lang="fa"] .newsletter-legal-wrap .bottom-footer-link {
    text-align: center;
  }
}

@keyframes mobileMenuDrop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .header-nav.transparent,
  .header-nav.transparent .nav-background-02.nav-tablet-dropdown,
  .header-nav-container,
  .navigation-left-block {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 479px) {
  /* Hide AI link in compact phone view to save header space; users still
     reach AI via the burger menu / homepage section. */
  .nav-text-link.blue.main {
    display: none;
  }
  html[lang="fa"] .nav-text-links-container.display-none-tablet {
    /* Keep visible inside burger drawer; only hide if it duplicates */
  }
  .lang-switch {
    font-size: .72rem;
    padding: .35rem .55rem;
  }
}

@media (max-width: 767px) {
  .footer-container.general,
  html[lang="fa"] .footer-container.general {
    gap: .95rem !important;
  }

  .footer-grid-large,
  html[lang="fa"] .footer-grid-large {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 1rem 1.2rem !important;
  }

  .footer-grid-block-small,
  html[lang="fa"] .footer-grid-block-small {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .footer-grid-large > .footer-grid-block:nth-of-type(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .footer-grid-large > .footer-grid-block:nth-of-type(3) {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  html[lang="fa"] .footer-grid-large > .footer-grid-block:nth-of-type(3) {
    align-items: stretch !important;
    text-align: right !important;
  }

  .footer-grid-large > .footer-grid-block:nth-of-type(3) .footer-menu-title {
    text-align: right !important;
  }

  .footer-grid-large > .footer-grid-block:nth-of-type(3) .footer-text-box {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .15rem 1rem !important;
  }

  html[lang="fa"] .footer-grid-large > .footer-grid-block:nth-of-type(3) .footer-link-dark {
    text-align: right !important;
  }
}

/* ==========================================================
   Final footer alignment
   ========================================================== */
.section.footer-section {
  padding: 1.25rem .75rem !important;
}

html:not([lang="fa"]) .footer-container.general,
html[lang="fa"] .footer-container.general {
  box-sizing: border-box !important;
  width: min(100%, 86rem) !important;
  max-width: calc(100vw - 1.5rem) !important;
  margin-inline: auto !important;
  padding: clamp(1.4rem, 3vw, 2.25rem) !important;
  display: grid !important;
  column-gap: clamp(1.75rem, 5vw, 4.5rem) !important;
  row-gap: 1.25rem !important;
  align-items: start !important;
  align-content: start !important;
  border-radius: 17px !important;
  overflow: hidden !important;
}

html:not([lang="fa"]) .footer-container.general {
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem) !important;
  grid-template-areas: "links brand" "links legal" !important;
  direction: ltr !important;
}

html[lang="fa"] .footer-container.general {
  grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr) !important;
  grid-template-areas: "brand links" "legal links" !important;
  direction: ltr !important;
}

html:not([lang="fa"]) .footer-logo-image-wrapper,
html[lang="fa"] .footer-logo-image-wrapper {
  grid-area: brand !important;
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 22rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

.footer-logo-image-link-blocks,
.footer-brand {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

html:not([lang="fa"]) .footer-grid-large,
html[lang="fa"] .footer-grid-large {
  grid-area: links !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(7.25rem, max-content)) !important;
  align-items: start !important;
  gap: 1.5rem clamp(1.6rem, 4vw, 3.4rem) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

html:not([lang="fa"]) .footer-grid-large {
  direction: ltr !important;
  justify-content: start !important;
}

html[lang="fa"] .footer-grid-large {
  direction: rtl !important;
  justify-content: start !important;
}

.footer-grid-large > .footer-grid-block:nth-of-type(2) {
  display: flex !important;
}

.footer-grid-large > .footer-grid-block:nth-of-type(3) {
  display: none !important;
}

.footer-grid-block,
.footer-grid-block-small,
html[lang="fa"] .footer-grid-block,
html[lang="fa"] .footer-grid-block-small {
  position: static !important;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  gap: .5rem !important;
}

html:not([lang="fa"]) .footer-grid-block,
html:not([lang="fa"]) .footer-grid-block-small {
  direction: ltr !important;
  text-align: left !important;
  align-items: flex-start !important;
}

html[lang="fa"] .footer-grid-block,
html[lang="fa"] .footer-grid-block-small {
  direction: rtl !important;
  text-align: right !important;
  align-items: flex-end !important;
}

.footer-menu-title,
.footer-grid-block-small::before {
  margin: 0 0 .15rem !important;
  color: #fff !important;
  font-size: .95rem !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
}

html:not([lang="fa"]) .footer-grid-block-small::before {
  content: "Social Network" !important;
}

html[lang="fa"] .footer-grid-block-small::before {
  content: "شبکه‌های اجتماعی" !important;
  font-family: var(--fa-font) !important;
}

.footer-grid-block-small .social-link-large:nth-child(1)::after {
  content: "Instagram" !important;
}

.footer-grid-block-small .social-link-large:nth-child(2)::after {
  content: "YouTube" !important;
}

html[lang="fa"] .footer-grid-block-small .social-link-large:nth-child(1)::after {
  content: "اینستاگرام" !important;
}

html[lang="fa"] .footer-grid-block-small .social-link-large:nth-child(2)::after {
  content: "یوتیوب" !important;
}

.footer-text-box {
  display: flex !important;
  flex-direction: column !important;
  gap: .35rem !important;
}

html:not([lang="fa"]) .footer-text-box {
  align-items: flex-start !important;
  text-align: left !important;
  direction: ltr !important;
}

html[lang="fa"] .footer-text-box {
  align-items: flex-end !important;
  text-align: right !important;
  direction: rtl !important;
}

.footer-link-dark,
.footer-grid-block-small .social-link-large,
.bottom-footer-link {
  color: rgba(255, 255, 255, .9) !important;
  font-size: .92rem !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: normal !important;
}

.footer-grid-block-small .social-link-large {
  display: inline-flex !important;
  min-height: 1.35rem !important;
}

html:not([lang="fa"]) .footer-grid-block-small .social-link-large {
  justify-content: flex-start !important;
}

html[lang="fa"] .footer-grid-block-small .social-link-large {
  justify-content: flex-end !important;
}

html:not([lang="fa"]) .newsletter-legal-wrap,
html[lang="fa"] .newsletter-legal-wrap {
  grid-area: legal !important;
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 22rem !important;
  margin: 0 !important;
  transform: none !important;
  justify-self: stretch !important;
}

html:not([lang="fa"]) .newsletter-legal-wrap,
html:not([lang="fa"]) .newsletter-legal-wrap .bottom-footer-link {
  direction: ltr !important;
  text-align: left !important;
  justify-content: flex-start !important;
}

html[lang="fa"] .newsletter-legal-wrap,
html[lang="fa"] .newsletter-legal-wrap .bottom-footer-link {
  direction: rtl !important;
  text-align: right !important;
  justify-content: flex-end !important;
}

@media (max-width: 767px) {
  .section.footer-section {
    padding: 1rem .5rem !important;
  }

  html:not([lang="fa"]) .footer-container.general,
  html[lang="fa"] .footer-container.general {
    width: 95% !important;
    max-width: 95% !important;
    padding: 1.35rem 1rem 1rem !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: "links" "legal" !important;
    row-gap: 1rem !important;
  }

  html:not([lang="fa"]) .footer-logo-image-wrapper,
  html[lang="fa"] .footer-logo-image-wrapper {
    display: none !important;
  }

  html:not([lang="fa"]) .footer-grid-large,
  html[lang="fa"] .footer-grid-large {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 1rem 1.25rem !important;
    align-items: start !important;
  }

  html:not([lang="fa"]) .footer-grid-block-small,
  html[lang="fa"] .footer-grid-block-small {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  html:not([lang="fa"]) .footer-grid-large > .footer-grid-block:nth-of-type(2),
  html[lang="fa"] .footer-grid-large > .footer-grid-block:nth-of-type(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  html:not([lang="fa"]) .footer-grid-large > .footer-grid-block:nth-of-type(3) {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  .footer-menu-title,
  .footer-grid-block-small::before {
    font-size: .88rem !important;
    line-height: 1.45 !important;
  }

  .footer-link-dark,
  .footer-grid-block-small .social-link-large,
  .bottom-footer-link {
    font-size: .82rem !important;
    line-height: 1.7 !important;
  }

  html:not([lang="fa"]) .newsletter-legal-wrap,
  html[lang="fa"] .newsletter-legal-wrap {
    max-width: 100% !important;
  }
}

/* Persian footer: pages on the right, social links on the left. */
html[lang="fa"] .footer-grid-large {
  direction: rtl !important;
  grid-template-columns: max-content max-content !important;
  column-gap: clamp(1.5rem, 5vw, 2.75rem) !important;
  justify-content: start !important;
  justify-self: end !important;
  width: auto !important;
}

html[lang="fa"] .footer-grid-block-small {
  grid-column: 2 !important;
  grid-row: 1 !important;
  order: 2 !important;
  direction: rtl !important;
  text-align: right !important;
  align-items: flex-end !important;
  justify-self: end !important;
  width: max-content !important;
  gap: .35rem !important;
}

html[lang="fa"] .footer-grid-large > .footer-grid-block:nth-of-type(2) {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: 1 !important;
  direction: rtl !important;
  text-align: right !important;
  align-items: flex-end !important;
  justify-self: end !important;
  width: max-content !important;
  gap: .35rem !important;
}

html[lang="fa"] .footer-grid-block-small::before,
html[lang="fa"] .footer-menu-title,
html[lang="fa"] .footer-link-dark,
html[lang="fa"] .footer-grid-block-small .social-link-large {
  direction: rtl !important;
  text-align: right !important;
  width: 100% !important;
}

html[lang="fa"] .footer-grid-block-small .social-link-large {
  display: flex !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  justify-content: flex-end !important;
  align-items: center !important;
  line-height: 1.7 !important;
}

html[lang="fa"] .footer-grid-block-small .social-link-large::after {
  display: block !important;
  width: 100% !important;
  text-align: right !important;
}

html[lang="fa"] .footer-text-box {
  width: 100% !important;
  direction: rtl !important;
  text-align: right !important;
  align-items: flex-end !important;
}
