/* ==========================================================================
   ZUSERA — FLAGSHIP MONOCHROME LUXURY DESIGN SYSTEM
   Theme: Zeus + Hera Divine Fashion Atelier (Sri Lanka)
   Responsive Architecture: Mobile-First & PPC Ad Optimized (320px to 1440px+)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap');

:root {
  /* Color Tokens - Monochrome + 1% Electric Gold Touch */
  --bg-black: #050505;
  --bg-card: #0c0c0c;
  --bg-card-hover: #121212;
  --bg-surface: #141414;
  --bg-glass: rgba(5, 5, 5, 0.92);
  --bg-white: #ffffff;
  --bg-light-grey: #f5f5f5;

  --text-white: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  --text-black: #050505;

  /* 1% Electric Gold Accent Tokens */
  --electric-gold: #ffe57f;
  --gold-glow: rgba(255, 215, 0, 0.35);
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --gold-text-gradient: linear-gradient(90deg, #ffffff 0%, #ffe57f 35%, #ffffff 70%, #ffe57f 100%);

  --border-dark: rgba(255, 255, 255, 0.1);
  --border-dark-strong: rgba(255, 255, 255, 0.22);

  /* Typography */
  --font-main: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing Scale - Ultra-Compact Luxury Proportions */
  --container-max: 1200px;
  --header-height: 48px;
  --radius-sm: 2px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   GPU ACCELERATION & AGENCY PERFORMANCE CONTAINMENT (0 CLS, 100% SPEED)
   -------------------------------------------------------------------------- */
.product-card, .btn-primary, .btn-secondary, .cart-drawer, .modal-card, .site-header {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.product-grid {
  contain: layout style;
}

@keyframes electricGoldSweep {
  0% {
    border-color: rgba(255, 229, 127, 0.12);
    box-shadow: 0 0 0px rgba(255, 229, 127, 0);
  }
  40% {
    border-color: rgba(255, 229, 127, 0.7);
    box-shadow: 0 0 14px rgba(255, 229, 127, 0.3);
  }
  70% {
    border-color: rgba(255, 229, 127, 0.15);
    box-shadow: 0 0 0px rgba(255, 229, 127, 0);
  }
  100% {
    border-color: rgba(255, 229, 127, 0.12);
    box-shadow: 0 0 0px rgba(255, 229, 127, 0);
  }
}

@keyframes goldTextShimmer {
  0% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & SAFEGUARDS (NO HORIZONTAL OVERFLOW)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
}

::selection {
  background: var(--text-white);
  color: var(--bg-black);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  touch-action: manipulation;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  touch-action: manipulation;
}

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

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

/* --------------------------------------------------------------------------
   2. TYPOGRAPHY (RESPONSIVE CLAMP SCALING)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .font-bold {
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.font-light-italic, .subtitle-tag, .story-quote, .hero-tagline {
  font-family: var(--font-main);
  font-weight: 300;
  font-style: italic;
}

.title-hero {
  font-size: clamp(1.4rem, 4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.title-section {
  font-size: clamp(1.1rem, 2.8vw, 2rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--electric-gold);
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 300;
  font-style: italic;
  background: var(--gold-text-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldTextShimmer 5s infinite linear;
}

.body-lead {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 300;
  color: #bbbbbb;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   3. HEADER & MOBILE NAVIGATION (FULLSCREEN OVERLAY + 48PX TAP TARGETS)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  transition: background-color var(--transition-medium), border-color var(--transition-medium), backdrop-filter var(--transition-medium);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

.brand-logo-img {
  height: clamp(20px, 4vw, 24px);
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0.2rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  transition: opacity var(--transition-fast);
}

.cart-badge {
  background: var(--text-white);
  color: var(--bg-black);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 1.5px;
  background-color: var(--text-white);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   4. BUTTONS & UI TAP TARGETS (MINIMUM 44PX HEIGHT)
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 1.1rem;
  background-color: var(--text-white);
  color: var(--bg-black);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--text-white);
  position: relative;
  overflow: hidden;
  transition: color var(--transition-medium), background-color var(--transition-medium);
  text-align: center;
  animation: electricGoldSweep 5s infinite ease-in-out;
}

.btn-primary:hover {
  color: var(--bg-black);
  background-color: var(--electric-gold);
  border-color: var(--electric-gold);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 1.1rem;
  background-color: transparent;
  color: var(--text-white);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid var(--border-dark-strong);
  transition: border-color var(--transition-medium), background-color var(--transition-medium);
  text-align: center;
  animation: electricGoldSweep 5s infinite ease-in-out;
}

.btn-secondary:hover {
  border-color: var(--electric-gold);
  background-color: rgba(255, 229, 127, 0.08);
  color: var(--electric-gold);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.72)), url('images/herobg1.png') center 20%/cover no-repeat;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 0 1.2rem;
  margin-top: 2rem;
}

.hero-tagline {
  font-size: clamp(0.7rem, 2.5vw, 0.82rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateY(15px);
  font-weight: 300;
  font-style: italic;
}

.hero-logo-wrap {
  margin: 0.8rem auto 1.2rem auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-logo-img {
  max-width: clamp(240px, 65vw, 380px);
  width: 80%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(20px);
}

.hero-subtext {
  font-size: clamp(0.85rem, 2vw, 0.98rem);
  font-weight: 300;
  color: #a0a0a0;
  max-width: 520px;
  margin: 0.8rem auto 1.8rem auto;
  opacity: 0;
  transform: translateY(15px);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(15px);
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-style: italic;
}

.scroll-indicator .line {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--text-white), transparent);
  animation: pulseLine 2s infinite ease-in-out;
}

@keyframes pulseLine {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.3; }
}

/* --------------------------------------------------------------------------
   6. MARQUEE TICKER
   -------------------------------------------------------------------------- */
.marquee-ticker {
  width: 100%;
  background-color: var(--text-white);
  color: var(--bg-black);
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 20;
}

.marquee-content {
  display: inline-flex;
  gap: 2rem;
  animation: marquee 24s linear infinite;
}

.marquee-item {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.marquee-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--bg-black);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   7. BRAND STORY SECTION
   -------------------------------------------------------------------------- */
.section-padding {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3vw;
  align-items: center;
}

.story-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--bg-surface);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-quote {
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  line-height: 1.35;
  margin: 1rem 0 1.2rem 0;
  border-left: 2px solid var(--text-white);
  padding-left: 1rem;
  color: #dddddd;
}

/* --------------------------------------------------------------------------
   8. FEATURED PRODUCTS & PRODUCT CARDS (MOBILE RESPONSIVE GRID)
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.9rem;
}

.product-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  transition: transform var(--transition-medium), border-color var(--transition-medium);
  display: flex;
  flex-direction: column;
  animation: electricGoldSweep 5s infinite ease-in-out;
}

.product-card:hover {
  border-color: var(--electric-gold);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
}

.product-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background-color: #101010;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), opacity var(--transition-fast);
}

.product-image-secondary {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-image-primary {
  opacity: 0;
}

.product-card:hover .product-image-secondary {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  font-style: italic;
  font-weight: 300;
  padding: 0.18rem 0.4rem;
  border: 1px solid var(--border-dark);
  z-index: 2;
}

.product-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--text-white);
  color: var(--bg-black);
  padding: 0.55rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(100%);
  transition: transform var(--transition-fast);
  cursor: pointer;
  z-index: 3;
  min-height: 36px;
}

.product-card:hover .product-quick-add {
  transform: translateY(0);
}

.product-info {
  padding: 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex-grow: 1;
}

.product-category {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-style: italic;
  font-weight: 300;
}

.product-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-white);
  line-height: 1.2;
}

.product-price {
  font-size: 0.68rem;
  font-weight: 400;
  color: #cccccc;
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   9. EDITORIAL SHOWCASE
   -------------------------------------------------------------------------- */
.editorial-section {
  position: relative;
  width: 100%;
  min-height: 55vh;
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.editorial-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.editorial-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 520px;
  padding: 2.2rem 4vw;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  margin-left: 4vw;
}

/* --------------------------------------------------------------------------
   10. SHOP PAGE & FILTER BAR
   -------------------------------------------------------------------------- */
.shop-hero {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 1.8rem;
  text-align: center;
  border-bottom: 1px solid var(--border-dark);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1rem 0;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--border-dark);
}

.filter-categories {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--text-white);
  color: var(--bg-black);
  border-color: var(--text-white);
  font-weight: 700;
}

.shop-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
}

.sort-select, .search-input {
  background-color: var(--bg-card);
  color: var(--text-white);
  border: 1px solid var(--border-dark);
  padding: 0.6rem 0.8rem;
  font-size: 16px !important; /* Minimum 16px to prevent iOS Safari auto-zoom */
  letter-spacing: 0.08em;
  font-family: inherit;
  outline: none;
  min-height: 44px;
  flex: 1;
}

/* --------------------------------------------------------------------------
   11. CONTACT PAGE SPECIFICS
   -------------------------------------------------------------------------- */
.contact-hero-section {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 3.5rem;
}

.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.info-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: italic;
}

.info-value {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-white);
}

.contact-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 2rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.6rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-dark-strong);
  padding: 0.7rem 0;
  color: var(--text-white);
  font-family: inherit;
  font-size: 16px !important; /* Minimum 16px prevents iOS Safari auto-zoom */
  outline: none;
  min-height: 44px;
}

.form-label {
  position: absolute;
  top: 0.7rem;
  left: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  top: -0.9rem;
  font-size: 0.6rem;
  color: var(--text-white);
}

/* --------------------------------------------------------------------------
   12. MODALS & DIGITAL MOBILE INVOICE BILL (100% RESPONSIVE)
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-black);
  border-left: 1px solid var(--border-dark);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-medium);
}

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

.cart-header {
  padding: 1.2rem;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-body {
  padding: 1.2rem;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0.8rem;
}

.cart-item-img {
  width: 50px;
  height: 65px;
  object-fit: cover;
}

.cart-footer {
  padding: 1.2rem;
  border-top: 1px solid var(--border-dark);
  background-color: var(--bg-card);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-black);
  border: 1px solid var(--border-dark);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  z-index: 10;
  color: var(--text-white);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-modal-card {
  background-color: var(--bg-black);
  border: 1px solid var(--border-dark);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.8rem 1.4rem;
  position: relative;
}

.nic-status-badge {
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 0.3rem;
  letter-spacing: 0.1em;
}

.nic-status-badge.valid {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.nic-status-badge.invalid {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* MOBILE DIGITAL INVOICE BILL MODAL */
.invoice-modal-card {
  background-color: #ffffff;
  color: #000000;
  width: 100%;
  max-width: 380px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.6rem 1.2rem;
  position: relative;
  font-family: var(--font-main);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  border-radius: 4px;
}

.invoice-header {
  text-align: center;
  border-bottom: 2px dashed #000;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.invoice-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 0.6rem auto;
  padding: 8px 12px;
  border: 2px solid #000000;
  background: #ffffff;
  max-width: 300px;
  width: 90%;
}

.invoice-logo {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.75rem;
}

.invoice-table th, .invoice-table td {
  padding: 0.35rem 0;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.invoice-table th:last-child, .invoice-table td:last-child {
  text-align: right;
}

.invoice-total-box {
  border-top: 2px dashed #000;
  padding-top: 0.6rem;
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #020202;
  border-top: 1px solid var(--border-dark);
  padding: 3.5rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3vw;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.8rem;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.75rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--text-white);
}

.newsletter-input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 0.6rem 0.8rem;
  color: var(--text-white);
  font-size: 16px !important;
  outline: none;
  min-height: 44px;
}

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   14. MOBILE BREAKPOINTS (320px to 1024px)
   -------------------------------------------------------------------------- */

/* TABLETS (600px - 1024px) */
@media (max-width: 1024px) {
  .story-grid, .contact-split-grid, .modal-card {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .editorial-content {
    margin-left: 0;
    width: 90%;
    margin: 0 auto;
  }
}

/* LARGE & STANDARD PHONES (375px - 599px) */
@media (max-width: 599px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 0.8rem;
  }

  .product-info {
    padding: 0.75rem 0.5rem;
  }

  .product-title {
    font-size: 0.85rem;
  }

  .product-price {
    font-size: 0.78rem;
  }

  .product-quick-add {
    transform: translateY(0); /* Always visible on mobile (no hover required) */
    position: relative;
    font-size: 0.6rem;
    padding: 0.5rem 0.2rem;
    min-height: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-controls {
    flex-direction: column;
    width: 100%;
  }

  .contact-form-card {
    padding: 1.4rem 1rem;
  }

  .checkout-modal-card {
    padding: 1.4rem 1rem;
  }
}

/* SMALL PHONES (320px - 374px) */
@media (max-width: 374px) {
  .product-grid {
    grid-template-columns: 1fr; /* Single column on tiny 320px screens */
  }

  .title-hero {
    font-size: 1.6rem;
  }

  .hero-logo-img {
    width: 90%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.7rem 0.8rem;
  }
}
