/* Rayehe Kimia 1.2.10 — merged theme layers: rk-home-120, rk-pages-120 */

/* rk-home-120 */
/*
 * Rayehe Kimia 1.2.0 — home page: category cards, two-row horizontal carousels,
 * wide banner and the essence band with subcategory tabs.
 * Design system: primary #0f4f4a, footer green #0c4036, badge yellow #f2d76b,
 * surfaces #f8fbf7, lines #dce8de, asymmetric 26px/14px corners.
 * Motion: transform/opacity only; hover only on fine pointers; off with reduced motion.
 */

/* ---------------------------------------------------------- categories */
.rk-wp .rk-home-cats { position: relative; margin-top: 26px; margin-bottom: 8px; }
.rk-wp .rk-home-cats__track {
  display: grid; grid-template-columns: repeat(var(--rk-cats-per-row, 3), minmax(0, 1fr)); gap: 16px;
}
.rk-wp .rk-cat-card {
  position: relative; display: block; min-height: 0; aspect-ratio: 4 / 3.5; overflow: hidden; isolation: isolate;
  border-radius: 26px 0; background: #e6f0e9; color: #fff; text-decoration: none;
  box-shadow: 0 10px 26px rgba(8, 47, 37, .08);
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), box-shadow 220ms ease-out;
}
.rk-wp .rk-cat-card__media { position: absolute; inset: 0; z-index: 0; display: block; }
.rk-wp .rk-cat-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 520ms cubic-bezier(.23, 1, .32, 1); }
.rk-wp .rk-cat-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #0f4f4a; background: radial-gradient(circle at 30% 20%, #f4f8f2, #dbe9df); }
.rk-wp .rk-cat-card__placeholder svg { width: 54px; height: 54px; opacity: .55; }
.rk-wp .rk-cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 64, 54, 0) 38%, rgba(12, 64, 54, .58) 70%, rgba(9, 46, 39, .86) 100%);
}
.rk-wp .rk-cat-card__body {
  position: absolute; inset-inline: 18px 72px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.rk-wp .rk-cat-card__name { overflow: hidden; color: #fff; font-size: 19px; font-weight: 800; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 10px rgba(0, 0, 0, .18); }
.rk-wp .rk-cat-card__meta { color: rgba(231, 242, 234, .88); font-size: 12px; font-weight: 750; }
.rk-wp .rk-cat-card__go {
  position: absolute; inset-inline-end: 16px; bottom: 16px; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px 0; background: #f2d76b; color: #233d2a;
  transition: transform 220ms cubic-bezier(.23, 1, .32, 1);
}
.rk-wp .rk-cat-card__go svg { width: 18px; height: 18px; }
.rk-wp .rk-cat-card:active { transform: scale(.985); }
.rk-wp .rk-cat-card:focus-visible { outline: 3px solid #f2d76b; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .rk-wp .rk-cat-card:hover { box-shadow: 0 16px 34px rgba(8, 47, 37, .16); }
  .rk-wp .rk-cat-card:hover .rk-cat-card__image { transform: scale(1.05); }
  .rk-wp .rk-cat-card:hover .rk-cat-card__go { transform: translateX(-4px); }
  [dir="ltr"] .rk-wp .rk-cat-card:hover .rk-cat-card__go { transform: translateX(4px); }
}
.rk-wp .rk-home-cats__nav { display: none; }
@media (min-width: 901px) {
  .rk-wp .rk-home-cats--carousel .rk-home-cats__nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
  .rk-wp .rk-home-cats--carousel .rk-home-cats__track {
    grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--rk-cats-visible, 4) - 1) * 16px) / var(--rk-cats-visible, 4));
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
  }
  .rk-wp .rk-home-cats--carousel .rk-home-cats__track::-webkit-scrollbar { display: none; }
  .rk-wp .rk-home-cats--carousel .rk-cat-card { scroll-snap-align: start; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .rk-wp .rk-home-cats__track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 640px) {
  .rk-wp .rk-home-cats { margin-top: 18px; }
  .rk-wp .rk-home-cats__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rk-wp .rk-cat-card { aspect-ratio: 1 / 1.05; border-radius: 20px 0; }
  .rk-wp .rk-cat-card__body { inset-inline: 12px 12px; bottom: 54px; }
  .rk-wp .rk-cat-card__name { font-size: 15px; white-space: normal; }
  .rk-wp .rk-cat-card__go { inset-inline-end: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 12px 0; }
}

/* ------------------------------------- two-row horizontal carousels (mobile only) */
@media (max-width: 640px) {
body.rk-wp :is(#featured, #essence) .rk-carousel-rows .featured-carousel {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; container-type: inline-size; touch-action: pan-x pan-y;
}
body.rk-wp :is(#featured, #essence) .rk-carousel-rows .featured-carousel::-webkit-scrollbar { display: none; }
body.rk-wp:is(.home, .rk-wp) :is(#featured, #essence) .rk-carousel-rows .featured-carousel .products-grid.product-track {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none;
  grid-auto-columns: 86cqi; gap: 10px; width: max-content; padding: 4px 2px 12px;
  transition: opacity 160ms ease-out, transform 200ms cubic-bezier(.23, 1, .32, 1);
}
/* 1.2.1: only the carousel sizing lives here; the card itself is the shared mobile list card (cards-v1.2.0.css). */
body.rk-wp:is(.home, .rk-wp) :is(#featured, #essence) .rk-carousel-rows .featured-carousel .product-track > .product-card {
  flex: none; width: auto; min-width: 0; max-width: none; margin: 0; scroll-snap-align: start;
}
body.rk-wp:is(.home, .rk-wp) :is(#featured, #essence) .rk-carousel-rows .featured-carousel .product-track.is-swapping { opacity: 0; transform: translateY(6px); }
body.rk-wp:is(.home, .rk-wp) :is(#featured, #essence) .rk-carousel-rows .featured-carousel .product-track.is-loading { opacity: .5; }
}

/* --------------------------------------------------------------- banner */
.rk-wp .rk-home-banner { margin-block: 26px 10px; }
.rk-wp .rk-home-banner__frame {
  display: block; overflow: hidden; border-radius: 26px 0; background: #e6f0e9;
  box-shadow: 0 12px 30px rgba(8, 47, 37, .10);
}
.rk-wp .rk-home-banner__frame img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 1; object-fit: cover; transition: transform 600ms cubic-bezier(.23, 1, .32, 1); }
.rk-wp a.rk-home-banner__frame:focus-visible { outline: 3px solid var(--rk-primary, #0f4f4a); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .rk-wp a.rk-home-banner__frame:hover img { transform: scale(1.02); } }
@media (max-width: 640px) { .rk-wp .rk-home-banner { margin-block: 2px 24px; } .rk-wp .rk-home-banner__frame { border-radius: 20px 0; } .rk-wp .rk-home-banner__frame img { aspect-ratio: 2 / 1; } }

/* ------------------------------------------------------- essence band */
/* The band lives inside the #featured container; its background bleeds to the viewport edges. */
.rk-wp .rk-home-essence { position: relative; margin: 14px 0 6px; padding: 34px 0 26px; isolation: isolate; }
.rk-wp .rk-home-essence::before {
  content: ""; position: absolute; inset-block: 0; inset-inline: calc(50% - 50vw); z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 220px at 88% 0%, rgba(88, 199, 190, .18), transparent 70%),
    radial-gradient(420px 220px at 6% 100%, rgba(242, 215, 107, .16), transparent 70%),
    linear-gradient(180deg, #e3efe7 0%, #eef5f0 55%, #f5f1e4 100%);
  border-block: 1px solid #d3e3d8;
}
.rk-wp .rk-home-essence .featured-wrap { margin: 0; }
.rk-wp .rk-home-tabs { display: flex; gap: 8px; margin: 2px 0 14px; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.rk-wp .rk-home-tabs::-webkit-scrollbar { display: none; }
.rk-wp .rk-home-tab {
  flex: 0 0 auto; min-height: 42px; padding: 0 16px; border: 1px solid #c9dccf; border-radius: 12px 0;
  background: rgba(255, 255, 255, .8); color: var(--rk-ink, #133c31); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 120ms cubic-bezier(.23, 1, .32, 1);
}
.rk-wp .rk-home-tab.is-active { border-color: #0f4f4a; background: #0f4f4a; color: #fff; }
.rk-wp .rk-home-tab:active { transform: scale(.97); }
.rk-wp .rk-home-tab:focus-visible { outline: 2px solid #0f4f4a; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .rk-wp .rk-home-tab:not(.is-active):hover { border-color: #0f4f4a; background: #fff; } }
@media (max-width: 640px) { .rk-wp .rk-home-essence { padding: 24px 0 18px; } }

/* ------------------------------------------------------------------ dark */
html[data-rk-theme="dark"] .rk-wp .rk-home-essence::before { background: linear-gradient(180deg, #13261e 0%, #162b22 100%); border-color: #2a4237; }
html[data-rk-theme="dark"] .rk-wp .rk-home-tab { background: var(--rk-card, #243b32); border-color: var(--rk-border, #385548); color: #e6f2ec; }
html[data-rk-theme="dark"] .rk-wp .rk-home-tab.is-active { background: #8fd0b4; border-color: #8fd0b4; color: #10241d; }

@media (prefers-reduced-motion: reduce) {
  .rk-wp .rk-cat-card, .rk-wp .rk-cat-card__image, .rk-wp .rk-cat-card__go, .rk-wp .rk-home-tab,
  .rk-wp .rk-home-banner__frame img, body.rk-wp:is(.home, .rk-wp) :is(#featured, #essence) .rk-carousel-rows .featured-carousel .products-grid.product-track { transition: none; }
  .rk-wp .rk-cat-card:active, .rk-wp .rk-home-tab:active { transform: none; }
}


/* 1.2.4: on phones the purchase benefits live in the footer (above the copyright), so the
   home copy is not shown there. Desktop keeps it (the desktop footer has no such row). */
@media (max-width: 760px) { body.rk-wp.home .rk-home-benefits-after-featured { display: none; } }

/* ------------------------------------------------------------------
 * 1.2.5 — home categories on phones.
 * Without carousel: two per row; with an odd count the last card spans the full width
 * (three categories → two on top, the third below across the whole row).
 * With «کاروسل در موبایل»: one row that scrolls sideways, N cards visible plus a peek of the next.
 * ------------------------------------------------------------------ */
@media (max-width: 640px) {
  .rk-wp .rk-home-cats:not(.rk-home-cats--m-carousel) .rk-home-cats__track > .rk-cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .rk-wp .rk-home-cats:not(.rk-home-cats--m-carousel) .rk-home-cats__track > .rk-cat-card:last-child:nth-child(odd) .rk-cat-card__body { inset-inline: 16px 64px; bottom: 16px; }
  .rk-wp .rk-home-cats:not(.rk-home-cats--m-carousel) .rk-home-cats__track > .rk-cat-card:last-child:nth-child(odd) .rk-cat-card__name { font-size: 17px; }

  .rk-wp .rk-home-cats--m-carousel .rk-home-cats__track {
    grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: calc((100% - var(--rk-cats-visible-m, 2) * 10px) / (var(--rk-cats-visible-m, 2) + .3));
    gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    touch-action: pan-x pan-y; padding-bottom: 4px;
  }
  .rk-wp .rk-home-cats--m-carousel .rk-home-cats__track::-webkit-scrollbar { display: none; }
  .rk-wp .rk-home-cats--m-carousel .rk-cat-card { scroll-snap-align: start; }
}


/* rk-pages-120 */
/*
 * Rayehe Kimia 1.2.0 — About / Contact / customer-service pages and footer.
 * One type scale for these pages (mobile: 30 / 21 / 16 / 15 / 14.5 / 12 px; desktop keeps its
 * larger titles), full-width hero image on mobile, larger phone numbers, entrance motion.
 */

/* ---------------------------------------------------------- hero entrance */
@keyframes rk-page-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rk-page-image { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.rk-wp .rk-info-hero .rk-info-hero__copy > * { animation: rk-page-rise 460ms cubic-bezier(.23, 1, .32, 1) backwards; }
.rk-wp .rk-info-hero .rk-info-hero__copy > *:nth-child(2) { animation-delay: 60ms; }
.rk-wp .rk-info-hero .rk-info-hero__copy > *:nth-child(3) { animation-delay: 120ms; }
.rk-wp .rk-info-hero .rk-info-hero__copy > *:nth-child(n+4) { animation-delay: 180ms; }
.rk-wp .rk-info-hero .rk-info-hero__image { animation: rk-page-image 560ms cubic-bezier(.23, 1, .32, 1) 120ms backwards; }
@media (prefers-reduced-motion: reduce) {
  .rk-wp .rk-info-hero .rk-info-hero__copy > *, .rk-wp .rk-info-hero .rk-info-hero__image { animation: none; }
}

/* ------------------------------------------------------------- phones */
.rk-wp bdi.rk-ph { display: inline-block; font: inherit; letter-spacing: inherit; color: inherit; }
.rk-wp bdi.rk-ph + bdi.rk-ph { margin-inline-start: .34em; }
/* Numbers stay legible: medium-bold weight (the 900 cut fills the counters of ۰ ۲ ۳ ۵ at large sizes),
   a little tracking and equal-width digits. */
body.rk-wp .rk-contact .rk-contact-phone-card .rk-contact-call b { font-size: 26px; font-weight: 600; letter-spacing: .04em; line-height: 1.5; font-variant-numeric: tabular-nums; }
body.rk-wp .site-footer .rk-footer-support .rk-footer-phone-pair a { font-size: 20px; font-weight: 550; letter-spacing: .04em; padding-inline: 14px; font-variant-numeric: tabular-nums; }
body.rk-wp #footer .rk-footer-support .rk-footer-phone-pair { width: auto; grid-template-columns: repeat(2, max-content); }

/* ------------------------------------------------------- mobile scale */
@media (max-width: 640px) {
  body.rk-wp :is(.rk-about, .rk-contact) .rk-info-hero__copy h1 { font-size: 30px; line-height: 1.45; font-weight: 850; }
  body.rk-wp :is(.rk-about, .rk-contact) .rk-info-hero .rk-info-hero__copy p,
  body.rk-wp .rk-about .rk-editorial-split .rk-lead { font-size: 15px; line-height: 2; }
  body.rk-wp :is(.rk-about, .rk-contact) .eyebrow { font-size: 12px; }
  body.rk-wp :is(.rk-about, .rk-contact) main .rk-h2,
  body.rk-wp :is(.rk-about, .rk-contact) .rk-h2 { font-size: 21px; line-height: 1.55; font-weight: 850; }
  body.rk-wp :is(.rk-about, .rk-contact) .rk-h3 { font-size: 16px; line-height: 1.7; font-weight: 800; }
  body.rk-wp :is(.rk-about, .rk-contact) :is(.rk-prose p, .rk-contact-intro, .rk-contact-address p, .rk-contact-form-wrap > p, .rk-about-cards p) { font-size: 14.5px; line-height: 2; }

  /* Hero image: full content width, calm landscape crop. */
  body.rk-wp :is(.rk-about, .rk-contact) .rk-info-hero .rk-info-hero__image {
    width: 100%; max-width: none; height: auto; margin: 18px 0 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px 0;
  }
  body.rk-wp :is(.rk-about, .rk-contact) .rk-info-hero .rk-info-hero__image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: inherit; }

  body.rk-wp .rk-contact .rk-contact-phone-card .rk-contact-call b { font-size: 22px; }
  body.rk-wp .rk-contact .rk-contact-methods { gap: 10px; }

  /* Footer: contact details sit in the «ارتباط با ما» tab. */
  body.rk-wp .site-footer .rk-footer-support { display: none; }
}

/* footer contact tab (mobile accordion) */
.rk-footer-contact-tab { display: grid; gap: 8px; margin: 4px 0 12px; }
.rk-footer-contact-tab__phone {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 14px;
  border: 1px solid rgba(231, 242, 234, .16); border-radius: 14px 0; background: rgba(255, 255, 255, .06);
  color: #fff; text-decoration: none;
}
.rk-footer-contact-tab__phone > span { color: #c4dace; font-size: 12.5px; font-weight: 600; }
.rk-footer-contact-tab__phone > bdi { font-size: 20px; font-weight: 550; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.rk-footer-contact-tab__phone:active { transform: scale(.98); }
.rk-footer-contact-tab__hours, .rk-footer-contact-tab__address {
  display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #d8e8de; font-size: 13.5px; line-height: 1.9;
}
.rk-footer-contact-tab__hours svg, .rk-footer-contact-tab__address svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; color: #f2d76b; }
.rk-footer-contact-tab__hours b { color: #fff; font-weight: 650; letter-spacing: .02em; }
.rk-footer-contact-tab__address span { text-align: start; text-justify: none; word-spacing: normal; }
@media (min-width: 901px) { .rk-footer-contact-tab { display: none; } }

/* ------------------------------------------------------------------
 * 1.2.3 — footer on phones (≤760px; wider screens use the desktop grid):
 * logo + short text (centred, justified) → link groups → trust seal (centred)
 * → purchase benefits → copyright.
 * ------------------------------------------------------------------ */
.rk-footer-benefits { display: none; }
@media (max-width: 760px) {
  body.rk-wp #footer > .rk-footer-shell { display: flex; flex-direction: column; }
  body.rk-wp #footer .rk-footer-identity { display: contents; }
  body.rk-wp #footer .rk-footer-support { order: 0; }
  body.rk-wp #footer .rk-footer-brand { order: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 22px; text-align: center; }
  body.rk-wp #footer .rk-footer-brand .rk-footer-logo-link { display: inline-flex; justify-content: center; }
  body.rk-wp #footer .rk-footer-brand .footer-logo { width: 150px; height: auto; margin: 0 auto; }
  body.rk-wp #footer .rk-footer-brand p { max-width: 34em; margin: 0 auto; text-align: justify; text-align-last: center; line-height: 2; }
  body.rk-wp #footer .rk-footer-navigation { order: 2; }
  body.rk-wp #footer .rk-footer-trust { order: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 22px auto 0; text-align: center; }
  body.rk-wp #footer .rk-footer-trust .rk-footer-enamad-slot { display: flex; justify-content: center; }
  body.rk-wp #footer .rk-footer-benefits {
    order: 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; padding: 18px 0 0; list-style: none;
    border-top: 1px solid var(--rk-footer-divider, rgba(231, 242, 234, .14));
  }
  body.rk-wp #footer .rk-footer-benefits li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(231, 242, 234, .12); border-radius: 14px 0; background: rgba(255, 255, 255, .04); }
  body.rk-wp #footer .rk-footer-benefits__icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px 0; background: rgba(242, 215, 107, .14); color: #f2d76b; }
  body.rk-wp #footer .rk-footer-benefits__icon svg { width: 18px; height: 18px; }
  body.rk-wp #footer .rk-footer-benefits strong { display: block; color: #fff; font-size: 13px; font-weight: 800; line-height: 1.6; }
  body.rk-wp #footer .rk-footer-benefits small { display: block; color: #b6d0c2; font-size: 11.5px; line-height: 1.6; }
  body.rk-wp #footer .footer-bottom { order: 5; }
}

/* 1.2.9: purchase benefits in the desktop footer as well (a row above the copyright), so they
   no longer need their own section on the home page. */
@media (min-width: 761px) {
  body.rk-wp #footer > .rk-footer-shell {
    grid-template-areas:
      "support support support"
      "brand links seal"
      "benefits benefits benefits"
      "copyright copyright copyright";
  }
  body.rk-wp #footer .rk-footer-benefits {
    grid-area: benefits; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
    margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--rk-footer-divider, rgba(231, 242, 234, .14));
  }
  body.rk-wp #footer .rk-footer-benefits li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid rgba(231, 242, 234, .12); border-radius: 14px 0; background: rgba(255, 255, 255, .04); }
  body.rk-wp #footer .rk-footer-benefits__icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px 0; background: rgba(242, 215, 107, .14); color: #f2d76b; }
  body.rk-wp #footer .rk-footer-benefits__icon svg { width: 19px; height: 19px; }
  body.rk-wp #footer .rk-footer-benefits strong { display: block; color: #fff; font-size: 13.5px; font-weight: 800; line-height: 1.6; }
  body.rk-wp #footer .rk-footer-benefits small { display: block; color: #b6d0c2; font-size: 12px; line-height: 1.6; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  body.rk-wp #footer .rk-footer-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

