/* =============================================================
   MZN CRAFT — Custom Design System
   Premium Himalayan Handmade Craft E-commerce
   Phase 1 Foundation
   ============================================================= */

/* ── 1. Design Tokens (CSS Custom Properties) ─────────────── */
:root {
  /* Brand colours */
  --clr-bg:           #FDF8F0;   /* warm ivory page background */
  --clr-bg-alt:       #F5EDD8;   /* alternate cream section bg */
  --clr-cream:        #FAF6EE;
  --clr-white:        #FFFFFF;

  --clr-primary:      #8B1A1A;   /* deep maroon – primary brand */
  --clr-primary-dk:   #6B1212;   /* dark maroon – hover */
  --clr-primary-lt:   #A52020;   /* light maroon */
  --clr-primary-muted:#C96060;   /* muted for decorative use */

  --clr-gold:         #C9962A;   /* saffron / gold accent */
  --clr-gold-lt:      #E8B84B;   /* light gold */
  --clr-gold-dk:      #A67B1C;   /* dark gold */
  --clr-gold-bg:      #FDF3DC;   /* very light gold background tint */

  --clr-brown:        #3D2B1F;   /* earthy brown – body text */
  --clr-brown-md:     #6B4C3B;   /* medium brown */
  --clr-brown-lt:     #9A7B6A;   /* light muted brown */

  --clr-green:        #2E6B35;   /* sustainability / fair-trade */
  --clr-green-bg:     #EAF4EB;   /* very light green bg */

  --clr-footer-bg:    #2A1510;   /* site footer dark background */
  --clr-border:       #E8D9C5;   /* warm card/section borders */
  --clr-border-lt:    #F0E8D8;   /* lighter border */

  --clr-text:         #3D2B1F;   /* default body text */
  --clr-text-muted:   #9A7B6A;   /* secondary / caption text */
  --clr-muted:        #9A7B6A;   /* alias — used by filter, price, rating components */
  --clr-text-inverse: #FAF6EE;   /* text on dark backgrounds */

  /* Typography */
  --font-head:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-xs:   0 1px 3px  rgba(61,43,31,0.06);
  --shadow-sm:   0 2px 8px  rgba(61,43,31,0.09);
  --shadow-md:   0 4px 18px rgba(61,43,31,0.12);
  --shadow-lg:   0 8px 32px rgba(61,43,31,0.15);
  --shadow-xl:   0 16px 48px rgba(61,43,31,0.18);
  --shadow-gold: 0 4px 20px rgba(201,150,42,0.25);

  /* Border radii */
  --radius-xs:   3px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:      0.18s var(--ease);
  --t-base:      0.28s var(--ease);
  --t-slow:      0.45s var(--ease);

  /* Layout */
  --nav-h:       72px;
  --cat-h:       44px;
  --container-max: 1240px;
  --section-py:  4.25rem;
  --section-py-sm: 2.75rem;
}

/* Override Bootstrap 5 primary colour */
:root {
  --bs-primary:       #8B1A1A;
  --bs-primary-rgb:   139, 26, 26;
  --bs-link-color:    #8B1A1A;
  --bs-link-hover-color: #6B1212;
}

/* ── 2. Base Reset & Global ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--t-base);
}
a:hover { color: var(--clr-primary-dk); }

/* ── 3. Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--clr-brown);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p { margin-bottom: 1rem; }

/* Section label — small uppercase tag above a heading */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.6rem;
}

/* Main section heading */
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--clr-brown);
  margin-bottom: 0.4rem;
}

/* Gold underline accent beneath headings */
.section-heading::after,
.heading-underline::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--clr-gold);
  margin-top: 0.55rem;
  border-radius: var(--radius-full);
}

.section-heading.text-center::after,
.heading-underline.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtext {
  font-size: 0.97rem;
  color: var(--clr-brown-lt);
  line-height: 1.7;
  max-width: 580px;
}

/* ── 4. Utility Classes ────────────────────────────────────── */
.text-gold      { color: var(--clr-gold) !important; }
.text-maroon    { color: var(--clr-primary) !important; }
.text-brown     { color: var(--clr-brown) !important; }
.text-muted-craft { color: var(--clr-text-muted) !important; }
.text-green     { color: var(--clr-green) !important; }

.bg-maroon      { background-color: var(--clr-primary) !important; }
.bg-maroon-dk   { background-color: var(--clr-primary-dk) !important; }
.bg-cream       { background-color: var(--clr-bg) !important; }
.bg-cream-alt   { background-color: var(--clr-bg-alt) !important; }
.bg-gold-tint   { background-color: var(--clr-gold-bg) !important; }

.fw-medium      { font-weight: 500; }
.font-head      { font-family: var(--font-head) !important; }
.font-serif     { font-family: var(--font-head) !important; }

.craft-section       { padding: var(--section-py) 0; }
.craft-section-sm    { padding: var(--section-py-sm) 0; }
.craft-section-alt   { padding: var(--section-py) 0; background-color: var(--clr-bg-alt); }

/* ── 5. Buttons ────────────────────────────────────────────── */
.btn-craft {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-primary);
  background-color: var(--clr-primary);
  color: var(--clr-white);
  cursor: pointer;
  transition: background-color var(--t-base), border-color var(--t-base), box-shadow var(--t-base), transform var(--t-fast);
}
.btn-craft:hover {
  background-color: var(--clr-primary-dk);
  border-color: var(--clr-primary-dk);
  color: var(--clr-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-craft:active { transform: translateY(0); }

.btn-craft-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.75);
  background-color: transparent;
  color: var(--clr-white);
  cursor: pointer;
  transition: background-color var(--t-base), border-color var(--t-base), transform var(--t-fast);
}
.btn-craft-outline:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: var(--clr-white);
  color: var(--clr-white);
  transform: translateY(-1px);
}

/* Outline on light backgrounds */
.btn-craft-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-primary);
  background-color: transparent;
  color: var(--clr-primary);
  cursor: pointer;
  transition: background-color var(--t-base), color var(--t-base), transform var(--t-fast);
}
.btn-craft-outline-dark:hover {
  background-color: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-1px);
}

/* Gold CTA button */
.btn-craft-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-gold);
  background-color: var(--clr-gold);
  color: var(--clr-brown);
  cursor: pointer;
  transition: background-color var(--t-base), box-shadow var(--t-base), transform var(--t-fast);
}
.btn-craft-gold:hover {
  background-color: var(--clr-gold-dk);
  border-color: var(--clr-gold-dk);
  color: var(--clr-white);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Small variant */
.btn-craft-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
}

/* ── 6. Product Badges ──────────────────────────────────────── */
.product-badge {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  line-height: 1.4;
}
.badge-new         { background: var(--clr-primary); color: #fff; }
.badge-bestseller  { background: var(--clr-gold); color: var(--clr-brown); }
.badge-sustainable { background: var(--clr-green); color: #fff; }
.badge-lowstock    { background: #D97706; color: #fff; }

/* ── 7. Star Rating ────────────────────────────────────────── */
.star-rating { color: var(--clr-gold); font-size: 0.8rem; line-height: 1; }
.star-rating i { margin-right: 1px; }
.rating-text {
  font-size: 0.8rem;
  color: var(--clr-brown-lt);
  margin-left: 0.3rem;
}

/* ── 8. Site Navbar ────────────────────────────────────────── */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--clr-white);
  border-bottom: 1px solid var(--clr-border-lt);
  transition: box-shadow var(--t-base);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.site-navbar.scrolled {
  box-shadow: 0 2px 20px rgba(61,43,31,0.10);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 1rem;
}

/* Brand / Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.nav-brand-name {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--clr-primary);
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(2px);
}
.nav-brand-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

/* Main nav links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-brown);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--t-fast);
  white-space: nowrap;
}
/* Sliding underline replaces yellow background */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0.6rem;
  right: 0.6rem;
  height: 2px;
  background: var(--clr-primary);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform var(--t-base);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Utility icons (search, cart, account) */
.nav-utils {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}
.nav-util-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--clr-brown);
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast), background-color var(--t-fast);
  text-decoration: none;
}
.nav-util-btn:hover {
  color: var(--clr-primary);
  background-color: rgba(139,26,26,0.06);
}
.nav-util-btn .cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Currency selector */
.nav-currency {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-brown);
  background: transparent;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.nav-currency:hover { border-color: var(--clr-gold); color: var(--clr-primary); }

/* Hamburger toggle (mobile) */
.nav-toggler {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--clr-brown);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-toggler:hover { color: var(--clr-primary); background-color: rgba(139,26,26,0.06); }

/* ── 9. Category Bar ────────────────────────────────────────── */
.category-bar {
  background-color: var(--clr-primary);
  height: var(--cat-h);
  position: sticky;
  top: var(--nav-h);
  z-index: 1025;
  width: 100%;
  overflow: hidden;
}

.category-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  height: var(--cat-h);
  padding: 0 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.35rem;
  padding: 0 0.85rem;
  height: var(--cat-h);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
  white-space: nowrap;
}
.cat-link:hover,
.cat-link.active {
  color: var(--clr-gold-lt);
  border-bottom-color: var(--clr-gold-lt);
  background-color: rgba(255,255,255,0.06);
}
.cat-link-all {
  gap: 0.4rem;
  border-right: 1px solid rgba(255,255,255,0.2);
  margin-right: 0.25rem;
  padding-right: 1rem;
  color: #fff;
  font-weight: 700;
}
.cat-link-all:hover { color: var(--clr-gold-lt); border-right-color: rgba(255,255,255,0.2); }

/* "More" — hidden on wide screens, revealed when categories are hidden */
.cat-link-more {
  display: none;
  margin-left: 0.25rem;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 1rem;
  color: rgba(255,255,255,0.75);
}
.cat-link-more i { font-size: 0.7rem; }

/* ── 10. Off-canvas Mobile Menu ─────────────────────────────── */
.offcanvas-craft {
  max-width: 320px;
  background-color: var(--clr-bg);
  border-right: none !important;
}
.offcanvas-craft .offcanvas-header {
  background-color: var(--clr-primary);
  padding: 1rem 1.25rem;
}
.offcanvas-craft .btn-close {
  filter: invert(1);
  opacity: 0.9;
}
.offcanvas-craft .offcanvas-body { padding: 0; }

.mobile-nav-section { padding: 1rem 1.25rem 0.5rem; }
.mobile-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-brown-lt);
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 0.5rem;
  display: block;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-brown);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.mobile-nav-link:hover { background-color: var(--clr-gold-bg); color: var(--clr-primary); }
.mobile-nav-link i    { color: var(--clr-gold); font-size: 1rem; width: 18px; }
.mobile-cat-link {
  display: block;
  padding: 0.55rem 0.5rem;
  font-size: 0.88rem;
  color: var(--clr-brown);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.mobile-cat-link:hover { background-color: var(--clr-gold-bg); color: var(--clr-primary); }

.mobile-nav-divider {
  height: 1px;
  background: var(--clr-border);
  margin: 0.75rem 1.25rem;
}

/* ── 11. Search Overlay ─────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61,43,31,0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
}
.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 0 1.5rem;
}
.search-overlay-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.3rem;
  font-family: var(--font-head);
  background: var(--clr-white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  outline: none;
  color: var(--clr-brown);
}
.search-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t-fast);
}
.search-overlay-close:hover { background-color: rgba(255,255,255,0.25); }

/* ── 12. Hero Section ───────────────────────────────────────── */
.hero-section {
  position: relative;
  /* Fill most of the first screen; leave ~80px for the benefit strip.
     clamp: never below 560px, never above 760px, grows with viewport. */
  min-height: clamp(560px, calc(100vh - var(--nav-h) - var(--cat-h) - 80px), 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(
      160deg,
      rgba(107,18,18,0.97) 0%,
      rgba(139,26,26,0.94) 25%,
      rgba(90,45,25,0.92)  55%,
      rgba(46,107,53,0.80) 100%
    ),
    radial-gradient(
      ellipse 120% 100% at 50% 0%,
      rgba(201,150,42,0.18) 0%,
      transparent 60%
    );
  background-color: var(--clr-primary-dk);
}

/* Background image slide layers — JS crossfade slider */
.hero-slide-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}
@media (max-width: 767.98px) {
  .hero-slide-layer { background-position: center center; }
}

/* Gradient overlay — keeps hero text readable over uploaded photos */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg,
    rgba(26,10,10,0.72) 0%,
    rgba(100,20,20,0.58) 40%,
    rgba(20,38,18,0.42) 100%);
  pointer-events: none;
}

/* Decorative circles */
.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,150,42,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 3.25rem 1.5rem;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-gold-lt);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.hero-title span { color: var(--clr-gold-lt); }

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(253,246,238,0.78);
  max-width: 560px;
  margin: 0 auto 2.2rem;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Decorative divider dots below hero */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background-color var(--t-fast);
}
.hero-dot.active { background: var(--clr-gold-lt); }

/* ── 13. Trust Bar ──────────────────────────────────────────── */
.trust-bar {
  background-color: var(--clr-white);
  border-bottom: 1px solid var(--clr-border-lt);
  padding: 1rem 1.5rem;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-brown-md);
  white-space: nowrap;
}
.trust-item i {
  color: var(--clr-gold);
  font-size: 1.1rem;
}
.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--clr-border);
}

/* ── 14. Category Cards ─────────────────────────────────────── */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--t-slow);
}
.category-card:hover .category-card-bg {
  transform: scale(1.07);
}
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(61,43,31,0.08) 0%,
    rgba(61,43,31,0.55) 70%,
    rgba(61,43,31,0.82) 100%
  );
  transition: background var(--t-base);
}
.category-card:hover .category-card-overlay {
  background: linear-gradient(
    180deg,
    rgba(139,26,26,0.15) 0%,
    rgba(139,26,26,0.6)  70%,
    rgba(139,26,26,0.85) 100%
  );
}
.category-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 1.2rem 1rem;
  z-index: 2;
}
.category-card-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.category-card-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
  margin-top: 0.2rem;
}

/* CSS gradient backgrounds for category cards (no image needed) */
.cat-bg-incense      { background: linear-gradient(135deg, #7A3220 0%, #C9962A 100%); }
.cat-bg-prayerflags  { background: linear-gradient(135deg, #8B1A1A 0%, #E8B84B 50%, #2E6B35 100%); }
.cat-bg-statues      { background: linear-gradient(135deg, #5C4A1E 0%, #A67B1C 100%); }
.cat-bg-singingbowls { background: linear-gradient(135deg, #6B3A20 0%, #B87333 100%); }
.cat-bg-textiles     { background: linear-gradient(135deg, #8B1A1A 0%, #C44536 100%); }
.cat-bg-jewelry      { background: linear-gradient(135deg, #4A3B28 0%, #C9962A 100%); }
.cat-bg-decor        { background: linear-gradient(135deg, #3D2B1F 0%, #8B6914 100%); }
.cat-bg-gifts        { background: linear-gradient(135deg, #6B1212 0%, #C9962A 70%, #2E6B35 100%); }

/* Decorative icon in category card */
.category-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 3rem;
  opacity: 0.22;
  color: #fff;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
}
.category-card:hover .category-card-icon {
  opacity: 0.35;
  transform: translate(-50%, -55%);
}

/* ── 15. Product Cards ──────────────────────────────────────── */
.product-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-card__img { transform: scale(1.06); }

/* Gradient placeholder when no image */
.product-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.4;
  color: var(--clr-brown-md);
}

.product-card__badge-wrap {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 2;
}

/* Wishlist heart button */
.product-card__wishlist {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--clr-brown-lt);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
  z-index: 2;
}
.product-card__wishlist:hover,
.product-card__wishlist.active {
  color: var(--clr-primary);
  background: #fff;
  transform: scale(1.12);
}

.product-card__body {
  padding: 0.85rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.28rem;
}
.product-card__category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold);
}
.product-card__name {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--clr-brown);
  line-height: 1.3;
  margin: 0;
}
.product-card__desc {
  font-size: 0.8rem;
  color: var(--clr-brown-lt);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.product-card__price-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.product-card__price {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-primary);
}
.product-card__price-old {
  font-size: 0.85rem;
  color: var(--clr-brown-lt);
  text-decoration: line-through;
}
.product-card__shipping {
  font-size: 0.72rem;
  color: var(--clr-green);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.product-card__actions .btn-craft {
  flex: 1;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

/* ── 16. Section Headers ────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-header .view-all-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.section-header .view-all-link:hover {
  color: var(--clr-primary-dk);
  border-bottom-color: var(--clr-primary-dk);
}

/* ── 17. Artisan / Story Section ────────────────────────────── */
.artisan-section {
  background-color: var(--clr-bg-alt);
  padding: 3.25rem 0;
}
.artisan-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #5C3A1E, #8B1A1A);
  display: flex;
  align-items: center;
  justify-content: center;
}
.artisan-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artisan-img-placeholder {
  font-size: 5rem;
  opacity: 0.2;
  color: #fff;
}
.artisan-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}
.artisan-quote {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--clr-brown-md);
  border-left: 3px solid var(--clr-gold);
  padding: 0.75rem 1.25rem;
  margin: 0.9rem 0;
  line-height: 1.7;
  background: var(--clr-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.artisan-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.1rem;
}
.artisan-stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1;
}
.artisan-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--clr-brown-lt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ── 18. Brand Promise / USPs ───────────────────────────────── */
.brand-promise {
  background: var(--clr-primary);
  padding: 3.5rem 1.5rem;
}
.promise-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.promise-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: var(--clr-gold-lt);
  transition: background-color var(--t-base), transform var(--t-base);
}
.promise-card:hover .promise-icon {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}
.promise-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 0.5rem;
}
.promise-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0;
}

/* ── 19. Newsletter Section ─────────────────────────────────── */
.newsletter-section {
  background: var(--clr-primary-dk);
  padding: 4.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.newsletter-icon {
  font-size: 2.4rem;
  color: var(--clr-gold);
  margin-bottom: 0.75rem;
  display: block;
}
.newsletter-heading {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 0.6rem;
}
.newsletter-sub {
  font-size: 0.97rem;
  color: rgba(253,246,238,0.72);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.newsletter-input {
  flex: 1;
  padding: 0.85rem 1.5rem;
  border: none;
  outline: none;
  font-size: 0.92rem;
  font-family: var(--font-body);
  background: var(--clr-white);
  color: var(--clr-brown);
  border-radius: 0;
}
.newsletter-input::placeholder { color: var(--clr-brown-lt); }
.newsletter-btn {
  padding: 0.85rem 1.75rem;
  background: var(--clr-gold);
  color: var(--clr-brown);
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast);
}
.newsletter-btn:hover { background: var(--clr-gold-lt); }

/* ── 20. Footer ─────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(160deg, var(--clr-footer-bg) 0%, #4A1414 100%);
  color: #F8EFE2;
  padding: 4rem 1.5rem 0;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer-brand-col {}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.footer-logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
}
.footer-brand-name {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.footer-brand-desc {
  font-size: 0.85rem;
  color: #EADCCC;
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 1.25rem;
}
.footer-social {
  display: flex;
  gap: 0.5rem;
}
.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.footer-social-btn:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background: rgba(201,150,42,0.1);
}

.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 1.1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-links a {
  font-size: 0.87rem;
  color: #F0E4D4;
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--clr-gold-lt); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.87rem;
  color: #EADCCC;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.footer-contact-item i {
  color: var(--clr-gold);
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.footer-contact-item a {
  color: #EADCCC;
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-contact-item a:hover { color: var(--clr-gold-lt); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.13);
  margin: 2.5rem 0 0;
}
.footer-bottom {
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(248,239,226,0.7);
}
.footer-bottom a {
  color: rgba(248,239,226,0.7);
  transition: color var(--t-fast);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--clr-gold-lt); }
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-dev-credit { color: var(--clr-gold); }

/* ── 21. Visit & Contact Section ────────────────────────────── */
.visit-contact-section {
  background: var(--clr-bg-alt);
  padding: var(--section-py) 1.5rem;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.visit-contact-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.vc-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.5rem;
}
.vc-heading {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--clr-brown);
  margin: 0 0 2.25rem;
  line-height: 1.15;
}
.vc-items { display: flex; flex-direction: column; gap: 1.4rem; }
.vc-item  { display: flex; align-items: flex-start; gap: 1rem; }
.vc-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(139,26,26,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.vc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 0.2rem;
}
.vc-value { font-size: 0.95rem; color: var(--clr-brown); line-height: 1.55; }
.vc-value a { color: var(--clr-primary); text-decoration: none; transition: color var(--t-fast); }
.vc-value a:hover { color: var(--clr-primary-dk); text-decoration: underline; }

.vc-map-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.vc-map-iframe-wrap {
  position: relative;
  height: 290px;
  overflow: hidden;
}
.vc-map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.vc-map-body { padding: 1.25rem 1.5rem 1.5rem; }
.vc-map-address {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.vc-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.3rem;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-fast);
}
.vc-map-btn:hover { background: var(--clr-primary-dk); color: #fff; }
@media (max-width: 767.98px) {
  .vc-heading { margin-bottom: 1.75rem; }
  .vc-map-iframe-wrap { height: 220px; }
}

/* ── 22. Blog / Story Page ──────────────────────────────────── */
.blog-hero {
  background: var(--clr-bg-alt);
  padding: var(--section-py) 1.5rem calc(var(--section-py) * 0.75);
  border-bottom: 1px solid var(--clr-border);
}
.blog-hero-inner { max-width: var(--container-max); margin: 0 auto; }
.blog-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.6rem;
}
.blog-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--clr-brown);
  margin: 0 0 1.25rem;
  line-height: 1.12;
}
.blog-hero-body {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  max-width: 680px;
}

.blog-posts-section { padding: var(--section-py) 1.5rem; }
.blog-posts-inner   { max-width: var(--container-max); margin: 0 auto; }
.blog-section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--clr-brown);
  margin: 0 0 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 991.98px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-base), transform var(--t-base);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.blog-card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--clr-bg-alt) 0%, var(--clr-border) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-muted); font-size: 2.5rem;
}
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-date {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clr-brown);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.blog-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--t-fast);
  margin-top: auto;
}
.blog-card-link:hover { color: var(--clr-primary-dk); }

.blog-empty {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1rem;
  color: var(--clr-text-muted);
}

/* Individual blog post page */
.blog-post-section { padding: var(--section-py) 1.5rem; }
.blog-post-inner   { max-width: 780px; margin: 0 auto; }
.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--clr-primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color var(--t-fast);
}
.blog-post-back:hover { color: var(--clr-primary-dk); }
.blog-post-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--clr-brown);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.blog-post-meta {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.blog-post-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  max-height: 420px;
  object-fit: cover;
}
.blog-post-body {
  font-size: 1.03rem;
  color: var(--clr-text);
  line-height: 1.82;
}
.blog-post-body p { margin-bottom: 1.25rem; }

/* ── 23. Back-to-Top Button ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), background-color var(--t-fast);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.back-to-top:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-2px);
}

/* ── 22. Scroll Animations ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] {
  transform: none;
}
[data-reveal="left"] {
  transform: translateX(-28px);
}
[data-reveal="right"] {
  transform: translateX(28px);
}
[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible {
  transform: translateX(0);
}

/* Staggered children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-stagger].is-visible > * { opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* ── 23. CSS Keyframe Animations ────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Hero content entrance */
.hero-content .hero-eyebrow  { animation: fadeInUp 0.6s var(--ease) 0.1s both; }
.hero-content .hero-title     { animation: fadeInUp 0.7s var(--ease) 0.25s both; }
.hero-content .hero-subtitle  { animation: fadeInUp 0.7s var(--ease) 0.4s both; }
.hero-content .hero-cta-group { animation: fadeInUp 0.7s var(--ease) 0.55s both; }

/* ── 24. Form Styles ────────────────────────────────────────── */
.craft-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--clr-brown);
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.craft-input:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(201,150,42,0.12);
}
.craft-input::placeholder { color: var(--clr-brown-lt); }

/* ── 25. Dividers & Decorators ──────────────────────────────── */
.divider-craft {
  border: none;
  height: 1px;
  background: var(--clr-border);
  margin: 2rem 0;
}
.divider-gold {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--clr-gold);
  border-radius: var(--radius-full);
  margin: 0.55rem 0 1rem;
}
.divider-gold.mx-auto { margin-left: auto; margin-right: auto; }

/* ── 26. Responsive Breakpoints ─────────────────────────────── */

/* Large desktop adjustments */
@media (min-width: 1400px) {
  .container { max-width: var(--container-max); }
}

/* Tablet & down */
@media (max-width: 991.98px) {
  :root {
    --section-py: 4rem;
    --nav-h: 64px;
  }
  .nav-links       { display: none; }
  .nav-currency    { display: none; }
  .nav-toggler     { display: flex; }
  .nav-util-btn[data-hide-mobile] { display: none; }

  .artisan-stats   { gap: 1.25rem; }
  .trust-divider   { display: none; }
  .trust-bar-inner { gap: 1.25rem; }
  .trend-slide     { flex: 0 0 calc(33.333% - 0.67rem); }
}

/* Mobile */
@media (max-width: 767.98px) {
  :root {
    --section-py: 3rem;
    --section-py-sm: 2rem;
    --cat-h: 40px;
  }

  .hero-section     { min-height: clamp(420px, 58vh, 540px); }
  .hero-content     { padding: 2.5rem 1.25rem; }
  .hero-cta-group   { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-cta-group a, .hero-cta-group button { justify-content: center; }

  .category-bar-inner { padding: 0 0.75rem; }

  .newsletter-form    { flex-direction: column; border-radius: var(--radius-md); overflow: visible; gap: 0.5rem; }
  .newsletter-input   { border-radius: var(--radius-md); padding: 0.75rem 1.25rem; }
  .newsletter-btn     { border-radius: var(--radius-md); padding: 0.75rem 1.25rem; width: 100%; }

  .artisan-stats      { flex-wrap: wrap; gap: 1rem; }
  .footer-bottom      { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .trend-slide        { flex: 0 0 calc(48% - 0.5rem); min-width: 160px; }
}

/* Small mobile */
@media (max-width: 575.98px) {
  .trust-item span { display: none; }
  .trust-item      { gap: 0; font-size: 0.75rem; }
  .trust-bar-inner { justify-content: space-around; gap: 0.5rem; }

  .product-card__actions { flex-direction: column; }
  .trend-slide           { flex: 0 0 64%; }
}

/* ── 27. Trending Slider — continuous CSS marquee ───────────── */
.trend-slider-wrap { position: relative; }

.trend-track-outer {
  overflow: hidden;          /* clips the marquee to the section width */
}

.trend-track-inner {
  display: flex;
  gap: 1rem;
  width: max-content;        /* grows to fit all slides (2× set) */
  animation: trendMarquee 36s linear infinite;
  will-change: transform;
}

.trend-track-inner.is-paused {
  animation-play-state: paused;
}

@keyframes trendMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  /* -50% = one full set */
}

.trend-slide {
  flex: 0 0 240px;
  min-width: 0;
}

/* Reduce motion: disable animation, fall back to scrollable row */
@media (prefers-reduced-motion: reduce) {
  .trend-track-outer        { overflow-x: auto; scrollbar-width: none; }
  .trend-track-outer::-webkit-scrollbar { display: none; }
  .trend-track-inner        { animation: none; width: auto; }
  .trend-slide[aria-hidden="true"] { display: none; }
}

/* Mobile ≤767px: native swipe, hide duplicates, use scroll-snap */
@media (max-width: 767.98px) {
  .trend-track-outer {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
  }
  .trend-track-outer:active           { cursor: grabbing; }
  .trend-track-outer::-webkit-scrollbar { display: none; }
  .trend-track-inner {
    animation: none;
    width: auto;
    flex-wrap: nowrap;
  }
  .trend-slide[aria-hidden="true"]    { display: none; }
  .trend-slide { flex: 0 0 calc(48% - 8px); min-width: 160px; scroll-snap-align: start; }
}

/* ── 28. Compact Product Card (trending slider variant) ─────── */
.product-card--compact .product-card__img-wrap { aspect-ratio: 3 / 2; }
.product-card--compact .product-card__body {
  padding: 0.6rem 0.8rem 0.75rem;
  gap: 0.2rem;
}
.product-card--compact .product-card__name  { font-size: 0.88rem; }
.product-card--compact .product-card__desc  { display: none; }
.product-card--compact .product-card__price { font-size: 1rem; }
.product-card--compact .product-card__actions { margin-top: 0.35rem; }
.product-card--compact .product-card__actions .btn-craft {
  font-size: 0.72rem;
  padding: 0.38rem 0.6rem;
}

/* ════════════════════════════════════════════════════════════════
   PHASE 2 — STOREFRONT BROWSING PAGES
   ════════════════════════════════════════════════════════════════ */

/* ── 29. Breadcrumb ─────────────────────────────────────────── */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.page-breadcrumb a {
  color: var(--clr-muted);
  text-decoration: none;
  transition: color .18s;
}
.page-breadcrumb a:hover { color: var(--clr-gold); }
.page-breadcrumb .bi   { font-size: 0.65rem; opacity: .6; }
.page-breadcrumb-light a,
.page-breadcrumb-light,
.page-breadcrumb-light .bi  { color: rgba(255,255,255,0.7); }
.page-breadcrumb-light a:hover { color: #fff; }

/* ── 30. Page Hero Small (shop / search) ─────────────────────── */
.page-hero-sm {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #6B1212 100%);
  padding: 2.25rem 0 2rem;
  color: #fff;
}
.page-hero-sm .page-breadcrumb a,
.page-hero-sm .page-breadcrumb,
.page-hero-sm .page-breadcrumb .bi { color: rgba(255,255,255,0.65); }
.page-hero-sm .page-breadcrumb a:hover { color: var(--clr-gold-lt); }
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.page-hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

/* ── 31. Category Hero Banner ────────────────────────────────── */
.cat-hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
}
.cat-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 100%);
}
.cat-hero-inner { position: relative; z-index: 1; color: #fff; }
.cat-hero-icon { font-size: 2.75rem; line-height: 1; margin-bottom: 0.5rem; }
.cat-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.cat-hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: 0.97rem;
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 0.6rem;
}
.cat-hero-count {
  color: var(--clr-gold-lt);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0;
}

/* ── 32. Filter Sidebar ──────────────────────────────────────── */
.filter-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--cat-h) + 1rem);
  max-height: calc(100vh - var(--nav-h) - var(--cat-h) - 2rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-border) transparent;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-xs);
}
.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--clr-border);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.filter-group-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.filter-radio,
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--clr-brown);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background .16s;
  user-select: none;
}
.filter-radio:hover,
.filter-checkbox:hover { background: var(--clr-bg-alt); }
.filter-radio.checked  { color: var(--clr-primary); font-weight: 600; }
.filter-radio input,
.filter-checkbox input { accent-color: var(--clr-primary); }
.filter-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--clr-muted);
  background: var(--clr-bg-alt);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
}
.filter-clear-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-top: 0.6rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .18s;
}
.filter-clear-link:hover { color: var(--clr-primary); }

/* Apply Filters button — compact in sidebar, full-width in mobile drawer */
.filter-apply-btn {
  font-size: 0.82rem;
  padding: 0.45rem 1.25rem;
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.offcanvas .filter-apply-btn {
  width: 100%;
  justify-content: center;
}

/* Inside the offcanvas drawer — no sticky, no card chrome */
.offcanvas .filter-sidebar {
  position: static;
  max-height: none;
  overflow-y: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* ── 33. Shop Sort Bar ───────────────────────────────────────── */
.shop-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 1.25rem;
}
.shop-count {
  font-size: 0.875rem;
  color: var(--clr-muted);
  margin: 0;
}
.shop-count strong { color: var(--clr-brown); }
.shop-sort-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.shop-sort-select {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--clr-brown);
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  outline: none;
  transition: border-color .18s;
}
.shop-sort-select:focus { border-color: var(--clr-gold); }
.filter-active-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--clr-gold);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: middle;
}

/* ── 34. Filter Chips ────────────────────────────────────────── */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--clr-primary);
  background: rgba(139,26,26,0.08);
  border: 1px solid rgba(139,26,26,0.18);
  border-radius: 20px;
  padding: 0.25rem 0.65rem;
  text-decoration: none;
  transition: background .18s, color .18s;
  cursor: pointer;
}
.filter-chip:hover {
  background: var(--clr-primary);
  color: #fff;
}
.filter-chip-clear {
  background: var(--clr-bg-alt);
  color: var(--clr-muted);
  border-color: var(--clr-border);
}
.filter-chip-clear:hover {
  background: var(--clr-brown);
  color: #fff;
  border-color: var(--clr-brown);
}

/* ── 35. Shop Empty State ────────────────────────────────────── */
.shop-empty-state {
  text-align: center;
  padding: 4rem 1rem;
}
.shop-empty-icon {
  font-size: 3rem;
  color: var(--clr-border);
  margin-bottom: 1rem;
}
.shop-empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}
.shop-empty-state p {
  color: var(--clr-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ── 36. Pagination ──────────────────────────────────────────── */
.pagination-wrap { display: flex; justify-content: center; }
.pagination-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--clr-border);
  font-size: 0.875rem;
  color: var(--clr-brown);
  text-decoration: none;
  transition: all .18s;
  background: #fff;
}
.page-item .page-link:hover { border-color: var(--clr-gold); color: var(--clr-gold); }
.page-item.active .page-link {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}
.page-next .page-link { background: var(--clr-bg-alt); }

/* ── 37. Product Gallery (product.php) ───────────────────────── */
.product-gallery { display: flex; flex-direction: column; gap: 0.75rem; }
.product-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 420px;        /* cap height on large screens */
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform-origin: 50% 50%;
  /* transition covers zoom (desktop) and opacity change (thumb switching, all devices) */
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.22s ease;
}
.gallery-cat-icon { font-size: 5rem; opacity: .45; }
/* Real image fills placeholder when populated (Phase 3+) */
.gallery-real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* View label — updated by JS on thumbnail click */
.gallery-view-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.42);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
  z-index: 3;
  white-space: nowrap;
  pointer-events: none;
}
/* Clean CSS hover zoom — desktop pointer devices only */
@media (hover: hover) {
  .product-gallery__main { cursor: zoom-in; }
  .product-gallery__main:hover .product-gallery-placeholder { transform: scale(1.1); }
}
.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;          /* stay above zoomed placeholder layer */
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gallery-badge-bestseller { background: var(--clr-gold);    color: #fff; }
.gallery-badge-new        { background: var(--clr-green);   color: #fff; }
.gallery-badge-sustainable{ background: var(--clr-green);   color: #fff; }
.gallery-badge-low        { background: #e05d00;             color: #fff; }

.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
}
.product-gallery__thumb {
  flex: 1;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--clr-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color .18s;
}
.product-gallery__thumb.active { border-color: var(--clr-gold); }
.product-gallery__thumb:hover  { border-color: var(--clr-primary); }
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

/* ── 38. Product Info Column ─────────────────────────────────── */
.product-info { display: flex; flex-direction: column; gap: 0.85rem; }

.product-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-primary);
  background: rgba(139,26,26,0.08);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  text-decoration: none;
  width: fit-content;
  transition: background .18s;
}
.product-cat-pill:hover { background: rgba(139,26,26,0.14); color: var(--clr-primary); }

.product-info__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.2;
  margin: 0;
}
.product-info__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.rating-score { font-weight: 700; color: var(--clr-brown); }
.rating-link  { color: var(--clr-muted); text-decoration: underline; text-underline-offset: 2px; font-size: 0.82rem; }
.rating-link:hover { color: var(--clr-gold); }

.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.price-main    { font-size: 1.75rem; font-weight: 800; color: var(--clr-primary); font-family: var(--font-heading); }
.price-compare { font-size: 1rem; color: var(--clr-muted); text-decoration: line-through; }
.price-save    {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--clr-green);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

.product-info__short-desc {
  font-size: 0.92rem;
  color: var(--clr-brown);
  line-height: 1.7;
  margin: 0;
}

/* ── 39. Variants ────────────────────────────────────────────── */
.product-variants { display: flex; flex-direction: column; gap: 1rem; }
.variant-group    { display: flex; flex-direction: column; gap: 0.45rem; }
.variant-label    { font-size: 0.8rem; font-weight: 700; color: var(--clr-brown); text-transform: uppercase; letter-spacing: 0.05em; }
.variant-options  { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.variant-pill {
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 6px;
  background: #fff;
  color: var(--clr-brown);
  cursor: pointer;
  transition: all .18s;
  font-family: var(--font-body);
}
.variant-pill:hover  { border-color: var(--clr-gold); color: var(--clr-gold); }
.variant-pill.active { border-color: var(--clr-primary); background: var(--clr-primary); color: #fff; }

/* ── 40. Quantity Stepper ────────────────────────────────────── */
.qty-row { display: flex; flex-direction: column; gap: 0.45rem; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 38px;
  height: 38px;
  background: var(--clr-bg-alt);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--clr-brown);
  transition: background .18s;
}
.qty-btn:hover { background: var(--clr-border); }
.qty-input {
  width: 52px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--clr-border);
  border-right: 1.5px solid var(--clr-border);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--clr-brown);
  background: #fff;
  padding: 0;
  height: 38px;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── 41. Product CTA Row ─────────────────────────────────────── */
.product-cta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
/* Natural text-fit width on all screen sizes */
.btn-add-to-cart {
  font-size: 0.9rem;
  padding: 0.62rem 1.5rem;
  white-space: nowrap;
}
/* Mobile only: stretch button to fill remaining row space */
@media (max-width: 575.98px) {
  .btn-add-to-cart { flex: 1; }
}
.btn-wishlist-pdp {
  width: 44px;
  align-self: stretch;     /* matches sibling button height automatically */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.low-stock-notice {
  font-size: 0.82rem;
  color: #e05d00;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── 42. Product Trust Row ───────────────────────────────────── */
.product-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--clr-bg-alt);
  border-radius: 10px;
  border: 1px solid var(--clr-border);
}
.product-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--clr-brown);
  line-height: 1.3;
}
.product-trust-item .bi {
  color: var(--clr-green);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── 43. Product Meta ────────────────────────────────────────── */
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: var(--clr-muted);
  border-top: 1px solid var(--clr-border);
  padding-top: 0.85rem;
}
.product-meta-item strong { color: var(--clr-brown); }

/* ── 44. Product Accordion ───────────────────────────────────── */
.accordion-item-craft {
  border: 1.5px solid var(--clr-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.accordion-item-craft:last-child { margin-bottom: 0; }
.accordion-header-craft { margin: 0; }
.accordion-btn-craft {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-brown);
  cursor: pointer;
  text-align: left;
  transition: background .18s;
}
.accordion-btn-craft:not(.collapsed) {
  background: var(--clr-bg-alt);
  color: var(--clr-primary);
  border-bottom: 1px solid var(--clr-border);
}
.accordion-btn-craft .bi { color: var(--clr-gold); }
.accordion-body-craft {
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--clr-brown);
  line-height: 1.75;
  background: #fff;
}

/* ── 45. Reviews Summary ─────────────────────────────────────── */
.reviews-summary { display: flex; align-items: center; gap: 1.5rem; }
.reviews-score-big { display: flex; align-items: center; gap: 1rem; }
.score-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
}

/* ── 46. Related Category Cards ──────────────────────────────── */
.related-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.75rem;
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: all .22s;
}
.related-cat-card:hover {
  border-color: var(--clr-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(201,150,42,0.15);
}
.related-cat-icon  { font-size: 1.75rem; line-height: 1; }
.related-cat-name  { font-size: 0.82rem; font-weight: 700; color: var(--clr-primary); }
.related-cat-count { font-size: 0.72rem; color: var(--clr-muted); }

/* ── 47. Search Page Form ────────────────────────────────────── */
.search-page-form { max-width: 680px; margin: 0 auto; }
.search-page-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--clr-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.search-page-input-wrap:focus-within { border-color: var(--clr-gold); }
.search-page-icon {
  padding: 0 0.85rem;
  color: var(--clr-muted);
  font-size: 1rem;
  flex-shrink: 0;
}
.search-page-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--clr-brown);
  background: transparent;
  padding: 0.7rem 0;
}
.search-page-btn {
  border-radius: 0;
  font-size: 0.88rem;
  padding: 0.7rem 1.25rem;
  border-left: 1px solid var(--clr-border);
}

/* ── 48. Category bar — responsive shrink & progressive hide ─── */
/* cat-link-all = position 1 (always visible).
   cat-link-more = last child (always excluded via :not).
   DB categories = positions 2–N.
   nth-child(n+X) hides position X and every position after it.              */
@media (max-width: 1200px) {
  .cat-link { font-size: 0.75rem; letter-spacing: 0.06em; padding: 0 0.72rem; }
  .category-bar-inner .cat-link:nth-child(n+9):not(.cat-link-more) { display: none; }
  .cat-link-more { display: inline-flex; }
}
@media (max-width: 1000px) {
  .cat-link { font-size: 0.73rem; padding: 0 0.6rem; }
  .category-bar-inner .cat-link:nth-child(n+8):not(.cat-link-more) { display: none; }
}
@media (max-width: 850px) {
  .category-bar-inner { padding: 0 0.75rem; }
  .cat-link { font-size: 0.71rem; padding: 0 0.5rem; }
  .category-bar-inner .cat-link:nth-child(n+7):not(.cat-link-more) { display: none; }
}
@media (max-width: 700px) {
  .cat-link { font-size: 0.69rem; padding: 0 0.45rem; }
  .category-bar-inner .cat-link:nth-child(n+6):not(.cat-link-more) { display: none; }
}
@media (max-width: 580px) {
  .cat-link { font-size: 0.68rem; padding: 0 0.4rem; }
  .category-bar-inner .cat-link:nth-child(n+5):not(.cat-link-more) { display: none; }
  /* icon-only mode: hide text, tighten the All-categories link */
  .cat-link-all .cat-link-text { display: none; }
  .cat-link-all { padding-right: 0.6rem; gap: 0; }
}
@media (max-width: 550px) {
  /* smooth inner-padding reduction between 580px and 520px */
  .category-bar-inner { padding: 0 0.6rem; }
}
@media (max-width: 520px) {
  .cat-link { font-size: 0.67rem; padding: 0 0.38rem; }
  .category-bar-inner { padding: 0 0.5rem; }
  .category-bar-inner .cat-link:nth-child(n+5):not(.cat-link-more) { display: none; }
}

/* ── 49. Product card — improved mobile sizes ────────────────── */
@media (max-width: 575.98px) {
  .product-card__name   { font-size: 0.82rem; }
  .product-card__price  { font-size: 0.95rem; }
  .product-card__body   { padding: 0.65rem 0.75rem 0.7rem; }
  .product-card__actions .btn-craft { font-size: 0.72rem; padding: 0.35rem 0.6rem; }
}

/* ── 50. Product detail — spacing & responsive ───────────────── */
.product-detail-section {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.product-reviews-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--clr-border);
}

/* Section-py utility — mirrors craft-section padding */
.section-py    { padding: var(--section-py) 0; }
.section-py-sm { padding: var(--section-py-sm) 0; }

@media (max-width: 767.98px) {
  .product-trust-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .score-number { font-size: 2.5rem; }
  .price-main   { font-size: 1.45rem; }
  .product-info__title { font-size: 1.4rem; }
  /* Reduce gallery height on mobile so it doesn't dominate viewport */
  .product-gallery__main { max-height: 280px; }
  .product-detail-section { padding-top: 1.75rem; padding-bottom: 2.5rem; }
}
@media (max-width: 575.98px) {
  .product-gallery__main { max-height: 240px; }
  .product-info__title   { font-size: 1.25rem; }
  .price-main            { font-size: 1.3rem; }
  .variant-pill          { font-size: 0.78rem; padding: 0.3rem 0.65rem; }
}

/* =============================================================
   PHASE 4 — Cart, Wishlist, Flash Toast
   ============================================================= */

/* ── Flash Toast ──────────────────────────────────────────────── */
.mzn-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  max-width: 360px;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.28s ease, toast-out 0.35s ease 3.6s forwards;
}
.mzn-toast i { flex-shrink: 0; font-size: 1.05rem; margin-top: 0.1rem; }
.mzn-toast-success { background: #2a6134; }
.mzn-toast-error   { background: var(--clr-primary); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); pointer-events: none; }
}

/* ── Wishlist form wrapper on product cards ───────────────────── */
.product-card__wishlist-form {
  display: contents; /* transparent to layout — button retains absolute pos */
}

/* ── Cart / Wishlist page hero badge ─────────────────────────── */
.cart-page-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--clr-bg-alt);
  color: var(--clr-brown-md);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.75rem;
  margin-left: 0.6rem;
  vertical-align: middle;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Cart page layout ─────────────────────────────────────────── */
.cart-page-wrap {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Empty state (shared with wishlist) */
.cart-empty-state {
  text-align: center;
  padding: 4rem 1rem;
}
.cart-empty-icon {
  font-size: 3.5rem;
  color: var(--clr-border);
  margin-bottom: 1.25rem;
}
.cart-empty-state h2 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--clr-brown);
  margin-bottom: 0.5rem;
}
.cart-empty-state p {
  color: var(--clr-muted);
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.cart-empty-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Cart table header */
.cart-table-head {
  display: grid;
  grid-template-columns: 72px 1fr 80px 80px 90px 36px;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--clr-border);
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-brown-md);
}
@media (max-width: 767.98px) {
  .cart-table-head { grid-template-columns: 60px 1fr auto 36px; }
}

/* Cart line item */
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr 80px auto 90px 36px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border-lt);
}
@media (max-width: 767.98px) {
  .cart-line { grid-template-columns: 60px 1fr auto 36px; }
}

.cart-line-thumb {
  display: block;
  flex-shrink: 0;
}
.cart-line-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
@media (max-width: 767.98px) { .cart-line-img { width: 60px; height: 60px; } }

.cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.cart-line-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-brown);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-line-name:hover { color: var(--clr-primary); }
.cart-line-variant {
  font-size: 0.78rem;
  color: var(--clr-muted);
  background: var(--clr-bg-alt);
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}
.cart-line-sku {
  font-size: 0.72rem;
  color: var(--clr-muted);
}
.cart-line-price-mobile {
  font-size: 0.82rem;
  color: var(--clr-brown-md);
  font-weight: 500;
}
.cart-line-price,
.cart-line-total {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-brown);
  justify-content: center;
}
.cart-line-total { justify-content: flex-end; }

/* Cart qty stepper (compact version for cart lines) */
.cart-qty-form {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: border-color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
.cart-qty-btn:hover { border-color: var(--clr-primary); background: var(--clr-gold-bg); }
.cart-qty-input {
  width: 38px;
  text-align: center;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.2rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--clr-brown);
  background: var(--clr-bg);
  -moz-appearance: textfield;
  margin: 0 0.25rem;
}
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Remove button */
.cart-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--clr-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: color var(--t-fast), background var(--t-fast);
}
.cart-remove-btn:hover { color: var(--clr-primary); background: var(--clr-bg-alt); }

/* Cart footer row */
.cart-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
}
.cart-continue-btn {
  font-size: 0.85rem;
  padding: 0.48rem 1.1rem;
}
.cart-clear-btn {
  background: none;
  border: none;
  color: var(--clr-muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--t-fast);
  padding: 0.4rem 0;
}
.cart-clear-btn:hover { color: var(--clr-primary); }

/* ── Order Summary card ───────────────────────────────────────── */
.cart-summary {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: calc(var(--nav-h) + var(--cat-h) + 1rem);
}
.cart-summary-heading {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 1.25rem;
}
.cart-summary-rows { display: flex; flex-direction: column; gap: 0.65rem; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--clr-brown-md);
}
.cart-summary-row strong { color: var(--clr-brown); font-weight: 600; }
.cart-free-ship {
  color: var(--clr-green);
  font-weight: 600;
  font-size: 0.85rem;
}
.cart-ship-note { color: var(--clr-muted); font-size: 0.82rem; }
.cart-summary-hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 1rem 0;
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-brown);
  margin-bottom: 1rem;
}
.cart-total-price {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-primary);
}
.cart-ship-nudge {
  background: var(--clr-gold-bg);
  border: 1px solid #e8c87a;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  color: var(--clr-brown-md);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.cart-ship-achieved {
  background: var(--clr-green-bg);
  border: 1px solid #b0d9b4;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  color: var(--clr-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.cart-checkout-btn {
  font-size: 0.88rem;
  padding: 0.58rem 1.4rem;
  justify-content: center;
  text-decoration: none;
}
.cart-checkout-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.cart-trust-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--clr-border-lt);
  font-size: 0.72rem;
  color: var(--clr-muted);
}
.cart-trust-row span { display: flex; align-items: center; gap: 0.3rem; }

/* Wishlist link — lives inside .cart-summary card to stay with sticky panel */
.cart-wishlist-link {
  text-align: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--clr-border-lt);
  font-size: 0.82rem;
}
.cart-wishlist-link a {
  color: var(--clr-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--t-fast);
}
.cart-wishlist-link a:hover { color: var(--clr-primary); }

/* ── Wishlist page ────────────────────────────────────────────── */
.wishlist-page-wrap {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.wishlist-continue-row {
  text-align: center;
  margin-top: 2.5rem;
}

/* Wishlist card */
.wishlist-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.wishlist-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.wishlist-card-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.wishlist-card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--t-slow);
}
.wishlist-card:hover .wishlist-card-img { transform: scale(1.05); }

.wishlist-card-badge-wrap {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}
.wishlist-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.wishlist-card-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-brown);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.wishlist-card-name:hover { color: var(--clr-primary); }
.wishlist-card-price {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-primary);
}
.wishlist-price-old {
  font-size: 0.78rem;
  color: var(--clr-muted);
  text-decoration: line-through;
  font-weight: 400;
}
.wishlist-out-stock {
  font-size: 0.75rem;
  color: #e05d00;
  font-weight: 600;
}
.wishlist-atc-form { margin-top: auto; }
.wishlist-atc-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
}
.wishlist-remove-btn {
  background: none;
  border: none;
  color: var(--clr-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: color var(--t-fast);
}
.wishlist-remove-btn:hover { color: var(--clr-primary); }

/* =============================================================
   PHASE 5 — Checkout, Order Success, Track Order
   ============================================================= */

/* ── Shared form label & checkbox ────────────────────────────── */
.craft-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-brown-md);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}
.craft-label .req { color: var(--clr-primary); }
.craft-label .opt {
  font-weight: 400;
  color: var(--clr-muted);
  font-size: 0.78rem;
}
.craft-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--clr-brown-md);
  cursor: pointer;
  user-select: none;
}
.craft-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--clr-primary);
  flex-shrink: 0;
}
.craft-input.is-invalid {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(139,26,26,0.1);
}
.field-error {
  font-size: 0.77rem;
  color: var(--clr-primary);
  margin: 0.25rem 0 0;
}
textarea.craft-input {
  resize: vertical;
  min-height: 80px;
}

/* ── Checkout page ────────────────────────────────────────────── */
.checkout-wrap {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.checkout-errors-banner {
  background: #fff0f0;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.checkout-section {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.checkout-section-sm { padding: 1.25rem 1.5rem; }
.checkout-section-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-brown);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.checkout-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-body);
  flex-shrink: 0;
}

/* Payment options */
.payment-options { display: flex; flex-direction: column; gap: 0.6rem; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  position: relative;
}
.payment-option input[type="radio"] { display: none; }
.payment-option.selected,
.payment-option:has(input:checked) {
  border-color: var(--clr-primary);
  background: #fff7f7;
  box-shadow: 0 0 0 2px rgba(139,26,26,0.08);
}
.payment-option-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--clr-bg-alt);
}
.payment-option-icon {
  font-size: 1.3rem;
  color: var(--clr-brown-md);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.payment-option.selected .payment-option-icon,
.payment-option:has(input:checked) .payment-option-icon {
  color: var(--clr-primary);
}
.payment-option-body { flex: 1; min-width: 0; }
.payment-option-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-brown);
}
.payment-option-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--clr-muted);
  margin-top: 0.1rem;
}
.payment-option-check {
  color: var(--clr-primary);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity var(--t-fast);
  flex-shrink: 0;
}
.payment-option.selected .payment-option-check,
.payment-option:has(input:checked) .payment-option-check { opacity: 1; }
.payment-coming-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--clr-bg-alt);
  color: var(--clr-muted);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.55rem;
  flex-shrink: 0;
}

/* Checkout submit row */
.checkout-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.checkout-back-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
}
.checkout-place-btn {
  font-size: 0.95rem;
  padding: 0.7rem 2rem;
}
.checkout-trust-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
@media (max-width: 575.98px) {
  .checkout-submit-row {
    flex-direction: column-reverse;
    gap: 0.6rem;
  }
  .checkout-submit-row .checkout-back-btn,
  .checkout-submit-row .checkout-place-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Checkout order summary (right column) */
.checkout-summary {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--nav-h) + var(--cat-h) + 1rem);
}
.checkout-summary-heading {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkout-summary-items { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 0.5rem; }
.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.checkout-summary-item-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-size: cover;
}
.checkout-summary-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.checkout-summary-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-brown);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-summary-item-variant {
  font-size: 0.72rem;
  color: var(--clr-muted);
}
.checkout-summary-item-qty {
  font-size: 0.72rem;
  color: var(--clr-muted);
}
.checkout-summary-item-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-brown);
  white-space: nowrap;
  flex-shrink: 0;
}
.checkout-summary-trust {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--clr-border-lt);
  font-size: 0.72rem;
  color: var(--clr-muted);
}
.checkout-summary-trust span { display: flex; align-items: center; gap: 0.35rem; }

/* ── Order success page ───────────────────────────────────────── */
.order-success-hero { text-align: center; }
.order-success-check {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.order-success-sub {
  color: rgba(253,246,238,0.85);
  font-size: 1rem;
  margin-top: 0.5rem;
}
.order-success-wrap {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.order-number-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.order-number-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
}
.order-number-value {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-brown);
  display: block;
  letter-spacing: 0.03em;
}
.order-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}
.order-status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.order-status-warning { background: #fff8e1; color: #9a6d00; }
.order-status-info    { background: #e3f2fd; color: #0d47a1; }
.order-status-primary { background: #e8eaf6; color: #283593; }
.order-status-success { background: var(--clr-green-bg); color: var(--clr-green); }
.order-status-danger  { background: #fce4e4; color: var(--clr-primary); }
.order-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.order-card-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-brown-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.order-items-list { display: flex; flex-direction: column; gap: 0.75rem; }
.order-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.order-item-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-size: cover;
}
.order-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.order-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-brown);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-item-meta { font-size: 0.72rem; color: var(--clr-muted); }
.order-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-brown);
  white-space: nowrap;
  flex-shrink: 0;
}
.order-address-block {
  font-size: 0.875rem;
  color: var(--clr-brown-md);
  line-height: 1.7;
  margin: 0;
}
.order-success-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
@media (max-width: 575.98px) {
  .order-success-actions {
    flex-direction: column;
  }
  .order-success-actions .btn-craft {
    width: 100%;
    justify-content: center;
  }
}
.order-next-steps {
  background: var(--clr-gold-bg);
  border: 1px solid #e8c87a;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.order-next-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-brown);
  margin-bottom: 0.85rem;
}
.order-next-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.order-next-list li {
  font-size: 0.83rem;
  color: var(--clr-brown-md);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.5;
}
.order-next-list li i { color: var(--clr-gold-dk); flex-shrink: 0; margin-top: 0.1rem; }

/* ── Track order page ─────────────────────────────────────────── */
.track-wrap {
  padding-top: 2rem;
  padding-bottom: 4rem;
  max-width: 820px;
}
.track-form-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
}
.track-intro {
  font-size: 0.88rem;
  color: var(--clr-brown-md);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.track-not-found {
  text-align: center;
  padding: 2rem 1rem 0.5rem;
}
.track-not-found-icon {
  font-size: 2.5rem;
  color: var(--clr-border);
  margin-bottom: 0.75rem;
}
.track-not-found h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--clr-brown);
  margin-bottom: 0.4rem;
}
.track-not-found p {
  color: var(--clr-muted);
  font-size: 0.88rem;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}
.track-result-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
}
.track-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--clr-border-lt);
  margin-bottom: 1.25rem;
}

/* =============================================================
   PHASE 6 — Auth Pages, Account Dashboard
   ============================================================= */

/* ── Auth pages (login + register) ───────────────────────────── */
.auth-page {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: flex-start;
}
.auth-card {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.auth-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 1.1rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-brown);
}
.auth-logo-link img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 0.3rem;
}
.auth-subtitle {
  font-size: 0.875rem;
  color: var(--clr-muted);
  margin: 0;
}
.auth-submit-btn {
  margin-top: 1.25rem;
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.68rem;
}
.auth-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--clr-muted);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--clr-border-lt);
}
.auth-footer a {
  color: var(--clr-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* Password visibility toggle */
.auth-password-wrap {
  position: relative;
}
.auth-password-wrap .craft-input {
  padding-right: 2.75rem;
}
.auth-toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--clr-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color var(--t-fast);
}
.auth-toggle-pw:hover { color: var(--clr-brown); }

/* Label + forgot-password row */
.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.auth-label-row .craft-label { margin-bottom: 0; }
.auth-forgot-link {
  font-size: 0.78rem;
  color: var(--clr-muted);
  text-decoration: none;
}
.auth-forgot-link:hover { color: var(--clr-primary); text-decoration: underline; }

/* Guest checkout option on login page */
.auth-guest-option {
  text-align: center;
  font-size: 0.82rem;
  color: var(--clr-muted);
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* DB unavailable state */
.auth-unavailable {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.auth-unavailable-icon {
  font-size: 2.5rem;
  color: var(--clr-gold);
  margin-bottom: 0.75rem;
}
.auth-unavailable h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--clr-brown);
  margin-bottom: 0.4rem;
}
.auth-unavailable p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  max-width: 340px;
  margin: 0 auto 1.25rem;
  line-height: 1.65;
}
.auth-unavailable-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Navbar: logged-in account indicator ─────────────────────── */
.nav-account-btn {
  /* Override the fixed 38px width so icon + name both fit */
  width: auto;
  min-width: 38px;
  padding: 0 0.55rem;
  gap: 0.35rem;
  justify-content: flex-start;
}
.nav-account-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-brown-md);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}
@media (min-width: 992px) { .nav-account-name { display: block; } }

/* Mobile logout link */
.mobile-logout-link { color: var(--clr-primary) !important; }
.mobile-logout-link:hover { background: #fff7f7 !important; }

/* ── Account dashboard ────────────────────────────────────────── */
.account-wrap {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Sidebar */
.account-sidebar {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: calc(var(--nav-h) + var(--cat-h) + 1rem);
}
.account-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--clr-border-lt);
  margin-bottom: 1rem;
}
.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.account-sidebar-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--clr-brown);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-sidebar-email {
  font-size: 0.75rem;
  color: var(--clr-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--clr-brown-md);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.account-nav-link:hover { background: var(--clr-bg-alt); color: var(--clr-brown); }
.account-nav-link.active {
  background: var(--clr-gold-bg);
  color: var(--clr-primary);
  font-weight: 600;
}
.account-nav-badge {
  margin-left: auto;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.1rem 0.45rem;
  line-height: 1.4;
}
.account-nav-divider {
  border: none;
  border-top: 1px solid var(--clr-border-lt);
  margin: 0.6rem 0;
}
.account-nav-logout { color: var(--clr-primary); }
.account-nav-logout:hover { background: #fff7f7; }

/* Main content sections */
.account-section {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
}
.account-section-heading {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-brown);
  margin-bottom: 0.25rem;
}
.account-section-sub {
  font-size: 0.875rem;
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
}
.account-sub-heading {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-brown-md);
  margin: 1.5rem 0 0.85rem;
}

/* Stats row */
.account-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.account-stat-card {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  cursor: default;
}
.account-stat-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.1;
}
.account-stat-label {
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-top: 0.2rem;
}
@media (max-width: 575.98px) {
  .account-stats-row { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .account-stat-num  { font-size: 1.35rem; }
}

/* Quick links */
.account-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--clr-border-lt);
}
.account-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--clr-brown-md);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.account-quick-links a:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: #fff7f7;
}

/* Order row in account lists */
.account-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.account-order-row {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.account-order-row:hover { border-color: var(--clr-gold); box-shadow: var(--shadow-xs); }
.account-order-row-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.account-order-id { flex: 1; min-width: 120px; }
.account-order-number {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-brown);
  letter-spacing: 0.02em;
}
.account-order-date { font-size: 0.75rem; color: var(--clr-muted); }
.account-order-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.account-order-items-count { font-size: 0.78rem; color: var(--clr-muted); }
.account-order-total-col {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.account-order-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-primary);
}
.account-order-actions { display: flex; gap: 0.4rem; }
.account-order-view-btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
}

/* Empty state */
.account-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
}
.account-empty-icon {
  font-size: 2.5rem;
  color: var(--clr-border);
  margin-bottom: 0.75rem;
}
.account-empty-state h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--clr-brown);
  margin-bottom: 0.35rem;
}
.account-empty-state p { font-size: 0.875rem; color: var(--clr-muted); margin-bottom: 1rem; }

/* Phase notice (for unbuilt sections) */
.account-phase-notice {
  background: var(--clr-gold-bg);
  border: 1px solid #e8c87a;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--clr-brown-md);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.account-phase-notice i { flex-shrink: 0; color: var(--clr-gold-dk); margin-top: 0.1rem; }

/* Address card */
.account-address-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  position: relative;
  max-width: 340px;
}
.account-address-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--clr-primary);
  color: #fff;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}

/* Profile card */
.account-profile-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  max-width: 460px;
}
.account-profile-field { margin-bottom: 0.15rem; }
.account-profile-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 0.1rem;
}
.account-profile-value {
  font-size: 0.92rem;
  color: var(--clr-brown);
}

/* =============================================================
   POLISH PASS — Shop Filters, Track Order, Account, Branding
   ============================================================= */

/* ── Shop: filter loading state ─────────────────────────────── */
#shopGrid {
  transition: opacity 0.22s ease;
}
#shopGrid.is-filtering {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Order progress timeline ─────────────────────────────────── */
.order-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin: 1.75rem 0 2rem;
}
.order-timeline::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--clr-border);
  z-index: 0;
}
.order-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.order-timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--clr-border);
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
}
.order-timeline-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-muted);
  line-height: 1.35;
  max-width: 70px;
}
.order-timeline-step.is-done .order-timeline-icon {
  border-color: var(--clr-green);
  background: var(--clr-green);
  color: #fff;
}
.order-timeline-step.is-done .order-timeline-label { color: var(--clr-green); }
.order-timeline-step.is-active .order-timeline-icon {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(139,26,26,0.12);
}
.order-timeline-step.is-active .order-timeline-label {
  color: var(--clr-primary);
  font-weight: 700;
}
.order-timeline-cancelled {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff0f0;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--clr-primary);
  font-weight: 600;
  margin: 1.25rem 0 1.5rem;
}
@media (max-width: 575.98px) {
  .order-timeline { flex-direction: column; align-items: flex-start; gap: 0; padding-left: 0.5rem; }
  .order-timeline::before {
    top: 18px; left: 17px; right: auto;
    width: 2px; height: calc(100% - 36px);
  }
  .order-timeline-step {
    flex-direction: row; align-items: center;
    gap: 0.85rem; text-align: left;
    padding-bottom: 1.1rem; flex: none; width: 100%;
  }
  .order-timeline-icon { margin-bottom: 0; }
  .order-timeline-label { font-size: 0.78rem; max-width: none; }
}

/* ── Account: welcome banner ─────────────────────────────────── */
.account-welcome-banner {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #6B1212 55%, #5C3A1E 100%);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}
.account-welcome-avatar-lg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.28);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.account-welcome-text-block { flex: 1; min-width: 0; }
.account-welcome-greeting {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.1rem;
  line-height: 1.2;
}
.account-welcome-email {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-customer-badge {
  background: rgba(201,150,42,0.2);
  border: 1px solid rgba(201,150,42,0.42);
  color: var(--clr-gold-lt);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Account stat card hover accent */
.account-stat-card {
  transition: border-color var(--t-base), box-shadow var(--t-base);
  cursor: default;
}
.account-stat-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

/* Stronger section heading with gold rule */
.account-section-heading {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 1.25rem; /* overrides 0.25rem default */
}
.account-section-heading::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--clr-gold);
  margin-top: 0.45rem;
  border-radius: var(--radius-full);
}

/* Sub-heading left accent bar */
.account-sub-heading::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--clr-primary);
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Active sidebar link — left border accent */
.account-nav-link { border-left: 3px solid transparent; padding-left: calc(0.65rem - 3px); }
.account-nav-link.active {
  border-left-color: var(--clr-primary);
}
.account-nav-logout { border-left-color: transparent !important; }

/* Order rows on white background */
.account-order-row { background: var(--clr-white); }
.account-order-row:hover { background: var(--clr-gold-bg); border-color: var(--clr-gold); }

/* ── Navbar tagline removed — .nav-brand-sub now hidden ──────── */
.nav-brand-sub { display: none; }

/* ── Track Order: result layout polish ───────────────────────── */
.track-form-card,
.track-result-card {
  background: var(--clr-white);
  box-shadow: var(--shadow-sm);
}
.track-order-date {
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-top: 0.2rem;
}
.track-detail-card {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.track-notes-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border-lt);
}
.track-notes-block strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-brown-md);
  margin-bottom: 0.25rem;
}
.track-notes-block p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--clr-brown-md);
}
.track-lookup-btn {
  padding: 0.48rem 0.75rem;
  font-size: 0.85rem;
}

.track-result-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 575.98px) {
  .track-result-actions { flex-direction: column; }
  .track-result-actions .btn-craft { width: 100%; justify-content: center; }
}

/* ── Track detail card: section heading gold accent ──────────── */
.track-detail-card .order-card-heading {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 0.85rem;
  position: relative;
}
.track-detail-card .order-card-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--clr-gold);
  border-radius: 2px;
}

/* ── Shipping info rows (icon + label + value) ───────────────── */
.track-shipping-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.track-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.track-info-row > i {
  color: var(--clr-gold);
  font-size: 0.9rem;
  margin-top: 0.18rem;
  flex-shrink: 0;
  width: 15px;
  text-align: center;
}
.track-info-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 0.08rem;
}
.track-info-value {
  display: block;
  font-size: 0.875rem;
  color: var(--clr-brown);
  line-height: 1.5;
}

/* ── Payment method row ──────────────────────────────────────── */
.track-payment-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.track-payment-icon {
  font-size: 1.35rem;
  color: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.track-payment-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-brown);
  margin-bottom: 0.2rem;
}
.track-payment-note {
  font-size: 0.78rem;
  color: var(--clr-muted);
  margin: 0;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE POLISH — 2026-05-29
   Additional scaling layers on top of existing breakpoints.
   All rules here are additive — they do not replace rules above.
═══════════════════════════════════════════════════════════════ */

/* ── Narrow desktop & DevTools ~850-900px ───────────────────── */
@media (max-width: 900px) {
  :root {
    --section-py:    3.5rem;
    --section-py-sm: 2.25rem;
  }
  .hero-section          { min-height: clamp(400px, 52vh, 520px); }
  .hero-subtitle         { font-size: 0.93rem; }
  .artisan-section       { padding: 2.75rem 0; }
  .newsletter-section    { padding: 3.5rem 1.25rem; }
  .newsletter-icon       { font-size: 2.1rem; }
  .visit-contact-section { padding: 3rem 1.25rem; }
  .vc-map-iframe-wrap    { height: 250px; }
  .blog-hero             { padding: 3rem 1.25rem 2.25rem; }
  .blog-posts-section    { padding: 3rem 1.25rem; }
}

/* ── 768px ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-py:    2.75rem;
    --section-py-sm: 1.75rem;
  }
  .newsletter-section    { padding: 3rem 1.25rem; }
  .newsletter-sub        { margin-bottom: 1.4rem; }
}

/* ── Small mobile ≤576px ─────────────────────────────────────── */
@media (max-width: 576px) {
  :root {
    --section-py:    2.25rem;
    --section-py-sm: 1.5rem;
  }

  /* Hero */
  .hero-section          { min-height: clamp(340px, 54vh, 460px); }
  .hero-content          { padding: 2rem 1rem; }

  /* Product cards */
  .product-card__body    { padding: 0.6rem 0.7rem 0.7rem; }
  .product-card__name    { font-size: 0.82rem; }
  .product-card__price   { font-size: 0.98rem; }
  .product-card__desc    { display: none; }

  /* Category cards */
  .category-card__name   { font-size: 0.8rem; }

  /* Artisan / story */
  .artisan-section       { padding: 2.25rem 0; }
  .artisan-img-wrap      { max-width: 85vw; margin: 0 auto; }

  /* Newsletter */
  .newsletter-section    { padding: 2.25rem 1rem; }
  .newsletter-icon       { font-size: 1.75rem; margin-bottom: 0.4rem; }
  .newsletter-sub        { font-size: 0.875rem; margin-bottom: 1.1rem; }

  /* Visit & Contact */
  .visit-contact-section { padding: 2.25rem 1rem; }
  .vc-heading            { margin-bottom: 1.5rem; }
  .vc-map-iframe-wrap    { height: 180px; }
  .vc-map-body           { padding: 1rem 1.1rem 1.1rem; }
  .vc-items              { gap: 1.1rem; }
  .vc-icon               { width: 2.1rem; height: 2.1rem; font-size: 0.85rem; }

  /* Footer */
  .site-footer           { padding: 2.5rem 1rem 0; }
  .footer-brand-desc     { max-width: 100%; font-size: 0.82rem; }
  .footer-social-btn     { width: 30px; height: 30px; font-size: 0.85rem; }

  /* Blog */
  .blog-hero             { padding: 2.25rem 1rem 1.75rem; }
  .blog-posts-section    { padding: 2.25rem 1rem; }
  .blog-card-body        { padding: 1rem; }
  .blog-card-title       { font-size: 1rem; }
  .blog-card-excerpt     { font-size: 0.83rem; }
}

/* ── Very small phones ≤430px ────────────────────────────────── */
@media (max-width: 430px) {
  :root {
    --section-py:    1.75rem;
    --section-py-sm: 1.25rem;
  }

  /* Hero */
  .hero-section          { min-height: clamp(300px, 50vh, 380px); }
  .hero-content          { padding: 1.5rem 0.875rem; }
  .hero-eyebrow          { font-size: 0.62rem; letter-spacing: 0.12em; }
  .hero-cta-group        { gap: 0.6rem; }

  /* Newsletter */
  .newsletter-section    { padding: 2rem 0.875rem; }

  /* Visit & Contact */
  .visit-contact-section { padding: 1.75rem 0.875rem; }
  .vc-map-iframe-wrap    { height: 155px; }

  /* Footer */
  .site-footer           { padding: 2rem 0.875rem 0; }
  .footer-brand-row      { gap: 0.4rem; }
  .footer-brand-name     { font-size: 0.9rem; }

  /* Blog */
  .blog-hero             { padding: 1.75rem 0.875rem 1.5rem; }
  .blog-posts-section    { padding: 1.75rem 0.875rem; }
}

/* ── 390px / 375px iPhones ───────────────────────────────────── */
@media (max-width: 390px) {
  .product-card__actions .btn-craft { font-size: 0.7rem; padding: 0.3rem 0.55rem; }
  .newsletter-section               { padding: 1.75rem 0.75rem; }
  .visit-contact-section            { padding: 1.5rem 0.75rem; }
  .site-footer                      { padding: 1.75rem 0.75rem 0; }
}

/* ═══════════════════════════════════════════════════════════════
   TARGETED RESPONSIVE CORRECTIONS — 2026-05-29
   Specific targeted fixes layered on top of existing breakpoints.
═══════════════════════════════════════════════════════════════ */

/* ── Safety net: prevent horizontal page overflow ───────────── */
html, body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

/* ── 1. Artisan / Our Story image — cap height to prevent full-screen square ── */
/* The artisan-img-wrap uses aspect-ratio:1/1; when col-12 stacks at mobile it becomes
   full-viewport-width × full-viewport-width. Max-height caps the square safely.       */

@media (max-width: 991.98px) {
  .artisan-img-wrap { max-height: 320px; }
}
@media (max-width: 767.98px) {
  .artisan-img-wrap {
    max-height: 260px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
  .artisan-text-col   { padding-top: 0.25rem; }
  .artisan-quote      { padding: 0.6rem 1rem; font-size: 0.9rem; margin: 0.65rem 0; }
  .artisan-stats      { gap: 1.25rem; margin-top: 0.85rem; }
  .artisan-stat-num   { font-size: 1.75rem; }
}
@media (max-width: 576px) {
  .artisan-img-wrap   { max-height: 220px; max-width: 100%; border-radius: var(--radius-lg); }
  .artisan-img-placeholder { font-size: 3.5rem; }
  .artisan-quote      { padding: 0.5rem 0.85rem; font-size: 0.87rem; margin: 0.55rem 0; }
  .artisan-stats      { gap: 1rem; margin-top: 0.7rem; flex-wrap: wrap; }
  .artisan-stat-num   { font-size: 1.5rem; }
  .artisan-stat-label { font-size: 0.7rem; }
}
@media (max-width: 430px) {
  .artisan-img-wrap { max-height: 180px; }
  .artisan-stats    { gap: 0.75rem; }
  .artisan-stat-num { font-size: 1.3rem; }
}

/* ── 2. Global button scaling ──────────────────────────────────── */
@media (max-width: 768px) {
  .btn-craft,
  .btn-craft-outline,
  .btn-craft-outline-dark,
  .btn-craft-gold {
    padding: 0.6rem 1.4rem;
    font-size: 0.84rem;
  }
}
@media (max-width: 576px) {
  .btn-craft,
  .btn-craft-outline,
  .btn-craft-outline-dark,
  .btn-craft-gold {
    padding: 0.52rem 1.15rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
  }
}
@media (max-width: 430px) {
  .btn-craft,
  .btn-craft-outline,
  .btn-craft-outline-dark,
  .btn-craft-gold {
    padding: 0.46rem 0.95rem;
    font-size: 0.78rem;
  }
  .btn-craft-sm { padding: 0.35rem 0.8rem; font-size: 0.72rem; }
}

/* ── 3. Product detail compacting ─────────────────────────────── */
@media (max-width: 768px) {
  .product-detail-section { padding-top: 1.25rem; padding-bottom: 1.5rem; }
}
@media (max-width: 576px) {
  .product-detail-section { padding-top: 1rem; padding-bottom: 1.25rem; }
}

/* ── 4. Cart page compacting ──────────────────────────────────── */
@media (max-width: 576px) {
  .cart-line-img  { width: 52px; height: 52px; }
  .cart-line-name { font-size: 0.85rem; }
}

/* ── 5. Checkout form compacting ──────────────────────────────── */
@media (max-width: 768px) {
  .checkout-section-card,
  .checkout-card { padding: 1.25rem 1rem !important; }
}
@media (max-width: 576px) {
  .checkout-section-card,
  .checkout-card { padding: 1rem 0.875rem !important; }
}

/* ── 6. Shop/category product grid gap compacting ─────────────── */
@media (max-width: 576px) {
  .product-grid .row { --bs-gutter-x: 0.6rem; --bs-gutter-y: 0.6rem; }
}

/* ── 7. Table cells — no wrap for admin tables ────────────────── */
.adm-table thead th,
.adm-table tbody td { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════
   OUR STORY / ARTISAN SECTION — Intentional Mobile Layout
   2026-05-29: Clean stacked card at narrow widths.
   These rules are final overrides; they cascade after all earlier
   artisan-section rules in this file.
═══════════════════════════════════════════════════════════════ */

/* Base: prevent text from breaking out of container */
.artisan-text-col,
.artisan-quote {
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

/* ── ≤767.98px: stacked layout — card-style text block ───────── */
@media (max-width: 767.98px) {
  .artisan-section { padding: 2rem 0 2.25rem; }

  /* Image: spec cap ≤768px = 240px */
  .artisan-img-wrap {
    max-height: 240px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Text column becomes a white card on cream section background */
  .artisan-text-col {
    padding: 1.25rem;
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow-wrap: break-word;
    margin-top: 0;
  }

  /* Paragraph text: slightly smaller, comfortable line-height */
  .artisan-text-col > p {
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 0.6rem;
  }

  /* Quote box: compact */
  .artisan-quote {
    font-size: 0.875rem;
    padding: 0.55rem 0.875rem;
    margin: 0.6rem 0;
    line-height: 1.6;
  }

  /* Stats: 3 equal columns, single row */
  .artisan-stats {
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .artisan-stats > div {
    flex: 1;
    min-width: 0;
  }
  .artisan-stat-num   { font-size: 1.6rem; }
  .artisan-stat-label { font-size: 0.68rem; letter-spacing: 0.06em; }
}

/* ── ≤575.98px ───────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  /* Image: spec cap ≤576px = 190px */
  .artisan-img-wrap {
    max-height: 190px;
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .artisan-text-col { padding: 1rem; }

  .artisan-text-col > p {
    font-size: 0.855rem;
    line-height: 1.7;
  }

  .artisan-quote {
    font-size: 0.845rem;
    padding: 0.5rem 0.75rem;
    line-height: 1.55;
  }

  .artisan-stat-num   { font-size: 1.35rem; }
  .artisan-stat-label { font-size: 0.66rem; }
}

/* ── ≤430px ──────────────────────────────────────────────────── */
@media (max-width: 430px) {
  /* Image: spec cap ≤430px = 160px */
  .artisan-img-wrap { max-height: 160px; }

  .artisan-text-col { padding: 0.875rem; }

  .artisan-stats { gap: 0.3rem; }
  .artisan-stat-num   { font-size: 1.2rem; }
  .artisan-stat-label { font-size: 0.62rem; }
}

/* ── ≤390px ──────────────────────────────────────────────────── */
@media (max-width: 390px) {
  .artisan-img-wrap { max-height: 148px; }
  .artisan-text-col { padding: 0.75rem; }
  .artisan-stat-num { font-size: 1.1rem; }
}
