/* ============================================================
   ORIGIN THEME — origin.css
   Loaded LAST. Two jobs:
   1. Color engine — there are no color schemes. Every scope
      (page, header, footer, popup, each section) sets a few base
      colors; everything else is derived here from those bases.
   2. Origin's own visual language (capsule header, pill buttons,
      tile product cards, chip category labels, rounded footer).
   ============================================================ */

/* ------------------------------------------------------------
   1. COLOR ENGINE
   ------------------------------------------------------------ */

/* Scopes that own their colors */
.site-header-wrap {
  --bg: var(--header-bg);
  --text: var(--header-text);
  --accent: var(--header-accent);
  --border: var(--header-border);
  --surface: var(--dropdown-bg);
}
.header__nav-submenu,
.lang-switcher__dropdown:not(.mobile-lang-modal),
.search-drawer {
  --bg: var(--dropdown-bg);
  --surface: var(--dropdown-bg);
  --text: var(--dropdown-text);
  --border: color-mix(in srgb, var(--dropdown-text) 12%, var(--dropdown-bg));
}
.site-footer {
  --bg: var(--footer-bg);
  --text: var(--footer-text);
  --accent: var(--footer-accent);
  --border: var(--footer-border);
}
#origin-popup .popup__panel {
  --bg: var(--popup-bg);
  --text: var(--popup-text);
  --btn-bg: var(--popup-btn-bg);
  --btn-text: var(--popup-btn-text);
  --accent: var(--popup-btn-bg);
  --border: color-mix(in srgb, var(--popup-text) 12%, var(--popup-bg));
}

/* Section scope: base colors come from components/section-colors.jinja */
.o-sec {
  background-color: var(--bg);
  color: var(--text);
}
:where(.o-sec) {
  --border: color-mix(in srgb, var(--text) 14%, var(--bg));
}

/* Derived tokens — recomputed inside every scope from its own bases */
:root,
:where(.o-sec, .site-header-wrap, .site-footer, .search-drawer, .header__nav-submenu, .popup__panel, .mobile-drawer) {
  --text-muted:      color-mix(in srgb, var(--text) 62%, var(--bg));
  --surface-2:       color-mix(in srgb, var(--text) 7%, var(--bg));
  --bg-subtle:       color-mix(in srgb, var(--text) 4%, var(--bg));
  --accent-hover:    color-mix(in srgb, var(--accent) 80%, var(--text));
  --btn-border:      var(--btn-bg);
  --btn-hover-bg:    color-mix(in srgb, var(--btn-bg) 82%, var(--btn-text));
  --btn-hover-text:  var(--btn-text);
  --btn2-bg:         transparent;
  --btn2-text:       var(--text);
  --btn2-border:     color-mix(in srgb, var(--text) 35%, transparent);
  --btn2-hover-bg:   var(--text);
  --btn2-hover-text: var(--bg);
  --input-bg:        var(--surface);
  --input-border:    var(--border);
  --input-hover-bg:  var(--surface);
  --variant-bg:      var(--bg);
  --variant-text:    var(--text);
  --variant-border:  var(--border);
  --dots-color:      var(--text);
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--text) 8%, transparent);
  --shadow-md: 0 8px 24px color-mix(in srgb, var(--text) 9%, transparent);
  --shadow-lg: 0 18px 50px color-mix(in srgb, var(--text) 14%, transparent);
}
.mobile-drawer {
  --btn-bg: var(--mobile-menu-accent);
  --btn-text: var(--mobile-menu-bg);
}

/* Global buttons (were scheme-1 overrides in Lune) */
.btn-primary, .add-btn, .btn--primary {
  background-color: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  border-color: var(--btn-bg) !important;
}
.btn-primary:hover, .add-btn:hover, .btn--primary:hover {
  background-color: var(--btn-hover-bg) !important;
  color: var(--btn-hover-text) !important;
  border-color: var(--btn-hover-bg) !important;
}

/* Sale / discount */
.badge--sale { background-color: var(--sale, var(--accent)); color: #fff; }
.product-card__price .price-current:not(:only-child),
.price-current.is-sale { color: var(--sale, var(--accent)); }

/* ------------------------------------------------------------
   2. ORIGIN VISUAL LANGUAGE
   ------------------------------------------------------------ */
:root {
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --header-height: 68px;
  --container-max: 1360px;
}

body { letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--heading-weight, 600); letter-spacing: -0.02em; }
::selection { background: var(--accent); color: #fff; }

/* ---- Buttons: pill, sentence case ---- */
.btn {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--btn-radius, 40px);
  border-width: 1.5px;
}
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--btn-bg) 28%, transparent); }
.btn-outline { border-width: 1.5px; }
.btn-primary::after {
  content: "→";
  display: inline-block;
  font-weight: 400;
  transition: transform var(--transition-fast);
}
[dir="rtl"] .btn-primary::after { content: "←"; }
.btn-primary:hover::after { transform: translateX(3px); }
[dir="rtl"] .btn-primary:hover::after { transform: translateX(-3px); }
/* No arrows on functional/compact buttons */
[dir] .btn--full.btn-primary::after,
[dir] .btn--sm.btn-primary::after,
[dir] form .btn-primary::after,
[dir] button.btn-primary::after { content: none; }

/* ---- Section headers: start-aligned with accent bar ---- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section__header {
  text-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.section__heading {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: var(--heading-weight, 600);
  letter-spacing: -0.03em;
}
.section__header .section__heading::before,
.rich-text-banner__heading::before,
.image-with-text__heading::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin-bottom: 14px;
}
.section__subheading { margin-inline: 0; text-align: start; }
.rich-text-banner--center .rich-text-banner__heading::before { margin-inline: auto; }
.rich-text-banner--right .rich-text-banner__heading::before { margin-inline-start: auto; }

/* ---- Announcement bar ---- */
.announcement-bar { font-size: 0.82rem; letter-spacing: 0.01em; font-weight: 500; border-bottom: 0; }

/* ---- Header (two rows) ----
   Row 1: logo, search field, actions   (layout "bar")
          search field, logo, actions   (layout "centered")
   Row 2: the menu, centered; it wraps onto more lines instead of
          ever running under the logo or the search field. */
.site-header-wrap { background-color: var(--header-bg); }
.site-header {
  border-bottom: 1px solid var(--header-border);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}
.site-header-wrap.scrolled .site-header { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07); border-bottom-color: transparent; }

/* Icons: one size everywhere (22px glyph in a 40px target) */
:root { --icon-stroke-width: 1.5px; }
.site-header .header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.site-header .header-icon svg,
.site-header .header-icon .icon-bag { width: 22px !important; height: 22px !important; }
.site-header .header-icon:hover { color: var(--header-text); background: color-mix(in srgb, var(--header-text) 7%, transparent); }
/* Compact count badge: 16px total, sits on the icon's top corner without hiding it */
.cart-badge, .wishlist-badge {
  top: 3px !important;
  inset-inline-end: 2px !important;
  min-width: 16px;
  height: 16px;
  padding: 0 4px !important;
  border-radius: 20px !important;
  border: 1.5px solid var(--header-bg);
  font-size: 0.58rem !important;
  line-height: 1 !important;
  box-sizing: border-box;
}
.cart-badge, .wishlist-badge { background: var(--header-accent) !important; color: #fff !important; }

/* Search field on desktop, search icon on mobile */
.header__search { display: none; }
.header__search-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Menu links */
.site-header .header__nav-link {
  position: relative;
  text-transform: none;
  font-weight: 500;
  font-size: 0.92rem;
  opacity: 1;
  padding: 12px 2px;
  white-space: nowrap;
  color: var(--header-text);
}
.site-header .header__nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--header-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
[dir="rtl"] .site-header .header__nav-link::after { transform-origin: right; }
.site-header .header__nav-link:hover::after,
.site-header .header__nav-dropdown:hover > .header__nav-link::after { transform: scaleX(1); }
.site-header .header__nav-link:hover { color: var(--header-text); }
.header__logo-text { letter-spacing: -0.02em; font-weight: 700; }
.header__logo { min-width: 0; max-width: 100%; }
.header__logo img { max-width: 100%; }
.header__nav-submenu,
.header__nav-submenu--nested { border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); }
.header__nav-submenu-link { border-radius: 10px; }
.header__nav-submenu-link:hover { background: color-mix(in srgb, var(--dropdown-text) 7%, transparent); }

@media (min-width: 1024px) {
  .header-icon--mobile-only { display: none !important; }
  .site-header .header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 460px) minmax(0, 1fr);
    grid-template-rows: 78px auto;
    grid-template-areas: "logo search actions" "nav nav nav";
    align-items: center;
    column-gap: var(--space-lg);
    row-gap: 0;
    min-height: 0;
    padding-block: 0;
  }
  .site-header .header__logo { grid-area: logo; justify-self: start; }
  .site-header .header__icons { grid-area: actions; justify-self: end; gap: 2px; }
  .header__search {
    grid-area: search;
    justify-self: stretch;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding-inline: 16px 18px;
    border-radius: 40px;
    background: var(--header-page-bg);
    border: 1px solid var(--header-border);
    color: color-mix(in srgb, var(--header-text) 58%, transparent);
    font: inherit;
    font-size: 0.9rem;
    text-align: start;
    cursor: text;
    transition: border-color var(--transition-fast), color var(--transition-fast);
  }
  .header__search:hover { border-color: color-mix(in srgb, var(--header-text) 35%, transparent); color: var(--header-text); }
  .header__search svg { width: 20px; height: 20px; flex-shrink: 0; }
  .site-header .header__nav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: clamp(18px, 2.2vw, 34px);
    row-gap: 0;
    border-top: 1px solid var(--header-border);
  }

  /* Layout "centered": logo in the middle, search at the start */
  .site-header-wrap[data-layout="centered"] .header__inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "search logo actions" "nav nav nav";
  }
  .site-header-wrap[data-layout="centered"] .header__logo { justify-self: center; }
  .site-header-wrap[data-layout="centered"] .header__logo-text { font-size: 1.8rem; }
  .site-header-wrap[data-layout="centered"] .header__search { justify-self: start; width: min(100%, 300px); }
}

@media (max-width: 1023px) {
  .site-header .header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "start logo actions";
    align-items: center;
    min-height: 62px;
    gap: 8px;
  }
  .site-header .hamburger { grid-area: start; justify-self: start; width: 40px; height: 40px; padding: 11px 10px; gap: 6px; }
  .site-header .hamburger__bar { height: 1.5px; }
  .site-header .header__logo { grid-area: logo; position: static; transform: none; justify-self: center; }
  .site-header .header__logo img { max-height: var(--logo-height, 40px); max-width: 46vw; }
  .site-header .header__logo-text { font-size: 1.35rem; }
  .site-header .header__icons { grid-area: actions; justify-self: end; gap: 0; }
}

/* Transparent header (homepage, toggled by JS) */
body.header-transparent .site-header-wrap:not(.scrolled) { background-color: transparent; }
body.header-transparent .site-header-wrap:not(.scrolled) .site-header { background-color: transparent; border-color: transparent; box-shadow: none; }
body.header-transparent .site-header-wrap.scrolled .site-header { background-color: var(--header-bg); }
body.header-transparent .site-header-wrap:not(.scrolled) .header__nav-link { color: var(--transparent-header-text); }
body.header-transparent .site-header-wrap:not(.scrolled) .header__nav-link::after { background: var(--transparent-header-text); }
body.header-transparent .site-header-wrap:not(.scrolled) .header__nav { border-top-color: color-mix(in srgb, var(--transparent-header-text) 22%, transparent); }
body.header-transparent .site-header-wrap:not(.scrolled) .header__search {
  background: transparent;
  border-color: color-mix(in srgb, var(--transparent-header-text) 45%, transparent);
  color: var(--transparent-header-text);
}
body.header-transparent .site-header-wrap:not(.scrolled) .header-icon:hover { background: transparent; opacity: 0.75; }
body.header-transparent .site-header-wrap:not(.scrolled) .cart-badge,
body.header-transparent .site-header-wrap:not(.scrolled) .wishlist-badge { border-color: transparent; }

/* ---- Hero ---- */
.hero-banner__overlay {
  background-color: var(--overlay-color, #000) !important;
  opacity: var(--overlay-opacity, 0.5);
}
.hero-banner__heading {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: var(--heading-weight, 600);
}
.hero-banner__subheading { color: var(--text-on-overlay); opacity: 0.88; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero-banner .btn-outline {
  --btn2-text: var(--text-on-overlay, #fff);
  --btn2-border: color-mix(in srgb, var(--text-on-overlay, #fff) 55%, transparent);
  --btn2-hover-bg: var(--text-on-overlay, #fff);
  --btn2-hover-text: #151515;
  backdrop-filter: blur(6px);
}

/* ---- Product cards: soft tiles ----
   Square by default; the section's "Round corners" toggle adds
   .product-card--rounded (listing pages pass it on). */
.product-card {
  background: var(--surface);
  border-radius: 0;
  padding: 8px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.product-card::after { display: none; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__media { border-radius: 0; background-color: var(--bg); }
.product-card--rounded { border-radius: var(--radius-lg); }
.product-card--rounded .product-card__media { border-radius: calc(var(--radius-lg) - 6px); }
.product-card__info { padding: 12px 6px 4px; gap: 6px; flex: 1; }
.product-card__name { font-size: 0.95rem; font-weight: 500; }
.price-current { font-size: 1rem; font-weight: 700; }
.badge { border-radius: 40px; padding: 4px 10px; letter-spacing: 0.02em; text-transform: none; font-size: 0.72rem; }
.product-card__wishlist { background: var(--bg); box-shadow: var(--shadow-sm); }

/* Price + cart icon on one row, pinned to the bottom of the card */
.product-card__buy {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-card__buy .product-card__price { min-width: 0; flex-wrap: wrap; }
.product-card__cart {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.product-card__cart svg { width: 20px; height: 20px; }
.product-card__cart:hover { background: var(--btn-hover-bg); transform: scale(1.06); }
.product-card__cart.is-disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.product-card__cart[data-morph-loading] svg,
.product-card__cart[data-morph-success] svg { opacity: 0; }
.product-card__cart[data-morph-loading]::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid color-mix(in srgb, var(--btn-text) 30%, transparent);
  border-top-color: var(--btn-text);
  border-radius: 50%;
  animation: cta-morph-spin 0.6s linear infinite;
}
.product-card__cart[data-morph-success]::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 6px;
  margin: -4px 0 0 -5px;
  border-inline-start: 2px solid var(--btn-text);
  border-block-end: 2px solid var(--btn-text);
  transform: rotate(-45deg);
}
@media (max-width: 767px) {
  .product-card__cart { width: 36px; height: 36px; }
  .product-card__cart svg { width: 18px; height: 18px; }
}

/* ---- Category cards: image tile + chip label ---- */
.category-card { border-radius: var(--radius-lg); background-color: var(--surface); }
.category-card__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.18) 0%, transparent 45%);
}
.category-card__label {
  left: auto;
  right: auto;
  inset-inline-start: 14px;
  inset-inline-end: auto;
  bottom: 14px;
  max-width: calc(100% - 28px);
  background: var(--surface);
  color: var(--text);
  text-shadow: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 40px;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.category-card:hover .category-card__label { background: var(--accent); color: #fff; }

/* ---- Testimonials ---- */
.testimonial-card { border: 0; border-radius: var(--radius-lg); background: var(--surface); }

/* ---- FAQ: rounded accordion rows ---- */
.faq-item {
  border: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding-inline: var(--space-lg);
  margin-bottom: 10px;
}
.faq-item__question { font-weight: 600; }

/* ---- Benefits strip ----
   Mobile: 2 equal centered cards per row. Desktop: one row, icon beside text. */
.benefits-strip { padding-block: clamp(36px, 5vw, 64px); }
.benefits-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.benefits-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  height: 100%;
  padding: 20px 14px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.benefits-strip__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg, color-mix(in srgb, var(--accent) 14%, var(--surface)));
  color: var(--icon-fg, var(--accent));
}
.benefits-strip__icon svg, .benefits-strip__icon img { width: 24px; height: 24px; }
.benefits-strip__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.benefits-strip__title { font-size: 0.95rem; font-weight: 600; line-height: 1.35; margin: 0; }
.benefits-strip__text { font-size: 0.82rem; line-height: 1.55; margin: 0; color: var(--text-muted); }
@media (min-width: 1024px) {
  .benefits-strip__grid { grid-template-columns: repeat(var(--benefit-cols, 4), minmax(0, 1fr)); gap: 20px; }
  .benefits-strip__item { flex-direction: row; align-items: center; text-align: start; gap: 16px; padding: 22px 24px; }
}

/* ---- Rich text banner ----
   Its background color also tints the optional background image
   (strength = "Background Color Over Image"), so text stays readable. */
.rich-text-banner { background-color: var(--bg); position: relative; isolation: isolate; }
.rich-text-banner--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  opacity: var(--rtb-overlay, 0);
}
.rich-text-banner__heading { color: var(--text); }
.rich-text-banner__body, .rich-text-banner__body p { color: color-mix(in srgb, var(--text) 88%, transparent); }
.rich-text-banner__body--plain { white-space: pre-line; }

/* ---- Image with text ---- */
.image-with-text__img { border-radius: var(--radius-xl); }

/* ---- Carousel controls ---- */
.carousel-btn { border-radius: 50%; background: var(--surface); color: var(--text); border: 0; box-shadow: var(--shadow-sm); }
.carousel-btn:hover { background: var(--text); color: var(--bg); }

/* ---- Forms ---- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="number"], input[type="password"], select, textarea {
  border-radius: 12px;
}

/* ---- Footer: columns + bottom bar (square edges) ---- */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
  margin-top: clamp(40px, 6vw, 80px);
}
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
.site-footer .footer__contact-title, .site-footer .footer__nav-title,
.site-footer .footer__logo-text {
  color: var(--footer-heading);
}
.site-footer, .site-footer p, .site-footer a { color: var(--footer-text); }
.site-footer .footer__description,
.site-footer .footer__nav-link,
.site-footer .footer__contact-link { color: color-mix(in srgb, var(--footer-text) 72%, var(--footer-bg)); }
.site-footer a:hover, .site-footer .footer__nav-link:hover, .footer-section a:hover { color: var(--footer-accent); opacity: 1; }

/* Columns */
.site-footer .footer__main,
.site-footer .footer__main--compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-block: clamp(32px, 5vw, 56px);
  text-align: start;
}
@media (min-width: 640px) {
  .site-footer .footer__main,
  .site-footer .footer__main--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
}
@media (min-width: 1024px) {
  .site-footer .footer__main,
  .site-footer .footer__main--compact { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .site-footer .footer__main > .footer__contact-social { order: 9; }
}
.site-footer .footer__brand,
.site-footer .footer__brand > a { text-align: start; align-items: flex-start; border-bottom: 0; padding-bottom: 0; }
.site-footer .footer__brand .footer__logo { margin-inline: 0; }
.site-footer .footer__description { text-align: start; max-width: 340px; }
.site-footer .footer__logo-text { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.site-footer .footer__nav-title,
.site-footer .footer__contact-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: var(--space-md);
}
.site-footer .footer__contact-social,
.site-footer .footer__contact-social .footer__contact-link,
.site-footer .footer__contact-social .footer__social { text-align: start; justify-content: flex-start; }
.footer__social-link {
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--footer-border);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.footer__social-link:hover { background: var(--footer-accent); border-color: var(--footer-accent); color: #fff !important; }
/* Mobile: link columns are soft rounded cards with a round +/x button */
@media (max-width: 767px) {
  .site-footer .footer__nav-col {
    border: 0;
    border-radius: var(--radius-md, 12px);
    background: color-mix(in srgb, var(--footer-heading, currentColor) 5%, transparent);
    padding-inline: 16px;
    transition: background-color 0.25s ease;
  }
  /* Stacked link cards sit 10px apart (footer grid gap is 24px) */
  .site-footer .footer__nav-col + .footer__nav-col { margin-top: -14px; }
  .site-footer .footer__nav-col.is-open { background: color-mix(in srgb, var(--footer-heading, currentColor) 8%, transparent); }
  .site-footer .footer__nav-toggle {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--footer-heading);
    padding-block: 14px;
    gap: 12px;
  }
  .site-footer .footer__nav-chevron { display: none; }
  .site-footer .footer__nav-toggle::after {
    content: "";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--footer-bg, #fff);
    background-image:
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor);
    background-size: 11px 1.5px, 1.5px 11px;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, background-color 0.25s ease, color 0.25s ease;
  }
  .site-footer .footer__nav-col.is-open .footer__nav-toggle::after {
    transform: rotate(45deg);
    background-color: var(--footer-accent);
    color: #fff;
  }
  .site-footer .footer__nav-list li { padding-top: 0; }
  .site-footer .footer__nav-list li + li { border-top: 1px solid color-mix(in srgb, var(--footer-heading, currentColor) 8%, transparent); }
  .site-footer .footer__nav-link { display: block; padding-block: 11px; font-size: 0.92rem; }
  .site-footer .footer__nav-col.is-open .footer__nav-list { padding-bottom: 8px; }
}

/* Legal + bottom bar */
.footer__legal { border-top: 1px solid var(--footer-border); }
.footer__bottom {
  background: var(--footer-bottom-bg);
  border-top: 1px solid var(--footer-border);
  padding-block: var(--space-md);
}
.footer__bottom .footer__bottom-inner { justify-content: space-between; row-gap: var(--space-sm); }
.footer__bottom, .footer__bottom p, .footer__copyright, .footer__bottom a { color: var(--footer-bottom-text); }

/* ---- Popup ---- */
.popup__panel { border-radius: var(--radius-xl); border: 0; }
.popup__btn {
  border-radius: var(--btn-radius, 40px);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}

/* ---- Product page variant pills (platform DOM — see golden rules §E) ---- */
#product-variants-options ul li { border-radius: 40px; }
#product-variants-options ul li.active {
  background: var(--variant-selected-bg);
  color: var(--variant-selected-text);
  border-color: var(--variant-selected-bg);
}

/* ---- Hero: "rounded" card or "full" screen (section setting) ----
   Rounded = the image is clipped into an inset card; the section
   background (its own color setting) shows around it. */
.hero-banner--rounded {
  --hero-gap-x: var(--container-pad);
  --hero-gap-y: 14px;
  --hero-radius: clamp(18px, 3vw, 34px);
}
@media (max-width: 767px) {
  .hero-banner--rounded { --hero-gap-x: 10px; --hero-gap-y: 10px; --hero-radius: 20px; }
}
.hero-banner--rounded .hero-banner__media,
.hero-banner--rounded .hero-banner__overlay {
  clip-path: inset(var(--hero-gap-y) var(--hero-gap-x) 0 var(--hero-gap-x) round var(--hero-radius));
}
.hero-banner--rounded .hero-banner__content { padding-inline: calc(var(--hero-gap-x) + clamp(20px, 4vw, 56px)); }
body:not(.header-transparent) .hero-banner { min-height: max(420px, calc(var(--hero-h-d, 100) * 1svh - 132px)); }
@media (max-width: 768px) {
  body:not(.header-transparent) .hero-banner { min-height: max(380px, calc(var(--hero-h-m, 90) * 1svh - 120px)); }
}

/* ---- Hero: mobile type scale ---- */
@media (max-width: 767px) {
  .hero-banner__heading { font-size: clamp(1.65rem, 7.4vw, 2.2rem); line-height: 1.12; margin-bottom: 10px; }
  .hero-banner__subheading { font-size: 0.92rem; line-height: 1.55; margin-bottom: var(--space-lg); }
  .hero-banner__actions { gap: 10px; }
  .hero-banner .btn--lg { padding: 11px 20px; font-size: 0.88rem; }
  .hero-banner--v-bottom { padding-bottom: var(--space-xl); }
}

/* ---- Carousel arrows: below the track, end-aligned (never overlap cards) ---- */
.carousel-controls {
  position: static;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin-top: var(--space-lg);
}
.carousel-btn { width: 46px; height: 46px; }

/* ---- Testimonials: upright text (italic Arabic reads poorly) ---- */
.testimonial-card__text { font-style: normal; color: color-mix(in srgb, var(--text) 82%, var(--bg)); }

/* ---- FAQ: heading column + questions column on desktop ---- */
@media (min-width: 1024px) {
  .faq-section .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: var(--space-2xl);
    align-items: start;
  }
  .faq-section .faq-list { max-width: none !important; margin: 0 !important; }
  .faq-section .section__header { position: sticky; top: 110px; }
}

/* ---- Footer refinements ---- */
.site-footer .footer-section a { opacity: 1; }

/* ---- Before & after: heading centered over the slider, labels as chips ---- */
.before-after-section .section__header { align-items: center; text-align: center; }
.before-after-section .section__header .section__heading::before { margin-inline: auto; }
.before-after__slider { border-radius: var(--radius-lg); }
.before-after__tag {
  top: auto;
  bottom: 16px;
  padding: 7px 14px;
  border-radius: 40px;
  background: color-mix(in srgb, #ffffff 88%, transparent);
  color: #151515;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.before-after__tag--before { left: 16px; right: auto; }
.before-after__tag--after { right: 16px; left: auto; }
.before-after__handle::after {
  width: 42px;
  height: 42px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
@media (max-width: 767px) {
  .before-after__tag { bottom: 12px; padding: 6px 11px; font-size: 0.75rem; }
  .before-after__tag--before { left: 12px; }
  .before-after__tag--after { right: 12px; }
}

/* Card price never splits number and currency onto two lines */
.product-card__buy .price-current,
.product-card__buy .price-original { white-space: nowrap; }
@media (max-width: 767px) {
  .product-card__buy .price-current { font-size: 0.88rem; }
  .product-card__buy .price-original { font-size: 0.72rem; }
  .product-card__buy { gap: 6px; }
}

/* ---- Footer payment + shipping icons ----
   Works for any number of icons: every logo sits in an identical tile
   (logo scaled to fit), payment and shipping share one wrapping row. */
.footer__methods {
  --tile-w: 52px;
  --tile-h: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  /* width of exactly N tiles, so rows wrap evenly (set per store in footer.jinja) */
  width: min(100%, calc(var(--cols-d, 12) * var(--tile-w) + (var(--cols-d, 12) - 1) * 8px));
}
/* Groups dissolve so all tiles flow as one set (no lonely last row per group) */
.footer__methods .payment-icons,
.footer__methods .shipping-icons { display: contents; }
.method-tile {
  width: var(--tile-w);
  height: var(--tile-h);
  flex: 0 0 var(--tile-w);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--footer-bottom-text, #000) 12%, transparent);
  border-radius: 6px;
  box-sizing: border-box;
}
.footer__methods .payment-icon,
.footer__methods .shipping-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: none;
  display: block;
}
@media (max-width: 767px) {
  .footer__methods {
    --tile-w: 46px; --tile-h: 30px; gap: 6px; margin-inline: auto;
    width: min(100%, calc(var(--cols-m, 6) * var(--tile-w) + (var(--cols-m, 6) - 1) * 6px));
  }
}

/* ---- Footer on mobile: one centered column (desktop stays start-aligned) ---- */
@media (max-width: 767px) {
  .site-footer .footer__main,
  .site-footer .footer__main--compact { grid-template-columns: 1fr; text-align: center; }
  .site-footer .footer__brand,
  .site-footer .footer__brand > a { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .site-footer .footer__brand .footer__logo { margin-inline: auto; }
  .site-footer .footer__description { text-align: center; margin-inline: auto; }
  .site-footer .footer__contact-social,
  .site-footer .footer__contact-social .footer__contact { text-align: center; align-items: center; }
  .site-footer .footer__contact-social .footer__contact-link,
  .site-footer .footer__contact-social .footer__social { justify-content: center; }
  /* Link cards: title centered, +/x stays at the edge */
  .site-footer .footer__nav-toggle { display: grid; grid-template-columns: 28px 1fr 28px; text-align: center; }
  .site-footer .footer__nav-toggle > span { grid-column: 2; }
  .site-footer .footer__nav-toggle::after { grid-column: 3; }
  .site-footer .footer__nav-list { align-items: stretch; text-align: center; }
  .site-footer .footer__legal .footer__bottom-inner,
  .site-footer .footer__bottom .footer__bottom-inner { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
}

/* ---- Categories: "Rounded Image Corners" + "Title Position" ---- */
.categories-section--square .category-card,
.categories-section--square .category-card__image,
.categories-section--square .category-card__no-image { border-radius: 0; }

/* Title under the image: image tile on top, plain centered title below */
.categories-section--title-below .category-card {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.categories-section--title-below .category-card__image,
.categories-section--title-below .category-card__no-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  overflow: hidden;
  transition: transform var(--transition-slow), opacity var(--transition-fast);
}
.categories-section--title-below.categories-section--square .category-card__image,
.categories-section--title-below.categories-section--square .category-card__no-image { border-radius: 0; }
.categories-section--title-below .category-card:hover .category-card__image { transform: none; opacity: 0.88; }
.categories-section--title-below .category-card__overlay { display: none; }
.categories-section--title-below .category-card__label,
.categories-section--title-below .category-card:hover .category-card__label {
  position: static;
  max-width: none;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}
.categories-section--title-below .category-card:hover .category-card__label { color: var(--accent); }

/* ---- Quantity selector: one pill, round +/- buttons, plain number ----
   (product page, quick view, cart page) */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  overflow: visible;
  width: fit-content;
}
.quantity-selector .qty-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.quantity-selector .qty-btn:hover { background: var(--surface); color: var(--text); }
.quantity-selector .qty-btn:active { transform: scale(0.94); }
.quantity-selector .qty-input,
.quantity-selector .qty-input:focus {
  width: 40px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
.quantity-selector:focus-within { border-color: color-mix(in srgb, var(--text) 35%, transparent); }
.cart-item__qty .quantity-selector { width: fit-content; max-width: none; }
.cart-item__qty .quantity-selector .qty-input { width: 36px; }

/* ---- Product page: trust badges ----
   Three equal tiles, icon above text (the product column is too narrow for side-by-side). */
.pdp-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  margin-block: var(--space-lg);
}
.pdp-trust-badges .trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: var(--radius-md, 12px);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}
.pdp-trust-badges .trust-badge svg,
.pdp-trust-badges .trust-badge img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 9px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .pdp-trust-badges .trust-badge { padding: 16px 10px; font-size: 0.85rem; }
}

/* ---- Product page: accordions (description, size chart, reviews, FAQs) ---- */
.pdp-accordions { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: 10px; }
.pdp-accordions .faq-item {
  margin: 0;
  padding-inline: 20px;
  border: 0;
  border-radius: var(--radius-md, 12px);
  background: var(--surface);
}
.pdp-accordions .faq-item__question {
  padding-block: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.pdp-accordions .faq-item__question:hover { color: var(--text); }
.pdp-accordions .faq-item__icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--bg);
  box-sizing: border-box;
  transition: transform 0.3s ease, background-color var(--transition-fast), color var(--transition-fast);
}
.pdp-accordions .faq-item.is-open .faq-item__icon { background: var(--text); color: var(--bg); }
.pdp-accordions .faq-item.is-open .faq-item__answer { padding-block-start: 0; }
.pdp-accordions .tab-panel__content {
  padding-bottom: 20px;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  font-size: 0.95rem;
  line-height: 1.75;
}
.pdp-accordions .tab-panel__content > :first-child { margin-top: 0; }
.pdp-accordions .tab-panel__content > :last-child { margin-bottom: 0; }
.pdp-accordions .tab-panel__content p { padding-bottom: 0; margin: 0 0 12px; }
.pdp-accordions .tab-panel__content ul,
.pdp-accordions .tab-panel__content ol {
  list-style: none;
  padding: 0 !important; /* the dashboard editor adds inline padding-inline-start */
  margin: 0 0 12px !important;
}
.pdp-accordions .tab-panel__content li {
  position: relative;
  margin: 0;
  padding-block: 9px;
  padding-inline-start: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.pdp-accordions .tab-panel__content li:last-child { border-bottom: 0; }
.pdp-accordions .tab-panel__content li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: calc(9px + 0.875em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pdp-accordions .tab-panel__content strong,
.pdp-accordions .tab-panel__content b { color: var(--text); font-weight: 600; }
@media (max-width: 767px) {
  .pdp-accordions .faq-item { padding-inline: 16px; }
  .pdp-accordions .faq-item__question { padding-block: 14px; font-size: 0.95rem; }
  .pdp-accordions .tab-panel__content { font-size: 0.9rem; padding-bottom: 16px; }
}

/* ---- Cart drawer: coupon field as one pill (input + Apply) ---- */
.cart-drawer__coupon-form {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  padding-inline-start: 16px;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color var(--transition-fast);
}
.cart-drawer__coupon-form:focus-within { border-color: color-mix(in srgb, var(--text) 40%, transparent); }
.cart-drawer__coupon-form .newsletter-form__input,
.cart-drawer__coupon-form .newsletter-form__input:focus {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--text);
  font-size: 0.9rem;
}
.cart-drawer__coupon-form .newsletter-form__input::placeholder { color: color-mix(in srgb, var(--text) 50%, transparent); }
.cart-drawer__coupon-form .btn {
  flex-shrink: 0;
  height: 38px;
  min-height: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.85rem;
  font-weight: 600;
}
.cart-drawer__coupon-form .btn:hover { background: var(--btn-hover-bg, var(--btn-bg)); color: var(--btn-text); }
.cart-drawer__coupon-applied:not([hidden]) {
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  padding-block: 6px;
  padding-inline: 16px 6px;
  font-weight: 600;
}
.cart-drawer__coupon-applied button { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.cart-drawer__coupon-error { padding-inline: 16px; margin-top: -6px; }

/* ---- Cart drawer: item quantity as a small pill (matches .quantity-selector) ---- */
.cart-drawer-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}
.cart-drawer-item__qty-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1;
}
.cart-drawer-item__qty-btn:hover { background: var(--surface); color: var(--text); border: 0; }
.cart-drawer-item__qty-value { min-width: 22px; text-align: center; font-weight: 700; font-size: 0.9rem; }

/* ---- Category page: subcategories with their dashboard images ----
   Zid gives 260x260 thumbnails, so keep them <= ~130px to stay sharp. */
.category-subnav--thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 112px));
  gap: 18px 14px;
  justify-content: start;
}
.category-subnav--thumbs .category-subnav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  color: var(--text);
}
.category-subnav--thumbs .category-subnav__link:hover { transform: none; background: transparent; color: var(--accent); }
.category-subnav__thumb {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid transparent;
  outline: 1px solid var(--border);
  outline-offset: -1px;
  transition: border-color var(--transition-fast);
}
.category-subnav__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-subnav--thumbs .category-subnav__link:hover .category-subnav__thumb { border-color: var(--accent); }
.category-subnav--thumbs .category-subnav__name { font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
@media (max-width: 479px) {
  .category-subnav--thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
  .category-subnav--thumbs .category-subnav__thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .category-subnav--thumbs .category-subnav__name { font-size: 0.78rem; }
}

/* ---- Listing pages: filters live in a slide-in panel on every screen size,
   opened by the Filters button (no permanent side column on desktop) ---- */
.listing-layout { grid-template-columns: minmax(0, 1fr) !important; }
.filter-toggle-btn { display: inline-flex !important; }
.filter-sidebar {
  position: fixed;
  top: 0;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(360px, 88vw);
  z-index: 1200;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.15));
}
[dir="rtl"] .filter-sidebar { transform: translateX(100%); }
.filter-sidebar.is-open { transform: translateX(0); }
.filter-sidebar__close { display: block; }
.filter-overlay { z-index: 1150; }

/* ---- Cart page: coupon field as one pill (same as the cart drawer) ---- */
.cart-coupon__form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 420px;
  padding: 4px;
  padding-inline-start: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color var(--transition-fast);
}
.cart-coupon__form:focus-within { border-color: color-mix(in srgb, var(--text) 40%, transparent); }
.cart-coupon__form .newsletter-form__input,
.cart-coupon__form .newsletter-form__input:focus {
  flex: 1;
  min-width: 0;
  max-width: none !important;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
}
.cart-coupon__form .newsletter-form__input::placeholder { color: color-mix(in srgb, var(--text) 50%, transparent); }
.cart-coupon__form .btn {
  flex-shrink: 0;
  height: 42px;
  min-height: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.9rem;
  font-weight: 600;
}
.cart-coupon__form .btn:hover { background: var(--btn-hover-bg, var(--btn-bg)); color: var(--btn-text); }
.cart-coupon__applied {
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding-block: 6px;
  padding-inline: 16px 6px;
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-weight: 600;
}
.cart-coupon__remove { width: 28px; height: 28px; background: var(--bg); }
.cart-coupon__error { padding-inline: 18px; }

/* ---- Product cards: equal height in every row (grid + carousel) ----
   Cards stretch to the tallest card in the row; the price/cart row is pinned
   to the bottom (.product-card__buy margin-top:auto), and the description
   always reserves its 2 lines so rows across sections line up too. */
.carousel-track:has(> .product-card), .carousel-track:has(> * > .product-card) { align-items: stretch; }
.grid > .product-card { height: 100%; } /* not on carousel cards: a % height blocks flex stretch */
.product-card__short-desc { min-height: calc(2 * 1.4em); }

/* Announcement text exactly centered: reserve the close-button room on both sides */
.announcement-bar { padding-inline: calc(var(--container-pad) + 28px); }

/* ---- Checklist ports from Soleil: grouped items, customer questions, store closed, legal badges ---- */
.grouped-items { border: 1px solid var(--border); border-radius: var(--radius-md, 12px); padding: 14px 18px; margin: 0 0 18px; }
.grouped-items__title { font-size: 0.85rem; font-weight: 600; margin: 0 0 10px; }
.grouped-items__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.grouped-items__item { display: flex; gap: 8px; align-items: baseline; font-size: 0.9rem; }
.grouped-items__qty { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.grouped-items__name { flex: 1; color: inherit; }
.grouped-items__price { font-weight: 600; white-space: nowrap; }
.grouped-items__stock { color: var(--sale, #c0392b); font-size: 0.8rem; }
.grouped-items__item.is-out .grouped-items__name { opacity: 0.55; }
.question-item { padding-block: 10px; border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.question-item__q { font-weight: 600; color: var(--text); margin: 0 0 4px !important; }
.question-item__a { margin: 0 !important; padding-inline-start: 12px; border-inline-start: 2px solid var(--border); }
.cart-summary__closed { color: var(--sale, #c0392b); font-size: 0.9rem; margin: 12px 0 8px; }
.footer__legal-badge { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.footer__legal-badge:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal-badge svg { flex: none; }
.badge--low-stock { background: #fff4e0; color: #9a5b00; }
.pdp-share { display: flex; align-items: center; gap: 8px; margin-block: var(--space-md) 0; }
.pdp-share__label { font-size: 0.85rem; color: var(--text-muted); margin-inline-end: 4px; }
.pdp-share__link { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); color: var(--text); transition: background-color var(--transition-fast), color var(--transition-fast); }
.pdp-share__link:hover { background: var(--text); color: var(--bg); }

/* ---- FAQs / product questions / product reviews pages (ported from Soleil) ---- */
.static-page__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; text-align: center; margin-bottom: 1.5rem; text-wrap: balance; }
.static-page .listing-breadcrumb { justify-content: center; font-size: 0.85rem; }
.faqs-page .faq-list { display: flex; flex-direction: column; gap: 10px; }
.faqs-page .faq-item__answer { color: var(--text-muted); }
.product-mini { display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin-bottom: 2rem; background: var(--surface); border-radius: var(--radius-md, 12px); color: inherit; text-decoration: none; }
.product-mini__image { width: 64px; height: 64px; object-fit: cover; flex: none; border-radius: 10px; }
.product-mini__info { display: grid; gap: 2px; min-width: 0; flex: 1; }
.product-mini__name { font-weight: 600; }
.product-mini__price { color: var(--text-muted); font-size: 0.9rem; }
.product-mini__link { flex: none; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 479px) { .product-mini__link { display: none; } }
.question-item__meta { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 4px; }
.question-form { display: grid; gap: 10px; margin-top: 2rem; padding: 22px; background: var(--surface); border-radius: var(--radius-lg, 16px); }
.question-form__title { font-size: 1.15rem; margin: 0 0 4px; }
.question-form .newsletter-form__input { width: 100%; max-width: none; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--text); }
.question-form__anon { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; }
.question-form__msg:empty { display: none; }
.question-form .btn { justify-self: start; }
.reviews-list { display: flex; flex-direction: column; gap: 10px; }
.reviews-page .review-item { padding: 16px 18px; background: var(--surface); border-radius: var(--radius-md, 12px); }
.review-item__header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-item__author { font-weight: 600; }
.reviews-page .stars-display { color: var(--accent); display: inline-flex; gap: 2px; }
.review-item__images { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.review-item__images img { border-radius: 8px; }
.cart-item__offer, .cart-summary__offer { display: inline-block; margin: 4px 0; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 0.8rem; font-weight: 600; }

/* Bundle offer: card badge + product-page strip */
.badge--offer { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pdp-offer { margin-top: var(--space-sm); padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--radius-md, 10px); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.pdp-offer__name { margin: 0; font-weight: 600; color: var(--accent); font-size: .92rem; }
.pdp-offer__desc { margin: 2px 0 0; font-size: .82rem; color: var(--text-muted, inherit); }
.pdp-offer__items { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.pdp-offer__items img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; display: block; }

/* Product images: full image by default (Theme Settings > Product Page > Product Image Display) */
.product-card__image,
.product-gallery__main-img { object-fit: var(--product-img-fit, contain); }

/* Announcement animation (Header > Announcement Bar > Animation) */
.announcement-bar[data-ann-anim="marquee"] { padding-inline: 0; }
.announcement-bar[data-ann-anim="marquee"] .announcement-bar__close { background: inherit; padding-inline: 8px; z-index: 1; }
.announcement-bar[data-ann-anim="marquee"] .announcement-bar__marquee-set { min-width: max(100vw, 900px); }
.announcement-bar[data-ann-anim="fade"] .announcement-bar__msg.is-active { animation: ann-breathe 4.5s ease-in-out infinite; }
@keyframes ann-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .announcement-bar__marquee-inner, .announcement-bar[data-ann-anim="fade"] .announcement-bar__msg.is-active { animation: none; }
}

/* Full-image mode: the card frame takes the photo's own shape, so there is no crop and no empty bands */
body[data-img-fit="contain"] .product-card__media { aspect-ratio: auto; }
body[data-img-fit="contain"] .product-card__image { height: auto; aspect-ratio: auto; }
body[data-img-fit="contain"] .product-card__no-image { aspect-ratio: var(--img-ratio, 3/4); height: auto; }

/* Listing "Load more" (works with or without infinite scroll) */
.load-more-wrap { display: flex; justify-content: center; margin-top: var(--space-xl, 32px); }
.load-more-btn { min-width: 200px; }

/* Cart line stock / price error from Zid (item.error_message) */
.cart-item__stock-error { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: #fdecec; color: #b42318; font-size: .8rem; line-height: 1.5; }
.reviews-all-link { margin-top: var(--space-sm, 12px); font-size: .9rem; }

/* Hero banner: optional whole-banner image link (under the text, buttons stay clickable) */
.hero-banner__link { position: absolute; inset: 0; z-index: 2; }
.hero-banner:has(.hero-banner__link) .hero-banner__content { z-index: 3; pointer-events: none; }
.hero-banner:has(.hero-banner__link) .hero-banner__actions a { pointer-events: auto; }

/* Products section: its Image Ratio setting always shapes the frame (also in full-image mode) */
body[data-img-fit="contain"] .product-card__media--ratio { aspect-ratio: var(--img-ratio, 3/4); }
body[data-img-fit="contain"] .product-card__media--ratio .product-card__image { height: 100%; aspect-ratio: auto; }

/* Product page USPs: hidden ones leave no gap, the rest share the row */
.pdp-trust-badges { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
