/* ============================================================
   RANG VALY — Design System
   Premium Fashion E-commerce
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Colors — Light Mode */
  --c-bg:          #F7F3EE;
  --c-bg-alt:      #EDE7DC;
  --c-card:        #FFFFFF;
  --c-text:        #1A0A2E;
  --c-text-muted:  #6B6170;
  --c-border:      #E0D7CC;
  --c-gold:        #C9A96E;
  --c-gold-light:  #E8D5C4;
  --c-mauve:       #8B4A6B;
  --c-mauve-light: #F3E6ED;
  --c-night:       #1A0A2E;
  --c-violet:      #2D1B4E;
  --c-success:     #2E7D52;
  --c-error:       #C0392B;
  --c-warning:     #D4850A;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --r-sm:   0.375rem;
  --r-md:   0.75rem;
  --r-lg:   1.25rem;
  --r-xl:   2rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(26,10,46,.08), 0 1px 2px rgba(26,10,46,.04);
  --shadow-md:  0 4px 16px rgba(26,10,46,.10), 0 2px 6px rgba(26,10,46,.06);
  --shadow-lg:  0 12px 40px rgba(26,10,46,.13), 0 4px 12px rgba(26,10,46,.07);
  --shadow-gold:0 4px 20px rgba(201,169,110,.30);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;

  /* Layout */
  --max-w: 1280px;
  --nav-h: 72px;
}

/* Dark Mode */
[data-theme="dark"] {
  --c-bg:          #0F0720;
  --c-bg-alt:      #1A0A2E;
  --c-card:        #1E1035;
  --c-text:        #F0EAF5;
  --c-text-muted:  #9B8FAA;
  --c-border:      #2D1B4E;
  --c-gold-light:  #2A1F10;
  --c-mauve-light: #220C18;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.30);
  --shadow-md:  0 4px 16px rgba(0,0,0,.40);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.50);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  transition: background var(--t-slow), color var(--t-slow);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ─── Utilities ──────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-lg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.visually-hidden { @extend .sr-only; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ─── Typography ─────────────────────────────────────────── */
.t-display { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.t-heading { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
.t-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.t-body { font-family: var(--font-body); }

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

/* ─── Section Titles ─────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: block;
  margin-bottom: var(--space-sm);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--space-md);
}
.section-subtitle {
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}
.section-head { text-align: center; margin-bottom: var(--space-2xl); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--c-gold) 0%, #B8913A 100%);
  color: #1A0A2E;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(201,169,110,.45); transform: translateY(-1px); }

.btn-secondary {
  background: var(--c-mauve);
  color: #fff;
}
.btn-secondary:hover { background: #7A3D5C; transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--c-gold);
  color: var(--c-gold);
  background: transparent;
}
.btn-outline:hover { background: var(--c-gold); color: var(--c-night); }

.btn-ghost {
  color: var(--c-text-muted);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--c-text); background: var(--c-bg-alt); border-radius: var(--r-md); }

.btn-whatsapp {
  background: linear-gradient(135deg, #C9A96E 0%, #a8823d 100%);
  color: #1A0A2E;
  box-shadow: 0 4px 16px rgba(201,169,110,.30);
}
.btn-whatsapp:hover { box-shadow: 0 6px 24px rgba(201,169,110,.45); transform: translateY(-1px); }

/* Brand Buy Now button — replaces WhatsApp green */
.btn-buy {
  background: linear-gradient(135deg, #C9A96E 0%, #a8823d 100%);
  color: #1A0A2E;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(201,169,110,.30);
}
.btn-buy:hover { box-shadow: 0 6px 24px rgba(201,169,110,.45); transform: translateY(-1px); }
.btn-buy.disabled, .btn-buy[disabled] { background: #ccc; color: #888; box-shadow: none; cursor: not-allowed; transform: none; }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t-slow), backdrop-filter var(--t-slow), box-shadow var(--t-slow);
}
.navbar.scrolled {
  background: rgba(247,243,238,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(15,7,32,.92);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}
/* ── Logo: RV Monogram backdrop + Brand name text ── */
.nav-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  /* Left padding makes room for the monogram that sits behind/beside text */
  padding: 4px 6px 4px 52px;
  min-height: 54px;
  gap: 0;
}

/* RV Monogram — absolutely positioned, behind the text */
.nav-logo::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: url('../images/rv-monogram.png') center / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav-logo:hover::before {
  transform: translateY(-50%) scale(1.06);
  opacity: 1;
}

/* Brand name — solid gold, always visible, sits above the monogram */
.nav-logo-text,
.brand-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #C9A96E;                /* solid gold — always visible */
  white-space: nowrap;
  line-height: 1;
  -webkit-text-fill-color: #C9A96E; /* override any inherited transparent */
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* Hide the old logo image box entirely */
.nav-logo img,
.nav-logo-icon { display: none !important; }

/* Scrolled navbar: darken monogram slightly */
.navbar.scrolled .nav-logo::before { opacity: 0.75; }

/* Dark mode */
[data-theme="dark"] .nav-logo-text,
[data-theme="dark"] .brand-name { color: #E8C870; -webkit-text-fill-color: #E8C870; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-gold);
  border-radius: var(--r-full);
  transform: scaleX(0);
  transition: transform var(--t-base);
}
.nav-link:hover, .nav-link.active { color: var(--c-text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  transition: background var(--t-fast), color var(--t-fast);
  font-size: 1.1rem;
}
.nav-icon-btn:hover { background: var(--c-bg-alt); }

.nav-search-bar {
  display: none;
  flex: 1;
  max-width: 360px;
}
.nav-search-bar.open { display: flex; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: var(--r-full);
  transition: all var(--t-base);
}

/* ─── Mobile Nav ─────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--c-card);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform var(--t-slow);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }
.mobile-nav-link {
  display: block;
  padding: var(--space-sm) 0;
  font-weight: 500;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  transition: color var(--t-fast);
}
.mobile-nav-link:hover { color: var(--c-gold); }

/* Mobile Bottom Nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--c-card);
  border-top: 1px solid var(--c-border);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
}
.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.4rem 0.8rem;
  color: var(--c-text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  transition: color var(--t-fast);
}
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--c-gold); }
.bottom-nav-item i { font-size: 1.2rem; }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1A0A2E 0%, #2D1B4E 50%, #1A0A2E 100%);
  padding-top: var(--nav-h);
}

/* Fabric swatch color bar — signature element */
.hero-fabric-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    #C9A96E 0%, #8B4A6B 16%, #4A7BC9 33%,
    #2E7D52 50%, #C94A4A 66%, #C9A96E 83%, #8B4A6B 100%);
  background-size: 200% 100%;
  animation: fabricFlow 6s linear infinite;
}
@keyframes fabricFlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--c-gold); top: -150px; right: -100px; animation-delay: 0s; }
.hero-orb-2 { width: 350px; height: 350px; background: var(--c-mauve); bottom: -100px; left: -100px; animation-delay: 3s; }
.hero-orb-3 { width: 250px; height: 250px; background: #4A7BC9; top: 40%; left: 40%; animation-delay: 1.5s; }

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  width: 100%;
  padding: var(--space-4xl) 0;
}
.hero-text { color: #fff; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(201,169,110,.2);
  border: 1px solid rgba(201,169,110,.4);
  border-radius: var(--r-full);
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-xl);
}
.hero-badge span { width: 6px; height: 6px; background: var(--c-gold); border-radius: 50%; animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(0.8)} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}
.hero-title em { font-style: italic; color: var(--c-gold); }
.hero-desc { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 480px; margin-bottom: var(--space-2xl); }
.hero-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--c-gold); display: block; }
.hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-md);
}
.hero-img-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.hero-img-card:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.hero-img-card:not(:first-child) { aspect-ratio: 1; }
.hero-img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.hero-img-card:hover img { transform: scale(1.04); }
.hero-img-badge {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  background: rgba(26,10,46,.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,169,110,.3);
  border-radius: var(--r-md);
  padding: 0.4rem 0.8rem;
  color: #fff;
  font-size: 0.78rem;
}
.hero-img-badge strong { color: var(--c-gold); }

/* ─── Search Bar ─────────────────────────────────────────── */
.search-wrapper {
  position: relative;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.8rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-full);
  background: var(--c-card);
  color: var(--c-text);
  font-size: 0.9rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.search-input:focus { border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(201,169,110,.15); }
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-muted);
  pointer-events: none;
}
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 500;
  display: none;
}
.search-results-dropdown.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  transition: background var(--t-fast);
  cursor: pointer;
}
.search-result-item:hover { background: var(--c-bg-alt); }
.search-result-img { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.search-result-name { font-weight: 500; font-size: 0.88rem; }
.search-result-code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-text-muted); }
.search-result-price { font-weight: 600; color: var(--c-gold); font-size: 0.88rem; margin-left: auto; flex-shrink: 0; }

/* ─── Product Grid ───────────────────────────────────────── */
.products-section { padding: var(--space-4xl) 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

/* ─── Product Card ───────────────────────────────────────── */
.product-card {
  background: var(--c-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,10,46,.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-new      { background: var(--c-gold); color: var(--c-night); }
.badge-sale     { background: var(--c-mauve); color: #fff; }
.badge-sold-out { background: #555; color: #fff; }
.badge-featured { background: var(--c-night); color: var(--c-gold); border: 1px solid var(--c-gold); }

.product-card-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; gap: var(--space-xs); }
.product-category { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-gold); }
.product-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--c-text); line-height: 1.3; }
.product-code { font-family: var(--font-mono); font-size: 0.7rem; color: var(--c-text-muted); }
.product-rating { display: flex; align-items: center; gap: var(--space-xs); font-size: 0.8rem; }
.stars { color: var(--c-gold); letter-spacing: 1px; }
.rating-count { color: var(--c-text-muted); }
.product-price { display: flex; align-items: baseline; gap: var(--space-sm); margin-top: auto; }
.price-current { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--c-text); }
.price-original { font-size: 0.85rem; color: var(--c-text-muted); text-decoration: line-through; }
.price-discount { font-size: 0.75rem; font-weight: 600; color: var(--c-success); background: rgba(46,125,82,.1); padding: 0.15rem 0.4rem; border-radius: var(--r-sm); }
.product-card-footer { padding: var(--space-sm) var(--space-md) var(--space-md); }
.product-stock { display: flex; align-items: center; gap: var(--space-xs); font-size: 0.78rem; margin-bottom: var(--space-sm); }
.stock-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.in-stock .stock-dot { background: var(--c-success); }
.out-of-stock .stock-dot { background: var(--c-error); }
.in-stock { color: var(--c-success); }
.out-of-stock { color: var(--c-error); }

/* ─── Skeleton Loader ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--c-bg-alt) 25%, var(--c-border) 50%, var(--c-bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-card { background: var(--c-card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.skeleton-img  { aspect-ratio: 4/5; border-radius: 0; }
.skeleton-line { height: 14px; margin: 8px 16px; }
.skeleton-line-sm { height: 10px; margin: 6px 16px; width: 60%; }
.skeleton-btn  { height: 40px; margin: 12px 16px; border-radius: var(--r-full); }

/* ─── Category Pills ─────────────────────────────────────── */
.category-filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.filter-pill {
  padding: 0.4rem 1.1rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--c-border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-muted);
  background: var(--c-card);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-pill:hover { border-color: var(--c-gold); color: var(--c-gold); }
.filter-pill.active { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-night); font-weight: 600; }

/* ─── Category Cards ─────────────────────────────────────── */
.categories-section { padding: var(--space-4xl) 0; background: var(--c-bg-alt); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}
.category-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.category-card:hover img { transform: scale(1.08); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,10,46,.85) 0%, rgba(26,10,46,.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}
.category-card-name { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.category-card-count { color: rgba(255,255,255,.65); font-size: 0.78rem; margin-top: 2px; }

/* ─── Reviews ────────────────────────────────────────────── */
.reviews-section { padding: var(--space-4xl) 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); }
.review-card {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--c-gold);
  opacity: 0.15;
  line-height: 1;
}
.review-stars { color: var(--c-gold); margin-bottom: var(--space-sm); }
.review-text { color: var(--c-text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: var(--space-md); }
.review-author { display: flex; align-items: center; gap: var(--space-sm); }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--c-gold), var(--c-mauve)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.review-name { font-weight: 600; font-size: 0.88rem; }
.review-location { font-size: 0.75rem; color: var(--c-text-muted); }

/* ─── Why Choose Us ──────────────────────────────────────── */
.why-section { padding: var(--space-4xl) 0; background: linear-gradient(135deg, #1A0A2E 0%, #2D1B4E 100%); color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-xl); }
.why-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--r-lg);
  border: 1px solid rgba(201,169,110,.2);
  background: rgba(255,255,255,.04);
  transition: border-color var(--t-base), background var(--t-base);
}
.why-card:hover { border-color: rgba(201,169,110,.5); background: rgba(255,255,255,.07); }
.why-icon { width: 56px; height: 56px; border-radius: var(--r-md); background: rgba(201,169,110,.15); border: 1px solid rgba(201,169,110,.3); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto var(--space-md); color: var(--c-gold); }
.why-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: var(--space-xs); }
.why-desc { font-size: 0.85rem; color: rgba(255,255,255,.6); }

/* ─── WhatsApp Order Process ─────────────────────────────── */
.process-section { padding: var(--space-4xl) 0; }
.process-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-xl); position: relative; }
.process-step { text-align: center; position: relative; }
.process-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold), var(--c-mauve));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-gold);
}
.process-step-title { font-weight: 600; margin-bottom: var(--space-xs); }
.process-step-desc { font-size: 0.85rem; color: var(--c-text-muted); }

/* ─── Newsletter ─────────────────────────────────────────── */
.newsletter-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-mauve-light));
}
.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-form { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); flex-wrap: wrap; }
.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-full);
  background: var(--c-card);
  color: var(--c-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t-fast);
}
.newsletter-input:focus { border-color: var(--c-gold); }

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--c-night);
  color: rgba(255,255,255,.75);
  padding: var(--space-4xl) 0 var(--space-xl);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-3xl); margin-bottom: var(--space-3xl); }
/* Footer logo — RV monogram backdrop + visible gold text */
.footer-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 6px 4px 52px;
  min-height: 54px;
  margin-bottom: var(--space-md);
  text-decoration: none;
}
.footer-logo::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: url('../images/rv-monogram.png') center / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.footer-logo span,
.footer-logo-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #C9A96E;
  -webkit-text-fill-color: #C9A96E;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  white-space: nowrap;
}
.footer-logo img { display: none; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-heading { color: var(--c-gold); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-lg); }
.footer-link { display: block; padding: 0.3rem 0; font-size: 0.88rem; transition: color var(--t-fast); }
.footer-link:hover { color: var(--c-gold); }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.footer-social-btn { width: 36px; height: 36px; border-radius: var(--r-full); border: 1px solid rgba(201,169,110,.3); color: var(--c-gold); display: flex; align-items: center; justify-content: center; transition: background var(--t-fast), border-color var(--t-fast); }
.footer-social-btn:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-night); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-lg); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); font-size: 0.82rem; }
.footer-bottom-links { display: flex; gap: var(--space-lg); }

/* ─── Floating Buttons ───────────────────────────────────── */
.floating-wa {
  position: fixed;
  bottom: 90px;
  right: var(--space-lg);
  z-index: 800;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform var(--t-base), box-shadow var(--t-base);
  animation: waPop 3s ease 2s infinite;
}
.floating-wa:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); animation: none; }

@keyframes waPop { 0%,85%,100%{transform:scale(1)} 90%{transform:scale(1.1)} 95%{transform:scale(1)} }

.scroll-top {
  position: fixed;
  bottom: 90px;
  left: var(--space-lg);
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-card);
  border: 1.5px solid var(--c-border);
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base);
  font-size: 1rem;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-night); }

/* ─── Toast ──────────────────────────────────────────────── */
.toast-container { position: fixed; top: calc(var(--nav-h) + 1rem); right: var(--space-lg); z-index: 2000; display: flex; flex-direction: column; gap: var(--space-sm); pointer-events: none; }
.toast {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 320px;
  pointer-events: all;
  transform: translateX(120%);
  transition: transform var(--t-base);
}
.toast.show { transform: translateX(0); }
.toast-success { border-left: 3px solid var(--c-success); }
.toast-error   { border-left: 3px solid var(--c-error); }
.toast-info    { border-left: 3px solid var(--c-gold); }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--c-card);
  border-radius: var(--r-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--t-base);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-head { padding: var(--space-xl); border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--c-text-muted); transition: background var(--t-fast); }
.modal-close:hover { background: var(--c-bg-alt); color: var(--c-text); }
.modal-body { padding: var(--space-xl); }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.82rem; color: var(--c-text-muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--c-gold); }
.breadcrumb-sep { color: var(--c-border); }

/* ─── Empty State ────────────────────────────────────────── */
.empty-state { text-align: center; padding: var(--space-4xl); }
.empty-state-icon { font-size: 4rem; margin-bottom: var(--space-lg); opacity: 0.3; }
.empty-state-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: var(--space-sm); }
.empty-state-desc { color: var(--c-text-muted); margin-bottom: var(--space-xl); }

/* ─── Form Fields ────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--c-text); }
.form-input, .form-textarea, .form-select {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); margin-top: var(--space-3xl); }
.page-btn { width: 38px; height: 38px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--c-border); color: var(--c-text); font-weight: 500; font-size: 0.88rem; transition: all var(--t-fast); cursor: pointer; }
.page-btn:hover, .page-btn.active { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-night); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Animations ─────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #1A0A2E 0%, #2D1B4E 100%);
  color: #fff;
  padding: calc(var(--nav-h) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: var(--space-sm); }
.page-header p { color: rgba(255,255,255,.65); }

/* ─── Product Detail ─────────────────────────────────────── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: start; }
.product-gallery { position: sticky; top: calc(var(--nav-h) + var(--space-md)); }
.gallery-main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--c-bg-alt); margin-bottom: var(--space-sm); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gallery-thumbs { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color var(--t-fast); flex-shrink: 0; }
.gallery-thumb.active { border-color: var(--c-gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { padding: var(--space-lg) 0; }
.product-detail-name { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: var(--space-sm); }
.product-detail-code { font-family: var(--font-mono); font-size: 0.8rem; color: var(--c-text-muted); background: var(--c-bg-alt); padding: 0.3rem 0.8rem; border-radius: var(--r-sm); display: inline-block; margin-bottom: var(--space-md); }
.product-detail-price { display: flex; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-lg); }
.product-detail-price .price-current { font-size: 2rem; color: var(--c-text); }
.product-divider { border: none; border-top: 1px solid var(--c-border); margin: var(--space-lg) 0; }
.product-specs { display: flex; flex-direction: column; gap: var(--space-sm); }
.product-spec-row { display: flex; gap: var(--space-md); font-size: 0.88rem; }
.product-spec-key { color: var(--c-text-muted); min-width: 120px; flex-shrink: 0; }
.product-spec-val { font-weight: 500; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .hero-content { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + var(--space-2xl)) 0 var(--space-3xl); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .bottom-nav { display: block; }
  .floating-wa { bottom: calc(70px + env(safe-area-inset-bottom) + var(--space-md)); }
  .scroll-top { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .hero-stats { gap: var(--space-lg); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .toast-container { right: var(--space-sm); left: var(--space-sm); }
  .toast { max-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ─── Print / Accessibility ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; border-radius: var(--r-sm); }

/* ══════════════════════════════════════════
   RESPONSIVE FIXES & IMPROVEMENTS
   ══════════════════════════════════════════ */

/* ── General Mobile Fixes ── */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-overflow-scrolling: touch; }
input, select, textarea { font-size: 16px !important; } /* iOS zoom fix */

/* ── Navbar Mobile ── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-logo {
    padding-left: 40px;
    min-height: 46px;
  }
  .nav-logo::before {
    width: 52px;
    height: 52px;
    left: -2px;
  }
  .nav-logo-text,
  .brand-name { font-size: 1.1rem; }
  .nav-logo img { display: none; }
  .nav-actions { gap: .3rem; }
  .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .bottom-nav { display: block; }
}

/* ── Hero Responsive ── */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: calc(var(--nav-h) + 2rem) 0 2.5rem; }
  .hero-content { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-desc { font-size: .92rem; }
  .hero-badge { font-size: .65rem; padding: .28rem .8rem; }
  .hero-stats { gap: 1.2rem; margin-top: 2rem; padding-top: 1.25rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-stat-label { font-size: .7rem; }
  .hero-cta { gap: .6rem; }
  .hero-cta .btn { flex: 1; justify-content: center; padding: .7rem 1rem; font-size: .84rem; }
}

/* ── Products Grid Mobile ── */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .product-card-body { padding: .75rem; gap: .2rem; }
  .product-name { font-size: .88rem; }
  .price-current { font-size: 1rem; }
  .product-card-footer { padding: .4rem .75rem .75rem; }
  .btn.btn-whatsapp.btn-full { padding: .55rem .5rem; font-size: .78rem; }
}

@media (max-width: 360px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .container { padding: 0 .75rem; }
}

/* ── Categories Mobile ── */
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .category-card-name { font-size: .9rem; }
  .category-card-count { font-size: .72rem; }
}

/* ── Section Padding Mobile ── */
@media (max-width: 768px) {
  .products-section { padding: 2.5rem 0; }
  .categories-section { padding: 2.5rem 0; }
  .why-section { padding: 2.5rem 0; }
  .process-section { padding: 2.5rem 0; }
  .reviews-section { padding: 2.5rem 0; }
  .newsletter-section { padding: 2.5rem 0; }
  .section-head { margin-bottom: 1.75rem; }
  .section-head h2 { font-size: 1.5rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .why-card { padding: 1.25rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ── Footer Mobile ── */
@media (max-width: 768px) {
  .footer { padding: 2.5rem 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; margin-bottom: 1.75rem; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; font-size: .78rem; }
}

/* ── Product Detail Mobile ── */
@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-gallery { position: static; }
  .gallery-thumb { width: 58px; height: 58px; }
  .product-detail-name { font-size: 1.4rem; }
  .product-detail-price .price-current { font-size: 1.6rem; }
}

/* ── Shop Sidebar Mobile ── */
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1200;
    transform: translateX(-110%);
    transition: transform .3s ease;
    border-radius: 0;
    max-width: 280px;
    overflow-y: auto;
    padding-top: 4rem;
  }
  .shop-sidebar.open { transform: translateX(0); }
}

/* ── Admin Panel Mobile ── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-110%);
    transition: transform .3s ease;
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr !important; }
  .form-grid-3 { grid-template-columns: 1fr !important; }
  .data-table { font-size: .78rem; }
  .data-table th, .data-table td { padding: .5rem .65rem; }
}

/* ── Touch Improvements ── */
@media (hover: none) {
  .p-card:hover { transform: none; box-shadow: var(--sh-sm); }
  .btn:hover { transform: none; }
  .btn-primary:hover { box-shadow: var(--sh-gold); }
  .product-card:hover { transform: none; }
  .product-card:active { transform: scale(.98); }
}

/* ── Safe Area (iPhone notch) ── */
.bottom-nav {
  padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
}
.floating-wa {
  bottom: calc(80px + env(safe-area-inset-bottom));
}
@media (max-width: 768px) {
  .floating-wa {
    bottom: calc(72px + env(safe-area-inset-bottom) + .75rem);
  }
  main { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ── Scroll Behavior ── */
* { scroll-behavior: smooth; }
.products-grid, .categories-grid, .reviews-grid {
  scroll-snap-type: none;
}

/* ── Image Loading ── */
img {
  loading: lazy;
  background: var(--bg-alt);
}
img[src=""], img:not([src]) {
  visibility: hidden;
}

/* ══════════════════════════════════════════
   GLASSMORPHISM SEARCH OVERLAY
   ══════════════════════════════════════════ */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 5, 25, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1);
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  transform: translateY(-24px) scale(0.97);
  transition: transform 0.38s cubic-bezier(.34,1.56,.64,1);
}

.search-overlay.open .search-overlay-inner {
  transform: translateY(0) scale(1);
}

/* Search Box */
.search-overlay-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 0 0 1px rgba(201,169,110,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-overlay-box:focus-within {
  border-color: rgba(201, 169, 110, 0.55);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    0 0 0 4px rgba(201,169,110,0.12),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.search-overlay-icon {
  color: rgba(201, 169, 110, 0.9);
  font-size: 1.4rem;
  flex-shrink: 0;
  animation: searchIconPulse 2s ease infinite;
}

@keyframes searchIconPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.search-overlay-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.01em;
  caret-color: var(--c-gold);
}

.search-overlay-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1rem;
}

.search-overlay-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.search-overlay-close:hover {
  background: rgba(201,169,110,0.2);
  border-color: rgba(201,169,110,0.4);
  color: var(--c-gold);
  transform: rotate(90deg);
}

/* Hint row */
.search-overlay-hint {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding: 0 0.25rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
}

.search-overlay-hint kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  margin-right: 0.3rem;
}

/* Results */
.overlay-results {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: 420px;
  overflow-y: auto;
  animation: resultsSlideIn 0.25s ease;
}

.overlay-results:empty { display: none; }

@keyframes resultsSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.overlay-results::-webkit-scrollbar { width: 4px; }
.overlay-results::-webkit-scrollbar-track { background: transparent; }
.overlay-results::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.3); border-radius: 99px; }

.overlay-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}

.overlay-result-item:last-child { border-bottom: none; }

.overlay-result-item:hover {
  background: rgba(201, 169, 110, 0.1);
}

.overlay-result-item img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.overlay-result-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.3;
}

.overlay-result-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.overlay-result-price {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-gold);
}

/* Mobile */
@media (max-width: 768px) {
  .search-overlay {
    padding: calc(var(--nav-h) + 1rem) 1rem 1rem;
    align-items: flex-start;
  }
  .search-overlay-input { font-size: 1rem; }
  .search-overlay-hint { display: none; }
  .overlay-result-item { padding: 0.7rem 0.9rem; gap: 0.75rem; }
  .overlay-result-item img { width: 44px; height: 44px; }
  .overlay-results { max-height: 60vh; }
}

/* ══════════════════════════════════════════
   DESKTOP RESPONSIVE (min-width: 769px)
   সব device-এ সুন্দরভাবে দেখাবে
   ══════════════════════════════════════════ */

@media (min-width: 769px) {

  /* ── Main: Bottom nav নেই, so padding দরকার নেই ── */
  main { padding-bottom: 2rem !important; }
  .floating-wa { bottom: 2rem !important; }
  .scroll-top { display: flex !important; bottom: 5rem; }

  /* ── Custom Scrollbar ── */
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: var(--c-bg-alt); }
  ::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--c-text-muted); }

  /* ── Home Page Categories: grid layout ── */
  .home-cats-scroll { overflow-x: visible !important; }
  .cat-row {
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 1.2rem !important;
    justify-content: flex-start;
  }
  .cat-item { min-width: 78px; max-width: 90px; }
  .cat-icon { width: 64px !important; height: 64px !important; font-size: 1.7rem !important; }
  .cat-label { font-size: .72rem; }

  /* ── Products Grid: more columns on desktop ── */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: var(--space-lg) !important;
  }

  /* ── Categories Page: fix bottom since no bottom nav ── */
  .cat-layout { bottom: 0 !important; }
  .cat-sidebar { height: calc(100vh - 56px) !important; }
  .cat-main    { height: calc(100vh - 56px) !important; min-height: unset !important; }
  .cat-tiles-grid { grid-template-columns: repeat(4, 1fr) !important; }

  /* ── Shop Page ── */
  .shop-layout { grid-template-columns: 260px 1fr; }
  .shop-sidebar {
    position: sticky !important;
    top: var(--nav-h) !important;
    transform: none !important;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  /* ── Navbar: show links ── */
  .nav-links { display: flex !important; }
  .hamburger { display: none !important; }

  /* ── Product Detail ── */
  .product-detail-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3xl); }
  .product-gallery { position: sticky; top: calc(var(--nav-h) + 1rem); }

  /* ── Hover effects ── */
  .p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .btn:hover { transform: translateY(-1px); }
  .cat-tile:hover { box-shadow: var(--shadow-md); }

  /* ── Footer: full 4-column layout ── */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr !important; gap: var(--space-3xl); }
}

/* ── Mid Desktop (900px–1200px) ── */
@media (min-width: 900px) and (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  }
  .cat-tiles-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── Large Desktop (min-width: 1280px) ── */
@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: var(--space-xl) !important;
  }
  .cat-tiles-grid { grid-template-columns: repeat(5, 1fr) !important; }
  .cat-sidebar { width: 120px !important; }
  .cat-side-icon { width: 68px !important; height: 68px !important; }
  .cat-side-name { font-size: .72rem !important; }
}

/* ── Tablet (768px–1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: var(--space-md) !important;
  }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: var(--space-xl); }
}
