:root {
  /* Brand Colors */
  --c-bg: #0a0c18;
  --c-surface: #12162d;
  --c-surface-hover: #1c2240;
  --c-accent: #C4972A;
  --c-accent-hover: #A57C1B;
  --c-text: #f8fafc;
  --c-text-muted: #94a3b8;
  --c-border: rgba(255, 255, 255, 0.08);

  /* Glass & Glow Tokens */
  --c-glass-surface: rgba(18, 22, 45, 0.65);
  --c-glass-border: rgba(255, 255, 255, 0.08);
  --glow-gold-btn: 0 4px 20px rgba(196, 151, 42, 0.3), 0 0 35px rgba(196, 151, 42, 0.12);
  --glow-gold-btn-hover: 0 8px 32px rgba(196, 151, 42, 0.45), 0 0 50px rgba(196, 151, 42, 0.22);
  --glow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 28px rgba(196, 151, 42, 0.12);
  
  /* Layout */
  --radius: 12px;
  --radius-pill: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-drawer: -8px 0 32px rgba(0,0,0,0.5);
  --shadow-modal: 0 24px 64px rgba(0,0,0,0.6), 0 0 60px rgba(196, 151, 42, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 600px at 15% 20%, rgba(196,151,42,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 700px 500px at 85% 55%, rgba(232,197,71,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 800px 600px at 50% 90%, rgba(196,151,42,0.10) 0%, transparent 70%),
    radial-gradient(circle 500px at 75% 10%, rgba(165,124,27,0.10) 0%, transparent 60%);
}
body > * {
  position: relative;
  z-index: 1;
}
body.modal-open {
  overflow: hidden;
}

h1, h2, h3, .logo, .footer-brand {
  font-family: 'Outfit', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ================== NAVBAR ================== */
@keyframes shimmerSweepNav {
  0%   { transform: translateX(-150%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(350%); opacity: 0; }
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(10, 12, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}
.navbar::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), #e8c547, transparent);
  opacity: 0.6;
}
.navbar::after {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 35%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196,151,42,0.12), rgba(255,255,255,0.06), transparent);
  pointer-events: none;
  animation: shimmerSweepNav 5s ease-in-out infinite;
}
.nav-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--c-accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  transition: transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-btn:hover {
  transform: scale(1.1);
  color: var(--c-accent);
}
.badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

/* Badge pop animation (mobile add-to-cart) */
@keyframes badgePop {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.8); }
  40%  { transform: scale(0.9); }
  60%  { transform: scale(1.3); }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.badge-pop {
  animation: badgePop 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Cart icon shake animation */
@keyframes cartShake {
  0%, 100% { transform: rotate(0deg); }
  15%      { transform: rotate(-12deg); }
  30%      { transform: rotate(10deg); }
  45%      { transform: rotate(-8deg); }
  60%      { transform: rotate(6deg); }
  75%      { transform: rotate(-3deg); }
}
.cart-btn-shake {
  animation: cartShake 0.6s ease-in-out;
}

/* ================== HERO ================== */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: var(--c-accent);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
}

/* Hero floating logo */
.hero-logo-float {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  animation: heroLogoEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-logo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  animation: heroFloat 4s ease-in-out infinite 1s;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.hero-logo-img:hover {
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.6));
}

/* Entry animation */
@keyframes heroLogoEntry {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Continuous floating */
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-14px) rotate(2deg);
  }
  50% {
    transform: translateY(-6px) rotate(-1deg);
  }
  75% {
    transform: translateY(-18px) rotate(1.5deg);
  }
}
.hero-title {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  word-break: break-word;
}
.hero-title span {
  background: linear-gradient(135deg, #C4972A, #E8B84A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ================== BUTTONS ================== */
@keyframes btnGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(196, 151, 42, 0.35), 0 0 35px rgba(196, 151, 42, 0.15);
  }
  50% {
    box-shadow: 0 6px 30px rgba(196, 151, 42, 0.6), 0 0 55px rgba(196, 151, 42, 0.3);
  }
}

@keyframes sheenSweep {
  0% {
    left: -140%;
  }
  30%, 100% {
    left: 140%;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #C4972A, #e8c547);
  color: #0a0c18;
  font-weight: 700;
  animation: btnGlowPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -140%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: sheenSweep 4.5s ease-in-out infinite;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #D4A73A, #f0cf5b);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(196, 151, 42, 0.7), 0 0 65px rgba(196, 151, 42, 0.4);
}
.btn-primary:disabled {
  background: var(--c-surface);
  color: var(--c-text-muted);
  cursor: not-allowed;
  animation: none;
  box-shadow: none;
}
.btn-full {
  width: 100%;
}
.btn-icon {
  background: none;
  border: none;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition);
  display: flex;
}
.btn-icon:hover {
  background: var(--c-surface);
  color: #fff;
}

/* ================== PRODUCTS GRID ================== */
@keyframes shimmerSweep {
  0%   { transform: translateX(-140%) rotate(25deg); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(260%) rotate(25deg); opacity: 0; }
}

.section {
  padding: 80px 0;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 48px;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}
/* POD Banner */
.pod-banner {
  text-align: center;
  padding: 28px 32px;
  border-radius: 14px;
  border: 1px solid rgba(196, 151, 42, 0.2);
  background: rgba(196, 151, 42, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.pod-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), #e8c547, transparent);
  opacity: 0.5;
}
.pod-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 8px;
}
.pod-banner-text {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0;
}

.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  will-change: transform;
  contain: layout style paint;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 151, 42, 0.4);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}
.product-img-wrapper {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  content-visibility: auto;
}
@media (hover: hover) {
  .product-card:hover .product-img {
    transform: scale(1.06);
  }
}
.product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.product-price {
  font-size: 1.25rem;
  color: var(--c-accent);
  font-weight: 700;
  margin-top: auto;
}

/* ================== STORY SECTION ================== */
.story-section {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.story-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: var(--c-accent);
  filter: blur(180px);
  opacity: 0.07;
  border-radius: 50%;
  pointer-events: none;
}
.story-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(196, 151, 42, 0.3);
  background: rgba(196, 151, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--c-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 0 20px rgba(196, 151, 42, 0.12);
}
.story-section .container {
  text-align: center;
}
.story-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 56px;
}
.story-title span {
  background: linear-gradient(135deg, #C4972A, #E8B84A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.story-card {
  background: var(--c-glass-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-glass-border);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.story-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-accent), #e8c547, transparent);
  opacity: 0.45;
  transition: opacity var(--transition);
  z-index: 2;
}
.story-card:hover::before {
  opacity: 1;
}
.story-card::after {
  content: '';
  position: absolute;
  top: -30%; left: -30%;
  width: 50%; height: 160%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,0.015) 25%,
    rgba(196,151,42,0.07) 50%,
    rgba(255,255,255,0.02) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  animation: shimmerSweep 4.5s ease-in-out infinite;
}
.story-card:nth-child(2)::after {
  animation-delay: 1.5s;
}
.story-card:nth-child(3)::after {
  animation-delay: 3s;
}
.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.story-card-accent {
  border-color: rgba(196, 151, 42, 0.3);
  background: linear-gradient(145deg, rgba(196, 151, 42, 0.08), rgba(18, 22, 45, 0.7));
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 35px rgba(196, 151, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}
.story-card-accent:hover {
  border-color: rgba(196, 151, 42, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 45px rgba(196, 151, 42, 0.18);
}
.story-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.story-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--c-text);
  position: relative;
  z-index: 2;
}
.story-card p {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}
.story-card strong {
  color: var(--c-accent);
}
.story-cta {
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

/* Story Photo Gallery Strip */
.story-gallery {
  display: flex;
  gap: 20px;
  max-width: 600px;
  margin: 56px auto 16px;
}
.story-gallery-item {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.story-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.story-gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 151, 42, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(196, 151, 42, 0.1);
}
.story-gallery-item:hover::after {
  opacity: 0.5;
}
.story-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .story-gallery-item:hover img {
    transform: scale(1.06);
  }
}

/* ================== BRAND DESIGN SECTION ================== */
.brand-section {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.brand-section .container {
  text-align: center;
}
.brand-description {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}
.brand-img-wrapper {
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(196, 151, 42, 0.25);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(196, 151, 42, 0.08);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.brand-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(196, 151, 42, 0.12), transparent 50%, rgba(232, 197, 71, 0.08));
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.brand-img-wrapper:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 151, 42, 0.45);
  box-shadow:
    0 16px 56px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(196, 151, 42, 0.15);
}
.brand-img-wrapper:hover::before {
  opacity: 1;
}
.brand-img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-img-wrapper:hover .brand-img {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .story-title {
    font-size: 2rem;
  }
  .story-gallery {
    gap: 14px;
  }
  .brand-description {
    font-size: 1rem;
  }
  .brand-img-wrapper {
    margin-top: 32px;
    border-radius: 12px;
  }
}

/* ================== DRAWER CART ================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.drawer {
  width: 100%;
  max-width: 440px;
  background: rgba(10, 12, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-drawer);
}
.drawer-overlay.open .drawer {
  transform: translateX(0);
}
.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--c-border);
  background: rgba(18, 22, 45, 0.6);
  backdrop-filter: blur(12px);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--c-surface);
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-item-meta {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}
.cart-item-price {
  font-weight: 700;
  color: var(--c-accent);
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-btn {
  background: var(--c-surface-hover);
  border: 1px solid var(--c-border);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.qty-btn:hover {
  border-color: var(--c-accent);
  background: rgba(196, 151, 42, 0.15);
}
.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: auto;
}

/* ================== MODAL (Product Setup) ================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.modal {
  background: rgba(10, 12, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  border: 1px solid rgba(196, 151, 42, 0.15);
  box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
}
.modal-layout {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .modal-layout { flex-direction: row; }
}
.modal-img-container {
  flex: 1;
  background: var(--c-surface);
  position: relative;
  min-height: 400px;
}
.modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}
.carousel-btn:hover {
  background: var(--c-accent);
}
.prev-btn { left: 16px; }
.next-btn { right: 16px; }
.modal-details {
  flex: 1;
  padding: 40px;
}
.modal-title {
  font-size: 2rem;
  margin-bottom: 8px;
}
.modal-price {
  font-size: 1.5rem;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 32px;
}
/* Selector Chips */
.selector-group {
  margin-bottom: 24px;
}
.selector-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  padding: 10px 18px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chip.active {
  border-color: var(--c-accent);
  background: rgba(196, 151, 42, 0.15);
  color: var(--c-accent);
  box-shadow: 0 0 16px rgba(196, 151, 42, 0.25);
}
.chip:hover:not(.active) {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255, 255, 255, 0.06);
}
.color-chip {
  min-width: 48px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-width: 2px;
}
.color-chip.active {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* Size Badge (taglia unica) */
.size-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

/* Qty Picker */
.qty-picker {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-picker-btn {
  background: var(--c-surface);
  border: none;
  color: var(--c-text);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-picker-btn:hover {
  background: var(--c-surface-hover);
  color: var(--c-accent);
}
.qty-picker-value {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-dot.active {
  background: var(--c-accent);
  transform: scale(1.3);
}
.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

/* Modal image crossfade */
.modal-img-container {
  position: relative;
}
.modal-img-front,
.modal-img-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease;
}
.modal-img-front {
  z-index: 1;
}
.modal-img-back {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

/* ================== LIGHTBOX FULLSCREEN ================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.lightbox-img {
  max-width: 94vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.15s ease;
  user-select: none;
}
.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}
.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ================== MODAL RESPONSIVE ================== */
@media (max-width: 767px) {
  .modal-overlay {
    padding: 16px 8px;
  }
  .modal {
    border-radius: 16px;
  }
  .modal-img-container {
    min-height: 280px;
  }
  .modal-details {
    padding: 24px 20px;
  }
  .modal-title {
    font-size: 1.4rem;
  }
  .modal-price {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  .selector-group {
    margin-bottom: 16px;
  }
  .selector-label {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }
  .chips-container {
    gap: 8px;
  }
  .chip {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .color-chip {
    font-size: 0.7rem;
    min-width: 40px;
  }
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  .prev-btn { left: 8px; }
  .next-btn { right: 8px; }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close-btn {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

/* ================== FOOTER ================== */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
}
.footer-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}
.footer-text {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.footer-links {
  margin-top: 12px;
}
.footer-links a {
  color: var(--c-text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--c-accent);
}

/* ================== GLOBAL MOBILE FIXES ================== */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .navbar {
    height: 60px;
  }
  .nav-content {
    gap: 10px;
  }
  .logo-img {
    height: 36px;
    width: 36px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.8rem;
  }
  .cart-btn {
    padding: 4px;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .hero-logo-img {
    width: 120px;
    height: 120px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 32px;
  }

  /* ===== MOBILE PERFORMANCE ===== */
  /* Disable heavy blur on mobile — keeps visual intact with solid bg */
  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 12, 24, 0.97);
  }
  .story-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--c-surface);
  }
  .story-gallery {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }
  .story-gallery-item {
    border-radius: 12px;
  }
  .story-card::after {
    animation: none;
  }
  .drawer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .drawer-footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .story-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .chip {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Reduce hero blur layer complexity */
  .hero::before {
    filter: blur(100px);
    width: 400px;
    height: 280px;
  }
  body::before {
    background:
      radial-gradient(ellipse 500px 400px at 30% 30%, rgba(196,151,42,0.10) 0%, transparent 70%),
      radial-gradient(ellipse 500px 400px at 70% 70%, rgba(196,151,42,0.08) 0%, transparent 70%);
  }
  /* Disable non-essential animations on mobile */
  .btn-primary {
    animation: none;
    box-shadow: 0 4px 16px rgba(196, 151, 42, 0.25);
  }
  .btn-primary::after {
    animation: none;
    display: none;
  }
  .navbar::after {
    animation: none;
    display: none;
  }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
