/* ============================================================================
   Claire Organics — Homepage: hero, values strip, category tiles,
   featured products, signup band, home content
   ========================================================================== */

/* ---- hero image: reserve 12:5 (1920×800) space on desktop to kill the
   load-time CLS jolt (flexslider only sets height after the image loads).
   Mobile keeps natural height so a portrait mobile crop isn't over-cropped. */
@media (min-width: 767px) {
  .home-top-slider .slide-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 5;
    object-fit: cover;
  }
}

/* ---- hero slider dots ---- */
.home-top-slider .flex-control-nav { bottom: 22px; }
.home-top-slider .flex-control-nav li { margin: 0 5px; }
.home-top-slider .flex-control-nav a {
  position: relative;
  width: 9px; height: 9px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(44,52,42,.18);
  box-shadow: none;
  transition: all var(--rd-dur) var(--rd-ease);
}
/* WCAG 2.5.8: keep the dainty 9px dot but give it a 24px transparent hit area */
.home-top-slider .flex-control-nav a::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
}
.home-top-slider .flex-control-nav a.flex-active,
.home-top-slider .flex-control-nav a:hover { background: var(--rd-sage); width: 26px; border-radius: 999px; }

/* ---- hero slide button: theme.css paints it #000 on #fff text at (0,6,0), out of
   reach of every setting. The same selectors here (loaded later) hand it to the
   theme's button colours, like every other .btn ---- */
.home-top-slider .flexslider .slides .slide-item .slide-item-content .slide-btn,
.home-top-slider .flex-viewport .slides .slide-item .slide-item-content .slide-btn {
  color: var(--rd-btn-ink);
  background-color: var(--rd-sage);
}
.home-top-slider .flexslider .slides .slide-item .slide-item-content .slide-btn:hover,
.home-top-slider .flexslider .slides .slide-item .slide-item-content .slide-btn:focus,
.home-top-slider .flex-viewport .slides .slide-item .slide-item-content .slide-btn:hover,
.home-top-slider .flex-viewport .slides .slide-item .slide-item-content .slide-btn:focus {
  color: var(--rd-btn-ink);
  background-color: var(--rd-sage-deep);
}

/* ---- brand values strip ---- */
.rd-values {
  background: var(--rd-surface);
  border-bottom: 1px solid var(--rd-line);
}
.rd-values__inner {
  max-width: var(--rd-page);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.rd-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
  padding: 6px 12px;
}
.rd-value + .rd-value { border-left: 1px solid var(--rd-line); }
.rd-value__icon { color: var(--rd-sage); flex: none; }
/* The uploaded icon shares the SVG's rule so the two boxes can never drift: the
   wrapper span is content-sized, so a percentage width has nothing to resolve
   against and the image would fall back to its intrinsic size. */
.rd-value__icon svg,
.rd-value__icon img { width: 38px; height: 38px; display: block; }
.rd-value__icon img { object-fit: contain; }
.rd-value__label {
  font-family: var(--rd-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--rd-ink);
  line-height: 1.35;
}

/* ---- category tiles (highlight-section) ---- */
.highlight-section { background: var(--rd-bg); }
.highlight-section .highlight-bg-wrapper {
  max-width: var(--rd-page);
  margin: 0 auto;
  padding: var(--rd-section) 24px;
}
.highlight-section .highlight-bg-wrapper .highlight-wrapper { padding: 0; }
.highlight-section .highlight-bg-wrapper .highlight-wrapper .highlight-flex {
  gap: 22px;
  margin: 0;
  align-items: stretch;
}
.highlight-section .highlight-bg-wrapper .highlight-wrapper .highlight-flex .highlight-item {
  margin: 0;
  flex: 1 1 0;
  min-width: 220px;
}
.highlight-section .highlight-bg-wrapper .highlight-wrapper .highlight-flex .highlight-item a {
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 5;
  border-radius: var(--rd-radius-card);
  box-shadow: var(--rd-shadow-sm);
}
/* warm the cold grey product photos toward the brand's sand canvas */
.highlight-section .highlight-bg-wrapper .highlight-wrapper .highlight-flex .highlight-item a .highlight-item-img {
  transition: transform 1.1s var(--rd-ease);
  background-color: var(--rd-sand);   /* fallback bed only; no blend so products stay crisp */
}
/* moderate bottom scrim to seat the label + a whisper of warmth up top —
   not dark (multiply was), not washed (soft-light was) */
.highlight-section .highlight-bg-wrapper .highlight-wrapper .highlight-flex .highlight-item a:before {
  background: linear-gradient(to top,
    rgba(35,43,32,.76) 0%,
    rgba(38,46,34,.34) 17%,
    rgba(120,104,68,.07) 42%,
    rgba(150,120,82,.06) 100%);
  opacity: 1;
  z-index: 1;
  transition: opacity var(--rd-dur) var(--rd-ease);
}
.highlight-section .highlight-bg-wrapper .highlight-wrapper .highlight-flex .highlight-item a:hover .highlight-item-img { transform: scale(1.08); }

/* editorial label + CTA block */
.highlight-item_link .highlight-item__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0 18px 24px;
  text-align: center;
  transition: transform var(--rd-dur) var(--rd-ease);
}
.highlight-item_link:hover .highlight-item__content { transform: translateY(-5px); }
.highlight-item_link .rd-tile-eyebrow {
  display: block;
  font-family: var(--rd-sans);
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, .82);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--rd-dur) var(--rd-ease), transform var(--rd-dur) var(--rd-ease);
}
.highlight-item_link:hover .rd-tile-eyebrow { opacity: 1; transform: none; }
.highlight-section .highlight-bg-wrapper .highlight-wrapper .highlight-flex .highlight-item a h5,
.highlight-section .highlight-bg-wrapper .highlight-wrapper .highlight-flex .highlight-item a .h5 {
  position: static;
  transform: none;
  width: auto;
  top: auto;
  left: auto;
  margin: 0;
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  letter-spacing: .01em;
  /* --rd-s-tile: the section's "Tile text color", set inline when picked */
  color: var(--rd-s-tile, #fff);
  text-shadow: 0 1px 16px rgba(20, 26, 16, .45);
}
.highlight-item_link .rd-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  margin-top: 12px;
  font-family: var(--rd-sans);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rd-s-tile, #fff);
}
.highlight-item_link .rd-tile-cta::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--rd-s-tile-line, rgba(247, 242, 232, .55));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--rd-dur) var(--rd-ease);
}
.highlight-item_link:hover .rd-tile-cta::after { transform: scaleX(1); }
.highlight-item_link .rd-tile-cta svg { transition: transform var(--rd-dur) var(--rd-ease); }
.highlight-item_link:hover .rd-tile-cta svg { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) {
  .highlight-item_link:hover .highlight-item-img,
  .highlight-item_link:hover .highlight-item__content,
  .highlight-item_link:hover .rd-tile-cta svg,
  .highlight-item_link .rd-tile-eyebrow { transform: none !important; }
}

/* section heading injected into highlight-section.liquid */
.highlight-section .rd-section-head { padding-top: 0; }

/* editorial split head for the category tiles (rd-edit-head: title left, note +
   "View all products" link right). Fixes the unconstrained arrow SVG that was
   ballooning to full size. */
.rd-edit-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 60px);
  text-align: left;
  margin: 0 0 clamp(30px, 4vw, 52px);
}
.rd-edit-head__lead { max-width: 42ch; }
.rd-edit-head__lead .rd-eyebrow { margin-bottom: 12px; }
.rd-edit-head__lead .section-header__title { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.rd-edit-head__aside {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  max-width: 32ch; text-align: right;
}
.rd-edit-head__note { margin: 0; font-family: var(--rd-sans); font-size: .98rem; line-height: 1.6; color: var(--rd-ink-soft); }
.rd-edit-head__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rd-sans); font-weight: 700; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rd-sage); white-space: nowrap;
}
.rd-edit-head__link svg { width: 15px; height: 15px; flex: none; transition: transform var(--rd-dur) var(--rd-ease); }
.rd-edit-head__link:hover { color: var(--rd-sage-deep); }
.rd-edit-head__link:hover svg { transform: translateX(4px); }
@media (max-width: 749px) {
  .rd-edit-head { flex-direction: column; align-items: flex-start; }
  .rd-edit-head__aside { align-items: flex-start; text-align: left; }
}

/* ---- featured products ---- */
.featured-product-wrapper {
  max-width: var(--rd-page);
  margin: 0 auto;
  padding: var(--rd-section) 24px;
  background: var(--rd-bg);
}
/* theme.css ships `.template-index .featured-product-wrapper { margin-top: 60px }`
   — one specificity step above the rule above, so it survived and stacked a third
   spacer under "Shop the Collection", on top of both sections' --rd-section
   padding. Matched here so the boundary is padding-only, like every other one. */
.template-index .featured-product-wrapper { margin-top: 0; }

/* "Shop the Collection" and the product grid meet on the same ivory ground with
   no band, rule or colour change between them, so two full --rd-section pads
   (208px at desktop) read as a hole rather than a section break. When the two
   run back to back the PAIR shares one --rd-section of air instead of two; the
   outer edges keep the page rhythm untouched, and a store that reorders them
   simply doesn't match these rules. */
[id^="easystore-section-"]:has(.highlight-section):has(+ [id^="easystore-section-"] .featured-product-wrapper) .highlight-bg-wrapper {
  padding-bottom: calc(var(--rd-section) * .5);
}
[id^="easystore-section-"]:has(.highlight-section) + [id^="easystore-section-"] .featured-product-wrapper {
  padding-top: calc(var(--rd-section) * .5);
}
/* title now uses the shared .rd-section-head pattern (eyebrow + serif + flourish)
   injected in featured-product.liquid — see redesign-tokens.css */
.featured-product-wrapper .rd-section-head { padding-top: 0; }
.featured-product-wrapper .product-list-grid { margin-top: 0; }

/* ============================================================================
   "RM10 off" welcome-gift band — warm clay, editorial, hand-stamped wax seal
   (frontend-design)
   ========================================================================== */
.rd-offer {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 112px) 24px;
  color: var(--rd-s-text, #F8F3E9);
  /* --rd-offer-bg / --rd-offer-img are set inline by the section's Colors and
     Background settings; --rd-s-* by its text colour pickers (rd-color-prop) */
  background-color: var(--rd-offer-bg, var(--rd-clay-deep));
  background-image: var(--rd-offer-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* "Image focus"; the built-in photo is always left, where its plain beige is */
.rd-offer--left { background-position: 0% 50%; }
.rd-offer--right { background-position: 100% 50%; }
/* high-opacity clay overlay — keeps the band warmly brown over the photo.
   This is the untouched band only (shipped colour, shipped 90%), so the
   literal is exact; any change swaps it for the flat layer below. */
.rd-offer::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(130% 95% at 86% -12%, rgba(176, 118, 79, .42), transparent 55%),
    radial-gradient(85% 80% at -6% 112%, rgba(94, 126, 100, .20), transparent 60%),
    rgba(143, 86, 48, .90);
}
/* a picked colour or overlay: exactly that colour, at "Overlay on photo"
   strength (0 = photo only), with no tinted glows */
.rd-offer--flat::before {
  background: var(--rd-offer-bg, #8F5630);
  opacity: var(--rd-offer-overlay, .9);
}
.rd-offer__leaf {
  position: absolute; left: -28px; bottom: -38px; z-index: 1;
  width: clamp(180px, 22vw, 320px);
  color: #F8F3E9; opacity: .09; pointer-events: none;
  transform: scaleX(-1);
}
.rd-offer__leaf svg { width: 100%; height: auto; display: block; }
.rd-offer__inner {
  position: relative; z-index: 1;
  max-width: var(--rd-page); margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.rd-offer__copy { max-width: 34em; }
.rd-offer .rd-eyebrow--cream { color: var(--rd-s-eyebrow, #F1E0CC); }
.rd-offer__title {
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.05; letter-spacing: -.015em;
  color: var(--rd-s-heading, #FBF6EC); margin: 0 0 .4em;
}
.rd-offer__sub {
  font-family: var(--rd-sans);
  font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.7;
  color: var(--rd-s-text, rgba(248, 243, 233, .9)) !important; margin: 0 0 26px; max-width: 30em;
}
/* inline email capture */
.rd-offer .rd-signup-form { display: flex; gap: 10px; max-width: 480px; }
.rd-offer .rd-signup-form input[type="email"] {
  flex: 1 1 auto; min-width: 0; box-sizing: border-box; height: 56px;
  border: 0; border-radius: 999px; padding: 0 24px;
  font-family: var(--rd-sans); font-size: .95rem; color: var(--rd-ink);
  background: rgba(255, 255, 255, .97);
}
.rd-offer .rd-signup-form input[type="email"]::placeholder { color: #8a826f; }
.rd-offer .rd-signup-form input[type="email"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .4); }
.rd-offer .rd-signup-form .btn {
  flex: 0 0 auto; box-sizing: border-box; height: 56px; padding: 0 32px;
  border-radius: 999px; background: var(--rd-bg); color: var(--rd-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.rd-offer .rd-signup-form .btn:hover { background: #fff; color: var(--rd-ink); box-shadow: 0 10px 28px -16px rgba(0, 0, 0, .5); }
/* in flight (snippets/account-auth-form): timber's white ring would vanish on the cream pill */
.rd-offer .rd-signup-form .btn--loading::after { border-color: var(--rd-ink); border-top-color: transparent; }
.rd-offer__fine {
  display: block; margin-top: 16px;
  font-family: var(--rd-sans); font-size: .76rem; letter-spacing: .02em;
  color: var(--rd-s-text, rgba(248, 243, 233, .72));
}
.rd-offer .form-success { color: var(--rd-s-heading, #FBF6EC); font-weight: 600; }

/* hand-stamped wax seal — drawn in currentColor, which follows "Heading color";
   the opacities reproduce the original rgba(248,243,233,…) strokes exactly */
.rd-offer__seal { justify-self: center; width: clamp(180px, 20vw, 248px); color: var(--rd-s-heading, #F8F3E9); }
.rd-offer__seal svg { width: 100%; height: auto; display: block; overflow: visible; }
.rd-seal__ring { transform-origin: 100px 100px; animation: rd-spin 26s linear infinite; }
.rd-seal__o { fill: none; stroke: currentColor; stroke-opacity: .85; stroke-width: 1.4; }
.rd-seal__o--thin { stroke-opacity: .4; }
.rd-seal__txt { font-family: var(--rd-sans); font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; fill: currentColor; fill-opacity: .92; }
.rd-seal__amt { font-family: var(--rd-serif); font-weight: 500; font-size: 42px; fill: var(--rd-s-heading, #FBF6EC); }
.rd-seal__lbl { font-family: var(--rd-sans); font-size: 15px; font-weight: 700; letter-spacing: 6px; fill: currentColor; fill-opacity: .9; }
@keyframes rd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rd-seal__ring { animation: none; } }
@media (max-width: 820px) {
  .rd-offer__inner { grid-template-columns: 1fr; gap: 28px; }
  .rd-offer__seal { display: none; }
}
@media (max-width: 600px) {
  .rd-offer .rd-signup-form { flex-direction: column; align-items: stretch; }
  .rd-offer .rd-signup-form .btn { width: 100%; }
}

/* ============================================================================
   Brand-story band — editorial, deep-forest, asymmetric (frontend-design)
   ========================================================================== */
.rd-story {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 124px) 24px;
  color: var(--rd-s-text, #EDE7D8);
  /* one tone for the band's supporting copy — lede, stats and eyebrow; the
     section's "Text color" (--rd-s-text, set inline) replaces it when picked */
  --rd-story-copy: var(--rd-s-text, rgba(237, 231, 216, .82));
  /* --rd-story-bg is set inline by the section's "Background color" setting */
  background:
    radial-gradient(130% 95% at 86% -12%, rgba(94, 126, 100, .42), transparent 55%),
    radial-gradient(85% 75% at -5% 110%, rgba(176, 118, 79, .18), transparent 60%),
    var(--rd-story-bg, var(--rd-forest));
}
/* a picked background colour shows as exactly that colour: the sage/clay glows
   above are tuned for the dark forest bed and read as a green cast on light ones */
.rd-story--flat { background: var(--rd-story-bg, var(--rd-forest)); }
.rd-story__inner {
  position: relative;
  z-index: 1;
  max-width: var(--rd-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}
.rd-story__text { max-width: 32em; }
.rd-eyebrow--cream { color: #A9C0A6; }            /* sage-cream, AA on forest */
.rd-story .rd-eyebrow--cream { color: var(--rd-s-eyebrow, var(--rd-story-copy)); }   /* story: one tone with the lede */
.rd-story__title {
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.3vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--rd-s-heading, #F3EEE2);
  margin: 0 0 .5em;
}
.rd-story__lede {
  font-family: var(--rd-sans);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.78;
  color: var(--rd-story-copy) !important;
  margin: 0 0 34px;
}
.rd-story__stats { display: flex; flex-wrap: wrap; gap: 22px 38px; list-style: none; margin: 0; padding: 0; }
.rd-story__stats li { position: relative; display: flex; flex-direction: column; gap: 5px; }
.rd-story__stats li + li::before {
  content: ""; position: absolute; left: -19px; top: 3px; bottom: 3px;
  width: 1px; background: var(--rd-s-line, rgba(237, 231, 216, .2));
}
.rd-story__stats b {
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1;
  color: var(--rd-story-copy);
}
.rd-story__stats span {
  font-family: var(--rd-sans);
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rd-story-copy);
}

/* framed film + click-to-load facade */
.rd-story__media { position: relative; }
.rd-story__frame {
  position: relative;
  padding: 10px;                                   /* the cream "mat" */
  border-radius: 18px;
  /* --rd-s-mat / --rd-s-line: 10% / 20% of the section's "Text color", when picked */
  background: var(--rd-s-mat, rgba(237, 231, 216, .10));
  border: 1px solid var(--rd-s-line, rgba(237, 231, 216, .2));
  box-shadow: 0 44px 90px -44px rgba(0, 0, 0, .65);
}
.rd-video__player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  overflow: hidden;
  background-color: #2a3326;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.rd-video__player::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20, 26, 16, .12), rgba(20, 26, 16, .5));
  transition: background var(--rd-dur) var(--rd-ease);
}
.rd-video__player:hover::after { background: linear-gradient(180deg, rgba(20, 26, 16, .04), rgba(20, 26, 16, .38)); }
.rd-video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.rd-video__play {
  position: absolute; z-index: 2;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(247, 242, 232, .95);
  color: var(--rd-forest);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 44px -14px rgba(0, 0, 0, .6);
  transition: transform var(--rd-dur) var(--rd-ease), background var(--rd-dur) var(--rd-ease);
}
.rd-video__play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.rd-video__player:hover .rd-video__play { transform: translate(-50%, -50%) scale(1.09); background: #fff; }
.rd-video__play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(247, 242, 232, .55);
  animation: rd-pulse 2.6s ease-out infinite;
}
@keyframes rd-pulse { 0% { transform: scale(.92); opacity: .7; } 70% { transform: scale(1.28); opacity: 0; } 100% { opacity: 0; } }
.rd-video__tag {
  position: absolute; z-index: 2; left: 16px; bottom: 14px;
  font-family: var(--rd-sans);
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #F3EEE2; text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}
@media (prefers-reduced-motion: reduce) { .rd-video__play::before { animation: none; } }
@media (max-width: 860px) {
  .rd-story__inner { grid-template-columns: 1fr; gap: 30px; }
  .rd-story__media { order: -1; }
}

/* ---- Best Reviews (infinite horizontal marquee, editorial cards) ---- */
/* The Product Star Rating app injects its own "Best Reviews" swiper at
   home/content_bottom, built from the very feed this marquee reads, so with the
   app enabled the page carries the same reviews twice. Hide it while the marquee
   is present; drop the marquee section and the app's block comes back rather than
   the page losing reviews entirely (as does a browser without :has()).
   Hidden, never removed: the app's own script calls
   `document.getElementById("list-review-section").remove()` when the feed comes
   back empty, and that would throw on a node we had already taken out. Its images
   are lazy and inside a display:none subtree, so they never fetch. */
body:has(.rd-reviews) #list-review-section { display: none !important; }

.rd-reviews {
  position: relative;
  overflow: hidden;
  padding: var(--rd-section) 0;
  background:
    radial-gradient(85% 55% at 50% -8%, rgba(94, 126, 100, .10), transparent 62%),
    var(--rd-sand-soft);
}
/* Eyebrow + stars are isolated from the global eyebrow/sale tokens so this band
   recolors on its own — both vars are set inline from the section's settings. */
.rd-reviews .rd-eyebrow { color: var(--rd-reviews-eyebrow, var(--rd-eyebrow-color)); }
.rd-reviews .rd-stars { color: var(--rd-reviews-stars, var(--rd-clay)); }
.rd-reviews__inner { max-width: var(--rd-page); margin: 0 auto; padding: 0 24px; }

/* marquee viewport — full-bleed, soft-faded edges */
.rd-reviews__marquee {
  position: relative;
  overflow: hidden;
  /* Room for the card's hover lift and its shadow INSIDE the clip box.
     overflow:hidden clips at the padding edge, and the fade mask covers the
     padded box too, so both are satisfied by padding rather than by relaxing the
     clipping — per-axis `overflow-x: clip` would still leave the mask cropping
     vertically. The negative margins cancel the padding so the surrounding
     rhythm is unchanged: top 16 + bottom 44 covers the -4px lift and the
     0 18px 50px -28px shadow. */
  padding: 16px 0 44px;
  margin-top: calc(clamp(28px, 4vw, 48px) - 16px);
  margin-bottom: -44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.rd-reviews__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: rd-marquee 55s linear infinite;
}
.rd-reviews__set { display: flex; }
/* pause so shoppers can read */
.rd-reviews__marquee:hover .rd-reviews__track,
.rd-reviews__marquee:focus-within .rd-reviews__track { animation-play-state: paused; }

.rd-review-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex: 0 0 440px;
  width: 440px;
  margin-right: 28px;             /* per-card gap → translateX(-50%) stays seamless */
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-card);
  padding: clamp(26px, 2.6vw, 38px);
  box-shadow: var(--rd-shadow-sm);
  transition: transform var(--rd-dur) var(--rd-ease), box-shadow var(--rd-dur) var(--rd-ease);
}
.rd-review-card:hover { transform: translateY(-4px); box-shadow: var(--rd-shadow); }
/* oversized serif quote watermark */
.rd-review-card__mark {
  position: absolute;
  top: 4px; right: 22px;
  font-family: var(--rd-serif);
  font-size: 6.5rem;
  line-height: 1;
  color: var(--rd-sage-tint);
  pointer-events: none;
  user-select: none;
}
.rd-stars { position: relative; z-index: 1; color: var(--rd-clay); font-size: 1rem; letter-spacing: 3px; line-height: 1; }
.rd-review-card__comment {
  position: relative; z-index: 1;
  margin: 16px 0 0;
  font-family: var(--rd-serif);
  font-size: clamp(1.12rem, 1.45vw, 1.34rem);
  line-height: 1.5;
  color: var(--rd-ink);
}
.rd-review-card__foot {
  margin-top: auto;                 /* pin footer to the card bottom for even rows */
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--rd-line);
}
.rd-review-card__thumb {
  flex: none;
  width: 50px; height: 50px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--rd-sand);
  border: 1px solid var(--rd-line);
}
.rd-review-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-review-card__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rd-review-card__name { font-family: var(--rd-sans); font-weight: 700; font-size: .86rem; letter-spacing: .02em; color: var(--rd-ink); }
.rd-review-card__meta { font-family: var(--rd-sans); font-size: .72rem; color: var(--rd-ink-soft); }

@media (max-width: 600px) {
  .rd-review-card { flex-basis: 86vw; width: 86vw; margin-right: 16px; }
}
/* reduced motion: stop the auto-scroll, let users swipe the row manually */
@media (prefers-reduced-motion: reduce) {
  .rd-reviews__track { animation: none; }
  .rd-reviews__marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---- home content (RTE) ---- */
.home-content-wrapper {
  max-width: var(--rd-measure);
  margin: 0 auto;
  padding: var(--rd-section) 24px;
  text-align: center;
}
.home-content-wrapper .rte { color: var(--rd-ink-soft); font-size: 1.02rem; }

/* ============================================================================
   Testimonials ("Loved by our community") — editorial masonry, ivory
   (frontend-design)
   ========================================================================== */
.rd-testi {
  position: relative;
  overflow: hidden;
  padding: var(--rd-section) 24px;
  background:
    radial-gradient(72% 52% at 50% -8%, rgba(94, 126, 100, .09), transparent 60%),
    var(--rd-bg);
}
.rd-testi__inner { position: relative; z-index: 1; max-width: var(--rd-page); margin: 0 auto; }
.rd-testi__grid { columns: 2; column-gap: 28px; margin-top: clamp(28px, 4vw, 48px); }
.rd-testi__card {
  break-inside: avoid;
  margin: 0 0 28px;
  position: relative;
  overflow: hidden;
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-card);
  padding: clamp(28px, 3vw, 44px);
  box-shadow: var(--rd-shadow-sm);
  transition: transform var(--rd-dur) var(--rd-ease), box-shadow var(--rd-dur) var(--rd-ease);
}
.rd-testi__card:hover { transform: translateY(-4px); box-shadow: var(--rd-shadow); }
/* sage accent bar + oversized serif quote glyph */
.rd-testi__card::after {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--rd-sage); opacity: .5;
}
.rd-testi__card::before {
  content: "\201C";
  position: absolute; top: 4px; right: 26px;
  font-family: var(--rd-serif); font-size: 5.5rem; line-height: 1;
  color: var(--rd-sage-tint); pointer-events: none;
}
.rd-testi__chip {
  display: inline-block; position: relative; z-index: 1;
  font-family: var(--rd-sans); font-weight: 700; font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rd-clay-deep);
  background: rgba(143, 86, 48, .09);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 16px;
}
.rd-testi__q { margin: 0 0 12px; font-family: var(--rd-sans); font-weight: 700; font-size: .98rem; color: var(--rd-ink); }
.rd-testi__quote { position: relative; z-index: 1; margin: 0; padding: 0; border: 0; quotes: none; font-style: normal; }
.rd-testi__quote p {
  margin: 0 0 .85em;
  /* CJK faces are appended as fallbacks rather than switched in by a modifier
     class: the serif has no CJK glyphs, so those characters fall through here on
     their own and a mixed-language testimonial needs no per-card flag. */
  font-family: var(--rd-serif), "PingFang TC", "Noto Sans TC", "Microsoft JhengHei";
  /* Body copy, not a pull-quote: these testimonials run to several paragraphs in
     a ~600px column, so they sit just UNDER the card's own .rd-testi__q lead
     (.98rem) rather than over it. The review marquee's quote is larger on purpose
     — that one is a single short sentence carrying a whole card. */
  font-size: clamp(.95rem, 1vw, 1.04rem); line-height: 1.62; color: var(--rd-ink);
}
.rd-testi__quote p:last-child { margin-bottom: 0; }
.rd-testi__quote strong { font-weight: 600; color: var(--rd-ink); }
/* author row with serif initial avatar */
.rd-testi__by { display: flex; align-items: center; gap: 13px; margin-top: 26px; }
.rd-testi__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--rd-sage-tint); color: var(--rd-sage-deep);
  font-family: var(--rd-serif); font-weight: 600; font-size: 1.1rem; line-height: 1;
}
.rd-testi__who { display: flex; flex-direction: column; gap: 2px; }
.rd-testi__name { font-family: var(--rd-sans); font-weight: 700; font-size: .86rem; letter-spacing: .02em; color: var(--rd-ink); }
.rd-testi__role { font-family: var(--rd-sans); font-size: .72rem; color: var(--rd-ink-soft); }

/* ---- responsive ---- */
@media (max-width: 990px) {
  .rd-values__inner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rd-value:nth-child(3) { border-left: 0; }
}
@media (max-width: 749px) {
  .rd-announce__track { gap: 8px; }
  .rd-announce__item { font-size: .68rem; }
  .rd-values__inner { padding: 18px 16px; }
  .rd-value { flex-direction: column; text-align: center; gap: 6px; }
  .rd-value + .rd-value { border-left: 0; }
  .highlight-section .highlight-bg-wrapper .highlight-wrapper .highlight-flex { gap: 16px; }
  /* full-width stacked tiles on mobile (3 tiles avoid an unbalanced 2+1 row);
     keep the 4:5 crop from desktop so products aren't re-cropped */
  .highlight-section .highlight-bg-wrapper .highlight-wrapper .highlight-flex .highlight-item { min-width: 100%; flex-basis: 100%; }
  .rd-testi__grid { columns: 1; }
}

/* ---- hero break-out ----
   The hero slider is a homepage section now, so it renders inside
   main.wrapper.main-content (max-width + 30px padding) like every other section.
   It is designed full-bleed, so pull it back out to the viewport edges. The
   negative margins cancel the wrapper's padding and max-width centring; the
   container clips instead of scrolling so 100vw can't create a horizontal bar. */
.template-index main.wrapper.main-content { overflow-x: clip; }
.template-index .home-top-slider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
