/* ==========================================================================
   KIN — Baby, Kids & Mindful Parenting Storefront
   Master Stylesheet — consolidated design system

   SECTION INDEX
    1. Design tokens (:root)
    2. Foundations & accessibility
    3. Base & reset
    4. Utilities (cards, page heads)
    5. Header, announcement & mobile nav
    6. Hero (4 concept variants + shared parts)
    7. Trust strip
    8. Sections
    9. Buttons
   10. Badges
   11. Product card & grid
   12. Product detail page
   13. Cart page
   14. Forms & account area
   15. Blog & article
   16. Category toolbar (filter chips)
   17. Checkout (slim header + panel)
   18. Cart drawer
   19. Quantity stepper
   20. Toast
   21. Footer
   22. Index conversion blocks (categories / bundle / reviews)
   23. Responsive (1000 / 900 / 640)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Font */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Palette — Original Kin playful pastel & calm studio daylight */
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-sage: #f4f9fb;
  --surface-sage-soft: #eef7fa;
  --surface-media: #f7fafc;
  --ink: #2b343b;
  --charcoal: #2b343b;
  --muted: #6b7780;
  --sage: #77d0e4;
  --sage-dark: #4da5bd;
  --sage-light: #eef8fa;
  --rose: #f37d8a;
  --rose-dark: #cf5966;
  --rose-light: #fceff1;
  --oat: #fef8ee;
  --oat-dark: #faeecf;

  /* Borders */
  --border: #e2e8ea;
  --border-light: #edf2f5;
  --border-card: #e2e8eb;
  --border-hover: #77d0e4;
  --border-input: #ccd6da;
  --border-input-hover: #77d0e4;
  --border-sage-soft: #cde4ec;
  --border-qty: #d0dce0;
  --border-icon-hover: #cbe3eb;

  /* Semantic status */
  --color-success: #57a477;
  --color-success-bg: #eef8f3;
  --color-danger: #cf5966;
  --color-danger-bg: #fceff1;
  --color-info: #4da5bd;
  --color-info-bg: #eef8fa;
  --color-warning: #c39532;
  --color-warning-bg: #fdf8ee;

  /* On-dark footer */
  --footer-bg: #25282a;
  --footer-strong: #ffffff;
  --footer-fg: #d2d8de;
  --footer-muted: #959fa7;
  --footer-faint: #727c84;
  --footer-accent: #f37d8a;
  --footer-hairline: rgba(255, 255, 255, 0.1);

  /* Misc color atoms */
  --selection-bg: #d4f1f8;
  --focus-ring-color: rgba(119, 208, 228, 0.42);
  --backdrop-color: rgba(26, 36, 42, 0.48);
  --shadow-nav: 0 14px 24px rgba(35, 55, 68, 0.08);
  --shadow-btn: 0 3px 0 #4da5bd;
  --shadow-btn-rose: 0 3px 0 #cf5966;
  --shadow-btn-hover: 0 7px 18px rgba(77, 165, 189, 0.32);
  --ring-input: rgba(119, 208, 228, 0.18);
  --star: #ffd33b;
  --overlay-ink: rgba(28, 38, 44, 0.72);

  /* Layout */
  --container: 1240px;
  --container-narrow: 720px;
  --container-checkout: 640px;
  --gutter: 28px;
  --header-h: 82px;
  --section-pad-y: 76px;
  --hero-pad-y: 76px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;

  /* Fluid type scale */
  --fs-hero: clamp(2.45rem, 1.6rem + 3.4vw, 3.9rem);
  --fs-h1: clamp(1.75rem, 1.45rem + 1.1vw, 2.35rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 1.9vw, 2.65rem);
  --fs-2xl: 1.75rem;
  --fs-xl: 1.25rem;
  --fs-lg: 1.125rem;
  --fs-md: 0.9375rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-xxs: 0.75rem;
  --lh-body: 1.65;

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  /* Shadows (ink-based) */
  --shadow-subtle: 0 2px 8px rgba(43, 52, 59, 0.04);
  --shadow-card: 0 10px 30px rgba(43, 52, 59, 0.06);
  --shadow-hover: 0 16px 34px rgba(43, 52, 59, 0.10);
  --shadow-drawer: -12px 0 40px rgba(26, 36, 42, 0.16);

  /* Z-index scale */
  --z-header: 50;
  --z-backdrop: 90;
  --z-drawer: 100;
  --z-toast: 110;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Hero gradient stops (per-concept design constants) */
  --gutter-mobile: 18px;
  --hero-grad-baby: linear-gradient(125deg, #eaf6fa 0%, #ffffff 52%, #fdf0f3 100%);
  --hero-grad-stroller: linear-gradient(125deg, #edf8f3 0%, #ffffff 58%, #eef8fb 100%);
  --hero-grad-montessori: linear-gradient(125deg, #fdf8ee 0%, #ffffff 58%, #eef8fb 100%);
  --hero-grad-maternity: linear-gradient(125deg, #fdeef1 0%, #ffffff 58%, #eef8fb 100%);
  --toast-dot-success: #8dd6aa;
}

/* --------------------------------------------------------------------------
   2. FOUNDATIONS & ACCESSIBILITY
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 3px;
}

::selection {
  background: var(--selection-bg);
  color: var(--ink);
}

a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

body.no-scroll {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: calc(var(--z-toast) + 10);
  background: var(--ink);
  color: var(--footer-strong);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. BASE & RESET
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--canvas);
  color: var(--ink);
  line-height: var(--lh-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
h1 {
  font-weight: 800;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   4. UTILITIES
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  padding: var(--space-6);
}

.page-head {
  margin-bottom: var(--space-10);
}
.page-head-center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}
.page-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.page-subtitle {
  color: var(--muted);
  font-size: var(--fs-md);
  margin-bottom: var(--space-8);
}

.cta-center {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.link-muted {
  color: var(--muted);
  font-size: var(--fs-sm);
  transition: color 0.15s ease;
}
.link-muted:hover {
  color: var(--sage);
}

/* --------------------------------------------------------------------------
   5. HEADER, ANNOUNCEMENT & MOBILE NAV
   -------------------------------------------------------------------------- */
.announcement {
  background: var(--sage-dark);
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-align: center;
  font-weight: 500;
}
.announcement a {
  color: inherit;
}
.announcement strong {
  color: var(--footer-strong);
  font-weight: 700;
}
.announcement-icon {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
}

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(58, 74, 99, 0.03);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--sage-light);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-name {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name span {
  color: var(--rose);
}
.brand-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
  position: relative;
  padding: 12px 0;
}
.nav-link:hover,
.nav-link.active {
  color: var(--sage);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sage);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover {
  background: var(--sage-light);
  border-color: var(--border-icon-hover);
  color: var(--sage-dark);
}
.cart-badge {
  position: absolute;
  top: 1px;
  right: 0;
  background: var(--rose);
  color: var(--surface);
  font-size: 0.6875rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger — rendered in HTML, hidden until mobile */
.menu-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   6. HERO (index / index2 / index3 / index4)
   -------------------------------------------------------------------------- */
.hero-baby,
.hero-stroller,
.hero-montessori,
.hero-maternity {
  padding: var(--hero-pad-y) 0 calc(var(--hero-pad-y) + 8px);
  position: relative;
  overflow: hidden;
}
.hero-baby {
  background: var(--hero-grad-baby);
}
.hero-stroller {
  background: var(--hero-grad-stroller);
}
.hero-montessori {
  background: var(--hero-grad-montessori);
}
.hero-maternity {
  background: var(--hero-grad-maternity);
}
.hero-baby .container,
.hero-stroller .container,
.hero-montessori .container,
.hero-maternity .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.hero-badge {
  margin-bottom: 14px;
}
.hero-title {
  font-size: var(--fs-hero);
  max-width: 680px;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: var(--space-4);
}
.hero-lede {
  color: var(--muted);
  font-size: var(--fs-lg);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--space-7);
}
.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Index-only gift/set panel */
.hero-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}
.hero-side-card-img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: var(--space-4);
}
.hero-side-card-badge {
  margin-bottom: 6px;
}
.hero-side-card-title {
  font-size: var(--fs-xl);
  margin-bottom: 6px;
}
.hero-side-card-desc {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: 14px;
}
.hero-side-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.hero-side-card-price {
  font-size: var(--fs-xl);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   7. TRUST STRIP
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--surface-sage);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 8px;
}
.trust-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--sage);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-text strong {
  display: block;
  font-size: 0.76rem;
  color: var(--ink);
}
.trust-text span {
  font-size: 0.71rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. SECTIONS
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-pad-y) 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
  flex-wrap: wrap;
  gap: var(--space-4);
}
@media (max-width: 1024px) {
  .section-head > div,
  .section-head .stack {
    text-align: left;
  }
}
@media (max-width: 900px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sage-dark);
  margin-bottom: 6px;
  display: block;
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
}
.section-head-link {
  font-weight: 700;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.section-head-link:hover {
  color: var(--sage-dark);
}

/* --------------------------------------------------------------------------
   9. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: inherit;
  font-weight: 700;
  font-size: var(--fs-md);
  min-height: 46px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  background: var(--sage);
  color: #ffffff;
  border: 1px solid var(--sage-dark);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn svg {
  flex-shrink: 0;
}
.btn-outline {
  background: var(--surface);
  color: var(--sage-dark);
  border: 1px solid var(--sage);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--sage-light);
  border-color: var(--sage-dark);
  color: var(--sage-dark);
  box-shadow: none;
}
.btn-rose {
  background: var(--rose);
  color: #ffffff;
  border-color: var(--rose-dark);
  box-shadow: var(--shadow-btn-rose);
}
.btn-rose:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  color: #ffffff;
}
.btn-sm {
  min-height: 36px;
  padding: 7px 13px;
  font-size: var(--fs-xs);
  border-radius: 10px;
}
.btn-block {
  width: 100%;
}
.btn--grow {
  flex: 1;
  height: 48px;
}

/* Add-to-cart confirmed state (JS toggles the class) */
[data-add-cart].is-added {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   10. BADGES
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 5px 9px;
  border-radius: var(--radius-full);
}
.badge-sni {
  background: var(--sage-light);
  color: var(--sage-dark);
}
.badge-oeko {
  background: var(--rose-light);
  color: var(--rose-dark);
}
.badge-oat {
  background: var(--oat);
  color: var(--color-warning);
}

/* --------------------------------------------------------------------------
   11. PRODUCT CARD & GRID
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}
.product-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-media);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-age-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--sage-dark);
  background: var(--sage-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}
.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin: 2px 0 4px;
}
.product-card .product-rating .stars {
  color: var(--star, #ffd33b);
}
.product-card .product-rating strong {
  font-size: 11px;
}
.product-card .product-rating .product-rating-count {
  color: var(--muted, #6b7780);
  font-size: 11px;
}
.product-title {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}
.product-title a:hover {
  color: var(--sage);
}
.product-desc {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: 14px;
  flex: 1;
  line-height: 1.55;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 13px;
  border-top: 1px solid var(--border-light);
}
.product-price {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   12. PRODUCT DETAIL PAGE
   -------------------------------------------------------------------------- */
.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
}
.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: var(--space-4);
  aspect-ratio: 1;
  background: var(--oat);
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: var(--space-3);
}
.thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  background: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.thumb-btn:hover {
  transform: translateY(-2px);
}
.thumb-btn.is-active {
  border-color: var(--sage);
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-badges {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.product-detail-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: var(--space-3);
}
.product-detail-price {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}
.product-detail-desc {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.variant-label {
  display: block;
  margin-bottom: var(--space-3);
}
.variant-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.variant-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: var(--fs-xs);
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.variant-btn:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}
.variant-btn.is-selected {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--surface);
}
.product-buy-row {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-7);
}

/* Product info tabs & specification table */
.product-tabs {
  margin-top: var(--space-2);
}
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover {
  color: var(--ink);
}
.tab-btn.is-active {
  color: var(--sage-dark);
  border-bottom-color: var(--sage);
}
.tab-panel {
  padding-top: var(--space-6);
}
.tab-panel[hidden] {
  display: none;
}
.tab-prose {
  max-width: 72ch;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.75;
}
.tab-prose p + p {
  margin-top: var(--space-3);
}
.tab-prose strong {
  color: var(--ink);
}
.tab-prose ul {
  list-style: disc;
  padding-left: 1.3em;
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.spec-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 760px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.spec-table th {
  width: 38%;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-table td {
  color: var(--ink);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

/* Product review summary row */
.rating-summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.rating-score {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--sage-dark);
}
.rating-count {
  font-size: var(--fs-xs);
  color: var(--muted);
}

@media (max-width: 640px) {
  .tab-btn {
    padding: var(--space-3);
  }
  .spec-table th {
    width: 44%;
  }
  .spec-table th,
  .spec-table td {
    padding: var(--space-3) var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   13. CART PAGE
   -------------------------------------------------------------------------- */
.cart-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
.cart-panel {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-subtle);
}
.cart-panel-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}
.cart-line {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}
.cart-line:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cart-line-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--oat);
}
.cart-line-body {
  flex: 1;
  min-width: 0;
}
.cart-line-name {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.cart-line-meta {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.cart-line-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.btn-remove {
  background: none;
  border: none;
  color: var(--color-danger);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 700;
  cursor: pointer;
  padding: var(--space-1);
  transition: color 0.15s ease;
}
.btn-remove:hover {
  color: var(--color-danger-bg);
  text-decoration: underline;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  font-size: var(--fs-md);
}
.cart-summary-row--free {
  color: var(--color-success);
  font-weight: 700;
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-lg);
  font-weight: 800;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  margin-bottom: var(--space-4);
}
.cart-checkout-cta {
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   14. FORMS & ACCOUNT AREA
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: var(--fs-md);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:hover {
  border-color: var(--border-input-hover);
}
.form-control:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px var(--ring-input);
}
textarea.form-control {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.form-control[readonly] {
  background: var(--canvas);
  color: var(--muted);
}

.account-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-7);
  margin-top: 42px;
}
.account-sidebar {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  padding: var(--space-4);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.account-user {
  display: block;
  font-size: var(--fs-md);
  font-weight: 800;
}
.account-member {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--ink);
  margin-bottom: var(--space-1);
  transition: background 0.15s ease, color 0.15s ease;
}
.account-nav-link svg {
  flex-shrink: 0;
}
.account-nav-link.active,
.account-nav-link:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
}
.account-logout {
  color: var(--color-danger);
}
.account-logout:hover {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}
.account-main {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  padding: clamp(22px, 4vw, 38px);
  min-width: 0;
}
.account-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: var(--space-6);
}
.account-section-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}
.account-form {
  max-width: 500px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.stat-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
}
.stat-label {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: var(--space-1);
}
.stat-value {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
}
.stat-value--sage {
  color: var(--sage);
}

.order-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.order-card-items {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.order-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.order-card-courier {
  font-size: var(--fs-xs);
  color: var(--sage);
  font-weight: 700;
}
.order-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  background: var(--color-info-bg);
  color: var(--color-info);
}
.order-status--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.order-status--warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.address-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.address-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.address-card-body {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   15. BLOG & ARTICLE
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
}
.blog-card-media {
  display: block; /* block wrapper so the image renders full-bleed inside the card */
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-card-body {
  padding: var(--space-6);
}
.blog-card-badge {
  display: block;
  margin-bottom: var(--space-2);
}
.blog-card-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
  line-height: 1.35;
}
.blog-card-excerpt {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.blog-card-link {
  color: var(--sage);
  font-weight: 700;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card-link:hover {
  color: var(--sage-dark);
}

.article-container {
  max-width: var(--container-narrow);
}
.article-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.15;
}
.article-meta {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-7);
}
.article-hero-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-8);
}
.article-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
}
.article-prose p {
  margin-bottom: var(--space-5);
}
.article-prose h2 {
  font-size: var(--fs-xl);
  margin: var(--space-8) 0 var(--space-3);
}

/* --------------------------------------------------------------------------
   16. CATEGORY TOOLBAR (FILTER CHIPS)
   -------------------------------------------------------------------------- */
.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-8);
}
.chip-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 7px 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip-btn:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}
.chip-btn.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--surface);
}

/* --------------------------------------------------------------------------
   17. CHECKOUT (slim header + panel)
   -------------------------------------------------------------------------- */
.checkout-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}
.checkout-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.checkout-secure {
  font-size: var(--fs-sm);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.checkout-section {
  padding: 40px 0;
}
.checkout-narrow {
  max-width: var(--container-checkout);
  margin: 0 auto;
}
.checkout-title {
  text-align: center;
  margin-bottom: var(--space-6);
}
.checkout-card {
  background: var(--surface);
  padding: var(--space-8);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
}
.checkout-submit {
  margin-top: var(--space-2);
  padding: 16px 24px;
}

/* --------------------------------------------------------------------------
   18. CART DRAWER
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--backdrop-color);
  backdrop-filter: blur(2px);
  z-index: var(--z-backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
}
.cart-drawer.active {
  transform: translateX(0);
}
.drawer-header {
  padding: var(--space-5) var(--gutter);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-title {
  font-size: var(--fs-lg);
}
.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.drawer-close:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
}
.shipping-bar-box {
  background: var(--surface-sage-soft, #f4f9fb);
  padding: var(--space-3) var(--gutter);
  border-bottom: 1px solid var(--border);
}
[data-cart-page] .shipping-bar-box {
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-sage, #f4f9fb);
}
.shipping-bar-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.4;
}
.shipping-progress {
  height: 8px;
  padding: 0;
  border: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.shipping-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sage) 0%, var(--sage-dark) 100%);
  border-radius: var(--radius-full);
  transition: width 0.35s ease;
}
.shipping-bar-box.is-achieved .shipping-progress-fill {
  background: var(--sage-dark);
}
.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.drawer-item {
  display: flex;
  gap: 14px;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}
.drawer-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.drawer-item-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--oat);
  flex-shrink: 0;
}
.drawer-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-item-info {
  flex: 1;
  min-width: 0;
}
.drawer-item-name {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.drawer-item-meta {
  font-size: var(--fs-xxs);
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.drawer-item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.drawer-item-price {
  font-weight: 800;
}
.drawer-footer {
  padding: var(--space-5) var(--gutter);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: var(--fs-lg);
  font-weight: 800;
}
.drawer-view-link {
  display: block;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink);
  margin-top: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.drawer-view-link:hover {
  color: var(--sage);
}

/* --------------------------------------------------------------------------
   19. QUANTITY STEPPER
   -------------------------------------------------------------------------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-qty);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.qty-btn {
  width: 36px;
  min-height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--sage-dark);
  transition: background 0.15s ease;
}
.qty-btn:hover {
  background: var(--sage-light);
}
.qty-input {
  width: 34px;
  height: 36px;
  text-align: center;
  border: none;
  background: none;
  font-family: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.qty-stepper--lg {
  height: 48px;
}
.qty-stepper--lg .qty-btn {
  width: 44px;
  height: 100%;
}
.qty-stepper--lg .qty-input {
  width: 44px;
  height: 100%;
}

/* --------------------------------------------------------------------------
   20. TOAST
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 140%);
  z-index: var(--z-toast);
  max-width: min(92vw, 480px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--footer-strong);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.toast::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-light);
  flex-shrink: 0;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.toast--success::before {
  background: var(--toast-dot-success);
}
.toast--info::before {
  background: var(--sage-light);
}

/* --------------------------------------------------------------------------
   21. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 68px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-col h4 {
  color: var(--footer-strong);
  font-size: 1.0625rem;
  margin-bottom: 18px;
}
.footer .brand-icon {
  background: var(--sage);
  color: var(--footer-strong);
}
.footer .brand-name {
  color: var(--footer-strong);
}
.footer .brand-name span {
  color: var(--footer-accent);
}
.footer .brand-sub {
  color: var(--footer-faint);
}
.footer-brand-row {
  margin-bottom: var(--space-4);
}
.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--footer-muted);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  max-width: 320px;
}
.footer-info {
  font-size: var(--fs-sm);
  color: var(--footer-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--footer-muted);
  font-size: var(--fs-sm);
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--footer-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-bottom {
  padding-top: var(--space-7);
  border-top: 1px solid var(--footer-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--footer-faint);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-certs {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   22. INDEX CONVERSION BLOCKS (category tiles / bundle band / reviews)
   -------------------------------------------------------------------------- */

/* 22a. Category tiles */
.kin-categories-section {
  background-color: var(--kin-categories-bg, var(--surface-sage, #f4f9fb));
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 0.25s var(--ease-out);
}
.category-card:hover,
.category-card:focus-visible {
  box-shadow: var(--shadow-card);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}
.category-card:hover img {
  transform: scale(1.05);
}
.category-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-10) var(--space-5) var(--space-5);
  background: linear-gradient(to top, var(--overlay-ink), transparent);
  color: var(--surface);
}
.category-title {
  font-size: var(--fs-md);
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--sage, #77d0e4);
}
.category-sub {
  font-size: var(--fs-xs);
  opacity: 0.85;
}

/* 22b. Bundle promo band */
.bundle-band {
  background: var(--surface-sage);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}
.bundle-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-10);
  align-items: center;
}
.bundle-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.bundle-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}
.bundle-lede {
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  margin-bottom: var(--space-5);
}
.bundle-list {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.bundle-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.bundle-list svg {
  color: var(--sage);
  flex: none;
}
.bundle-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.bundle-price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: var(--fs-md);
}
.bundle-price-new {
  color: var(--sage-dark);
  font-size: var(--fs-2xl);
  font-weight: 800;
}
.bundle-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.bundle-note {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* 22c. Reviews & social proof */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.review-card:nth-child(4n+2) {
  border-top-color: var(--rose);
}
.review-card:nth-child(4n+3) {
  border-top-color: var(--toast-dot-success);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.review-verified {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-success);
  background: var(--color-success-bg);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}
.review-stars {
  display: flex;
  gap: 3px;
  color: var(--star);
}
.review-quote {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink);
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--sage-light);
  color: var(--sage-dark);
  font-weight: 800;
  font-size: var(--fs-sm);
  display: grid;
  place-items: center;
  flex: none;
}
.review-card:nth-child(4n+2) .review-avatar { background: var(--rose-light); color: var(--rose-dark); }
.review-card:nth-child(4n+3) .review-avatar { background: var(--color-success-bg); color: var(--color-success); }
.review-card:nth-child(4n+4) .review-avatar { background: var(--color-warning-bg); color: var(--color-warning); }
.review-name {
  font-size: var(--fs-sm);
  font-weight: 700;
}
.review-role {
  font-size: var(--fs-xs);
  color: var(--muted);
}
.review-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  text-align: center;
}
.review-stat strong {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--sage-dark);
}
.review-stat span {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* 22d. Newsletter band */
.newsletter-band {
  background: linear-gradient(135deg, var(--surface-sage) 0%, var(--surface) 54%, var(--rose-light) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-card);
}
.newsletter-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.newsletter-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-3);
}
.newsletter-lede {
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  margin-bottom: var(--space-5);
  max-width: 52ch;
}
.newsletter-perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.newsletter-perks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
}
.newsletter-perks svg {
  color: var(--color-success);
  flex: none;
}
.newsletter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-subtle);
}
.newsletter-form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.newsletter-form-row {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
}
.newsletter-form-row .form-control,
.newsletter-form-row .form-input {
  flex: 1;
  min-width: 0;
}
.newsletter-form-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.newsletter-note {
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bundle-grid,
  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .bundle-band,
  .newsletter-band {
    padding: var(--space-6);
  }
}
@media (max-width: 640px) {
  .review-stats {
    gap: var(--space-6);
  }
  .category-card-body {
    padding: var(--space-8) var(--space-4) var(--space-4);
  }
  .newsletter-form-row {
    flex-direction: column;
  }
  .newsletter-card {
    padding: var(--space-5);
  }
}

/* --------------------------------------------------------------------------
   23. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav-links {
    gap: var(--space-4);
  }
  .nav-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .header-inner {
    height: 72px;
  }

  /* Mobile nav dropdown */
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 14px var(--space-6) var(--space-5);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-nav);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-link {
    padding: 12px var(--space-2);
    font-size: var(--fs-md);
    border-radius: var(--radius-xs);
  }
  .nav-link.active {
    background: var(--sage-light);
    padding-left: var(--space-3);
  }
  .nav-link.active::after {
    display: none;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .trust-item {
    padding: var(--space-1);
  }

  .hero-baby,
  .hero-stroller,
  .hero-montessori,
  .hero-maternity {
    padding: 54px 0 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .cart-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .account-shell {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .account-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: var(--gutter-mobile);
  }
  .announcement {
    padding: var(--space-2) 0;
    font-size: 0.69rem;
  }
  .brand-icon {
    width: 40px;
    height: 40px;
  }
  .brand-name {
    font-size: 1.35rem;
  }
  .header-actions {
    gap: 0;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .trust-strip {
    padding: 10px 0;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .trust-item {
    padding: 3px 0;
  }
  .trust-icon {
    width: 30px;
    height: 30px;
  }
  .trust-icon svg {
    width: 16px;
    height: 16px;
  }
  .trust-text span {
    display: none;
  }

  .section {
    padding: 52px 0;
  }
  .section-head {
    align-items: flex-start;
    margin-bottom: var(--space-6);
  }

  .hero-title {
    line-height: 1.12;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }
  .product-body {
    padding: 13px;
  }
  .product-title {
    font-size: 0.88rem;
  }
  .product-desc {
    display: none;
  }
  .product-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .product-price {
    font-size: 0.95rem;
  }
  .product-footer .btn {
    width: 100%;
  }

  .cart-line {
    flex-wrap: wrap;
  }
  .cart-line-foot {
    width: 100%;
  }

  .checkout-card {
    padding: var(--space-5);
  }

  .drawer-header,
  .drawer-footer,
  .drawer-items,
  .shipping-bar-box {
    padding-inline: var(--gutter-mobile);
  }
  .cart-drawer {
    max-width: 100%;
  }

  .account-shell {
    margin-top: 26px;
    gap: var(--space-4);
  }
  .account-main {
    padding: var(--space-5);
  }

  .footer {
    padding-top: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ==========================================================================
   KIN Liquid Theme - Additional UI Enhancements & Interactive Components
   ========================================================================== */

/* Cart & Nav Overlays */
.cart-overlay,
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 54, 78, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active,
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--kin-white, #ffffff);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(42, 54, 78, 0.12);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--kin-border, #e2e8ea);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--kin-border, #e2e8ea);
  background: var(--kin-bg, #ffffff);
}

/* Search Drawer */
.search-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--kin-white, #ffffff);
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(43, 52, 59, 0.08);
  border-bottom: 1px solid var(--kin-border, #e2e8ea);
  padding: 1.5rem 0;
}

.search-drawer.active {
  transform: translateY(0);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: var(--kin-white, #ffffff);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 24px rgba(26, 36, 42, 0.14);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  background: var(--kin-ink, #2b343b);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  font-size: 13.5px;
  font-weight: 500;
  animation: slideInUp 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Filter Pills */
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid var(--kin-border, #e2e8ea);
  background: var(--kin-white, #ffffff);
  color: var(--kin-ink, #2b343b);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--kin-sage, #77d0e4);
  border-color: var(--sage-dark, #4da5bd);
  color: #ffffff;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--kin-border, #e2e8ea);
  background: var(--kin-white, #ffffff);
  color: var(--kin-ink, #2b343b);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-item:hover,
.pagination-item.active {
  background: var(--kin-sage, #77d0e4);
  border-color: var(--sage-dark, #4da5bd);
  color: #ffffff;
}

/* Customer Portal Grid */
@media (max-width: 860px) {
  .customer-portal-grid {
    grid-template-columns: 1fr !important;
  }
  .product-detail-grid {
    grid-template-columns: 1fr !important;
  }
  .cart-layout {
    grid-template-columns: 1fr !important;
  }
}


/* ---------- product tabs & storefront fixes ---------- */

.toast.show {
  visibility: visible;
  opacity: 1;
}

.product-thumbs .thumb {
  padding: 0;
  overflow: hidden;
}

.product-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tabs--horizontal {
  margin-top: 28px;
}

.accordion + .product-reviews-slot,
.product-tabs--horizontal + .product-reviews-slot {
  margin-top: 24px;
}

.product-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line, var(--color-border, #e2e8ea));
  margin-bottom: 18px;
}

.product-tabs__tab {
  padding: 12px 16px;
  font-family: var(--font-display, inherit);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted, var(--color-text-muted, #6b7780));
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.product-tabs__tab:hover {
  color: var(--ink, var(--color-dark, #2b343b));
}

.product-tabs__tab.is-active {
  color: var(--sage-dark, #4da5bd);
  border-bottom-color: var(--sage, #77d0e4);
}

.product-tabs__panel[hidden] {
  display: none;
}

.product-tabs__panel {
  font-size: 0.95rem;
  line-height: 1.65;
}

.product-tabs__panel p {
  color: var(--muted, var(--color-text-muted, #6b7780));
}

/* Full-width description tabs when positioned below the product gallery */
.product-tabs--full {
  grid-column: 1 / -1;
  margin-top: clamp(30px, 4vw, 46px);
}


/* --- Blog: search field, toolbar, per-page selector, feature card & pagination --- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.blog-search {
  max-width: 340px;
}

.page-head .blog-search {
  align-self: flex-start;
}

.blog-search__input {
  width: 100%;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong, var(--jc-line-strong, #e2e8f0));
  border-radius: 999px;
  background: var(--bg, var(--jc-bg, #fff));
  color: var(--ink, var(--jc-ink, #0f172a));
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.blog-search__input:focus {
  border-color: var(--ink, var(--jc-ink, #0f172a));
}

.blog-search__input::placeholder {
  color: var(--muted, var(--jc-muted, #64748b));
}

.blog-search-empty {
  margin: 26px 0 0;
  text-align: center;
  color: var(--muted, var(--jc-muted, #64748b));
  font-size: 0.92rem;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line, var(--jc-line, #e2e8f0));
}

.blog-count {
  font-size: 0.85rem;
  color: var(--muted, var(--jc-muted, #64748b));
  font-variant-numeric: tabular-nums;
}

.blog-per-page {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted, var(--jc-muted, #64748b));
}

.blog-per-page select {
  border: 1px solid var(--line-strong, var(--jc-line-strong, #cbd5e1));
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: var(--font-body, inherit);
  color: var(--ink, var(--jc-ink, #0f172a));
  background: var(--bg, var(--jc-bg, #fff));
  outline: none;
  cursor: pointer;
}

.blog-per-page select:focus {
  border-color: var(--ink, var(--jc-ink, #0f172a));
}

/* Uniform 3-col blog grid on desktop (2-col tablet, 1-col mobile) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
.blog-card--feature {
  grid-column: auto;
  display: flex;
  flex-direction: column;
}

.blog-pagination button {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, var(--jc-line, #e2e8f0));
  border-radius: 999px;
  background: var(--bg, var(--jc-bg, #fff));
  color: var(--ink, var(--jc-ink, #0f172a));
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.blog-pagination button:hover:not(:disabled) {
  border-color: var(--ink, var(--jc-ink, #0f172a));
}

.blog-pagination button.current {
  background: var(--ink, var(--jc-ink, #0f172a));
  border-color: var(--ink, var(--jc-ink, #0f172a));
  color: var(--bg, var(--jc-bg, #fff));
}

.blog-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.blog-pagination .page-gap {
  padding: 0 4px;
  color: var(--muted, var(--jc-muted, #64748b));
}

@media (max-width: 720px) {
  .blog-card--feature {
    grid-template-columns: 1fr;
  }

  .blog-card--feature .bc-media {
    min-height: 0;
    aspect-ratio: 16 / 9.5;
  }
}

/* --------------------------------------------------------------------------
   24. CUSTOMER WISHLIST PAGE
   -------------------------------------------------------------------------- */
.wishlist-page-head {
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.wishlist-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.wishlist-products > [data-wishlist-item] {
  min-width: 0;
}

.wishlist-empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.wishlist-empty > svg {
  color: var(--rose);
  margin-bottom: 16px;
}

.wishlist-empty h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.wishlist-empty p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (max-width: 1000px) {
  .wishlist-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wishlist-products {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .wishlist-empty {
    padding: 40px 20px;
  }
}

/* Kin platform compatibility: retain the reference tokens and geometry above. */
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1200; transform: translateY(-160%); background: var(--surface); padding: 12px 18px; border: 2px solid var(--sage); border-radius: var(--radius-sm); }
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus-ring-color); outline-offset: 3px; }
.no-scroll { overflow: hidden; }
.logo-img { width: auto; max-width: min(160px, 100%); max-height: 56px; object-fit: contain; }
.brand-name small { display: block; font-size: .62rem; color: var(--muted); margin-top: 4px; font-weight: 700; letter-spacing: .1em; }
.kin-menu { position: relative; display: inline-flex; align-items: center; }
.kin-menu-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; white-space: nowrap; }
.kin-menu-label { display: inline-block; line-height: 1.25; }
.kin-menu-caret { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.18s ease; }
.kin-menu::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.kin-menu:hover .kin-menu-caret,
.kin-menu:focus-within .kin-menu-caret,
.kin-menu.is-open .kin-menu-caret,
.kin-menu--mobile[open] > summary .kin-menu-caret { transform: rotate(180deg); }
.kin-menu summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.kin-menu summary::-webkit-details-marker { display: none; }
.kin-menu summary::marker { content: ''; display: none; }
.kin-submenu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; display: grid; gap: 2px; min-width: 224px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-nav); }
.desktop-nav .kin-submenu { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease; }
.desktop-nav .kin-menu:hover > .kin-submenu,
.desktop-nav .kin-menu:focus-within > .kin-submenu,
.desktop-nav .kin-menu.is-open > .kin-submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.kin-submenu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); line-height: 1.4; white-space: nowrap; transition: background 0.14s ease, color 0.14s ease; }
.kin-submenu a:hover, .kin-submenu a[aria-current="page"] { background: var(--surface-sage); color: var(--sage-dark); }
.kin-menu-child { padding-left: 24px !important; font-weight: 500; color: var(--muted); }
.desktop-nav .nav-link, .desktop-nav > a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); line-height: 1.25; }
.desktop-nav > a[aria-current], .desktop-nav .nav-link[aria-current], .desktop-nav .kin-menu:hover > .kin-menu-trigger, .desktop-nav .kin-menu.is-active > .kin-menu-trigger { color: var(--sage); }
.mobile-menu-btn { display: none; }
.mobile-panel { background: var(--surface); z-index: 1101; }
.mobile-panel .mobile-links { display: grid; gap: 4px; padding: 16px 20px; }
.mobile-panel .mobile-links > a, .mobile-panel .kin-menu--mobile { display: block; width: 100%; padding: 0; }
.mobile-panel .mobile-links > a { padding: 12px 0; }
.mobile-panel .kin-menu--mobile summary { padding: 12px 0; }
.mobile-panel .kin-menu::after { display: none; }
.mobile-panel .kin-submenu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0; padding: 4px 0 8px 12px; min-width: 0; }
.mobile-panel .mobile-panel-controls { padding: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.mobile-search-bar { display: flex; align-items: center; margin: 16px 20px; padding-left: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.mobile-search-bar input { width: 100%; min-width: 0; background: transparent; border: 0; }
body.menu-open .mobile-backdrop, body.drawer-open .cart-overlay { opacity: 1; visibility: visible; }
.mobile-backdrop { z-index: 1100; }
/* Search Modal & Predictive Results */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 8vh, 80px) 16px 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.search-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.search-modal__backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 52, 59, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.search-modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100dvh - 104px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(43, 52, 59, 0.22);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.22s ease;
}
.search-modal.open .search-modal__panel {
  transform: translateY(0);
}
.search-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface-sage, #f4f9fb);
  border-bottom: 1px solid var(--border);
}
.search-modal__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.search-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.search-modal__close:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #ffffff;
}
.search-modal .search-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light, #edf2f4);
  background: var(--surface);
}
.search-input-box {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.search-input-icon {
  position: absolute;
  left: 13px;
  color: var(--muted);
  display: inline-flex;
  pointer-events: none;
}
.search-modal .search-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 36px 10px 40px;
  border: 1px solid var(--border-input, var(--border));
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-family: inherit;
}
.search-modal .search-input:focus {
  outline: none;
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 22%, transparent);
}
.search-clear-btn {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-sage, #f4f9fb);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-clear-btn:hover {
  background: var(--border);
  color: var(--ink);
}
.search-clear-btn[hidden] {
  display: none;
}
.search-submit-btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
}
.search-results {
  overflow-y: auto;
  padding: 18px 20px 22px;
  display: grid;
  gap: 18px;
}
.search-results[hidden] {
  display: none;
}
.search-empty-state {
  text-align: center;
  padding: 8px 4px;
}
.search-empty-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--surface-sage, #f4f9fb);
  color: var(--sage-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-empty-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.search-empty-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.search-suggestions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.search-suggestions-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-tag-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.search-tag-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-sage, #f4f9fb);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.search-tag-chip:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #ffffff;
}
.search-status-note {
  text-align: center;
  padding: 18px 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.search-status-note.is-error {
  color: var(--color-danger, #c63636);
}
.search-group-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-product-list {
  display: grid;
  gap: 8px;
}
.search-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border-light, #edf2f4);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.search-product-row:hover {
  border-color: var(--sage);
  background: var(--surface-sage, #f4f9fb);
}
.search-product-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--surface-media, #f7fafc);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
}
.search-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.search-product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-product-info strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-product-info small {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage-dark);
}
.search-link-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-link-pill {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.search-link-pill:hover {
  border-color: var(--sage-dark);
  color: var(--sage-dark);
  background: var(--surface-sage, #f4f9fb);
}
.search-article-list {
  display: grid;
  gap: 6px;
}
.search-article-row {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-sage, #f4f9fb);
  text-decoration: none;
}
.search-article-row:hover {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-card .quick-add { position: static; transform: none; opacity: 1; width: auto; min-width: 0; height: auto; flex-shrink: 0; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--sage); color: #fff; font-size: var(--fs-xs); box-shadow: var(--shadow-btn); }
.product-card:hover .quick-add, .product-card:focus-within .quick-add { transform: none; }
.product-card .product-price { min-width: 0; }
.product-card .product-price del { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.product-card .wishlist { position: absolute; top: 14px; right: 14px; bottom: auto; left: auto; opacity: 1; transform: none; }
.product-card-link { display: block; width: 100%; height: 100%; }
.product-media > a > svg, .category-card > svg { width: 100%; height: 100%; }
.gallery-thumbs { flex-wrap: wrap; }
.gallery-thumbs .thumb { width: 72px; height: 72px; }
.gallery-thumbs .thumb.active { border-color: var(--sage); }
.product-detail-info .purchase-actions { min-width: 0; }
.product-detail-info .purchase-actions .wishlist-btn { position: static; opacity: 1; transform: none; flex-shrink: 0; width: 44px; height: 44px; }
.product-detail-info .product-buy-row { gap: 12px; flex-wrap: wrap; }
.option-select, .form-input, .input, .form-textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--border-input); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface); color: var(--ink); font: inherit; }
.form-input:focus, .input:focus, .option-select:focus { border-color: var(--sage); box-shadow: 0 0 0 3px var(--ring-input); }
.kin-filter-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.kin-filter-form label { flex: 1 1 140px; min-width: 0; font-size: var(--fs-sm); }
.category-filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.category-toolbar { display: grid; gap: 24px; margin-bottom: 32px; }
.cart-layout { grid-template-columns: 1.8fr 1fr; gap: var(--space-10); }
.cart-items, .cart-summary { border: 1px solid var(--border-card); border-radius: var(--radius-md); background: var(--surface); padding: var(--space-6); box-shadow: var(--shadow-subtle); }
.cart-summary .summary-title { font-size: var(--fs-lg); }
.cart-summary .summary-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cart-summary .cart-continue-link { display: block; text-align: center; margin-top: 16px; font-size: var(--fs-sm); }
.cart-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--border-light); position: relative; }
.cart-item:last-child { border-bottom: 0; }
.cart-item-img { display: block; width: 80px; height: 80px; background: var(--oat); border-radius: var(--radius-sm); overflow: hidden; }
.cart-item-img img, .cart-item-img svg { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: var(--fs-md); font-weight: 700; margin: 0 0 4px; padding-right: 8px; overflow-wrap: anywhere; }
.cart-item-variant { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 12px; }
.cart-item-total { font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.cart-item-remove { grid-column: 3; justify-self: end; width: 32px; height: 32px; color: var(--color-danger); border: 1px solid var(--border); border-radius: var(--radius-xs); }
.qty-stepper { display: inline-flex; width: auto; min-height: 36px; border: 1px solid var(--border-qty); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper button { width: 32px; height: 36px; padding: 0; }
.qty-stepper .qty-val { min-width: 32px; padding: 6px; text-align: center; }
.cart-drawer { background: var(--surface); }
.cart-drawer .cart-item { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; }
.cart-drawer .cart-item-img { width: 70px; height: 70px; }
.cart-drawer-head h2 { font-size: var(--fs-lg); margin: 0; }
.cart-drawer-subtotal { display: flex; justify-content: space-between; margin-bottom: 16px; }
.cart-drawer-foot { padding: 24px; background: var(--surface); }
.cart-view-link { display: block; margin-top: 12px; text-align: center; font-size: var(--fs-sm); }
.empty-state { padding: 32px 16px; text-align: center; grid-column: 1 / -1; }
.kin-newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.kin-newsletter input { flex: 1 1 160px; width: auto; }
.footer-head { color: var(--footer-strong); font-size: 1.0625rem; margin-bottom: 18px; }
.footer .form-input { background: transparent; color: var(--footer-strong); }
.toast-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 18px;
  background: var(--ink, #2b343b);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(43, 52, 59, 0.24);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}
.toast-box::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage, #77d0e4);
  flex-shrink: 0;
}
.toast-box.show { opacity: 1; transform: translateY(0); }
.toast-box.is-error { background: var(--color-danger, #c63636); color: #fff; }
.toast-box.is-error::before { background: #ffffff; }
.reveal, .reveal.visible { opacity: 1; transform: none; }
body[data-embed-controls-covered] :is(#jualify-loyalty-container,#jualify-whatsapp-button-container,[data-jualify-sales-pop]),
body:is(.drawer-open,.menu-open,.search-open) :is(#jualify-loyalty-container,#jualify-whatsapp-button-container,[data-jualify-sales-pop]) { visibility: hidden; pointer-events: none; }
[data-cross-sell-modal] { z-index: 1500 !important; }
.jualify-cross-sell, .jualify-cross-sell__offer, .jualify-pr-form-container { background: var(--surface); color: var(--ink); border-color: var(--border); }
@media (max-width: 1100px) { .desktop-nav { display: none; } .mobile-menu-btn { display: flex; } }
@media (max-width: 640px) {
  .header-actions > .jualify-language-switcher { display: none; }
  .header-inner { gap: 8px; }
  .header .brand { min-width: 0; }
  .header .brand-name { font-size: 1.2rem; }
  .header .brand-icon { width: 32px; height: 32px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn, .mobile-menu-btn { width: 36px; height: 40px; }
  .cart-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .cart-item-img { width: 64px; height: 64px; }
  .cart-item-total { grid-column: 2; }
  .cart-item-remove { position: absolute; bottom: 16px; right: 0; }
  .cart-drawer .cart-item { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-drawer .cart-item-img { width: 64px; height: 64px; }
  .cart-items, .cart-summary { padding: 16px; }
  .product-footer { align-items: start; gap: 8px; }
  .product-card .quick-add { padding: 8px; white-space: normal; max-width: 56%; }
  .search-modal { padding: 16px 12px; }
  .search-modal .search-form { flex-wrap: nowrap; padding: 12px 14px; }
  .search-submit-btn { padding: 0 14px; }
  .search-results { padding: 14px; }
  .toast-container { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Narrow account and search layouts: no hidden overflow or squeezed fields. */
.order-detail-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important; }
.order-detail-grid > * { min-width: 0; }
.order-line { flex-wrap: wrap; gap: 12px; }
.order-line > * { min-width: 0; }
.order-line strong { overflow-wrap: anywhere; }
.address-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(var(--product-grid-columns, 4), minmax(0, 1fr)); }
.product-media { aspect-ratio: var(--product-image-aspect, 1); }
.tax-price-note { max-width: var(--container); margin: 0 auto 24px !important; padding: 0 var(--gutter); color: var(--muted) !important; }
.account-layout > *, .account-content, .panel, .blog-card, .bc-body { min-width: 0; }
.account-nav { max-width: 100%; }
.account-nav a { white-space: normal; overflow-wrap: anywhere; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { min-width: 0; }
.form-group :is(input,select,textarea) { min-width: 0; width: 100%; }
.required { color: var(--color-danger); }
.stat-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.account-content .table-wrap { overflow-x: auto; max-width: 100%; }
.search-bar { display: flex; min-width: 0; }
.search-bar input { min-width: 0; flex: 1; }
.password-main { width: min(640px, 100%); }
.password-main .container { width: 100%; margin: 40px auto !important; }
html:not(.js) [data-cart-qty-change], html:not(.js) [data-cart-remove], html:not(.js) button[data-quick-add] { display: none; }
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(var(--product-grid-columns-tablet, 2), minmax(0, 1fr)); }
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-nav { display: flex; flex-wrap: wrap; position: static; overflow: visible; }
  .account-nav a { flex: 1 1 150px; }
}
@media (max-width: 640px) {
  .order-detail-grid, .address-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .form-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .auth-card { padding: 24px 20px !important; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-card--feature { grid-template-columns: minmax(0, 1fr); }
  .search-bar { flex-wrap: wrap; gap: 12px; padding: 12px; }
  .search-bar input { flex-basis: calc(100% - 40px); }
  .search-bar .btn { margin: 0 !important; }
}
.hero-baby > .container > div > .hero-badge {
  position: static; width: auto; height: auto; display: inline-flex;
  flex-direction: row; text-align: left; text-transform: none;
  letter-spacing: .01em; line-height: normal; animation: none;
  background: var(--sage-light); color: var(--sage-dark);
}
.hero-side-card-badge { width: auto; height: auto; text-transform: none; letter-spacing: .01em; }
.badge { position: static; top: auto; left: auto; right: auto; text-transform: none; line-height: normal; }
.kin-newsletter { flex-wrap: wrap; }
.newsletter-captcha { width: 100%; margin-top: 12px; }

/* Honest empty-section examples share the reference's media and card geometry. */
.kin-placeholder-label { display: inline-block; margin: 8px 0; color: var(--sage-dark); font-size: .75rem; font-weight: 700; }
.kin-placeholder-card { min-width: 0; }
.kin-placeholder-media { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; background: var(--surface-media); border-radius: var(--radius-md); }
.kin-placeholder-media > svg, .kin-placeholder-media > img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.product-media.kin-placeholder-media { aspect-ratio: var(--product-image-aspect, 1); }
.category-card > .kin-placeholder-media, .blog-card > .kin-placeholder-media { aspect-ratio: 3 / 2; }
.hero-side-card-media { aspect-ratio: 4 / 3; }
.bundle-img.kin-placeholder-media, .product-gallery-main.kin-placeholder-media { aspect-ratio: 1; }
.banner-art.kin-placeholder-media { aspect-ratio: 1; }
.tile > .kin-placeholder-media { width: 100%; height: 100%; min-height: 200px; }
.kin-placeholder-card .product-desc { white-space: normal; }
.category-card.kin-placeholder-card { aspect-ratio: auto; background: var(--surface); }
.category-card.kin-placeholder-card .category-card-body { position: static; padding: var(--space-5); background: none; color: var(--ink); }
.banner-card .banner-art.kin-placeholder-media, .banner-card:hover .banner-art.kin-placeholder-media { position: static; transform: none; align-self: flex-end; width: min(42%, 180px); margin-bottom: 16px; opacity: 1; flex-shrink: 0; }
.jualify-contact__image.kin-placeholder-media { aspect-ratio: 4 / 3; }

/* Catalogue, unified sub-page heroes & compact sidebar filters. */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 16px;
  padding-bottom: 8px;
}
.breadcrumbs a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.breadcrumbs a:hover {
  color: var(--sage-dark);
}
.breadcrumbs .sep {
  color: var(--border);
  user-select: none;
}
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.page-head,
.kin-catalogue-head,
.jualify-contact__intro {
  padding-block: 12px 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.kin-catalogue-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.page-head h1,
.kin-catalogue-head h1,
.jualify-contact__intro h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-head p,
.kin-catalogue-head p,
.jualify-contact__intro p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}
.page-head .section-kicker {
  display: inline-block;
  margin-bottom: 6px;
}
.page-head .head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.page-head .head-row > div {
  flex: 1 1 320px;
  min-width: 0;
}
.page-head .blog-search {
  flex: 0 1 320px;
  width: 100%;
  align-self: center;
}
.kin-catalogue { padding-block: 10px !important; }
.kin-catalogue-directory { display: inline-flex; align-items: center; gap: 8px; color: var(--sage-dark); font-size: .84rem; font-weight: 700; white-space: nowrap; padding: 6px 0; }
.kin-catalogue-directory:hover, .kin-filter-reset:hover, .kin-product-help a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kin-catalogue-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; }
.kin-catalogue-sidebar, .kin-catalogue-results { min-width: 0; }
.kin-catalogue-sidebar .kin-catalogue-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.kin-catalogue-sidebar .kin-catalogue-filters summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  min-height: 36px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light, #edf2f4);
  margin-bottom: 12px;
}
.kin-catalogue-filters summary::-webkit-details-marker { display: none; }
.kin-catalogue-filters[open] summary svg { transform: rotate(180deg); }
.kin-catalogue-sidebar .kin-catalogue-categories h2,
.kin-catalogue-sidebar .kin-catalogue-price-form h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 8px;
}
.kin-catalogue-sidebar .kin-category-link {
  display: block;
  padding: 7px 10px;
  margin: 2px 0;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.kin-catalogue-sidebar .kin-category-link:hover { background: var(--surface-sage); color: var(--sage-dark); }
.kin-catalogue-sidebar .kin-category-link.is-current { background: var(--sage-light); color: var(--sage-dark); font-weight: 700; }
.kin-catalogue-sidebar .kin-catalogue-price-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.kin-catalogue-sidebar .kin-facet { margin-top: 12px; margin-bottom: 0; padding-top: 12px; border-top: 1px solid var(--border-light, #edf2f4); }
.kin-catalogue-sidebar .kin-facet label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.kin-catalogue-sidebar .kin-facet select { min-height: 36px; padding: 6px 10px; font-size: 0.8125rem; }
.kin-catalogue-sidebar .kin-catalogue-price-form > .btn { width: 100%; margin-top: 14px; min-height: 38px; padding: 8px 12px; font-size: 0.8125rem; }
.kin-catalogue-sidebar .kin-filter-reset { display: block; text-align: center; margin-top: 10px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.kin-catalogue-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 22px; }
.kin-catalogue-count { font-size: .875rem; color: var(--muted); margin: 0; }
.kin-catalogue-sort { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kin-catalogue-sort label { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.kin-catalogue-sort select { width: auto; max-width: 100%; font-size: .8125rem; min-height: 44px; }
.js .kin-sort-submit { display: none; }
.kin-applied-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: .75rem; }
.kin-applied-filters span { background: var(--surface-sage); border: 1px solid var(--border-sage-soft); padding: 7px 10px; border-radius: 6px; }
.kin-applied-filters a { padding: 7px 4px; color: var(--sage-dark); text-decoration: underline; text-underline-offset: 3px; }
.kin-catalogue-grid { gap: 24px 18px; }
.kin-catalogue-grid .product-card { box-shadow: none; border: 1px solid var(--border-card); transition: border-color .2s ease; }
.kin-catalogue-grid .product-card:hover { transform: none; box-shadow: none; border-color: var(--border-hover); }
.kin-catalogue-grid .product-body { padding: 18px; }
.kin-catalogue-grid .product-title { line-height: 1.45; min-height: 2.9em; margin-bottom: 10px; }
.kin-catalogue-grid .product-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.kin-catalogue-grid .product-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; min-height: 3.1em; }
.kin-catalogue-grid .product-footer { flex-direction: column; align-items: stretch; gap: 12px; }
.kin-catalogue-grid .product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 1rem; }
.kin-catalogue-grid .product-price del { font-weight: 400; font-size: .75rem; color: var(--muted); }
.kin-catalogue-grid .quick-add { width: 100%; max-width: none; min-height: 42px; background: var(--surface); border: 1px solid var(--border-input); color: var(--sage-dark); box-shadow: none; font-size: .8125rem; }
.kin-catalogue-grid .quick-add:hover { background: var(--sage); border-color: var(--sage); color: var(--surface); }
.kin-catalogue-empty { padding: 48px 24px; border: 1px dashed var(--border-input); border-radius: var(--radius-md); text-align: center; margin-bottom: 24px; }
.kin-catalogue-empty h2 { font-size: 1.25rem; margin-bottom: 10px; }
.kin-catalogue-empty p { color: var(--muted); max-width: 48ch; margin: 0 auto 20px; line-height: 1.7; }
.kin-catalogue-results .pagination { padding-top: 36px; margin-top: 32px; border-top: 1px solid var(--border); }
.product-detail-section { padding-top: 8px; padding-bottom: 64px; }
.product-detail-section .product-detail-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.kin-product-gallery { min-width: 0; align-self: stretch; }
.kin-product-gallery-media { position: sticky; top: 112px; }
.product-detail-section .product-gallery-main { margin: 0 0 16px; background: var(--surface-media); box-shadow: none; border-radius: 20px; }
.product-detail-section .product-gallery-main :is(img, svg) { width: 100%; height: 100%; object-fit: contain; }
.product-detail-section .gallery-thumbs { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 10px; gap: 12px; }
.product-detail-section .thumb-btn { width: 76px; height: 76px; flex: 0 0 76px; border-width: 1px; background: var(--surface); box-shadow: none; }
.product-detail-section .thumb-btn.active { border: 2px solid var(--sage); }
.product-detail-section .thumb-btn img { object-fit: contain; }
.product-detail-section .product-detail-info { min-width: 0; padding-top: 4px; }
.kin-product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; font-size: .75rem; }
.kin-product-category { padding: 7px 12px; border-radius: 6px; background: var(--surface-sage); color: var(--sage-dark); font-weight: 600; }
.kin-product-availability { display: inline-flex; align-items: center; gap: 7px; color: var(--sage-dark); }
.kin-product-availability::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.kin-product-availability.is-unavailable { color: var(--muted); }
.product-detail-section .product-detail-title { font-size: clamp(1.875rem, 3vw, 2.5rem); line-height: 1.18; letter-spacing: -.02em; margin-bottom: 16px; overflow-wrap: anywhere; }
.product-detail-section .product-rating { font-size: .8125rem; margin-bottom: 18px; }
.product-detail-section .product-rating a { text-decoration: underline; text-underline-offset: 3px; }
.product-detail-section .product-detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; font-size: 1.875rem; margin: 22px 0 20px; }
.product-detail-section .product-detail-price del { color: var(--muted); font-size: 1rem; font-weight: 400; }
.kin-product-discount { align-self: center; padding: 5px 9px; border-radius: 5px; background: var(--rose-light); color: var(--rose-dark); font-size: .75rem; font-weight: 700; }
.product-detail-section .product-detail-desc { font-size: .9375rem; line-height: 1.8; margin-bottom: 12px; max-width: 60ch; }
.kin-product-reference { color: var(--muted); font-size: .75rem; margin: 0 0 24px; }
.kin-product-reference span { color: var(--ink); }
.kin-product-purchase { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; }
.product-detail-section .product-variant-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.product-detail-section .option-group { min-width: 0; }
.product-detail-section .option-label, .kin-quantity-label { display: block; margin-bottom: 8px; font-size: .8125rem; color: var(--ink); font-weight: 600; }
.product-detail-section .option-select { min-height: 48px; padding-right: 38px; background: var(--surface); font-size: .875rem; }
.product-detail-section .option-list { margin-bottom: 24px; }
.product-detail-section .product-buy-row { flex-direction: row; flex-wrap: nowrap; align-items: stretch; margin: 0; gap: 12px; }
.product-detail-section .quantity { min-height: 52px; border-radius: 8px; flex-shrink: 0; }
.product-detail-section .quantity :is(input, button) { min-height: 50px; }
.product-detail-section .purchase-actions { display: flex; gap: 10px; flex: 1; min-width: 0; }
.product-detail-section #addToCartBtn { min-height: 52px; box-shadow: none; border-radius: 8px; padding: 12px 16px; font-size: .875rem; }
.product-detail-section .purchase-actions .wishlist-btn { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 8px; }
.kin-product-help { margin: 16px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.kin-product-help a { color: var(--sage-dark); font-weight: 600; }
.product-detail-section [data-product-tabs] { margin-top: 0; }
.product-tabs-row { margin-top: clamp(32px, 4.5vw, 52px); padding-top: 28px; border-top: 1px solid var(--border); }
.product-detail-section .accordion { border-radius: 0; box-shadow: none; border: 0; }
.product-detail-section .accordion-item { border-bottom: 1px solid var(--border); background: none; }
.product-detail-section .accordion-button { padding: 18px 0; font-size: .875rem; }
.product-detail-section .accordion-content { padding: 0 0 22px; color: var(--muted); line-height: 1.8; font-size: .875rem; }
.kin-product-reviews { grid-column: 1 / -1; min-width: 0; padding-top: 4px; border-top: 0; scroll-margin-top: 112px; }
@media (min-width: 1001px) { .kin-catalogue-filters > summary { display: none; } }
@media (max-width: 1000px) {
  .kin-catalogue-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .kin-catalogue-filters { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .kin-catalogue-filter-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 16px 0 24px; }
  .kin-catalogue-price-form { margin-top: 0; padding-top: 0; border-top: 0; }
  .kin-catalogue-head { padding-bottom: 28px; margin-bottom: 24px; }
  .product-detail-section .product-detail-grid { gap: 36px; }
  .product-detail-section .product-buy-row { flex-wrap: wrap; }
  .product-detail-section .purchase-actions { flex-basis: 100%; }
}
@media (max-width: 860px) { .kin-product-gallery-media { position: static; } }
@media (max-width: 640px) {
  .breadcrumbs { padding-top: 18px; padding-bottom: 18px; font-size: .75rem; }
  .kin-catalogue-head { display: block; }
  .kin-catalogue-directory { margin-top: 12px; }
  .kin-catalogue-head p { font-size: .875rem; }
  .kin-catalogue-filter-content { grid-template-columns: minmax(0, 1fr); }
  .kin-catalogue-categories { max-height: 260px; overflow-y: auto; }
  .kin-catalogue-toolbar { align-items: stretch; gap: 14px; }
  .kin-catalogue-sort { width: 100%; flex-wrap: wrap; }
  .kin-catalogue-sort select { flex: 1; min-width: 0; }
  .kin-catalogue-grid { gap: 16px 12px; }
  .kin-catalogue-grid .product-body { padding: 14px 12px; }
  .kin-catalogue-grid .product-title { font-size: .8125rem; }
  .kin-catalogue-grid .product-desc { font-size: .75rem; }
  .kin-catalogue-grid .product-price { font-size: .875rem; }
  .kin-catalogue-grid .quick-add { padding: 9px 6px; font-size: .75rem; white-space: normal; }
  .kin-catalogue-results .pagination { padding-top: 24px; margin-top: 24px; }
  .product-detail-section { padding-bottom: 40px; }
  .product-detail-section .product-detail-grid { gap: 28px; }
  .product-detail-section .product-gallery-main { border-radius: 14px; }
  .product-detail-section .thumb-btn { width: 64px; height: 64px; flex-basis: 64px; }
  .product-detail-section .product-detail-price { font-size: 1.625rem; }
  .product-detail-section .product-buy-row { flex-wrap: nowrap; }
  .product-detail-section .purchase-actions { flex-basis: auto; }
  .product-detail-section #addToCartBtn { padding: 12px 10px; font-size: .8125rem; }
  .kin-product-reviews { padding-top: 24px; }
}
@media (max-width: 380px) {
  .product-detail-section .product-buy-row { flex-wrap: wrap; }
  .product-detail-section .purchase-actions { flex-basis: 100%; }
}


/* ---- Kin Custom Content Page & Rich Text ---- */
.article-wrap { max-width: 760px; margin-inline: auto; }
.article-wrap .article-title { font-family: var(--font-main); font-size: clamp(2.2rem, 4.2vw, 3.2rem) !important; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 1.5rem; }
.page-content, .page-content.rte, .page-content.prose, .rte, .prose { max-width: 760px; margin-inline: auto; font-family: var(--font-main); font-size: 16.5px; line-height: 1.85; color: var(--ink, #2b343b); word-break: break-word; }
.page-content > *:first-child, .rte > *:first-child, .prose > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }
.page-content > *:last-child, .rte > *:last-child, .prose > *:last-child { margin-bottom: 0 !important; }
.page-content h1, .rte h1, .prose h1 { font-family: var(--font-main); font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin-top: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; color: var(--ink); }
.page-content h2, .rte h2, .prose h2 { font-family: var(--font-main); font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.25; font-weight: 700; letter-spacing: 0; margin-top: clamp(2rem, 3.8vw, 2.75rem); margin-bottom: 0.95rem; color: var(--ink); }
.page-content h3, .rte h3, .prose h3 { font-family: var(--font-main); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.35; font-weight: 700; letter-spacing: 0; margin-top: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.75rem; color: var(--ink); }
.page-content h4, .rte h4, .prose h4 { font-family: var(--font-main); font-size: 1.05rem; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1.35rem; margin-bottom: 0.5rem; color: var(--ink); }
.page-content p, .rte p, .prose p { margin-top: 0; margin-bottom: 1.5rem; line-height: 1.85; color: var(--ink); }
.page-content ul, .page-content ol, .rte ul, .rte ol, .prose ul, .prose ol { margin-top: 0; margin-bottom: 1.65rem; padding-left: 1.75rem; color: var(--ink); }
.page-content li, .rte li, .prose li { margin-bottom: 0.6rem; line-height: 1.8; }
.page-content li:last-child, .rte li:last-child, .prose li:last-child { margin-bottom: 0; }
.page-content blockquote, .rte blockquote, .prose blockquote { margin: 1.85rem 0; padding: 1.1rem 1.6rem; border-left: 3px solid var(--sage, #77d0e4); background: var(--surface-sage, #f4f9fb); border-radius: 0 8px 8px 0; font-size: 1.1rem; line-height: 1.65; color: var(--ink); }
.page-content blockquote p:last-child, .rte blockquote p:last-child, .prose blockquote p:last-child { margin-bottom: 0; }
.page-content img, .rte img, .prose img { max-width: 100%; height: auto; border-radius: 10px; margin-block: 1.75rem; display: block; }
.page-content hr, .rte hr, .prose hr { border: 0; height: 1px; background: var(--border, #e2e8ea); margin: 2.5rem 0; }
.page-content a, .rte a, .prose a { color: var(--sage-dark, #4da5bd); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.page-content a:hover, .rte a:hover, .prose a:hover { color: var(--rose-dark, #cf5966); }
.page-content table, .rte table, .prose table { width: 100%; border-collapse: collapse; margin-block: 2rem; font-size: 0.95rem; }
.page-content th, .page-content td, .rte th, .rte td, .prose th, .prose td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.page-content th, .rte th, .prose th { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }



.template-page .breadcrumbs {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin-inline: auto !important;
}
.article-wrap .article-title,
.article-shell .article-title {
  text-align: var(--sf-align, left) !important;
  margin-inline: 0 !important;
}

/* ==========================================================================
   KIN v1.4 — HTML Reference Restoration + Homora Storefront Parity
   ========================================================================== */

/* Header Wishlist Badge & Submenu Polish */
.header-wishlist-badge,
.wishlist-count[data-wishlist-count] {
  position: absolute;
  top: 1px;
  right: 0;
  background: var(--sage-dark);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.header-wishlist-badge[hidden],
[data-wishlist-count][hidden] { display: none !important; }

/* Product Card: Bottom-Center Quick View Button on Hover */
.product-quick-view-btn {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translate(-50%, 8px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  border-radius: var(--radius-full, 999px);
  border: 1px solid rgba(43, 52, 59, 0.08);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(43, 52, 59, 0.14);
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.product-quick-view-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.product-card:hover .product-quick-view-btn,
.product-card:focus-within .product-quick-view-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.product-quick-view-btn:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #ffffff;
}
@media (hover: none) {
  .product-card .product-quick-view-btn {
    opacity: 0.96;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}
@media (max-width: 640px) {
  .product-quick-view-btn {
    padding: 6px 11px;
    bottom: 8px;
    font-size: 0.72rem;
  }
}

/* Homepage Product Grid Carousel (up to 8 products) */
.kin-product-carousel {
  position: relative;
}
.kin-carousel-track.product-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}
.kin-carousel-track.product-grid::-webkit-scrollbar {
  display: none;
}
.kin-carousel-track .product-card {
  scroll-snap-align: start;
  min-width: 0;
}
.kin-carousel-track [hidden] {
  display: none !important;
}
.kin-carousel-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(43, 52, 59, 0.12);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.kin-carousel-btn--prev { left: -14px; }
.kin-carousel-btn--next { right: -14px; }
.kin-carousel-btn:hover:not(:disabled) {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #ffffff;
}
.kin-carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .kin-carousel-track.product-grid {
    grid-auto-columns: calc((100% - 18px) / 2);
    gap: 18px;
  }
  .kin-carousel-btn--prev { left: 6px; }
  .kin-carousel-btn--next { right: 6px; }
}
@media (max-width: 640px) {
  .kin-carousel-track.product-grid {
    grid-auto-columns: calc((100% - 14px) / 2);
    gap: 14px;
  }
  .kin-carousel-btn {
    width: 34px;
    height: 34px;
    top: 34%;
  }
}

/* Compact Professional Cart Drawer (Aurevia concept + Kin tokens) */
.cart-drawer {
  width: min(400px, 100vw);
  max-width: 400px;
  background: var(--surface, #ffffff);
  color: var(--ink, #2b343b);
  box-shadow: -8px 0 32px rgba(43, 52, 59, 0.14);
}
.cart-drawer .cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface, #ffffff);
}
.cart-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.cart-drawer .cart-drawer-head h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}
.cart-drawer-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-sage, #f4f9fb);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage-dark);
}
.cart-drawer-view-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-drawer-view-link:hover {
  color: var(--rose-dark);
}
.cart-drawer .cart-drawer-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 1.15rem;
  line-height: 1;
}
.cart-drawer .cart-drawer-close:hover {
  background: var(--surface-sage);
  border-color: var(--sage);
}
.cart-drawer .shipping-bar-box {
  margin: 0;
  padding: 10px 18px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-sage, #f4f9fb);
}
.cart-drawer .shipping-bar-title {
  font-size: 0.76rem;
  margin: 0 0 6px;
  line-height: 1.35;
}
.cart-drawer .shipping-progress {
  height: 6px;
  padding: 0;
  border: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.cart-drawer .cart-drawer-body {
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
}
.cart-drawer-empty {
  padding: 36px 16px;
}
.cart-drawer-empty p {
  margin: 0 0 14px;
  font-size: 0.9rem;
}
.cart-drawer .cart-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light, #edf2f4);
}
.cart-drawer .cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xs, 8px);
  border: 1px solid var(--border);
  background: var(--surface-media);
}
.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cart-drawer .cart-item-name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding-right: 0;
}
.cart-drawer .cart-item-remove {
  position: static;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.cart-drawer .cart-item-remove:hover {
  color: var(--rose-dark);
  background: var(--rose-light);
}
.cart-drawer .cart-item-variant {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface-sage, #f4f9fb);
  padding: 2px 7px;
  border-radius: 4px;
  margin: 4px 0 0;
}
.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.cart-drawer .qty-stepper {
  min-height: 30px;
  height: 30px;
  border-radius: 7px;
}
.cart-drawer .qty-stepper button {
  width: 26px;
  height: 28px;
  font-size: 0.9rem;
}
.cart-drawer .qty-stepper .qty-val {
  min-width: 30px;
  width: 34px;
  padding: 2px 4px;
  font-size: 0.8rem;
}
.cart-drawer .cart-item-total {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  grid-column: auto;
}
.cart-drawer .cart-drawer-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-sage, #f4f9fb);
}
.cart-drawer .cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.cart-drawer .cart-drawer-subtotal strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}
.cart-drawer-note {
  margin: 0 0 12px;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}
.cart-drawer-checkout-btn {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: var(--radius-full, 999px);
  font-size: 0.9rem;
}

/* Contact Page Baby Store Placeholder Banner */
.jualify-contact__banner {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-sage, #eef8fa);
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(43, 52, 59, 0.05);
}
.jualify-contact__image--banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Quick View Dialog */
.qv-dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-hover);
  overflow: auto;
}
.qv-dialog::backdrop { background: var(--backdrop-color); }
.qv-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px;
  padding: 28px;
  position: relative;
}
.qv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.qv-close:hover { background: var(--sage-light); border-color: var(--sage); color: var(--sage-dark); }
.qv-media {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-media);
  border: 1px solid var(--border-light);
}
.qv-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 4px; }
.qv-title { font-size: 1.45rem; font-weight: 800; line-height: 1.25; margin: 0; }
.qv-price { display: flex; align-items: baseline; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--sage-dark); }
.qv-price del { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.qv-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.qv-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 8px; }
.qv-actions .btn { flex: 1 1 180px; }
@media (max-width: 720px) {
  .qv-body { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
}

/* Dual-handle Price Slider + Per-Page Pills */
.price-slider { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.price-slider-values { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-slider-separator { color: var(--muted); }
.price-slider-track { position: relative; height: 28px; margin: 2px 0 4px; --price-slider-min-percent: 0%; --price-slider-max-percent: 100%; }
.price-slider-track::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); background: var(--border); border-radius: 999px; }
.price-slider-track::after { content: ""; position: absolute; top: 50%; height: 4px; transform: translateY(-50%); left: var(--price-slider-min-percent); right: calc(100% - var(--price-slider-max-percent)); background: var(--sage-dark); border-radius: 999px; }
.price-slider-track input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.price-slider-track input[type="range"]::-webkit-slider-runnable-track { height: 28px; background: transparent; }
.price-slider-track input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sage-dark); cursor: pointer; box-shadow: 0 1px 4px rgba(43, 52, 59, 0.2); transition: transform 0.15s ease; }
.price-slider-track input[type="range"]::-moz-range-track { height: 28px; background: transparent; }
.price-slider-track input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sage-dark); cursor: pointer; box-shadow: 0 1px 4px rgba(43, 52, 59, 0.2); }
.per-page-pills { display: inline-flex; align-items: center; gap: 4px; }
.per-page-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface); color: var(--muted); font-size: 0.78rem; font-weight: 700; transition: all 0.15s ease; }
.per-page-pill:hover { border-color: var(--sage); color: var(--sage-dark); }
.per-page-pill.is-active { background: var(--sage); border-color: var(--sage-dark); color: #ffffff; }

/* PDP Thumb Navigation, Variant Buttons Synced & Specs */
.product-thumbs-wrap { display: flex; align-items: center; gap: 8px; }
.thumb-nav-btn { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.thumb-nav-btn:hover { border-color: var(--sage); color: var(--sage-dark); background: var(--sage-light); }
.variant-btn-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pdp-bundle-box { margin: 16px 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-sage); border: 1px solid var(--border-sage-soft); }
.pdp-bundle-box h3 { font-size: var(--fs-sm); font-weight: 800; margin-bottom: 8px; }
.pdp-bundle-box ul { list-style: none; display: grid; gap: 6px; font-size: var(--fs-xs); color: var(--ink); margin: 0; padding: 0; }
.pdp-meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border-light); font-size: var(--fs-xs); color: var(--muted); }
.pdp-meta-row strong { color: var(--ink); }
.pdp-desc p { margin-bottom: 12px; line-height: 1.7; color: var(--muted); }
.pdp-desc ul, .pdp-desc ol { padding-left: 1.3em; margin: 10px 0 14px; display: grid; gap: 6px; color: var(--muted); }
.pdp-desc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: var(--fs-sm); }
.pdp-desc th, .pdp-desc td { padding: 8px 12px; border-bottom: 1px solid var(--border-light); text-align: left; }

/* Compact Checkout, Order Success & Profile Billing Card */
.checkout-shell { max-width: var(--container-checkout); margin: 0 auto; }
.checkout-panel, .order-success-card, .kin-billing-card { background: var(--surface); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: var(--space-7); box-shadow: var(--shadow-subtle); }
.checkout-summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: var(--fs-sm); }
.checkout-summary-row:last-child { border-bottom: 0; font-weight: 800; font-size: var(--fs-lg); }
.order-success-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--color-success-bg); color: var(--color-success); display: grid; place-items: center; }
.order-success-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
@media (max-width: 640px) { .order-success-grid { grid-template-columns: 1fr; } }

/* Product Page Related Products & Compact Page Hero Consistency */
.pdp-related { padding: 48px 0 56px; border-top: 1px solid var(--border); }
.pdp-related .section-head { margin-bottom: 26px; }
.pdp-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1024px) { .pdp-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kin-catalogue-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}


