/* === Bathini Fiber — Light Minimalist Luxury Stylesheet === */
/* Mobile-First Architecture — Base styles target 320px+ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --brand: #C8A96E;
  --brand-dark: #A88B4A;
  --brand-light: #E8D5A8;
  --gold: #C8A96E;
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-card: #F5F2ED;
  --ink: #2D2A26;
  --muted: #8A8579;
  --border: #E5E0D5;
  --accent: #C8A96E;
  --accent-hover: #A88B4A;
  --danger: #D45454;
  --success: #5B9E6F;
  --warn: #D4A846;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  --gold-glow: 0 0 15px rgba(200, 169, 110, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Fluid spacing tokens */
  --space-xs: clamp(4px, 0.8vw, 8px);
  --space-sm: clamp(8px, 1.5vw, 14px);
  --space-md: clamp(14px, 2.5vw, 24px);
  --space-lg: clamp(20px, 3.5vw, 32px);
  --space-xl: clamp(28px, 5vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  /* overflow-x:clip trims horizontal bleed without creating a scroll container.
     Unlike overflow-x:hidden it does NOT break position:sticky on children. */
  overflow-x: clip;
  width: 100%; /* correct property for root — max-width does nothing on html/body */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.2px;
  color: var(--ink);
}

main.main {
  animation: pageFadeIn 0.5s ease-out;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--brand-dark);
  text-decoration: none;
}
img { max-width: 100%; height: auto; display: block; }

/* Typography — fluid mobile-first */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  color: var(--gold);
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: 0.3px;
}
h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; }
h2 { font-size: clamp(1.2rem, 3vw, 1.625rem); font-weight: 500; }
h3 { font-size: 20px; font-weight: 500; }
h4 { font-size: 16px; font-weight: 500; }

/* Utilities */
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(12px, 3vw, 40px);
}
.container.narrow { max-width: 880px; margin: 0 auto; }
.section { padding: var(--space-xl) 0; }
.muted { color: var(--muted); font-size: 14px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* === Topbar & Header === */
.topbar {
  background: var(--surface-card);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.6px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
.topbar strong { color: var(--gold); }
.topbar-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-close:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }
.topbar-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
}

/* Header — mobile-first: stacked search row */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-sm);
  align-items: center;
  padding: clamp(8px, 1.5vw, 16px) clamp(12px, 3vw, 40px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; overflow: hidden; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: clamp(56px, 8vw, 112px);
  height: clamp(36px, 4vw, 64px);
  border-radius: 0;
  object-fit: cover;
  object-position: center 58%;
  display: block;
  flex-shrink: 0;
}
.brand-logo.big {
  width: min(72vw, 260px);
  height: clamp(112px, 34vw, 170px);
  object-position: center 58%;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1.375rem);
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Search — full-width row below brand on mobile */
.search {
  display: flex;
  max-width: 100%;
  width: 100%;
  position: relative;
  grid-column: 1 / -1;
  order: 4;
}
.search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  transition: var(--transition);
}
.search input:focus {
  outline: none;
  border-color: var(--gold);
  background: white;
  box-shadow: var(--gold-glow);
}
.search button {
  background: var(--gold);
  color: white;
  border: 0;
  padding: 0 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.search button:hover { background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: clamp(6px, 1.5vw, 16px); }
.nav-link {
  color: var(--ink);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover { color: var(--gold); text-decoration: none; }
.nav-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.nav-link--cta {
  background: var(--gold);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius);
  min-height: 36px;
  font-weight: 600;
}
.nav-link--cta:hover { background: var(--brand-dark); color: white; }
.cart-link { position: relative; color: var(--gold); font-size: 22px; transition: var(--transition); display: inline-flex; align-items: center; padding: 6px 2px; min-height: 44px; }
.cart-link:hover { transform: scale(1.08); }
.cart-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.cart-count {
  position: absolute;
  top: -8px; right: -6px;
  background: var(--gold);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 2px 6px;
  min-width: 18px; text-align: center;
  box-shadow: var(--shadow-sm);
}

/* === Hamburger Menu Toggle — visible on mobile === */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  flex-shrink: 0;
}
.menu-toggle:hover {
  border-color: var(--gold);
  background: rgba(200, 169, 110, 0.06);
}
.menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Primary Nav — collapsed on mobile === */
.primary-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
.primary-nav.nav-open {
  max-height: 800px;
  opacity: 1;
}
.primary-nav .container {
  display: flex;
  justify-content: center;
  padding: 0 clamp(12px, 3vw, 40px);
}
.primary-nav ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
  width: 100%;
}
.primary-nav a {
  display: flex;
  align-items: center;
  color: var(--ink);
  padding: 14px 16px;
  min-height: 48px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  border-bottom: 1px solid var(--border);
}
.primary-nav a:last-child { border-bottom: none; }
.primary-nav .nav-category-item { display: list-item; }
.primary-nav a:hover, .primary-nav a.active {
  background: var(--surface-card);
  color: var(--gold);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.primary-nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}
.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 100%;
  left: 0;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.5px;
  min-height: 40px;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-primary { background: var(--gold); color: white; border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: white; }
.btn-block { width: 100%; display: block; margin-top: 10px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.link-btn { background: none; border: 0; color: var(--gold); cursor: pointer; padding: 0; font-size: inherit; font-family: inherit; transition: var(--transition); }
.link-btn:hover { text-decoration: none; color: var(--brand-dark); }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { color: #e07060; }
.link-arrow { color: var(--gold); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; transition: var(--transition); }
.link-arrow:hover { color: var(--brand-dark); transform: translateX(3px); }

/* === Flash messages — full-width on mobile === */
.flash-stack {
  position: fixed;
  top: 72px; right: 10px;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
  max-width: calc(100vw - 20px);
  width: 100%;
}
.flash {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
  color: var(--ink);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.flash-success { border-left-color: var(--success); }
.flash-success::before { content: '✓'; color: var(--success); font-weight: 700; margin-right: 8px; }
.flash-error { border-left-color: var(--danger); }
.flash-error::before { content: '⚠'; margin-right: 8px; }
.flash-close { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); padding: 0 0 0 12px; transition: var(--transition); }
.flash-close:hover { color: var(--ink); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* === Hero — compact on mobile === */
.hero {
  position: relative;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: heroZoomIn 8s ease-out forwards;
}
@keyframes heroZoomIn {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 10, 5, 0.30) 0%,
    rgba(15, 10, 5, 0.52) 50%,
    rgba(15, 10, 5, 0.72) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(28px, 5vh, 60px) clamp(14px, 4vw, 64px);
  max-width: 860px;
  width: 100%;
  animation: heroContentEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}
@keyframes heroContentEntrance {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.eyebrow {
  display: inline-block;
  background: rgba(200, 169, 110, 0.15);
  color: #F5D98A;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(200, 169, 110, 0.35);
  backdrop-filter: blur(4px);
  animation: eyebrowSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.5s;
}
@keyframes eyebrowSlide {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-content h1 {
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  line-height: 1.08;
  margin-bottom: 16px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}
.hero-content .accent { color: #F5D98A; }
.hero-content > p {
  font-size: clamp(0.875rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto clamp(16px, 3vw, 28px);
  max-width: 600px;
  line-height: 1.7;
}
.hero-br { display: none; }

/* Hero CTA — stacked on mobile */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 4vw, 36px);
}
.btn-hero-primary {
  background: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  width: 100%;
  text-align: center;
}
.btn-hero-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  text-decoration: none;
}
.btn-hero-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  width: 100%;
  text-align: center;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Hero stats — wrapped 2×2 on mobile */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 28px);
  border-right: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  min-width: 45%;
}
.hero-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.15); }
.hero-stat:last-child { border-bottom: none; }
.hero-stat strong {
  font-size: 14px;
  font-weight: 700;
  color: #F5D98A;
  letter-spacing: 0.3px;
}
.hero-stat span {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.4px;
}

/* === Trust bar — single column on mobile === */
.trust-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--space-md) 0; }
.trust-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(10px, 2vw, 24px); text-align: center;
}
.trust-grid > div {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 8px;
  border-right: none;
  border-radius: var(--radius);
  transition: transform 0.3s ease, background 0.3s ease;
}
.trust-grid > div:last-child { border-right: none; }
.trust-grid > div:hover {
  transform: translateY(-2px);
  background: rgba(200, 169, 110, 0.04);
}
.trust-grid strong { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: 0.5px; }
.trust-grid span { color: var(--muted); font-size: 12px; }

/* === Section heads === */
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.section-head h2 { margin: 0; }

/* === Category grid === */
/* Mobile-first: horizontal scroll-snap carousel */
.category-grid {
  display: flex;
  gap: clamp(12px, 3vw, 16px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: clamp(12px, 3vw, 16px);
  padding: 4px clamp(12px, 3vw, 16px) 16px;
  scrollbar-width: none;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 4%,
    black 93%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 4%,
    black 93%,
    transparent 100%
  );
  transition:
    gap 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.category-grid::-webkit-scrollbar { display: none; }

/* Scroll hint — visible only on mobile carousel */
.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.4px;
  animation: scrollHintPulse 2s ease-in-out infinite;
}
@keyframes scrollHintPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.scroll-hint svg {
  animation: scrollHintArrow 1.5s ease-in-out infinite;
}
@keyframes scrollHintArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Each card snaps and has a fluid mobile width */
.category-grid > .category-card {
  flex: 0 0 clamp(240px, 72vw, 280px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  opacity: 0;
  transform: translateX(20px);
  animation: categoryCardIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  animation-delay: calc(var(--stagger-index, 0) * 100ms);
}

@keyframes categoryCardIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-grid > .category-card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .scroll-hint { animation: none; }
  .scroll-hint svg { animation: none; }
}

.category-card {
  display: block;
  background: var(--surface-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  text-decoration: none;
  color: var(--ink);
  outline: none;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow), 0 0 0 1px rgba(200, 169, 110, 0.08);
  text-decoration: none;
}
.category-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.category-card-img {
  overflow: hidden;
  position: relative;
}
.category-card-img img,
.category-card-img .placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.category-card:hover .category-card-img img,
.category-card:hover .category-card-img .placeholder-img {
  transform: scale(1.05);
}
.category-card-body {
  padding: 14px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.category-card-body h3 {
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-count {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.category-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--surface-card) 0%, var(--border) 100%);
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 56px;
  font-weight: 700;
  border-bottom: none;
}

/* === Product grid & card — single column on mobile === */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
.product-card {
  display: block;
  background: var(--surface-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease;
  text-decoration: none;
  color: var(--ink);
}
.product-card:hover { transform: translateY(-4px) scale(1.02); border-color: var(--gold); box-shadow: var(--shadow); text-decoration: none; }
.product-card-img { position: relative; aspect-ratio: 1; background: var(--bg); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.placeholder-img {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface-card) 0%, var(--border) 100%);
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
/* min-height:400px + aspect-ratio:1 = 400px wide minimum → caps to viewport */
.placeholder-large { aspect-ratio: 1; min-height: min(400px, 80vw); max-width: 100%; }
.badge {
  position: absolute;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.badge-discount { top: 10px; left: 10px; background: var(--gold); color: white; border: 1px solid rgba(255,255,255,0.1); }
.badge-featured { top: 10px; right: 10px; background: var(--brand-dark); color: white; font-weight: 800; }
.product-card-body { padding: 14px 16px; background: var(--surface); border-top: 1px solid var(--border); }
.product-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }
.product-card-body h3 { font-size: 15px; margin: 4px 0 8px; line-height: 1.4; min-height: 42px; color: var(--ink); }
.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-row.big { font-size: 20px; }
.price { color: var(--gold); font-weight: 700; font-size: 16px; }
.price-row.big .price { font-size: 28px; }
.price-strike { color: var(--muted); text-decoration: line-through; font-size: 13px; }

/* Staggered card entrances */
.product-grid > *,
.category-grid > *,
.testimonial-grid > *,
.trust-grid > * {
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

/* === Shop layout — single column on mobile === */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.shop-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  height: fit-content;
  position: static;
}
.shop-filters h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gold); border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 10px; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 4px; }
.filter-list a {
  display: block; padding: 8px 12px;
  border-radius: 6px; color: var(--ink);
  font-size: 14px;
  transition: var(--transition);
}
.filter-list a:hover, .filter-list a.active {
  background: var(--gold);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

/* --- Mobile: sticky pinned category filter --- */
@media (max-width: 767px) {
  .shop-filters {
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 10px var(--space-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    will-change: opacity, transform;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .shop-filters::-webkit-scrollbar { display: none; }
  .shop-filters h4 { display: none; }
  .filter-list {
    display: flex;
    gap: 8px;
  }
  .filter-list li {
    margin-bottom: 0;
    flex-shrink: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .filter-list a {
    white-space: nowrap;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    background: transparent;
    color: var(--ink);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease, color 0.3s ease;
  }
  .filter-list a.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
  }

  /* Scrolling: non-active pills fade out, active pill centers */
  .shop-filters.filter-scrolling .filter-list li {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
  }
  .shop-filters.filter-scrolling .filter-list li.active-item {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .shop-filters.filter-scrolling .filter-list a.active {
    margin-left: auto;
    margin-right: auto;
  }

  /* Scrolled past origin: fade entire bar out */
  .shop-filters.filter-past-origin {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
  }
}

.page-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; flex-wrap: wrap; gap: 12px; }
.empty-state { text-align: center; padding: var(--space-xl) var(--space-md); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--border); }

.pagination { display: flex; gap: 6px; margin-top: var(--space-lg); flex-wrap: wrap; }
.pagination a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  transition: var(--transition);
}
.pagination a.active, .pagination a:hover { background: var(--gold); color: white; border-color: var(--gold); text-decoration: none; font-weight: 700; }

/* === Product detail — single column on mobile === */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: var(--space-md); }
.breadcrumbs a { color: var(--muted); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--gold); }
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.product-detail-img { background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.product-detail-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail-info h1 { font-size: clamp(1.4rem, 3.5vw, 1.875rem); margin: 8px 0; color: var(--gold); word-break: break-word; }
.stock { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.stock.in-stock { color: var(--success); }
.stock.out-stock { color: var(--danger); }
.description { color: var(--ink); opacity: 0.9; margin: 18px 0; line-height: 1.7; font-size: 15px; }
.add-to-cart-form { display: flex; gap: 14px; align-items: flex-end; margin: 18px 0; flex-wrap: wrap; }
.qty-input { display: flex; flex-direction: column; gap: 6px; }
.qty-input label { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.qty-input input { width: 80px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 16px; text-align: center; background: var(--bg); color: var(--ink); }
.qty-input input:focus { outline: none; border-color: var(--gold); background: white; }
.product-promise { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 18px; }
.product-promise li { display: flex; align-items: center; gap: 6px; }

/* === Product gallery (multi-image + zoom) — mobile-first === */
.product-gallery { display: flex; flex-direction: column; gap: var(--space-sm); }
.product-gallery-main {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  touch-action: pan-y;
}
.product-gallery-main .zoom-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}
/* Zoom state — image scales and is positioned by pointer */
.product-gallery-main.zoomed .zoom-image {
  transform: scale(2.2);
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  cursor: zoom-out;
}
.zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(45, 42, 38, 0.7);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.4px;
  padding: 5px 10px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-gallery-main:hover .zoom-hint { opacity: 1; }
.product-gallery-main.zoomed .zoom-hint { opacity: 0; }

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}
.gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: var(--brand-dark); }
.gallery-thumb.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.gallery-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* === Cart — single column on mobile === */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid; grid-template-columns: clamp(60px, 10vw, 80px) 1fr auto; gap: var(--space-sm);
  background: var(--surface);
  padding: var(--space-sm);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-items: center;
}
.cart-item-img { width: clamp(60px, 10vw, 80px); height: clamp(60px, 10vw, 80px); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.cart-item-img img, .cart-item-img .placeholder-img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 { font-size: clamp(14px, 2vw, 16px); margin: 0 0 6px; color: var(--gold); }
.cart-qty-form { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; }
.cart-qty-form input { width: 64px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--ink); text-align: center; }
.cart-item-actions { text-align: right; display: flex; flex-direction: column; gap: 8px; }
.cart-summary {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: fit-content;
  position: static;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--muted); }
.summary-row strong { color: var(--ink); }
.summary-row.total { font-size: 18px; padding-top: 14px; border-top: 1px solid var(--border); margin-top: 6px; color: var(--gold); font-weight: 700; }

/* === Checkout — single column on mobile === */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-md); box-shadow: var(--shadow-sm); overflow-x: auto; max-width: 100%; }
.checkout-summary .checkout-items { list-style: none; padding: 0; margin: 0 0 12px; border-bottom: 1px solid var(--border); }
.checkout-summary .checkout-items li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }

/* Form grid — single column on mobile */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.form-grid label.span-2 { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;     /* prevents inputs from overflowing their grid cell */
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  transition: var(--transition);
  box-sizing: border-box;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: none; border-color: var(--gold); background: white; }
.form-grid label.checkbox { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); text-transform: none; font-weight: normal; letter-spacing: normal; }
.form-grid label.checkbox input { margin: 0; width: 18px; height: 18px; }

.radio-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--surface-card);
  transition: var(--transition);
}
.radio-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.radio-card input { margin: 0; width: 18px; height: 18px; accent-color: var(--gold); }
.radio-card div { display: flex; flex-direction: column; }
.radio-card strong { color: var(--gold); }
.radio-card span { color: var(--muted); font-size: 13px; }

/* === Auth === */
.auth-section {
  padding: var(--space-xl) var(--space-md);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-wrapper-login { max-width: 800px; }

/* Hero panel */
.auth-hero {
  background: linear-gradient(135deg, var(--gold) 0%, var(--brand-dark) 100%);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  color: #fff;
}
.auth-hero-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: 12px;
}
.auth-hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.auth-benefits svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Card panel */
.auth-card {
  padding: clamp(28px, 4vw, 44px);
  overflow-y: auto;
  max-height: 85vh;
}
.auth-card-header {
  margin-bottom: 28px;
}
.auth-card-header h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.auth-card-header .muted {
  font-size: 14px;
}

/* Fieldsets */
.auth-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}
.auth-fieldset legend {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Form groups */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-bottom: 6px;
}
/* Single column on mobile — expands to 2 col at 480px+ */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* form-row responsive: see the consolidated breakpoint block at end of file */

/* Input wrapper with icon */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.input-wrapper input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-wrapper input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.1);
}

/* Toggle password button */
.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.toggle-password:hover { color: var(--gold); }

/* Phone input group */
.phone-input-group {
  display: flex;
  gap: 8px;
}
.phone-code-select {
  flex-shrink: 0;
  width: 120px;
  padding: 11px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.phone-code-select:focus {
  outline: none;
  border-color: var(--gold);
}
.phone-field { flex: 1; }
.phone-field input {
  padding-left: 38px;
}

/* Field hint */
.field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}

/* Password strength */
.password-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}
.strength-text {
  font-size: 12px;
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}

/* Password requirements */
.password-requirements {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
}
.password-requirements li {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.password-requirements li .req-icon::before {
  content: '○';
  font-size: 10px;
}
.password-requirements li.met {
  color: #27ae60;
}
.password-requirements li.met .req-icon::before {
  content: '●';
}

/* Match hint */
.match-hint { min-height: 18px; }
.match-ok { color: #27ae60 !important; }
.match-fail { color: #e74c3c !important; }

/* Submit button */
.auth-submit {
  margin-top: 8px;
  padding: 14px;
  font-size: 15px;
}

/* Footer link */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.auth-footer a {
  color: var(--gold);
  font-weight: 600;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* Standalone form elements (no wrapper) */
.auth-card input:not(.input-wrapper input) {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-card input:not(.input-wrapper input):focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.1);
}

/* auth mobile layout: see the consolidated max-width:767px block at end of file */

/* === Account — horizontal scrollable tabs on mobile === */
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.account-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  height: fit-content;
  position: static;
  width: 100%;
  min-width: 0;
}
.account-sidebar h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gold);
  margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 6px;
  display: none;
}
.account-sidebar ul {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  scrollbar-width: none;
}
.account-sidebar ul::-webkit-scrollbar { display: none; }
.account-sidebar a, .account-sidebar button {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-size: 13px;
  transition: var(--transition);
  text-align: left;
  background: none; border: none; width: 100%; cursor: pointer; font-family: inherit;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.account-sidebar a:hover, .account-sidebar a.active, .account-sidebar button:hover {
  background: none;
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
/* minmax(min(160px,100%)) — prevents two 180px cols overflowing 320px viewport */
.account-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 16px; margin-top: var(--space-md); }
.card-tile {
  background: var(--surface);
  padding: var(--space-md) var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: var(--transition);
}
.card-tile:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow); border-color: var(--gold); text-decoration: none; }
.card-tile-num { font-size: 34px; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', Georgia, serif; }
.card-tile-label { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.account-content { min-width: 0; overflow-x: hidden; }
.account-content .card { margin-bottom: var(--space-md); }
.account-content .card label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.account-content .card input, .account-content .card select, .account-content .card textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px;
  background: var(--bg); font-family: inherit; color: var(--ink); transition: var(--transition);
  max-width: 100%;
}
.account-content .card input:focus, .account-content .card select:focus, .account-content .card textarea:focus { outline: none; border-color: var(--gold); background: white; }

/* === Address cards === */
.address-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.address-card { position: relative; }
.address-card.address-default { border-color: var(--gold); box-shadow: var(--gold-glow); }
.address-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.address-header strong { color: var(--ink); font-size: 15px; }
.address-details { margin-bottom: 12px; }
.address-details p { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.6; }
.address-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }

/* Saved addresses in checkout */
.saved-addresses { margin-bottom: 16px; }

/* address-grid responsive: see the consolidated min-width:768px block at end of file */

/* ===================================================================
   Tables
   Strategy: .table-wrap is the scroll container; the <table> inside
   it is always a normal table element with its natural display values.
   On mobile, .data-table used WITHOUT .table-wrap becomes its own
   scroll container by wrapping itself — achieved via max-width + the
   scrollable block display on the outer container class.
   =================================================================== */

/* Outer scroll container — always present when HTML uses .table-wrap */
.table-wrap {
  width: 100%;
  max-width: 100%;          /* never exceed parent width */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  /* Thin scrollbar on desktop for visual cleanliness */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.table-wrap::-webkit-scrollbar {
  height: 4px;
}
.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* When inside .table-wrap, remove double borders */
.table-wrap .data-table {
  border: none;
  border-radius: 0;
}

/* The table itself — always rendered as a proper HTML table */
.data-table {
  /* min-content forces the table to be as wide as its content needs,
     so the outer scroll container can scroll it rather than the page. */
  width: max-content;
  min-width: 100%; /* fill container when content fits */
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  table-layout: auto;
}
.data-table th,
.data-table td {
  padding: clamp(8px, 1vw, 10px) clamp(10px, 1.5vw, 14px);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap; /* keep cells on one line so table scrolls, not wraps */
}
/* Allow descriptive columns to wrap so they don't balloon the table width */
.data-table .col-name,
.data-table .col-muted {
  white-space: normal;
  min-width: 120px;
  max-width: 260px;
  word-break: break-word;
}
.data-table th {
  background: var(--surface);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;          /* sticky column headers inside the scroll container */
  z-index: 1;
}
.data-table tbody tr { background: var(--surface-card); transition: background 0.2s ease; }
.data-table tbody tr:hover { background: rgba(200, 169, 110, 0.04); }

/* Column alignment classes — apply to both th AND td */
.col-img { width: 48px; text-align: center; padding-left: 10px; padding-right: 10px; }
.col-img img, .col-img .thumb-placeholder { display: block; margin: 0 auto; width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.col-name { text-align: left; }
.col-muted { text-align: left; color: var(--muted); }
.col-num { text-align: right; white-space: nowrap; }
.col-center { text-align: center; }
.col-actions { text-align: right; white-space: nowrap; }

.row-actions { display: table-cell; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.row-actions > * { margin: 0; }

.status {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.status-pending { background: rgba(212, 168, 70, 0.12); color: #b89430; border: 1px solid rgba(212, 168, 70, 0.2); }
.status-processing { background: rgba(92, 163, 224, 0.1); color: #4a90c8; border: 1px solid rgba(92, 163, 224, 0.2); }
.status-shipped { background: rgba(140, 114, 200, 0.1); color: #7a62b8; border: 1px solid rgba(140, 114, 200, 0.2); }
.status-delivered, .status-paid, .status-active { background: rgba(91, 158, 111, 0.1); color: #3d8a55; border: 1px solid rgba(91, 158, 111, 0.2); }
.status-cancelled, .status-failed, .status-inactive { background: rgba(212, 84, 84, 0.1); color: #c44040; border: 1px solid rgba(212, 84, 84, 0.2); }
.status-refunded { background: rgba(160, 100, 200, 0.1); color: #8a62c0; border: 1px solid rgba(160, 100, 200, 0.2); }

.pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.pill-admin { background: var(--gold); color: white; border-color: var(--gold); font-weight: 700; }

.order-meta { display: flex; gap: 12px; align-items: center; margin-bottom: var(--space-md); flex-wrap: wrap; }
/* Safe minmax: 240px min allows two columns at 520px+; single column at narrow widths */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-md); margin-bottom: var(--space-md); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-md); margin-top: var(--space-lg); }

.lead { font-size: clamp(0.9rem, 1.8vw, 1rem); color: var(--muted); margin-bottom: var(--space-md); line-height: 1.7; }

/* === Testimonials — single column on mobile === */
.testimonials {
  background: var(--surface-card);
  color: var(--ink);
  padding: var(--space-xl) 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.testimonials h2 { color: var(--gold); text-align: center; margin-bottom: var(--space-lg); }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.testimonial-grid blockquote {
  margin: 0; padding: var(--space-md);
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease;
  position: relative;
}
.testimonial-grid blockquote:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); }
.testimonial-grid blockquote::before {
  content: '\201C';
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 56px;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 6px;
  left: 14px;
  line-height: 1;
}
.testimonial-grid blockquote p { margin: 0 0 12px; font-style: italic; color: var(--ink); opacity: 0.95; line-height: 1.7; font-size: 14px; }
.testimonial-grid blockquote cite { color: var(--gold); font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }

/* === Footer — single column, centered on mobile === */
.site-footer { background: var(--surface-card); color: var(--muted); margin-top: var(--space-xl); border-top: 1px solid var(--border); width: 100%; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 32px);
  width: 100%;
  padding: clamp(24px, 4vw, 56px) clamp(12px, 3vw, 40px) clamp(16px, 3vw, 40px);
  text-align: center;
}
.footer-grid h4 { color: var(--gold); font-family: 'Playfair Display', Georgia, serif; font-size: 14px; margin-bottom: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); font-size: 13px; transition: var(--transition); }
.footer-grid a:hover { color: var(--gold); text-decoration: none; padding-left: 3px; }
.footer-grid p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--border); padding: clamp(14px, 2vw, 20px) 0; font-size: 12px; color: var(--muted); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 clamp(12px, 3vw, 40px); }
.footer-bottom a { color: var(--muted); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* === Enquiry === */
.enquiry-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.enquiry-section h2 {
  color: var(--gold);
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}
.enquiry-card {
  margin-top: var(--space-md);
  padding: clamp(16px, 3vw, 28px);
}

/* === Contact — single column on mobile === */
.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: start;
  margin-top: var(--space-md);
}
.contact-info-column .contact-grid { margin-top: 0; margin-bottom: var(--space-md); }
.contact-info-column .map-section { margin-top: 0; }
.enquiry-column .enquiry-section { margin-top: 0; padding-top: 0; border-top: none; }

.contact-card { display: flex; flex-direction: column; gap: 10px; }
.contact-card-icon { font-size: 24px; margin-bottom: 2px; }
.contact-card h3 { color: var(--gold); font-size: 16px; margin: 0; }
.contact-card address { font-style: normal; color: var(--ink); font-size: 13px; line-height: 1.8; }
.contact-card a { color: var(--gold); transition: var(--transition); }
.contact-card a:hover { color: var(--brand-dark); text-decoration: underline; }
.contact-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.contact-rating .stars { font-size: 14px; }
.contact-rating strong { color: var(--gold); }
.contact-rating a { font-size: 12px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: clamp(12px, 1.5vw, 13px); }
.hours-table td { padding: 5px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
.hours-table td:first-child { font-weight: 600; color: var(--gold); width: 110px; }
.hours-table .closed-day td { color: var(--muted); font-style: italic; }
.hours-table .closed-day td:first-child { color: var(--muted); }
.map-section { margin-top: var(--space-lg); }
.map-section h2 { color: var(--gold); margin-bottom: 14px; font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.map-embed-wrapper { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); line-height: 0; }
.map-embed-wrapper iframe { display: block; width: 100%; }
.map-directions { margin-top: 14px; }

/* === Visit Us — single column on mobile === */
.visit-us {
  background: var(--surface-card);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  margin-top: 40px;
}
.visit-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.visit-us-info .eyebrow { margin-bottom: 10px; }
.visit-us-info h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; color: var(--gold); }
.visit-us-info > p { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: var(--space-md); max-width: 520px; }
.visit-address {
  display: flex; gap: 10px; align-items: flex-start;
  font-style: normal; color: var(--ink); font-size: 14px; line-height: 1.75; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
}
.visit-address-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.visit-hours {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink); line-height: 1.7; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
}
.visit-hours-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.visit-hours strong { color: var(--gold); }
.closed-note { color: var(--muted); font-size: 12px; }
.visit-rating { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); margin-bottom: var(--space-md); }
.stars { color: #f5a623; font-size: 16px; letter-spacing: 1px; }
.visit-rating strong { color: var(--gold); font-size: 15px; }
.review-count { color: var(--muted); font-size: 12px; }
.visit-cta { display: flex; gap: 12px; flex-wrap: wrap; flex-direction: column; }
.visit-cta a { width: 100%; text-align: center; }
.visit-us-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); line-height: 0; }
.visit-us-map iframe { display: block; width: 100%; height: 260px; border: 0; }

/* === Floating Actions — compact on mobile === */
.floating-actions {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 9999;
  pointer-events: none;
}
.floating-actions > * { pointer-events: auto; }
.right-floating { display: flex; flex-direction: column; gap: 8px; }
.floating-btn {
  display: flex; align-items: center; justify-content: center;
  color: #ffffff !important; text-decoration: none !important;
  border-radius: 50px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.floating-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  color: #ffffff;
}
.floating-btn.whatsapp { width: 48px; height: 48px; background-color: #25D366; border-radius: 50%; }
.floating-btn.whatsapp svg { width: 26px; height: 26px; }
.right-floating .floating-btn { padding: 7px 14px 7px 10px; gap: 8px; min-width: 120px; }
.right-floating .get-quote { background-color: #084177; }
.right-floating .talk-to-team { background-color: #106b3a; }
.floating-text { display: flex; flex-direction: column; align-items: flex-start; }
.floating-text .small { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.9; line-height: 1.2; }
.floating-text .large { font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: 0.3px; }

/* === Inline forms === */
.inline { display: inline-block; }
.inline-form { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.inline-form select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; background: var(--bg); color: var(--ink); }

.danger-text { color: var(--danger); font-weight: 700; }
.warn-text { color: var(--warn); font-weight: 700; }

/* === Badge pulse === */
.badge-discount, .badge-featured { animation: badgePulse 2.5s ease-in-out infinite; }
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.btn-primary:hover, .btn-hero-primary:hover {
  box-shadow: 0 6px 24px rgba(200, 169, 110, 0.35), 0 0 0 4px rgba(200, 169, 110, 0.08);
}

/* === Page Preloader === */
.preloader {
  position: fixed; inset: 0; z-index: 99999; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__content { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader__logo-wrap {
  position: relative;
  width: clamp(100px, 24vw, 180px);
  height: clamp(65px, 16vw, 115px);
}
.preloader__logo {
  width: 100%; height: 100%; object-fit: contain;
  animation: preloaderPulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(200, 169, 110, 0.3));
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}
.preloader__shimmer {
  position: absolute; inset: -10%;
  background: linear-gradient(105deg, transparent 35%, rgba(200, 169, 110, 0.25) 45%, rgba(245, 217, 138, 0.4) 50%, rgba(200, 169, 110, 0.25) 55%, transparent 65%);
  background-size: 250% 100%;
  animation: shimmerSweep 2s ease-in-out infinite;
  border-radius: 12px; pointer-events: none;
}
@keyframes shimmerSweep {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.preloader__bar { width: clamp(80px, 18vw, 140px); height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.preloader__bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand-light), var(--gold), var(--brand-dark));
  border-radius: 3px;
  animation: preloaderProgress 2.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes preloaderProgress {
  0% { width: 0%; }
  30% { width: 45%; }
  60% { width: 70%; }
  90% { width: 92%; }
  100% { width: 100%; }
}
.preloader__text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(12px, 2.2vw, 15px);
  font-weight: 700; letter-spacing: 4px; color: var(--gold);
  opacity: 0; animation: preloaderTextFade 1s 0.3s ease forwards;
}
@keyframes preloaderTextFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.7; transform: translateY(0); }
}

/* === Scroll Reveal === */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal="fade-up"] { transform: translateY(40px); }
[data-reveal="fade-left"] { transform: translateX(-40px); }
[data-reveal="fade-right"] { transform: translateX(40px); }
[data-reveal="scale-up"] { transform: scale(0.92); }
[data-reveal].revealed { opacity: 1; transform: none; }



/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   Architecture: mobile-first (min-width) progressive enhancement.
   A single max-width block at the end handles mobile-only overrides.
   All breakpoints are in one place for easy maintenance.
   Breakpoints: 480px | 600px | 768px | 1024px | 1280px
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   480px+  Small landscape phones
────────────────────────────────────────────────────────────────────────── */
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }

  /* Product gallery: transition to portrait ratio */
  .product-gallery-main { aspect-ratio: 4 / 5; }

  /* Floating actions — full size at 480px+ */
  .floating-actions { bottom: 20px; left: 20px; right: 20px; }
  .floating-btn.whatsapp { width: 54px; height: 54px; }
  .floating-btn.whatsapp svg { width: 30px; height: 30px; }
  .right-floating { gap: 10px; }
  .right-floating .floating-btn { padding: 8px 20px 8px 16px; gap: 12px; min-width: 150px; }
  .floating-text .small { font-size: 9px; }
  .floating-text .large { font-size: 13px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   600px+  Small tablets — collapse category carousel to static grid
────────────────────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .scroll-hint { display: none; }
  .category-grid { gap: 16px; padding-bottom: 0; }
}

/* ──────────────────────────────────────────────────────────────────────────
   768px+  Tablet landscape — major two-column layout shifts
────────────────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  /* Typography */
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }

  /* Header: restore full 3-column desktop grid */
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    flex-wrap: unset; /* cancel the mobile flex-wrap */
  }
  .search {
    grid-column: auto;
    order: unset;
    width: auto;
    max-width: 440px;
    flex: unset;
  }
  .search input { min-width: unset; }
  .brand { max-width: none; flex: unset; }
  .brand-name { max-width: none; }
  .nav-link { font-size: 14px; padding: 6px 8px; }
  .nav-link--cta { padding: 6px 16px; }
  .header-actions { gap: 16px; flex-shrink: unset; }

  /* Menu toggle: hide on desktop */
  .menu-toggle { display: none !important; }

  /* Nav: expanded horizontal strip */
  .primary-nav {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }
  .primary-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: initial;
  }
  .primary-nav a {
    padding: 12px 18px;
    min-height: auto;
    border-bottom: none;
  }
  .primary-nav a:last-child { border-bottom: none; }

  /* Buttons */
  .btn { padding: 10px 20px; }

  /* Flash: fixed-width notification panel */
  .flash-stack {
    left: auto;       /* cancel the mobile left:10px anchor */
    right: 16px;
    top: 76px;
    width: auto;
    max-width: 340px;
  }

  /* Hero: full-viewport height */
  .hero { min-height: 85vh; }
  .hero-content { padding: clamp(60px, 8vh, 100px) clamp(16px, 4vw, 64px); }
  .hero-content h1 { font-size: clamp(2rem, 5vw, 4.2rem); }
  .hero-br { display: inline; }
  .hero-cta { flex-direction: row; gap: 12px; }
  .btn-hero-primary, .btn-hero-ghost {
    width: auto;
    padding: 14px 32px;
    font-size: 14px;
  }
  .hero-stat {
    min-width: 0;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding: 12px 28px;
  }
  .hero-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.2); }
  .hero-stat:last-child { border-right: none; }

  /* Trust bar: 4-column strip */
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid > div { border-right: 1px solid var(--border); }
  .trust-grid > div:last-child { border-right: none; }

  /* Category grid: static auto-fill grid (not carousel) */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    scroll-padding-inline: 0;
    padding: 4px 0 0;
    mask-image: none;
    -webkit-mask-image: none;
    gap: 20px;
  }
  .category-grid > .category-card {
    flex: unset;
    max-width: none;
    scroll-snap-align: unset;
    scroll-snap-stop: unset;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    animation: categoryCardInDesktop 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: calc(var(--stagger-index, 0) * 100ms);
  }
  .category-card-body h3 { font-size: 16px; }
  .category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 0 1px rgba(200, 169, 110, 0.08);
  }
  @keyframes categoryCardInDesktop {
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* Product grid: auto-fill columns */
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

  /* Testimonials: multi-column */
  .testimonial-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

  /* Shop: sidebar + content */
  .shop-layout { grid-template-columns: 240px 1fr; }
  .shop-filters { position: sticky; top: 80px; }

  /* Product detail: side-by-side image + info */
  .product-detail { grid-template-columns: 1fr 1fr; padding: var(--space-lg); gap: clamp(24px, 4vw, 36px); }

  /* Product gallery: sticky on scroll */
  .product-gallery { position: sticky; top: 80px; gap: var(--space-sm); }
  .product-gallery-main { aspect-ratio: 4 / 5; }
  .product-gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 12px; }

  /* Cart: items + sticky summary */
  .cart-layout { grid-template-columns: 1fr 320px; }
  .cart-summary { position: sticky; top: 80px; }
  /* Restore natural clamp column on wider screens */
  .cart-item { grid-template-columns: clamp(60px, 10vw, 80px) 1fr auto; }

  /* Checkout: form + order summary */
  .checkout-layout { grid-template-columns: 1fr 360px; }
  .form-grid { grid-template-columns: 1fr 1fr; }

  /* Account: sidebar + content */
  .account-layout { grid-template-columns: 220px 1fr; }
  .account-sidebar { position: sticky; top: 80px; }
  .account-sidebar h4 { display: block; }
  .account-sidebar ul {
    flex-direction: column;
    gap: 4px;
    overflow-x: visible;
    border-bottom: none;
    scrollbar-width: auto;
  }
  .account-sidebar a, .account-sidebar button {
    padding: 10px 14px;
    border-radius: 6px;
    white-space: normal;
    border-bottom: none;
    font-size: 14px;
  }
  .account-sidebar a:hover, .account-sidebar a.active, .account-sidebar button:hover {
    background: var(--gold);
    color: white;
    font-weight: 700;
    border-bottom-color: transparent;
    text-decoration: none;
  }

  /* Auth: side-by-side hero + form */
  .auth-wrapper { grid-template-columns: 1fr 1fr; }
  .auth-card { max-height: 85vh; }
  .auth-hero-content h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  .auth-benefits { display: flex; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .phone-input-group { flex-direction: row; }
  .phone-code-select { width: 120px; }
  .password-requirements { grid-template-columns: 1fr 1fr; }

  /* Address grid: multi-column */
  .address-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

  /* Footer: 2 columns */
  .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; }

  /* Visit Us: info + map side-by-side */
  .visit-us-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; }
  .visit-us-map iframe { height: 380px; }
  .visit-cta { flex-direction: row; }
  .visit-cta a { width: auto; text-align: left; }
  .visit-address { padding: 14px 16px; }
  .visit-hours { padding: 12px 16px; }

  /* Contact: info column + enquiry column */
  .contact-page-layout { grid-template-columns: 1fr 400px; gap: 36px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   1024px+  Desktop
────────────────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .header-inner { gap: 28px; padding: clamp(14px, 2vw, 24px) clamp(20px, 3vw, 48px); }
  .brand-name { font-size: 24px; }
  .nav-link { gap: 4px; }
  /* Footer: 4-column brand + 3 link columns */
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }

  /* Product gallery: cap height on desktop */
  .product-gallery-main { max-height: clamp(400px, 60vh, 600px); }
}

/* ──────────────────────────────────────────────────────────────────────────
   1280px+  Large desktop
────────────────────────────────────────────────────────────────────────── */
@media (min-width: 1280px) {
  .hero { min-height: 90vh; }
  .hero-content { max-width: 900px; }
  .hero-content h1 { font-size: clamp(2.8rem, 4.5vw, 4.8rem); }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .preloader { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   MOBILE-ONLY OVERRIDES  (max-width: 767px)
   These fire ONLY on small screens and are isolated here so they never
   bleed into tablet/desktop. Applied after all min-width breakpoints.
   ========================================================================== */
@media (max-width: 767px) {

  /* ── Topbar: clip long text + absolute close button at viewport edge ── */
  .topbar { overflow: hidden; }
  .topbar-inner { padding: 0 36px 0 8px; } /* room for absolute close btn */

  /* ── Header z-index: above shop-filters (z-index:10), below preloader ──
     Do NOT set overflow here — any overflow value breaks position:sticky. */
  .site-header { z-index: 200; }

  /* ── Header inner: flex+wrap so brand+actions+search never overflow ── */
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    padding: clamp(8px, 1.5vw, 14px) clamp(12px, 3vw, 24px);
    width: 100%;
    box-sizing: border-box;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 110px); /* leave room for toggle + cart badge */
  }
  .brand-name { max-width: 40vw; }
  .search {
    order: 4;
    width: 100%;
    flex: 1 1 80%;
    min-width: 0;
  }
  .search input { min-width: 0; width: 100%; }
  .header-actions { flex-shrink: 0; gap: 6px; }

  /* ── Tables: scroll container bounded to parent width ── */
  .table-wrap {
    max-width: 100vw;
    scrollbar-width: auto;
  }
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }
  /* Inside .table-wrap the <table> tag must stay as a table — undo block */
  .table-wrap .data-table {
    display: table;
    overflow-x: visible;
    border: none;
    border-radius: 0;
    max-width: none;
  }

  /* ── Auth: single column, full-width ── */
  .auth-section { padding: var(--space-lg) var(--space-sm); }
  .auth-wrapper {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }
  .auth-hero { padding: 28px 24px; }
  .auth-hero-content h1 { font-size: 1.4rem; }
  .auth-benefits { display: none; }
  .auth-card { padding: 24px; max-height: none; }
  .form-row { grid-template-columns: 1fr; }
  .phone-input-group { flex-direction: column; gap: 10px; }
  .phone-code-select { width: 100%; }
  .password-requirements { grid-template-columns: 1fr; }

  /* ── Flash notifications: anchored to both edges ── */
  .flash-stack { left: 10px; right: 10px; width: auto; max-width: none; }

  /* ── Floating buttons: compact on narrow screens (<480px) ──
     At 480px+ the buttons restore to full size via the min-width:480px block. */
  .right-floating .floating-btn { min-width: 0; padding: 6px 10px 6px 8px; gap: 6px; }
  .floating-text .large { font-size: 10px; }

  /* ── Cart item: fixed 60px image column on small screens ── */
  .cart-item { grid-template-columns: 60px 1fr auto; }

  /* ── Hours table: scrollable on small screens ── */
  .hours-table { overflow-x: auto; max-width: 100%; display: block; }

  /* ── Inline forms: wrap on small screens ── */
  .inline-form { flex-wrap: wrap; }
  .inline-form select { max-width: 100%; }

} /* end @media (max-width: 767px) */

/* Admin search input: min-width:260px causes toolbar overflow.
   Matches admin's own breakpoint at 800px. */
@media (max-width: 800px) {
  .admin-search { width: 100%; }
  .admin-search input { min-width: 0; width: 100%; }
}
