/* =========================================================================
   PHILIPPINE MARKETPLACE THEME
   Sitewide header, footer and reusable decorative components. Loaded on
   every page (base.html). Token colors come from order.css's :root.
   ========================================================================= */

/* ---- Header ------------------------------------------------------------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 72px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
}

/* A second row under the main header: the shop-by-category links,
   always visible (never collapsed behind the hamburger) and wraps
   instead of overflowing, so it works at any width or category count. */
.site-categories {
  border-top: 1px solid var(--color-border);
  border-bottom: 2px solid var(--color-gold);
  background: var(--color-surface-alt);
}
.site-categories__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px var(--space-5);
}
.site-categories a {
  position: relative;
  display: inline-block;
  color: var(--color-text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  padding-bottom: 4px;
  transition: color 150ms ease;
}
.site-categories a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.site-categories a:hover { color: var(--color-primary); text-decoration: none; }
.site-categories a:hover::after { transform: scaleX(1); }
.site-categories a[aria-current="page"] { color: var(--color-primary); }
.site-categories a[aria-current="page"]::after { transform: scaleX(1); }

.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 56px; height: 56px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: transparent; border-radius: 0;
  transition: transform 180ms ease;
}
.brand:hover .brand__mark { transform: scale(1.08) rotate(-2deg); }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__mark-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  background: transparent; color: var(--color-primary);
  display: grid; place-items: center;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong {
  font-family: var(--font-souvenir);
  font-size: 22px; font-weight: 700; color: var(--color-text);
  letter-spacing: 0.01em;
}
.brand__text small { color: var(--color-primary); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.site-nav-center { display: flex; align-items: center; gap: var(--space-4); white-space: nowrap; }
.site-nav-center a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.site-nav-center a:hover { color: var(--color-primary); border-color: var(--color-primary); text-decoration: none; }

/* .nav-step is also used on the FAQ page's "How to Order" section
   (templates/policy.html) - keep it even though the nav dropdown that
   originally hosted it is gone. */
.nav-step { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.nav-step > div { min-width: 0; flex: 1; }
.nav-step__num {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center;
}
.nav-step strong { display: block; font-size: 13px; color: var(--color-text); }
.nav-step p { margin: 2px 0 0; font-size: 12px; color: var(--color-text-muted); line-height: 1.4; }

.site-search {
  display: flex;
  align-items: center;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0 4px 0 14px;
  height: 42px;
  min-width: 0;
  max-width: 420px;
  margin-left: auto;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.site-search:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.site-search input {
  border: none; background: transparent; outline: none;
  font: inherit; font-size: 13.5px; width: 100%; padding: 0;
  color: var(--color-text);
}
.site-search button {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--color-primary); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}

.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); }
/* Sign in / Register specifically: taller than the shared .btn--sm
   used elsewhere in the app, with Sign in's border tinted gold. Scoped
   to the header so no other .btn--sm usage is affected. */
.site-header__actions .btn--sm {
  height: 43px;
  padding: 0 20px;
  font-size: 14px;
}
.site-header__actions .btn--ghost {
  background: var(--color-surface);
  border-color: rgba(245, 181, 27, 0.45);
}
.cart-link {
  position: relative;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.cart-link:hover { color: var(--color-primary); border-color: var(--color-primary); text-decoration: none; }
.cart-link__badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px;
  background: var(--color-flag-red); color: #fff;
  font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--color-surface);
}

/* ---- Cart modal / sign-in prompt ------------------------------------------ */
.cart-modal__items { display: flex; flex-direction: column; gap: var(--space-3); max-height: 50vh; overflow-y: auto; }
.cart-modal__row {
  display: grid;
  grid-template-columns: auto 56px 1fr auto auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-modal__row:last-child { border-bottom: none; }
.cart-modal__thumb {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: var(--color-surface-alt); overflow: hidden;
  display: grid; place-items: center; font-size: 10px; color: var(--color-text-muted);
}
.cart-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-modal__qty { width: 56px; padding: 6px; text-align: center; }
.cart-modal__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
@media (max-width: 560px) {
  .cart-modal__row { grid-template-columns: auto 48px 1fr; row-gap: 6px; }
  .cart-modal__row > *:nth-child(4),
  .cart-modal__row > *:nth-child(5),
  .cart-modal__row > *:nth-child(6) { grid-column: 2 / -1; }
}

.site-nav__user { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--color-text); white-space: nowrap; }
.site-nav__user-icon {
  display: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--color-border);
  align-items: center; justify-content: center;
  flex: 0 0 auto;
}

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px; height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}
.site-header__burger span { display: block; width: 16px; height: 2px; margin: 0 auto; background: var(--color-text); }

/* ---- Buttons: rounded-corner system, not pills ------------------------- */
.btn { border-radius: var(--radius-md); }
.btn--primary { background: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-hover); }

/* ---- Footer ---------------------------------------------------------------
   Deep navy, two rows (identity / social / links, then motto / copyright)
   split by thin gold rules. Heritage decoration (woven edge, leaves, gold
   arc) is CSS/inline SVG, clipped by the footer so it can never widen the
   page, and kept off the text column. An admin-uploaded background
   (footer_background_url) replaces the CSS decoration when set. */
.site-footer {
  --ft-navy: #10243a;
  --ft-text: #f8fafc;
  --ft-muted: #b8c5d3;
  --ft-gold: #c9a45c;
  --ft-green: #0b8f78;
  --ft-rule: rgba(201, 164, 92, 0.45);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  padding: 0;
  border-top: none;
  background-color: var(--ft-navy);
  color: var(--ft-muted);
  font-size: 14px;
}
.site-footer--photo {
  background-image: var(--footer-bg-image);
  background-size: cover;
  background-position: center;
}
.site-footer--photo .site-footer__deco { display: none; }

.site-footer__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.site-footer__weave {
  position: absolute; top: 0; bottom: 0; left: 0; width: 150px;
  opacity: 0.8;
  background-image:
    linear-gradient(45deg, rgba(201, 164, 92, 0.16) 25%, transparent 25%, transparent 75%, rgba(201, 164, 92, 0.16) 75%),
    linear-gradient(45deg, rgba(201, 164, 92, 0.16) 25%, transparent 25%, transparent 75%, rgba(201, 164, 92, 0.16) 75%),
    linear-gradient(-45deg, transparent 46%, rgba(184, 197, 211, 0.12) 46%, rgba(184, 197, 211, 0.12) 54%, transparent 54%);
  background-size: 22px 22px, 22px 22px, 11px 11px;
  background-position: 0 0, 11px 11px, 0 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}
.site-footer__leaves {
  position: absolute; right: -12px; top: -8px;
  width: 190px; height: auto;
  color: var(--ft-green); opacity: 0.32;
}
.site-footer__arc {
  position: absolute; right: -130px; bottom: -150px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 2px solid var(--ft-gold); opacity: 0.6;
}

.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(var(--space-4), 6vw, 84px);
}

.site-footer__top {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: 22px 0;
}
.site-footer__company { flex: 0 0 auto; min-width: 0; }
.site-footer__company strong {
  display: block; color: var(--ft-text);
  font-family: var(--font-sans);
  font-size: 16px; font-weight: 700; letter-spacing: 0.005em; line-height: 1.35;
  white-space: nowrap;
}
.site-footer__address {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 6px; max-width: 310px;
  font-size: 13px; line-height: 1.5; color: var(--ft-muted);
}
.site-footer__address svg { flex: 0 0 auto; margin-top: 1px; color: var(--ft-gold); }

.site-footer__vrule { flex: 0 0 1px; align-self: stretch; min-height: 56px; background: var(--ft-rule); }

.site-footer__social { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.site-footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--ft-rule);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ft-text);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.site-footer__social a:hover {
  background: rgba(201, 164, 92, 0.14); border-color: var(--ft-gold); color: var(--ft-gold);
  text-decoration: none;
}

.site-footer__links {
  display: flex; flex-wrap: wrap; align-items: center;
  flex-wrap: nowrap; column-gap: 30px; row-gap: 8px;
  margin-left: auto; padding-right: clamp(0px, 4vw, 90px);
}
.site-footer__links a {
  position: relative;
  color: var(--ft-text); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: color 150ms ease;
}
.site-footer__links a + a::before {
  content: "";
  position: absolute; left: -17px; top: 50%;
  width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: var(--ft-gold); opacity: 0.85;
}
.site-footer__links a:hover { color: var(--ft-gold); text-decoration: none; }

.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
  padding: 14px 0 16px;
  border-top: 1px solid var(--ft-rule);
}
.site-footer__motto {
  display: flex; align-items: center; gap: 14px; margin: 0;
  color: var(--ft-gold);
  font-size: 11.5px; font-weight: 500; line-height: 1.55;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.site-footer__motto-rule { flex: 0 0 auto; width: 30px; height: 1px; background: var(--ft-gold); }
.site-footer__copy { margin: 0; font-size: 12.5px; color: var(--ft-muted); }
/* Small and quiet: staff need to find it, buyers shouldn't be drawn to it. */
.site-footer__staff { color: var(--ft-muted); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__staff:hover { color: var(--ft-gold); }

.site-footer a:focus-visible { outline: 2px solid var(--ft-gold); outline-offset: 3px; }

/* Tablet / small laptop: links get their own line under identity + social. */
@media (max-width: 1240px) {
  .site-footer__top { flex-wrap: wrap; row-gap: var(--space-4); }
  .site-footer__links { flex-basis: 100%; flex-wrap: wrap; margin-left: 0; padding-right: 0; }
  .site-footer__company strong { white-space: normal; }
  .site-footer__leaves { width: 140px; opacity: 0.22; }
}
/* Phone: stacked, links as a two-column list with full-size tap targets. */
@media (max-width: 640px) {
  .site-footer__top { flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-5) 0 var(--space-4); }
  .site-footer__vrule, .site-footer__weave, .site-footer__arc { display: none; }
  .site-footer__leaves { width: 110px; opacity: 0.18; }
  .site-footer__company { padding-right: 70px; }
  .site-footer__social a { width: 44px; height: 44px; }
  .site-footer__links {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-4); row-gap: 0; width: 100%;
  }
  .site-footer__links a { display: flex; align-items: center; min-height: 44px; white-space: normal; }
  .site-footer__links a + a::before { display: none; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) 0; }
}

/* ---- Landing page (home) ---------------------------------------------
   Just the hero and a simple value-props strip. Prefixed lp- to keep it
   scoped to home.html; the hero uses the same negative-margin full-bleed
   breakout as the header/footer. */
body.home-page .site-main { padding: 0; }

.lp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--space-6); }

.lp-fade-up { opacity: 0; transform: translateY(18px); animation: lpFadeUp 0.8s ease forwards; }
@keyframes lpFadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---- Hero: full-bleed, photo shown whole (not cropped). A left-to-right
   dark-green gradient sits behind the caption for contrast against busy
   photos, fading to fully transparent by ~80% so the right side of the
   image (the crafts themselves) stays bright and unobscured. ---- */
.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-left: calc(50% - var(--page-w, 100vw) / 2);
  margin-right: calc(50% - var(--page-w, 100vw) / 2);
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background: var(--color-navy-deep);
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(7, 33, 25, 0.82) 0%,
    rgba(7, 33, 25, 0.68) 26%,
    rgba(7, 33, 25, 0.44) 44%,
    rgba(7, 33, 25, 0.16) 62%,
    rgba(7, 33, 25, 0) 80%
  );
}
.lp-hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.lp-hero__content { position: relative; z-index: 2; max-width: 580px; padding: 0 var(--space-6) var(--space-7); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }
.lp-hero__title {
  font-family: var(--font-souvenir); font-weight: 800; color: #fff;
  font-size: clamp(28px, 4.5vw, 52px); line-height: 1.12; margin: 0 0 var(--space-4); max-width: 13ch;
  transform-origin: left center;
  transition: color 250ms ease, transform 250ms ease;
}
.lp-hero__title:hover { color: var(--color-gold); transform: scale(1.03); }
.lp-hero__lead {
  color: #fffdf7; font-size: clamp(14px, 1.3vw, 16px); max-width: 480px; line-height: 1.7; margin: 0 0 var(--space-5);
  transition: color 250ms ease, transform 250ms ease;
}
.lp-hero__lead:hover { color: #fff; transform: translateX(4px); }
.lp-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.lp-hero__cta:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3); }
.lp-hero__cta-arrow { display: inline-block; transition: transform 250ms ease; }
.lp-hero__cta:hover .lp-hero__cta-arrow { transform: translateX(5px); }
@media (max-width: 760px) {
  /* The caption spans closer to the image's full width on narrow
     screens, so the fade needs to stay stronger for longer. */
  .lp-hero::before {
    background: linear-gradient(
      90deg,
      rgba(7, 33, 25, 0.86) 0%,
      rgba(7, 33, 25, 0.78) 50%,
      rgba(7, 33, 25, 0.5) 72%,
      rgba(7, 33, 25, 0.15) 92%,
      rgba(7, 33, 25, 0) 100%
    );
  }
}

.btn--ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.18); }

/* ---- Value props strip ---- */
.lp-values {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-alt) url("../images/ph/wave-band.svg") center / cover no-repeat;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.lp-values__grid {
  position: relative; z-index: 1;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6) var(--space-7);
}
.lp-value { display: flex; align-items: center; gap: 12px; }
.lp-value__icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border);
  display: grid; place-items: center; color: var(--color-primary);
}
.lp-value strong { display: block; font-size: 13.5px; }
.lp-value span:not(.lp-value__icon) { display: block; font-size: 12px; color: var(--color-text-muted); }

/* ---- Landing responsive ---- */
@media (max-width: 900px) {
  /* Bottom-aligned content in a viewport-tall hero pushed the caption
     (and the CTA button) below the fold and under the fixed footer on
     phones. Let the hero size itself to its content instead, flowing
     from the top, so everything stays visible without scrolling. */
  .lp-hero { min-height: 0; align-items: flex-start; }
  .lp-hero__content { padding-top: var(--space-6); }
}
@media (max-width: 560px) {
  .lp-wrap, .lp-hero__content { padding-left: var(--space-4); padding-right: var(--space-4); }
}

@media (max-width: 1080px) {
  .site-nav-center { display: none; }
  .site-header__burger { display: flex; }
  body.nav-open .site-nav-center {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4) var(--space-5);
    gap: var(--space-3);
  }
  .site-header__inner { grid-template-columns: auto auto 1fr; }
}
@media (max-width: 760px) {
  .site-header__inner {
    height: 64px;
    padding: 0 var(--space-3);
    gap: var(--space-2);
    grid-template-columns: auto auto 1fr;
  }
  .site-header__actions .btn--sm { height: auto; padding: 6px 10px; font-size: 12.5px; }
  .site-categories__inner { padding: 8px var(--space-3); gap: 4px var(--space-4); }
}
@media (max-width: 420px) {
  .site-header__inner { gap: 6px; }
  .brand { gap: 6px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__text small { display: none; }
  .brand__text { max-width: 128px; min-width: 0; }
  .brand__text strong {
    font-size: 14px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; display: block;
  }
  .site-header__burger { width: 32px; height: 32px; }
  .cart-link { width: 32px; height: 32px; }
  .site-header__actions { gap: 6px; }
  .site-header__actions .btn { white-space: nowrap; height: auto; padding: 6px 8px; font-size: 12px; }

  /* Signed in: collapse name + role badge to a single icon; the account
     page is one tap away and "Sign out" still needs to fit beside it. */
  .site-nav__user-icon { display: inline-flex; }
  .site-nav__user-name,
  .site-nav__user .pill--role { display: none; }
}

/* ---- Policy pages (Terms, Privacy, FAQ) ----------------------------------- */
.policy-body { color: var(--color-text); }
.policy-body p { line-height: 1.6; }
.policy-body p + p { margin-top: var(--space-3); }

#how-to-order .nav-step { display: flex; gap: 12px; margin-bottom: 12px; }

/* ---- Home: product discovery rows ----------------------------------------
   Five products per group; arrows page through groups. On narrow screens
   the same five sit in a horizontally scrollable row. */
.dc { padding: var(--space-6) 0 var(--space-7); }
.dc-row + .dc-row { margin-top: var(--space-6); }
.dc-row__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3);
  padding-bottom: var(--space-3); margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-border);
  position: relative;
}
.dc-row__head::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--color-gold);
}
.dc-row__head h2 {
  font-family: var(--font-souvenir); font-size: clamp(18px, 2vw, 22px);
  color: var(--color-navy-deep); letter-spacing: 0.02em; text-transform: uppercase;
}
.dc-row__more { flex: 0 0 auto; color: var(--color-primary); font-weight: 700; font-size: 14px; white-space: nowrap; }
.dc-row__more:hover { color: var(--color-primary-hover); }
.dc-row__body { position: relative; }
.dc-row__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
.dc-row__nav {
  position: absolute; top: 38%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text);
  box-shadow: var(--shadow-md);
  transition: opacity 150ms ease, color 150ms ease, border-color 150ms ease;
}
.dc-row__nav:hover:not(:disabled) { color: var(--color-primary); border-color: var(--color-primary); }
.dc-row__nav:disabled { opacity: 0; pointer-events: none; }
.dc-row__nav--prev { left: -22px; }
.dc-row__nav--next { right: -22px; }
.dc-row__status { margin: var(--space-2) 0 0; text-align: right; }

.dc-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.dc-card:hover { text-decoration: none; border-color: rgba(8, 127, 109, 0.4); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dc-card:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.dc-card__media {
  aspect-ratio: 1 / 1; background: #fbf8f1; display: grid; place-items: center; overflow: hidden;
}
.dc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dc-card__monogram {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--color-gold); color: var(--color-gold); font-family: var(--font-souvenir); font-size: 26px;
}
.dc-card__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.dc-card__code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; color: var(--color-text-muted); }
.dc-card__name {
  font-size: 14px; font-weight: 600; line-height: 1.35; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-card__price { color: var(--color-primary); font-weight: 800; font-size: 15px; }
.dc-card__price small { color: var(--color-text-muted); font-weight: 500; font-size: 12px; }

@media (max-width: 1100px) {
  .dc-row__nav--prev { left: -12px; }
  .dc-row__nav--next { right: -12px; }
}
@media (max-width: 860px) {
  .dc-row__track {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 40%);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .dc-card { scroll-snap-align: start; }
  .dc-row__nav { top: 34%; }
  .dc-row__nav--prev { left: 4px; }
  .dc-row__nav--next { right: 4px; }
}
@media (max-width: 480px) {
  .dc-row__track { grid-auto-columns: minmax(140px, 46%); gap: var(--space-3); }
}

/* ---- Avatar + header profile menu ----------------------------------------- */
.avatar {
  --avatar-size: 32px;
  width: var(--avatar-size); height: var(--avatar-size); flex: 0 0 auto;
  border-radius: 50%; overflow: hidden;
  display: inline-grid; place-items: center;
  background: var(--color-primary-soft, #e3f2ef); color: var(--color-primary);
  border: 1px solid rgba(8, 127, 109, 0.25);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar svg { width: 62%; height: 62%; }
.avatar--md { --avatar-size: 44px; }
.avatar--lg { --avatar-size: 96px; border-width: 2px; }

.profile-menu { position: relative; }
.profile-menu__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 43px; padding: 0 10px 0 5px;
  border: 1px solid rgba(245, 181, 27, 0.45); border-radius: 999px;
  background: var(--color-surface); color: var(--color-text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.profile-menu__toggle:hover, .profile-menu__toggle[aria-expanded="true"] {
  border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft, rgba(8, 127, 109, 0.12));
}
.profile-menu__name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu__chevron { color: var(--color-text-muted); transition: transform 150ms ease; }
.profile-menu__toggle[aria-expanded="true"] .profile-menu__chevron { transform: rotate(180deg); }

.profile-menu__dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 45;
  width: 260px; padding: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(16, 36, 58, 0.16);
}
.profile-menu__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--color-border);
}
.profile-menu__head > div { min-width: 0; display: grid; }
.profile-menu__head strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu__head span { font-size: 12px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu__dropdown [role="menuitem"] {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 42px; padding: 0 10px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--color-text); font: inherit; font-size: 14px; font-weight: 500;
  text-align: left; cursor: pointer;
}
.profile-menu__dropdown [role="menuitem"] svg { color: var(--color-text-muted); flex: 0 0 auto; }
.profile-menu__dropdown [role="menuitem"]:hover,
.profile-menu__dropdown [role="menuitem"]:focus-visible {
  background: var(--color-surface-alt); color: var(--color-primary); text-decoration: none; outline: none;
}
.profile-menu__dropdown [role="menuitem"]:hover svg,
.profile-menu__dropdown [role="menuitem"]:focus-visible svg { color: var(--color-primary); }
.profile-menu__dropdown hr { border: 0; border-top: 1px solid var(--color-border); margin: 4px 0; }
.profile-menu__logout { color: #b42318 !important; }
.profile-menu__logout svg { color: #b42318 !important; }

/* ---- Discovery: tap targets, colour dots, phone arrows below the row ------- */
.dc-row__more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.dc-card__swatches { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dc-card__swatches span { width: 14px; height: 14px; border-radius: 50%; background: var(--swatch, #e6dec8); border: 1px solid rgba(16, 36, 58, 0.18); }
.dc-card__swatches small { font-size: 11px; color: var(--color-text-muted); }
@media (max-width: 860px) {
  /* Arrows sit under the cards (never on top of them), with the range text. */
  .dc-row__body { padding-bottom: 56px; }
  .dc-row__nav { top: auto; bottom: 0; transform: none; }
  .dc-row__nav--prev { left: auto; right: 56px; }
  .dc-row__nav--next { right: 0; }
  .dc-row__nav:disabled { opacity: 0.35; pointer-events: none; }
  .dc-row__status { margin: -44px 0 0; height: 44px; line-height: 44px; text-align: left; }
}

.cart-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(16, 36, 58, 0.2); }

/* ---- Account type (Personal / Company) segmented choice ----------------------- */
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface-alt); }
.segmented label { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--color-text-muted); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--color-surface); color: var(--color-primary); box-shadow: 0 1px 4px rgba(16, 36, 58, 0.15); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--color-gold); outline-offset: 1px; }
input:disabled { background: var(--color-surface-alt); color: var(--color-text-muted); cursor: not-allowed; }

/* ---- Guest gate + welcome + inquiry dialogs ---------------------------------- */
.guest-gate { max-width: 420px; }
.guest-gate__actions { display: grid; gap: var(--space-2); }
.guest-gate__actions .btn { min-height: 46px; justify-content: center; }
.welcome-dialog { max-width: 440px; text-align: center; justify-items: center; }
.welcome-dialog__badge {
  width: 60px; height: 60px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--color-primary); color: #fff; box-shadow: 0 0 0 8px rgba(8, 127, 109, 0.12);
}
.welcome-dialog__kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-gold); }
.welcome-dialog__install { font-weight: 600; }
.welcome-dialog__actions { display: grid; gap: var(--space-2); width: 100%; }
.welcome-dialog__actions .btn { min-height: 46px; justify-content: center; }

.inquiry-dialog { max-width: 620px; }
.inquiry-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.inquiry-dialog__head h2 { color: var(--color-primary); font-size: clamp(20px, 3vw, 26px); text-transform: uppercase; letter-spacing: 0.02em; }
.inquiry-dialog__close { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); cursor: pointer; display: grid; place-items: center; color: var(--color-text); }
.inquiry-dialog__product { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); margin-bottom: var(--space-3); border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-border); }
.inquiry-dialog__product img, .inquiry-dialog__noimg { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 auto; background: var(--color-surface-alt); }
.inquiry-dialog__product > div { display: grid; min-width: 0; }
.inquiry-dialog__product strong { overflow-wrap: anywhere; }
.inquiry-dialog__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-dialog__done { text-align: center; justify-items: center; padding: var(--space-4) 0; }

/* ---- Staff: inquiries page ----------------------------------------------------- */
.inq-filters { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.inq-filters input { max-width: 340px; }
.inq-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.inq-tab { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.inq-tab span { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--color-surface-alt); font-size: 12px; }
.inq-tab.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.inq-tab.is-active span { background: rgba(255, 255, 255, 0.25); }
.inq-list { display: grid; gap: var(--space-3); }
.inq-card {
  display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 1fr) minmax(0, 2fr) auto; gap: var(--space-4); align-items: start;
  padding: var(--space-4); border: 1px solid var(--color-border); border-left: 4px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface);
}
.inq-card--new { border-left-color: var(--color-gold); }
.inq-card--replied { border-left-color: var(--color-primary); }
.inq-card__product { display: flex; gap: var(--space-3); min-width: 0; }
.inq-card__product img, .inq-card__noimg { width: 64px; height: 64px; flex: 0 0 auto; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-surface-alt); }
.inq-card__product > div, .inq-card__from { display: grid; min-width: 0; overflow-wrap: anywhere; align-content: start; }
.inq-card__from { display: block; }
.inq-card__message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.inq-card__status select { min-height: 40px; }
@media (max-width: 980px) {
  .inq-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .inq-card__message { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .inq-card { grid-template-columns: minmax(0, 1fr); }
  .inq-filters input { max-width: none; }
}

/* ---- My Payment Options -------------------------------------------------------- */
.pay-options { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.pay-option {
  position: relative; display: flex; gap: var(--space-3); align-items: center;
  padding: var(--space-4); border: 2px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; background: var(--color-surface);
}
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option:has(input:checked) { border-color: var(--color-primary); background: #f4faf8; }
.pay-option:has(input:focus-visible) { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.pay-option__icon { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface-alt); color: var(--color-primary); }
.pay-option__body { display: grid; gap: 2px; }
.pay-option__body span { font-size: 13px; color: var(--color-text-muted); }
.pay-option::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--color-border); background: var(--color-surface);
}
.pay-option:has(input:checked)::after { border-color: var(--color-primary); background: radial-gradient(var(--color-primary) 45%, var(--color-surface) 50%); }

/* ---- Cart drawer ------------------------------------------------------------------
   Desktop: a floating panel on the right; its item list scrolls on its own
   between the summary and the actions. Phones: a full-height sheet. */
.cart-drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.cart-drawer[hidden] { display: none; }
.cart-drawer__scrim { position: absolute; inset: 0; background: rgba(16, 36, 58, 0.18); pointer-events: auto; }
.cart-drawer__panel {
  position: absolute; top: 84px; right: max(14px, env(safe-area-inset-right)); bottom: 14px;
  width: min(410px, calc(100vw - 28px));
  display: flex; flex-direction: column; pointer-events: auto;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(16, 36, 58, 0.25); overflow: hidden;
}
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 14px 16px; background: var(--color-navy-deep); color: #fff; flex: 0 0 auto;
}
.cart-drawer__head h2 { margin: 0; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.cart-drawer__count { margin-left: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #f5d27a; text-transform: none; }
.cart-drawer__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cart-drawer__close:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.cart-drawer__summary { padding: 12px 16px 4px; border-bottom: 1px solid var(--color-border); background: #fbf8f1; flex: 0 0 auto; }
.cart-sum { margin: 0 0 8px; display: grid; gap: 4px; font-size: 13.5px; }
.cart-sum div { display: flex; justify-content: space-between; gap: var(--space-3); }
.cart-sum dt { color: var(--color-text-muted); }
.cart-sum dd { margin: 0; text-align: right; }
.cart-sum strong { color: var(--color-primary); font-size: 15px; }
.cart-drawer__note, .cart-drawer__warn { margin: 0 0 8px; font-size: 12.5px; line-height: 1.45; border-radius: var(--radius-sm); padding: 6px 8px; }
.cart-drawer__note { color: #6a5321; background: var(--color-warning-soft); }
.cart-drawer__warn { color: var(--color-danger); background: var(--color-danger-soft); font-weight: 600; }
.cart-drawer__tools { display: flex; align-items: center; gap: var(--space-3); padding: 8px 16px; border-bottom: 1px solid var(--color-border); font-size: 13px; flex: 0 0 auto; flex-wrap: wrap; }
.cart-drawer__tools:empty { display: none; }
.cart-tools__all { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-weight: 600; cursor: pointer; }
.cart-tools__all input, .cart-line__check { width: 18px; height: 18px; accent-color: var(--color-primary); }
.link-button { border: 0; background: none; padding: 6px 2px; color: var(--color-primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.link-button:disabled { color: var(--color-text-muted); cursor: default; }
.link-button:hover:not(:disabled) { text-decoration: underline; }
.cart-drawer__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid; grid-template-columns: auto 64px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--color-border);
}
.cart-line__check { margin-top: 24px; }
.cart-line__thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface-alt); display: block; }
.cart-line__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-line__body { display: grid; gap: 3px; min-width: 0; }
.cart-line__name { font-weight: 700; font-size: 14px; color: var(--color-text); overflow-wrap: anywhere; line-height: 1.3; }
a.cart-line__name:hover { color: var(--color-primary); }
.cart-line__variant { font-size: 12.5px; color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 6px; }
.cart-line__variant i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(16, 36, 58, 0.2); }
.cart-line__unit { font-size: 12.5px; color: var(--color-text-muted); }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cart-line__total { color: var(--color-navy-deep); font-size: 14px; }
.cart-line__problem { font-size: 12.5px; font-weight: 600; color: var(--color-danger); }
.cart-line.is-unavailable .cart-line__thumb img { opacity: 0.45; }
.cart-line__remove { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-muted); cursor: pointer; display: grid; place-items: center; }
.cart-line__remove:hover { color: var(--color-danger); background: var(--color-danger-soft); }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 34px; border: 0; background: var(--color-surface-alt); font-size: 17px; cursor: pointer; color: var(--color-text); }
.qty button:disabled { opacity: 0.4; cursor: default; }
.qty input { width: 56px; height: 34px; border: 0; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); border-radius: 0; text-align: center; padding: 0; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-empty { display: grid; justify-items: center; gap: 8px; padding: var(--space-6) var(--space-4); color: var(--color-text-muted); text-align: center; }
.cart-empty svg { color: var(--color-gold); }
.cart-leftovers { margin: 12px 16px; padding: 12px; border: 1px dashed var(--color-gold); border-radius: var(--radius-md); background: #fffaf0; }
.cart-leftovers h3 { font-size: 14px; margin: 0 0 4px; }
.cart-leftovers ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.cart-leftovers li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; }
.cart-leftovers li > div:first-child { display: grid; min-width: 0; }
.cart-leftovers__actions { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.cart-drawer__foot { display: grid; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); background: var(--color-surface); flex: 0 0 auto; }
.cart-drawer__foot .btn { min-height: 46px; justify-content: center; text-align: center; }
.cart-drawer__hint { margin: 0; font-size: 12.5px; color: var(--color-text-muted); text-align: center; }
@media (max-width: 899px) {
  .cart-drawer__scrim { background: rgba(16, 36, 58, 0.45); }
  .cart-drawer__panel { top: 0; right: 0; bottom: 0; width: min(440px, 100vw); border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); }
  .cart-line { grid-template-columns: auto 56px minmax(0, 1fr) auto; padding-left: 12px; }
  .cart-line__thumb { width: 56px; height: 56px; }
  body.cart-open { overflow: hidden; }
}

/* ---- Shop dialogs (welcome / limit / sign-in) ------------------------------------- */
.shop-welcome, .shop-gate { max-width: 480px; }
.shop-welcome h2, .shop-gate h2 { font-family: var(--font-souvenir); color: var(--color-navy-deep); text-transform: uppercase; font-size: clamp(18px, 3vw, 22px); letter-spacing: 0.02em; }
.shop-welcome__choices { display: grid; gap: var(--space-3); }
.shop-choice {
  display: grid; gap: 4px; padding: 14px 16px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface);
  font: inherit; color: var(--color-text);
}
.shop-choice strong { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.shop-choice span { font-size: 13px; color: var(--color-text-muted); }
.shop-choice:hover { border-color: var(--color-primary); text-decoration: none; }
.shop-choice--primary { border-color: var(--color-primary); background: var(--color-primary-soft); }
.shop-choice--primary strong { color: var(--color-primary); }
.shop-choice:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.shop-gate__actions { display: grid; gap: var(--space-2); }
.shop-gate__actions .btn { min-height: 46px; justify-content: center; }
.inquiry-dialog__from { margin: 0 0 var(--space-3); font-size: 14px; overflow-wrap: anywhere; }

/* ---- Organisation fields / status ------------------------------------------------ */
.org-fields { display: grid; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); }
.org-fields[hidden] { display: none; }
.org-status { margin: 0; padding: 10px 12px; border-radius: var(--radius-md); font-size: 13.5px; background: var(--color-warning-soft); color: #6a5321; }
.org-status--approved { background: var(--color-success-soft); color: var(--color-success); }
.org-status--rejected, .org-status--suspended { background: var(--color-danger-soft); color: var(--color-danger); }

/* ---- Requests (RFQ / preorder) ---------------------------------------------------- */
.rfq-page { display: grid; gap: var(--space-5); }
.rfq-kind { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.rfq-kind label { display: grid; gap: 4px; padding: 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; background: var(--color-surface); }
.rfq-kind label:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.rfq-kind input { accent-color: var(--color-primary); }
.rfq-kind strong { font-size: 15px; }
.rfq-kind span { font-size: 13px; color: var(--color-text-muted); }
.rfq-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.rfq-items th, .rfq-items td { padding: 8px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.rfq-items td.num, .rfq-items th.num { text-align: right; white-space: nowrap; }
.rfq-table-wrap { overflow-x: auto; }
.rfq-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; background: var(--color-surface-alt); color: var(--color-text); white-space: nowrap; }
.rfq-status--SUBMITTED, .rfq-status--UNDER_REVIEW { background: var(--color-warning-soft); color: #6a5321; }
.rfq-status--QUOTED, .rfq-status--PO_RECEIVED { background: #e6eef9; color: #1d4f91; }
.rfq-status--CONFIRMED { background: var(--color-success-soft); color: var(--color-success); }
.rfq-status--DECLINED, .rfq-status--CANCELLED { background: var(--color-danger-soft); color: var(--color-danger); }
.rfq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.rfq-card { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.rfq-card:hover, .rfq-card.is-active { border-color: var(--color-primary); }
.rfq-card__top { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.rfq-card__ref { font-family: var(--font-mono); font-weight: 700; }
.rfq-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rfq-docs li { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: 14px; padding: 8px 10px; background: var(--color-bg); border-radius: var(--radius-sm); }
.rfq-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.rfq-events li { padding-left: 12px; border-left: 3px solid var(--color-border); }
.rfq-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.rfq-tabs button { border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.rfq-tabs button[aria-pressed="true"] { background: var(--color-navy-deep); border-color: var(--color-navy-deep); color: #fff; }
.rfq-layout { display: grid; gap: var(--space-5); }
@media (min-width: 980px) { .rfq-layout { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: start; } }
.rfq-detail { display: grid; gap: var(--space-4); }
.rfq-detail dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 14px; }
.rfq-detail dt { color: var(--color-text-muted); }
.rfq-detail dd { margin: 0; overflow-wrap: anywhere; }
.rfq-upload { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: end; }
.rfq-upload .field { flex: 1 1 200px; margin: 0; }
.rfq-success { text-align: center; display: grid; gap: var(--space-3); justify-items: center; padding: var(--space-6) var(--space-4); }
.org-admin__row { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.org-admin__row:last-child { border-bottom: 0; }
.org-admin__actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.org-admin__actions input { flex: 1 1 180px; min-width: 0; }
.rfq-page input[type="date"] {
  width: 100%; font: inherit; color: inherit; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface);
}
@media (hover: none) and (pointer: coarse) { .rfq-page input[type="date"] { font-size: 16px; } }

/* ---- Notifications bell (buyers) ------------------------------------------------- */
.notif { position: relative; }
.notif__bell {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border);
}
.notif__bell:hover { color: var(--color-primary); border-color: var(--color-primary); }
.notif__bell:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.notif__badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--color-flag-red); color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center; line-height: 1;
  box-shadow: 0 0 0 2px var(--color-surface);
}
.notif__badge[hidden] { display: none; }
/* Something new: the bell swings and the red flag pulses. */
.notif--ring .notif__icon { transform-origin: 50% 2px; animation: notif-swing 2.4s ease-in-out infinite; color: var(--color-flag-red); }
.notif--ring .notif__badge { animation: notif-pulse 1.6s ease-out infinite; }
@keyframes notif-swing {
  0%, 55%, 100% { transform: rotate(0); }
  5% { transform: rotate(18deg); } 12% { transform: rotate(-16deg); } 19% { transform: rotate(12deg); }
  26% { transform: rotate(-8deg); } 33% { transform: rotate(4deg); } 40% { transform: rotate(0); }
}
@keyframes notif-pulse {
  0% { box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 2px rgba(206, 17, 38, 0.55); }
  70% { box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 10px rgba(206, 17, 38, 0); }
  100% { box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 2px rgba(206, 17, 38, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .notif--ring .notif__icon, .notif--ring .notif__badge { animation: none; }
}
.notif__panel {
  position: absolute; top: calc(100% + 10px); right: -50px; z-index: 70;
  width: min(360px, calc(100vw - 24px)); max-height: min(70vh, 520px);
  display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(16, 36, 58, 0.22); overflow: hidden;
}
.notif__panel[hidden] { display: none; }
.notif__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--color-border); background: #fbf8f1; }
.notif__list { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.notif__item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--color-border); color: var(--color-text); }
.notif__item:hover { background: var(--color-surface-alt); text-decoration: none; }
.notif__item.is-unread { background: #fff8e8; }
.notif__thumb { flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface-alt); display: grid; place-items: center; }
.notif__thumb img { width: 100%; height: 100%; object-fit: cover; }
.notif__ph { color: var(--color-gold); font-size: 20px; }
.notif__text { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.notif__text strong { font-size: 13.5px; overflow-wrap: anywhere; }
.notif__body { color: var(--color-text-muted); }
.notif__time { color: var(--color-text-muted); font-size: 12px; }
.notif__new { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--color-flag-red); color: #fff; font-size: 10.5px; font-weight: 700; }
.notif__empty { padding: 16px 14px; margin: 0; }
.notif__foot { display: block; text-align: center; padding: 10px; font-weight: 600; font-size: 13.5px; border-top: 1px solid var(--color-border); }
@media (max-width: 640px) {
  .notif__bell { width: 32px; height: 32px; }
  .notif__panel { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
}

/* ---- Feedback ---------------------------------------------------------------------- */
.fb-layout { display: grid; gap: var(--space-5); }
@media (min-width: 980px) { .fb-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.fb-rating { border: 0; padding: 0; margin: 0; }
.fb-rating__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.fb-rating__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-rating__stars label { font-size: 30px; line-height: 1; color: #d6cfbf; cursor: pointer; padding: 2px; }
.fb-rating__stars label:hover, .fb-rating__stars label:hover ~ label,
.fb-rating__stars input:checked ~ label { color: var(--color-gold); }
.fb-rating__stars input:focus-visible + label { outline: 2px solid var(--color-primary); border-radius: 4px; }
.fb-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.fb-admin__item, .fb-item { padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); display: grid; gap: 6px; }
.fb-admin__top { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.fb-admin__item p, .fb-item p { margin: 0; }
.fb-admin__msg { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.fb-admin__reply { background: var(--color-primary-soft); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13.5px; overflow-wrap: anywhere; }
.fb-admin__actions { display: grid; gap: 8px; }
.fb-status { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--color-surface-alt); }
.fb-status--NEW { background: var(--color-warning-soft); color: #6a5321; }
.fb-status--READ { background: #e6eef9; color: #1d4f91; }
.fb-status--RESOLVED { background: var(--color-success-soft); color: var(--color-success); }
.fb-stars { color: var(--color-gold); letter-spacing: 1px; }
.fb-stars__off { color: #d6cfbf; }

/* ---- Document review (requests) ----------------------------------------------------- */
.doc-review { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.doc-review--pending { background: var(--color-warning-soft); color: #6a5321; }
.doc-review--approved { background: var(--color-success-soft); color: var(--color-success); }
.doc-review--rejected { background: var(--color-danger-soft); color: var(--color-danger); }
.doc-review__actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; flex-basis: 100%; }
.doc-review__actions input { flex: 1 1 160px; min-width: 0; }

/* ---- Admin Office ------------------------------------------------------------------- */
.office { display: grid; gap: var(--space-4); }
.office .tabs { margin-bottom: 0; }
.office-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.office-tabs .tab { white-space: nowrap; }
.office-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--color-flag-red); color: #fff; font-size: 11px; font-weight: 700; }
.office-count:empty, .office-count[hidden] { display: none; }
.office-panel { display: grid; gap: var(--space-4); }
.office-panel[hidden] { display: none; }
.office-filter { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: end; }
.office-filter .field { margin: 0; flex: 1 1 150px; }
.office-filter__grow { flex: 3 1 220px !important; }
.office-filter__actions { display: flex; gap: var(--space-2); }
.office-filter__note { flex-basis: 100%; margin: 0; }
.office-filter--plain { padding: 0; }
.office-filter input[type="date"] {
  width: 100%; font: inherit; color: inherit; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface);
}
.office-quick { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.office-quick button { border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.office-quick button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.office-inline-select { width: auto; min-width: 150px; }
.office-grid { display: grid; gap: var(--space-4); }
@media (min-width: 980px) { .office-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.office-chart { display: flex; align-items: stretch; gap: 6px; height: 220px; padding: 8px 4px 0; overflow-x: auto; border-bottom: 1px solid var(--color-border); }
.office-chart__col { flex: 1 0 28px; max-width: 70px; display: grid; grid-template-rows: 1fr auto; gap: 4px; }
.office-chart__bars { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.office-chart__bar { flex: 1; min-height: 2px; background: var(--color-primary); border-radius: 4px 4px 0 0; }
.office-chart__bar--delivered { background: var(--color-gold); }
.office-chart__label { font-size: 10.5px; color: var(--color-text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.office-legend { margin: 0; font-size: 12.5px; color: var(--color-text-muted); display: flex; gap: 6px; align-items: center; }
.office-legend span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.office-legend__booked { background: var(--color-primary); }
.office-legend__delivered { background: var(--color-gold); }
.office-table td, .office-table th { white-space: normal; }
.office-approvals { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.office-approval { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.office-approval__main { min-width: 0; flex: 1 1 280px; overflow-wrap: anywhere; }
.office-approval__actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex: 1 1 280px; justify-content: flex-end; }
.office-approval__actions input { flex: 1 1 160px; min-width: 0; }
.office-pager { justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }
.office-print-note { display: none; }
@media print {
  .site-header, .site-footer, .office-tabs, .office-filter, .office-exports, .office__links, .office-alerts { display: none !important; }
  .office-panel[hidden] { display: none !important; }
  .office-print-note { display: block; }
  .office-chart { height: 160px; }
}
/* Grid tracks must not grow to fit wide tables: those scroll inside .table-wrap. */
.office, .office-panel, .fb-layout { grid-template-columns: minmax(0, 1fr); }
.office > *, .office-panel > *, .office .stack > * { min-width: 0; }
@media (min-width: 980px) { .fb-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.office .stat-row { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.office .stat { display: grid; gap: 4px; align-content: start; }
.office .stat__value { font-size: clamp(19px, 2.2vw, 24px); overflow-wrap: anywhere; }


/* ---- Landing page E-Book button: floating, shifting green, aura waves and a
   "click me" nudge. Float lives on the wrapper so the hover lift on the
   button itself still works. All motion stops for reduced-motion users. ---- */
.lp-cta-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
  margin: 8px 0 20px;
  animation: lpCtaFloat 2.8s ease-in-out infinite;
}
/* The aura rings belong to the button alone (not the "click me" label). */
.lp-cta-ring { position: relative; display: inline-flex; isolation: isolate; }
.lp-cta-ring::before,
.lp-cta-ring::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px -14px;
  border-radius: 18px;
  border: 1px solid rgba(112, 255, 222, 0.72);
  box-shadow: 0 0 18px rgba(19, 220, 181, 0.36), inset 0 0 18px rgba(19, 220, 181, 0.12);
  pointer-events: none;
  animation: lpCtaAura 2.5s ease-out infinite;
}
.lp-cta-ring::after {
  animation-delay: 1.25s;
  border-color: rgba(232, 199, 125, 0.78);
  box-shadow: 0 0 20px rgba(227, 189, 105, 0.3);
}
.lp-hero .lp-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  background: linear-gradient(115deg, #087d70, #099782, #087d70);
  background-size: 220% 100%;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  animation: lpCtaColour 5s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lp-hero .lp-cta .lp-hero__cta-arrow { font-size: 20px; line-height: 1; transition: transform 0.25s ease; }
.lp-hero .lp-cta:hover,
.lp-hero .lp-cta:focus-visible {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.28), 0 0 24px rgba(37, 240, 197, 0.26);
  text-decoration: none;
}
.lp-hero .lp-cta:hover .lp-hero__cta-arrow,
.lp-hero .lp-cta:focus-visible .lp-hero__cta-arrow { transform: translateX(4px); }
.lp-hero .lp-cta:focus-visible { outline: 3px solid #ffe4a2; outline-offset: 5px; }

/* "click me" - beside the button, its arrow aimed back at it. Never clickable. */
.lp-cta-nudge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 18px;
  color: #ffe6ad;
  font: italic 700 15px Georgia, "Times New Roman", serif;
  white-space: nowrap;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  user-select: none;
  transform: translateY(-14px);
  animation: lpCtaNudge 1.6s ease-in-out infinite;
}
.lp-cta-nudge__arrow { flex: 0 0 auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); }

@keyframes lpCtaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes lpCtaColour {
  0%, 100% { background-position: 0% 50%; filter: saturate(1); }
  50% { background-position: 100% 50%; filter: saturate(1.18); }
}
@keyframes lpCtaAura {
  0% { transform: scale(0.96); opacity: 0.85; }
  100% { transform: scale(1.14, 1.28); opacity: 0; }
}
@keyframes lpCtaNudge { 0%, 100% { transform: translateY(-14px); } 50% { transform: translateY(-18px); } }

/* Phones: the label moves under the button and its arrow points up at it. */
@media (max-width: 560px) {
  .lp-cta-wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lp-cta-nudge { margin-left: 14px; transform: none; animation-name: lpCtaNudgeUp; }
  .lp-cta-nudge__arrow { transform: rotate(80deg); }
  .lp-hero .lp-cta { font-size: 14.5px; padding: 14px 18px; }
}
@keyframes lpCtaNudgeUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .lp-cta-wrap, .lp-cta-ring::before, .lp-cta-ring::after, .lp-hero .lp-cta, .lp-cta-nudge { animation: none !important; }
  .lp-cta-ring::before, .lp-cta-ring::after { display: none; }
  .lp-hero .lp-cta { transition: none; }
}

.notif__ph--order { color: #0f5c40; background: #e3f1ea; }

/* ---- Product badges (Best Seller / Trending / New Arrival) -------------------------
   Small dark-emerald pill with a thin gold border, top-left of the image. */
.pbadge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d3b2b, #14523a);
  border: 1px solid rgba(214, 178, 102, 0.9);
  color: #f1d48c;
  font-family: var(--font-sans, Inter, Arial, sans-serif);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; line-height: 1.2;
  text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(8, 30, 22, 0.28);
  pointer-events: none;
}
.pbadge svg { flex: 0 0 auto; }
.pbadge--trending { color: #f4dfa8; }
.pbadge--new { background: linear-gradient(135deg, #f3e2b3, #e2c27e); color: #0d3b2b; border-color: rgba(13, 59, 43, 0.35); }
/* The badge gets the top row to itself; the code and brand tags move to the row below. */
.pbadge ~ .gc-card__code, .pbadge ~ .gc-card__badge { top: 38px; }
.dc-card__media { position: relative; }
.dc-card__media .pbadge { top: 8px; left: 8px; font-size: 9.5px; padding: 2px 7px 2px 6px; }
.pd-stage .pbadge { top: 14px; left: 14px; font-size: 11.5px; padding: 4px 11px 4px 9px; }
@media (max-width: 480px) {
  .pbadge { top: 6px; left: 6px; font-size: 9px; padding: 2px 6px 2px 5px; gap: 3px; }
  .pbadge svg { width: 9px; height: 9px; }
  .pbadge ~ .gc-card__code, .pbadge ~ .gc-card__badge { top: 28px; }
}

/* The brand tag (right) truncates if long -- the product code (left) never
   does: it's a short, bounded, admin-assigned ID, not free text, so cutting
   it off would make it unreadable rather than just visually tidy. */
.gc-card .gc-card__badge {
  max-width: calc(50% - 14px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 7.5px; letter-spacing: 0.03em;
  padding: 2px 6px; line-height: 1.5;
}
.gc-card .gc-card__code { font-size: var(--gc-code-size, 13px); padding: 4px 10px; }

/* ---- Landing page: featured rows -------------------------------------------------- */
@property --fire-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.dc-row__head h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.dc-row__icon { display: inline-grid; place-items: center; align-self: center; }
.dc-row__note { font-family: var(--font-sans, Inter, sans-serif); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: none; color: var(--color-text-muted); }

/* Best Sellers - fiery hot */
.dc-row--hot .dc-row__head { border-bottom-color: rgba(255, 112, 32, 0.28); overflow: visible; }
.dc-row--hot .dc-row__head::after {
  width: 120px; height: 3px; bottom: -2px; border-radius: 3px;
  background: linear-gradient(90deg, #ff3d00, #ff9100, #ffd54f, #ff9100, #ff3d00); background-size: 200% 100%;
  animation: dcFireSlide 2.2s linear infinite;
}
.dc-row--hot .dc-row__title {
  background: linear-gradient(90deg, #b3300a, #ff5a00, #ffb300, #ff5a00, #b3300a); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: dcFireSlide 3.2s linear infinite;
}
.dc-row__icon--flame { color: #ff5a00; filter: drop-shadow(0 0 6px rgba(255, 110, 0, 0.75)); animation: dcFlicker 0.9s ease-in-out infinite alternate; }
.dc-row__icon--flame svg { width: 24px; height: 24px; }
.dc-embers { position: absolute; left: 0; bottom: 0; width: 220px; height: 70px; pointer-events: none; overflow: visible; }
.dc-embers i {
  position: absolute; bottom: 0; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, #ffe08a 0%, #ff8a00 55%, rgba(255, 61, 0, 0) 75%);
  opacity: 0; animation: dcEmber 2.8s ease-in infinite;
}
.dc-embers i:nth-child(1) { left: 6%; animation-delay: 0s; }
.dc-embers i:nth-child(2) { left: 18%; animation-delay: .5s; width: 4px; height: 4px; }
.dc-embers i:nth-child(3) { left: 30%; animation-delay: 1.1s; }
.dc-embers i:nth-child(4) { left: 42%; animation-delay: 1.6s; width: 3px; height: 3px; }
.dc-embers i:nth-child(5) { left: 54%; animation-delay: .8s; }
.dc-embers i:nth-child(6) { left: 66%; animation-delay: 2.1s; width: 4px; height: 4px; }
.dc-embers i:nth-child(7) { left: 78%; animation-delay: 1.4s; }
.dc-embers i:nth-child(8) { left: 90%; animation-delay: .2s; width: 3px; height: 3px; }
.dc-card--hot {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    conic-gradient(from var(--fire-angle), #ff3d00, #ff9100, #ffd54f, #ff6d00, #ff3d00) border-box;
  animation: dcFireSpin 3.5s linear infinite, dcHeat 2.4s ease-in-out infinite;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.dc-card--hot .dc-card__media img { transition: transform .4s ease; }
.dc-card--hot:hover { transform: translateY(-5px) scale(1.025); border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 140, 0, .2), 0 14px 34px rgba(255, 90, 0, .35), 0 0 26px rgba(255, 170, 0, .45); }
.dc-card--hot:hover .dc-card__media img { transform: scale(1.07); }
.dc-card--hot .dc-card__price { color: #c2410c; }
.dc-hot__rank { background: linear-gradient(135deg, #7a1d05, #c2410c 55%, #f97316); border-color: #ffd36b; color: #fff4d6; }
.dc-card--hot:hover .dc-hot__rank { animation: dcBounce .5s ease 1; }
.dc-hot__rank svg { color: #ffd36b; }

/* New Arrivals - gentle shimmer, interactive tilt */
.dc-row__icon--spark { color: #c9a45c; animation: dcTwinkle 1.8s ease-in-out infinite; }
.dc-row__icon--spark svg { width: 20px; height: 20px; }
.dc-row--new .dc-row__head::after { width: 96px; background: linear-gradient(90deg, #0f5c40, #c9a45c); }
.dc-card--new {
  position: relative; border-color: rgba(201, 164, 92, 0.55);
  transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}
.dc-card--new .dc-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
  transform: translateX(-120%); animation: dcSheen 3.6s ease-in-out infinite;
}
.dc-card--new:nth-child(2) .dc-card__media::after { animation-delay: .5s; }
.dc-card--new:nth-child(3) .dc-card__media::after { animation-delay: 1s; }
.dc-card--new:nth-child(4) .dc-card__media::after { animation-delay: 1.5s; }
.dc-card--new:nth-child(5) .dc-card__media::after { animation-delay: 2s; }
.dc-card--new:hover { --lift: -4px; border-color: #c9a45c; box-shadow: 0 14px 30px rgba(15, 61, 44, .18), 0 0 0 3px rgba(201, 164, 92, .18); }
.dc-card--new .pbadge--new { animation: dcGlowGold 2.4s ease-in-out infinite; }

@keyframes dcFireSlide { to { background-position: -200% 0; } }
@keyframes dcFireSpin { to { --fire-angle: 360deg; } }
@keyframes dcHeat {
  0%, 100% { box-shadow: 0 4px 14px rgba(255, 100, 0, .18), 0 0 10px rgba(255, 160, 0, .18); }
  50% { box-shadow: 0 8px 22px rgba(255, 90, 0, .32), 0 0 20px rgba(255, 170, 0, .38); }
}
@keyframes dcFlicker {
  0% { transform: scale(1) rotate(-4deg); opacity: .9; }
  50% { transform: scale(1.12, 1.2) rotate(3deg); opacity: 1; }
  100% { transform: scale(.96, 1.06) rotate(-2deg); opacity: .85; }
}
@keyframes dcEmber {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(12px, -64px) scale(.3); opacity: 0; }
}
@keyframes dcBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } 70% { transform: translateY(1px); } }
@keyframes dcTwinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.25) rotate(20deg); opacity: .75; } }
@keyframes dcSheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes dcGlowGold { 0%, 100% { box-shadow: 0 2px 8px rgba(8, 30, 22, .25); } 50% { box-shadow: 0 0 0 3px rgba(226, 194, 126, .45), 0 2px 10px rgba(201, 164, 92, .6); } }

@media (prefers-reduced-motion: reduce) {
  .dc-row--hot .dc-row__head::after, .dc-row--hot .dc-row__title, .dc-row__icon--flame, .dc-embers i, .dc-card--hot,
  .dc-row__icon--spark, .dc-card--new .dc-card__media::after, .dc-card--new .pbadge--new, .dc-card--hot:hover .dc-hot__rank { animation: none !important; }
  .dc-embers { display: none; }
  .dc-card--new { transform: none !important; }
}

/* ---- Viber pop-up (app.js) ---------------------------------------------------- */
.viber-dialog { max-width: 420px; text-align: center; align-items: center; }
.viber-dialog__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #f1eafa; color: #7360f2;
}
.viber-dialog h2 { margin: 0; font-size: 21px; }
.viber-dialog p { margin: 0; }
.viber-dialog__actions { display: grid; gap: var(--space-2); width: 100%; margin-top: var(--space-2); }
.viber-dialog__actions .btn { justify-content: center; }

/* ---- Track order: sign in first ---------------------------------------------- */
.track-signin { text-align: center; align-items: center; justify-items: center; margin-top: var(--space-6); margin-bottom: var(--space-6); }
.track-signin__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-primary-soft, #e6f2ec); color: var(--color-primary);
}
.track-signin h1 { margin: 0; }
.track-signin__actions { justify-content: center; }

/* ---- Policy pages: draft banner ----------------------------------------------- */
.policy-body .policy-draft {
  background: #fff6df; border: 1px solid #e8c879; border-radius: 10px; padding: var(--space-3) var(--space-4);
}

/* ---- Contact us ------------------------------------------------------------------ */
body.contact-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 164, 92, 0.18) 0, transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(15, 92, 64, 0.14) 0, transparent 34%),
    radial-gradient(circle at 70% 90%, rgba(115, 96, 242, 0.08) 0, transparent 40%),
    linear-gradient(180deg, #f7f1e3 0%, #fbf8f1 55%, #f4efe4 100%);
}
.contact { max-width: 1040px; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-7); }
.contact-hero {
  position: relative; overflow: hidden; color: #f7f1e3; border-radius: 22px;
  padding: var(--space-6) var(--space-6) calc(var(--space-6) + 10px);
  background:
    radial-gradient(circle at 92% 20%, rgba(201, 164, 92, 0.35) 0, transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #0f3d2c 0%, #0f5c40 100%);
  border-bottom: 4px solid #c9a45c; box-shadow: 0 18px 40px rgba(15, 61, 44, 0.18);
}
.contact-hero__kicker {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #e6c98a;
}
.contact-hero h1 {
  margin: 0 0 10px; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: clamp(32px, 5vw, 46px);
}
.contact-hero p:last-child { margin: 0; max-width: 620px; font-size: 16px; line-height: 1.6; color: #e9e3d3; }
.contact-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4);
  margin-top: calc(var(--space-5) * -1 + 4px); padding: 0 var(--space-4); position: relative;
}
.contact-card {
  background: #fffdf8; border: 1px solid #e6dcc6; border-radius: 18px; padding: var(--space-5);
  box-shadow: 0 12px 28px rgba(29, 42, 58, 0.08); display: flex; flex-direction: column; gap: 6px;
}
.contact-card h2 { margin: 6px 0 0; font-size: 18px; color: #0f3d2c; }
.contact-card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: #e6f2ec; color: #0f5c40;
}
.contact-card__icon--viber { background: #f1eafa; color: #7360f2; }
.contact-card__value { margin: 0; font-size: 20px; font-weight: 800; color: #1d2a3a; word-break: break-word; }
.contact-card__value--text { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.contact-card .muted { margin: 0; }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); }
.contact-help {
  margin-top: var(--space-6); background: rgba(255, 253, 248, 0.85); border: 1px solid #e6dcc6;
  border-radius: 18px; padding: var(--space-5) var(--space-6);
}
.contact-help h2 { margin: 0 0 var(--space-3); font-family: "Playfair Display", Georgia, serif; color: #0f3d2c; }
.contact-help ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; line-height: 1.6; }
.contact-help__links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
@media (max-width: 640px) {
  .contact { padding: var(--space-4) var(--space-3) var(--space-6); }
  .contact-hero { padding: var(--space-5) var(--space-4) calc(var(--space-5) + 8px); border-radius: 18px; }
  .contact-cards { padding: 0; margin-top: var(--space-4); }
  .contact-help { padding: var(--space-4); }
  .contact-card__actions .btn, .contact-help__links .btn { flex: 1 1 auto; justify-content: center; }
}

/* Phones: the icons below the banner as two in the first row and the third
   centred below, with a slightly smaller size so they fit without wrapping. */
@media (max-width: 600px) {
  .lp-values__grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: center; align-items: center; gap: 14px 18px;
    padding: var(--space-4) var(--space-3);
  }
  .lp-value { gap: 8px; min-width: 0; }
  .lp-value:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; }
  .lp-value__icon { width: 34px; height: 34px; }
  .lp-value__icon svg { width: 16px; height: 16px; }
  .lp-value strong { font-size: clamp(12px, 3.4vw, 13.5px); line-height: 1.25; }
  .lp-value span:not(.lp-value__icon) { font-size: clamp(10.5px, 2.9vw, 12px); }
}

/* Cart drawer: slides in from the right and back out (the scrim fades). */
.cart-drawer__panel { transform: translateX(calc(100% + 32px)); transition: transform .34s cubic-bezier(.22, .8, .3, 1); }
.cart-drawer__scrim { opacity: 0; transition: opacity .3s ease; }
.cart-drawer.is-open .cart-drawer__panel { transform: none; }
.cart-drawer.is-open .cart-drawer__scrim { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cart-drawer__panel, .cart-drawer__scrim { transition: none; }
}

/* ---- Short screens (laptops with display scaling, small windows) ----------------
   Everything stays reachable: the cart scrolls with its buttons always held at the
   bottom of the panel, and the header / banner give the page more room. */
.cart-drawer__panel { overflow-y: auto; overscroll-behavior: contain; }
.cart-drawer__list { min-height: min(160px, 32vh); }
.cart-drawer__foot { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -8px 18px rgba(16, 36, 58, .06); }
.cart-drawer__head { position: sticky; top: 0; z-index: 2; }
@media (min-width: 900px) {
  .cart-drawer__panel { bottom: max(14px, env(safe-area-inset-bottom)); max-height: calc(100dvh - 98px); }
}
@media (max-height: 720px) {
  .cart-drawer__summary { padding-top: 8px; }
  .cart-sum { gap: 2px; font-size: 13px; margin-bottom: 6px; }
  .cart-drawer__foot { gap: 6px; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .cart-drawer__foot .btn { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
  .cart-drawer__hint { display: none; }
  .cart-line { padding-top: 8px; padding-bottom: 8px; }
}
@media (min-width: 761px) and (max-height: 720px) {
  .site-header__inner { height: 60px; }
  .site-categories__inner { padding-top: 6px; padding-bottom: 6px; }
}

/* Staff bell footer: one link per page the role may open. */
.notif__foot--links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
