@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Outfit:wght@100..900&display=swap');

/* --- LUXURY DESIGN SYSTEM & THEMES --- */
:root {
  /* Fonts */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;

  /* Dark Theme Palette (Default) */
  --bg-primary: #090d16;
  --bg-secondary: #111726;
  --bg-tertiary: #182033;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;
  
  --accent-gold: #d4af37;
  --accent-gold-rgb: 212, 175, 55;
  --accent-gold-hover: #f3cf65;
  
  --accent-emerald: #10b981;
  --accent-emerald-rgb: 16, 185, 129;
  --accent-emerald-hover: #34d399;

  --accent-rose: #f43f5e;

  /* Glassmorphism & Borders */
  --glass-bg: rgba(17, 23, 38, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-gold-border: rgba(212, 175, 55, 0.15);
  --border-color: rgba(255, 255, 255, 0.08);
  
  /* Shadows & Radius */
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.05);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Light Theme overrides */
body.light-theme {
  --bg-primary: #f6f8fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #edf2f7;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-gold-border: rgba(212, 175, 55, 0.25);
  --border-color: rgba(0, 0, 0, 0.08);
  
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.06);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* --- UTILITIES & LAYOUT --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.section-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 600;
}

/* Golden Gradients & Glows */
.gold-text {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #f9e29c 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-premium {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ecd074 100%);
  color: #000000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
}

.btn-outline {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 13px 27px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
}

/* --- NAVIGATION HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  height: 80px;
}

.site-header.scrolled {
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}

.logo span {
  font-weight: 300;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1.5px;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--accent-gold);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-icon-btn {
  color: var(--text-primary);
  font-size: 1.25rem;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-gold);
}

body.light-theme .action-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-rose);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none; /* Can trigger via mobile menu list later */
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* Search Overlay */
.search-container {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 6px 12px;
  border-radius: 30px;
  width: 220px;
  transition: var(--transition-smooth);
}

.search-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-submit-btn:hover {
  color: var(--accent-gold);
}

.search-container:focus-within {
  border-color: var(--accent-gold);
  width: 280px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.search-input {
  background: none;
  border: none;
  color: var(--text-primary);
  margin-left: 8px;
  font-size: 0.85rem;
  width: 100%;
}

.hero-slider {
  height: 65vh;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* Quicklinks Ribbon (Flipkart/Amazon style) */
.category-quicklinks-ribbon {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 25px 40px;
  border-radius: var(--radius-lg);
  margin-top: -60px;
  position: relative;
  z-index: 100;
  border: 1px solid var(--glass-gold-border);
  box-shadow: 0 15px 30px rgba(0,0,0,0.35);
  background: var(--glass-bg);
}

body.light-theme .category-quicklinks-ribbon {
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.quicklink-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 120px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.quicklink-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-inset);
  transition: var(--transition-smooth);
}

.quicklink-item:hover .quicklink-circle {
  transform: translateY(-5px) scale(1.08);
  border-color: var(--accent-gold);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.quicklink-item span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.quicklink-item:hover span {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .hero-slider {
    height: 50vh;
  }
  .category-quicklinks-ribbon {
    margin-top: -30px;
    padding: 20px;
    gap: 15px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .quicklink-item {
    width: 85px;
    flex-shrink: 0;
  }
  .quicklink-circle {
    width: 55px;
    height: 55px;
  }
  .quicklink-item span {
    font-size: 0.75rem;
  }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  filter: brightness(0.4) contrast(1.1);
}

.hero-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: brightness(0.4) contrast(1.1);
  transition: transform 8s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.hero-slide.active .hero-slide-image {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.6) 0%, rgba(9, 13, 22, 0.95) 100%);
  z-index: 2;
}

body.light-theme .hero-overlay {
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.5) 0%, rgba(246, 248, 251, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, opacity 1s ease 0.3s;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-tag {
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 4px;
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 25px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
}

/* Slider Controls */
.hero-nav {
  position: absolute;
  bottom: 50px;
  right: 40px;
  z-index: 20;
  display: flex;
  gap: 15px;
}

.hero-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.hero-nav-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #000;
}

.hero-dots {
  position: absolute;
  bottom: 60px;
  left: 40px;
  z-index: 20;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-dot.active {
  background: var(--accent-gold);
  width: 60px;
}

/* --- CATEGORIES SECTION --- */
.section-categories {
  padding: 100px 0;
  position: relative;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  position: relative;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
  filter: brightness(0.65) contrast(1.05);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.9) 0%, rgba(9, 13, 22, 0.2) 60%, rgba(9, 13, 22, 0) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.category-card:hover .category-img {
  transform: scale(1.1);
  filter: brightness(0.75) contrast(1.1);
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(11, 83, 69, 0.3) 60%, rgba(9, 13, 22, 0) 100%);
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 5;
}

.category-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
}

.category-explore {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.category-card:hover .category-explore {
  opacity: 1;
  transform: translateY(0);
}

/* --- DYNAMIC PRODUCT GRID & SHOP --- */
.section-products {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  transition: background-color 0.5s ease;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.filter-tabs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 30px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.filter-tab-btn:hover {
  color: var(--accent-gold);
}

.filter-tab-btn.active {
  background: var(--accent-gold);
  color: #000;
  font-weight: 600;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1200px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* Luxury Product Card */
.product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 480px;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-gold-border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

body.light-theme .product-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.product-media-wrapper {
  height: 300px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease, transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.product-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

/* Hover: gentle zoom — image always stays visible unless video is playing */
.product-card:hover .product-img {
  transform: scale(1.05);
}

/* Only crossfade to video when card has video AND it is actually playing */
.product-card.has-product-video.is-video-playing .product-img {
  opacity: 0;
}

.product-card.has-product-video.is-video-playing .product-video-bg {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Card Link Intermediaries */
.card-media-link {
  text-decoration: none;
  cursor: pointer;
}

.product-title-link {
  text-decoration: none;
  color: inherit !important;
  transition: color 0.25s ease;
}

.product-title-link:hover {
  color: var(--accent-gold) !important;
}

/* 1. Out of Stock Badge */
.product-badge.badge-outofstock {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 2. Low Stock Scarcity Badge */
.product-badge.badge-few-left {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: badgeLowStockPulse 2.5s ease-in-out infinite alternate;
}

@keyframes badgeLowStockPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.6);
  }
}

/* 3. Watching Dynamic Badge */
.product-badge.badge-watching {
  background: linear-gradient(135deg, #090d16 0%, #151f32 100%) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.2);
  font-weight: 600;
}

.product-badge.badge-watching .badge-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: badgeWatchingPulseBlue 1.5s infinite;
}

@keyframes badgeWatchingPulseBlue {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.8);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
  }
  100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* 4. Selling Fast Velocity Badge */
.product-badge.badge-selling-fast {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  color: #fff !important;
  border: 1px solid var(--accent-gold) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45);
  font-weight: 700;
}

.product-badge.badge-selling-fast i {
  color: var(--accent-gold);
  animation: fireFlameFlicker 0.8s ease-in-out infinite alternate;
}

@keyframes fireFlameFlicker {
  0% {
    transform: scale(0.95) rotate(-2deg);
    filter: brightness(1);
  }
  100% {
    transform: scale(1.2) rotate(2deg);
    filter: brightness(1.4);
  }
}

/* 5. Exclusive High-Value Badge */
.product-badge.badge-exclusive {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%) !important;
  color: #fff !important;
  border: 1px solid var(--accent-gold) !important;
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
  font-weight: 600;
}

.product-badge.badge-exclusive i {
  color: var(--accent-gold);
}

.product-media-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  z-index: 10;
  transform: translateY(100%);
  transition: var(--transition-smooth);
  background: linear-gradient(to top, rgba(9, 13, 22, 0.8) 0%, rgba(9, 13, 22, 0) 100%);
}

.product-card:hover .product-media-actions {
  transform: translateY(0);
}

.media-action-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.media-action-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
  background-color: var(--bg-tertiary);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.5s ease;
}

body.light-theme .product-info {
  background-color: var(--bg-secondary);
}

.product-cat {
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 5px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
  height: 46px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-rating {
  font-size: 0.8rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.product-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.product-tag-chip:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.45);
}

/* --- VIDEO PRESENTATION GALLERY --- */
.section-presentation {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
}

.presentation-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 1024px) {
  .presentation-container {
    grid-template-columns: 1fr;
  }
}

.presentation-video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  aspect-ratio: 16/9;
  border: 1px solid var(--glass-gold-border);
  background: #000;
}

.presentation-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-gold);
  color: #000;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  transition: var(--transition-smooth);
}

.play-overlay-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.7);
  background: #fff;
}

.presentation-content {
  padding: 20px;
}

.presentation-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
}

.presentation-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.presentation-features {
  display: grid;
  gap: 20px;
}

.feat-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feat-icon {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.feat-text h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.feat-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- CART DRAWER & OVERLAYS --- */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(5px);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 480px;
  max-width: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  z-index: 10001;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer.right-drawer {
  right: 0;
  transform: translateX(100%);
}

.drawer.left-drawer {
  left: 0;
  transform: translateX(-100%);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-close-btn {
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Cart Body & Items */
.cart-body {
  padding: 30px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  animation: slideInUp 0.3s ease;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.qty-counter {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px 10px;
}

.qty-btn {
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 4px 8px;
}

.qty-btn:hover {
  color: var(--accent-gold);
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 5px;
  min-width: 20px;
  text-align: center;
}

.item-remove-btn {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.item-remove-btn:hover {
  color: var(--accent-rose);
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: auto;
  color: var(--text-muted);
}

.cart-empty-state-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.15);
}

.cart-footer {
  padding: 30px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.cart-subtotal-price {
  font-weight: 700;
  color: var(--accent-gold);
}

/* --- QUICK VIEW & PRODUCT DETAILS MODAL --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 1000px;
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  border: 1px solid var(--glass-gold-border);
  transform: scale(0.95);
  transition: var(--transition-smooth);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

@media (max-width: 850px) {
  .modal-container {
    grid-template-columns: 1fr;
  }
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid var(--glass-border);
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.modal-gallery-pane {
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
}

.modal-main-viewer {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-main-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  background: var(--bg-tertiary);
}

.modal-main-video.active {
  display: block;
}

.modal-gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: var(--bg-primary);
  overflow-x: auto;
}

.thumb-card {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.thumb-card.active {
  border-color: var(--accent-gold);
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-gold);
  font-size: 1rem;
  background: rgba(0,0,0,0.5);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-details-pane {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .modal-details-pane {
    padding: 20px;
  }
}

.modal-product-cat {
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.modal-product-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.modal-product-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.modal-product-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
}

.modal-product-options {
  margin-bottom: 30px;
}

.options-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.size-selector {
  display: flex;
  gap: 10px;
}

.size-pill {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
  background: transparent;
  color: inherit;
  font-family: inherit;
  padding: 0;
}

.size-pill:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.size-pill.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #000;
}

.modal-action-row {
  display: flex;
  gap: 15px;
}

.modal-action-row .btn-premium {
  flex-grow: 1;
  justify-content: center;
}

/* --- QUICK VIEW (balanced layout) --- */
#quickview-backdrop .quickview-modal {
  width: 920px;
  max-width: 94vw;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  grid-template-columns: 1.15fr 0.85fr;
}

#quickview-backdrop .quickview-gallery-pane {
  background: var(--bg-tertiary);
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#quickview-backdrop .quickview-main-viewer {
  aspect-ratio: 4 / 3;
  max-height: 380px;
  min-height: 300px;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

#quickview-backdrop .modal-main-img,
#quickview-backdrop .modal-main-video {
  object-fit: contain;
}

#quickview-backdrop .quickview-thumbs {
  padding: 14px 16px;
  flex-shrink: 0;
}

#quickview-backdrop .quickview-thumbs .thumb-card {
  width: 64px;
  height: 64px;
}

#quickview-backdrop .quickview-details-pane {
  padding: 28px 32px 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#quickview-backdrop .quickview-details-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 14px;
  scrollbar-width: thin;
}

#quickview-backdrop .quickview-product-name {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

#quickview-backdrop .quickview-product-price {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

#quickview-backdrop .quickview-product-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#quickview-backdrop .quickview-action-sticky {
  flex-shrink: 0;
  padding: 18px 32px 24px;
  margin: 0 -32px;
  border-top: 1px solid var(--border-color);
  background: inherit;
}

#quickview-backdrop .quickview-view-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

/* --- IMAGE ZOOM LIGHTBOX --- */
.gallery-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-zoom-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.detail-main-frame,
.quickview-main-viewer,
.modal-main-viewer {
  position: relative;
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 50000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}

.image-zoom-overlay.open {
  opacity: 1;
  visibility: visible;
}

.image-zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.image-zoom-close:hover {
  background: var(--accent-gold);
  color: #000;
}

.image-zoom-toolbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 8px 16px;
  z-index: 10;
}

.image-zoom-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.image-zoom-tool-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.image-zoom-reset-btn {
  width: auto;
  border-radius: 20px;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

.image-zoom-level {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 48px;
  text-align: center;
}

.image-zoom-viewport {
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.image-zoom-viewport.can-pan {
  cursor: grab;
}

.image-zoom-viewport.is-dragging {
  cursor: grabbing;
}

.image-zoom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  user-select: none;
  pointer-events: none;
}

.image-zoom-hint {
  position: absolute;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin: 0;
}

@media (max-width: 600px) {
  .image-zoom-hint {
    font-size: 0.7rem;
    bottom: 12px;
  }
  .gallery-zoom-btn {
    width: 36px;
    height: 36px;
    bottom: 8px;
    right: 8px;
  }
}

@media (max-width: 800px) {
  #quickview-backdrop .quickview-modal {
    grid-template-columns: 1fr;
    width: 94vw;
    max-height: 92vh;
  }

  #quickview-backdrop .quickview-main-viewer {
    max-height: 280px;
    min-height: 220px;
  }

  #quickview-backdrop .quickview-details-pane {
    padding: 20px 20px 0;
  }

  #quickview-backdrop .quickview-action-sticky {
    padding: 16px 20px 20px;
    margin: 0 -20px;
  }
}

/* --- DYNAMIC ADMIN PANEL DRAWER --- */
.admin-drawer {
  background: var(--bg-secondary);
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.admin-btn-row {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.admin-btn-row button {
  flex-grow: 1;
}

/* Floating Action Button (Dev Portal Toggle) */
.admin-trigger-fab {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 14px 20px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-smooth);
}

.admin-trigger-fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
  background: var(--accent-gold);
  color: #000;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  top: 90px;
  right: 40px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.toast {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-left: 4px solid var(--accent-emerald);
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 300px;
  max-width: 400px;
  animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: var(--transition-smooth);
}

.toast.toast-error {
  border-left-color: var(--accent-rose);
}

/* ==========================================================================
   NEW MULTI-PAGE SPA PORTAL EXTENSIONS (DETAILS, CHECKOUT & PAYMENT GATES)
   ========================================================================== */

/* --- SPA View Management --- */
.spa-view {
  animation: viewFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- DEDICATED PRODUCT DETAILS VIEW STYLING --- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  margin-bottom: 80px;
}

/* Gallery Slider Layout */
.detail-gallery-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-main-frame {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  position: relative;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-main-img, .detail-main-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-main-video {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

.detail-main-video.active {
  display: block;
}

.detail-thumbs-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.detail-thumb-card {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition-fast);
}

.detail-thumb-card.active {
  border-color: var(--accent-gold);
}

.detail-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumb-card.detail-thumb-video {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
}

.detail-thumb-card.detail-thumb-video.active {
  border-color: var(--accent-gold);
  border-style: solid;
}

.detail-thumb-video-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--accent-gold);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-thumb-video-inner i {
  font-size: 1.6rem;
}

.thumb-card.thumb-card-video {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
}

.thumb-card-video-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--accent-gold);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.thumb-card-video-inner i {
  font-size: 1.4rem;
}

/* Swatches styling inside purchasing pane */
.options-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.variant-option-group {
  margin-bottom: 28px;
}

.color-selected-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: -4px 0 14px;
}

.color-swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
  align-items: center;
}

.color-swatch-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--border-color);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}

.color-swatch-dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--swatch-color, #888);
}

.color-swatch-pill.is-light {
  box-shadow: 0 0 0 2px var(--border-color), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.color-swatch-pill:hover:not(:disabled) {
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--accent-gold);
}

.color-swatch-pill.active {
  box-shadow: 0 0 0 3px var(--accent-gold);
  transform: scale(1.08);
}

.color-swatch-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1rem;
  pointer-events: none;
}

.color-swatch-pill.is-light .color-swatch-check {
  background: rgba(255, 255, 255, 0.55);
  color: #000;
}

.color-swatch-pill.out-of-stock {
  opacity: 0.35;
  cursor: not-allowed;
  position: relative;
}

.color-swatch-pill.out-of-stock::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--accent-rose);
  transform: rotate(-45deg);
  border-radius: 2px;
  pointer-events: none;
}

.color-swatch-pill:disabled {
  pointer-events: none;
}

.color-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
}

.color-swatch-pill:hover:not(:disabled) .color-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Low Stock Scarcity Slider */
.scarcity-widget {
  background: rgba(244, 63, 94, 0.04);
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: var(--radius-sm);
  padding: 15px;
  margin-bottom: 25px;
}

.scarcity-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stock-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.stock-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-rose) 0%, var(--accent-gold) 100%);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tabs System (Story, Specs, Shipping) */
.detail-info-tabs {
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  padding-top: 50px;
  margin-bottom: 60px;
}

.tabs-header-menu {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  gap: 40px;
}

.tab-trigger-btn {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding-bottom: 15px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-trigger-btn:hover {
  color: var(--accent-gold);
}

.tab-trigger-btn.active {
  color: var(--accent-gold);
}

.tab-trigger-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-smooth);
}

.tab-trigger-btn.active::after {
  width: 100%;
}

.tab-content-pane {
  display: none;
  animation: viewFadeIn 0.5s ease forwards;
}

.tab-content-pane.active {
  display: block;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 16px 20px;
  font-size: 0.95rem;
}

.specs-key {
  font-weight: 600;
  color: var(--text-secondary);
  width: 30%;
  background: rgba(255, 255, 255, 0.01);
}

.specs-value {
  color: var(--text-primary);
}

/* --- RELATED RECOMMENDATIONS --- */
.related-products-box {
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

/* --- CHECKOUT VIEW PAGE GRID --- */
.checkout-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.checkout-billing-pane {
  padding: 40px;
  border-radius: var(--radius-lg);
}

.checkout-summary-pane {
  position: sticky;
  top: 110px;
}

.summary-sticky-box {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.checkout-list-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 5px;
}

.checkout-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.checkout-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* --- PAYMENT METHODS TAB SYSTEM --- */
.payment-tabs-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.pay-tab-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.pay-tab-btn:hover {
  color: var(--accent-gold);
  border-color: var(--glass-gold-border);
}

.pay-tab-btn.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.pay-pane {
  display: none;
  animation: viewFadeIn 0.4s ease;
}

.pay-pane.active {
  display: block;
}

/* --- INTERACTIVE 3D CREDIT CARD SIMULATOR --- */
.card-preview-container {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  margin: 30px 0;
}

.credit-card-3d {
  width: 380px;
  height: 220px;
  border-radius: var(--radius-md);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
}

.credit-card-3d.flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-front {
  background: linear-gradient(135deg, #131929 0%, #1e293b 50%, #0f172a 100%);
  z-index: 2;
  transform: rotateY(0deg);
}

.card-back {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #131929 100%);
  transform: rotateY(180deg);
  padding: 0;
  padding-top: 25px;
}

.card-chip {
  width: 50px;
  height: 35px;
  background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
  border-radius: 4px;
}

.card-logo-visa {
  text-align: right;
  font-size: 2.5rem;
  line-height: 1;
  color: #fff;
}

.card-num-text {
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-top: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-small-label {
  font-size: 0.6rem;
  color: #aaa;
  margin-bottom: 2px;
}

.card-value-text {
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.card-black-strip {
  height: 45px;
  background: #000;
  width: 100%;
  margin-top: 5px;
}

.card-signature-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 25px;
  margin-top: 15px;
}

.card-signature-box {
  flex-grow: 1;
  height: 40px;
  background: repeating-linear-gradient(
    45deg,
    #ddd,
    #ddd 4px,
    #eee 4px,
    #eee 8px
  );
  border-radius: 2px;
}

.card-cvv-text {
  background: #fff;
  color: #000;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* --- UPI PAYMENTS --- */
.upi-glowing-qr {
  display: inline-block;
  padding: 15px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  position: relative;
  overflow: hidden;
}

.upi-glowing-qr::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: laserSweep 2.5s linear infinite;
}

@keyframes laserSweep {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* --- FOOTER --- */

.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about p {
  margin-bottom: 25px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 25px;
  font-weight: 500;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-input {
  flex-grow: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.newsletter-input:focus {
  border-color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ==========================================================================
   ADVANCED MOBILE & TABLET RESPONSIVENESS OVERRIDES & UX FIXES
   ========================================================================== */

@media (max-width: 1024px) {
  /* 1. Mobile Sliding Menu Panel Overlay */
  .nav-menu {
    display: none !important; /* Force hide unless active */
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important; /* Sits right at header bottom */
    left: 0 !important;
    width: 100% !important;
    background: rgba(9, 13, 22, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    padding: 30px 20px !important;
    border-bottom: 2px solid var(--accent-gold) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6) !important;
    z-index: 99999 !important;
    gap: 20px !important;
    align-items: center !important;
  }
  
  .nav-menu.open {
    display: flex !important;
    animation: slideDownMenu 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  body.light-theme .nav-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom-color: var(--accent-gold) !important;
  }

  /* 2. Compact Responsive Header Layout Optimization */
  .site-header {
    height: auto !important;
    padding: 8px 0 !important;
    position: fixed !important;
    background: rgba(9, 13, 22, 0.96) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid var(--border-color) !important;
  }
  
  .header-container {
    position: relative !important;
    display: block !important; /* Reset block layout for absolute children positioning */
    padding: 0 15px !important;
  }

  /* Logo: Perfect Center on the Top Row */
  .logo {
    display: block !important;
    margin: 5px auto !important;
    text-align: center !important;
    width: fit-content !important;
    font-size: 1.15rem !important;
  }

  /* Nav Actions: Reset container flows to align items */
  .nav-actions {
    display: block !important; /* Allow direct layouts */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
  }

  /* Hamburger Toggle: Absolutely positioned on the far-left, vertically centered */
  #mobile-nav-toggle {
    display: flex !important;
    position: absolute !important;
    left: 15px !important;
    top: -2px !important; /* Align exactly with Logo line */
    margin: 0 !important;
    z-index: 100 !important;
  }

  /* Theme Toggle: Absolutely positioned on the right */
  #theme-toggle-btn {
    display: flex !important;
    position: absolute !important;
    right: 55px !important;
    top: -2px !important; /* Align exactly with Logo line */
    margin: 0 !important;
    z-index: 100 !important;
  }

  /* Cart Trigger: Absolutely positioned on the far-right */
  #cart-drawer-btn {
    display: flex !important;
    position: absolute !important;
    right: 15px !important;
    top: -2px !important; /* Align exactly with Logo line */
    margin: 0 !important;
    z-index: 100 !important;
  }

  /* Search Container: Full width second row below the Logo/Buttons top line */
  .search-container {
    width: 100% !important;
    display: flex !important;
    margin: 15px 0 2px 0 !important; /* Margin aligns it beautifully on the second row */
  }

  .search-container:focus-within {
    width: 100% !important;
  }

  /* 3. Hero Banner & SPA Views Padding to Prevent Overlapping */
  .hero-slider {
    height: auto !important;
    min-height: 55vh !important;
    padding-top: 155px !important; /* Safe padding pushes all slides content cleanly below our compact header! */
  }

  .hero-content {
    padding-bottom: 40px !important;
  }

  #detail-view, #checkout-view {
    padding-top: 175px !important; /* Push details/checkout contents safely clear of the header spacing */
  }

  /* 4. Non-Wrapping Swipable Category Ribbon */
  .category-quicklinks-ribbon {
    margin-top: -30px !important;
    padding: 20px !important;
    gap: 15px !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }
  .category-quicklinks-ribbon::-webkit-scrollbar {
    display: none !important;
  }
  .quicklink-item {
    width: 85px !important;
    flex-shrink: 0 !important;
  }
  .quicklink-circle {
    width: 55px !important;
    height: 55px !important;
  }
  .quicklink-item span {
    font-size: 0.75rem !important;
  }

  /* 5. Product Catalog Grid (Stunning 2-Column layouts) */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 5px !important;
  }
  
  .product-card {
    height: auto !important;
    min-height: auto !important;
  }
  
  .product-media-wrapper {
    height: 165px !important; /* Scaled visual box height */
  }
  
  .product-info {
    padding: 10px !important;
  }
  
  .product-name {
    font-size: 0.8rem !important;
    height: 34px !important; /* Keep names uniformly bounded to 2 lines */
    line-height: 1.2 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 5px !important;
  }
  
  .product-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-top: 5px !important;
  }
  
  .product-price {
    font-size: 0.95rem !important;
  }
  
  .product-rating {
    font-size: 0.7rem !important;
  }

  /* Make hover elements touchable on mobile */
  .product-media-actions {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.9) 0%, rgba(9, 13, 22, 0.3) 100%) !important;
    padding: 8px !important;
  }

  .media-action-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
  }

  /* 6. Product Details Responsive Polishes */
  .modal-product-name {
    font-size: 1.8rem !important; /* Scaled header */
  }
  .modal-product-price {
    font-size: 1.5rem !important;
  }
  .detail-gallery-column {
    gap: 12px !important;
  }
  
  /* Horizontal swipe tabs */
  .tabs-header-menu {
    gap: 15px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
  }
  .tabs-header-menu::-webkit-scrollbar {
    display: none !important;
  }
  .tab-trigger-btn {
    font-size: 1rem !important;
    flex-shrink: 0 !important;
  }

  /* 7. Checkout forms padding scaling */
  .checkout-billing-pane, .summary-sticky-box {
    padding: 20px !important;
  }
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  /* Compresses 3D Credit Card size on compact viewport screens */
  .credit-card-3d {
    width: 280px !important;
    height: 165px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
  }
  
  .card-front, .card-back {
    padding: 15px !important;
  }
  
  .card-chip {
    width: 32px !important;
    height: 22px !important;
  }
  
  .card-logo-visa {
    font-size: 2.2rem !important;
  }
  
  .card-num-text {
    font-size: 1.05rem !important;
    margin-top: 12px !important;
    letter-spacing: 1.5px !important;
  }
  
  .card-small-label {
    font-size: 0.45rem !important;
  }
  
  .card-value-text {
    font-size: 0.7rem !important;
  }
  
  .card-signature-box {
    height: 30px !important;
    margin-top: 8px !important;
  }
  
  .card-cvv-text {
    font-size: 0.75rem !important;
    top: 36px !important;
    right: 20px !important;
  }
}

/* ==========================================================================
   ELITE MOBILE UX ADDITIONS (BOTTOM NAV, STICKY BARS, GESTURES)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Hide Desktop Top-Nav Elements replaced by Bottom Nav */
  #mobile-nav-toggle { display: none !important; }
  #cart-drawer-btn { display: none !important; }

  /* Adjust Hero for Mobile to show more content above the fold */
  .hero-slider {
    min-height: 75vh !important;
  }
  .hero-content {
    padding-top: 170px !important; /* Push text completely clear of the search bar */
  }
  .hero-title {
    font-size: 2.2rem !important;
  }
  
  .hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  
  .hero-nav-btn {
    display: none !important; /* Hide left/right arrows on mobile to prevent overlap */
  }

  .category-quicklinks-ribbon {
    margin-top: 10px !important; /* Push ribbon down so it doesn't overlap the hero buttons */
  }

  .filter-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    padding-bottom: 10px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .filter-tab-btn {
    flex-shrink: 0 !important;
  }
  
  /* Sub-pages Responsive Grids */
  .detail-grid, .checkout-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  /* Ensure Drawer covers Bottom Nav on mobile */
  .drawer-backdrop { z-index: 1000000 !important; }
  .drawer { z-index: 1000001 !important; }
  
  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999999;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom); /* iOS safe area */
  }

  body.light-theme .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 4px;
    width: 25%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .bottom-nav-item i {
    font-size: 1.3rem;
    transition: var(--transition-fast);
  }

  .bottom-nav-item.active {
    color: var(--accent-gold);
  }
  .bottom-nav-item.active i {
    transform: translateY(-2px);
  }

  .bottom-nav-cart-icon {
    position: relative;
  }

  #bottom-cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--accent-rose);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  /* Pad the body/main so content isn't hidden behind bottom nav */
  body {
    padding-bottom: 70px !important;
  }

  /* Product Details Sticky Buy Bar on Mobile */
  #detail-view .modal-action-row {
    position: fixed !important;
    bottom: 65px !important; /* Above bottom nav */
    left: 0 !important;
    width: 100% !important;
    padding: 15px !important;
    background: rgba(9, 13, 22, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 9999 !important;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.3) !important;
    margin: 0 !important;
  }

  body.light-theme #detail-view .modal-action-row {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05) !important;
  }

  /* Gallery Snap Scrolling for Mobile */
  .detail-thumbs-slider {
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .detail-thumb-card {
    scroll-snap-align: start;
    width: 70px !important;
    height: 70px !important;
  }
}

/* --- CATEGORY PAGES & PAGINATION --- */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-more-btn {
  white-space: nowrap;
}

.section-view-all-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
  text-align: center;
}

.featured-count-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.categories-grid-6 {
  grid-template-columns: repeat(3, 1fr);
}

.categories-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .categories-grid-6,
  .categories-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .categories-grid-6,
  .categories-grid-3 {
    grid-template-columns: 1fr;
  }
}

.category-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-count-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.category-all-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 35px;
  margin-top: 30px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.category-all-banner:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.category-all-banner h3 {
  font-family: var(--font-serif);
  margin-bottom: 6px;
}

.category-all-banner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--accent-gold);
}

.category-page-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 30px;
  margin-bottom: 40px;
  overflow: hidden;
}

.category-page-hero-img {
  flex: 0 0 280px;
  width: 280px;
  max-width: 34%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.category-page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-page-hero-content {
  flex: 1;
  min-width: 0;
}

.category-page-hero-all .category-page-hero-img {
  flex: 0 0 340px;
  width: 340px;
  max-width: 38%;
  height: 260px;
}

.category-page-hero-all .category-page-hero-img img {
  object-position: center 30%;
}

.category-page-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin: 10px 0;
}

.category-page-desc {
  color: var(--text-secondary);
  max-width: 600px;
}

.category-page-meta {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

.catalog-filters {
  padding: 25px;
  position: sticky;
  top: 100px;
}

.filters-title {
  font-family: var(--font-serif);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.filter-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-range-row span {
  color: var(--text-muted);
}

.filter-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.catalog-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.catalog-sort-wrap label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 600;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.page-btn.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  color: var(--text-muted);
  padding: 0 5px;
}

.empty-state-box {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-state-box i {
  font-size: 3rem;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 15px;
}

@media (max-width: 900px) {
  .category-page-hero {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .category-page-hero-img,
  .category-page-hero-all .category-page-hero-img {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: 220px;
  }

  .category-page-desc {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-filters {
    position: static;
  }
}

/* --- CUSTOMER PORTAL (LOGIN + ACCOUNT) --- */
.portal-page {
  padding: 120px 0 80px;
}

.portal-page-header,
.account-page-header {
  text-align: center;
  margin-bottom: 32px;
}

.account-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
  margin-bottom: 36px;
}

.auth-page-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.account-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.auth-page-title,
.account-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 10px;
  line-height: 1.15;
}

.auth-page-subtitle,
.account-page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 620px;
}

.portal-card {
  padding: 36px 40px;
  border-radius: var(--radius-lg);
}

.auth-card {
  text-align: left;
}

.portal-card-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.portal-field {
  margin-bottom: 22px;
}

.portal-form-row {
  display: grid;
  gap: 18px;
  margin-bottom: 0;
}

.portal-form-row .portal-field {
  margin-bottom: 22px;
}

.portal-form-row-2 {
  grid-template-columns: 1fr 1fr;
}

.portal-form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.account-profile-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: -12px 0 22px;
}

@media (max-width: 700px) {
  .portal-form-row-2,
  .portal-form-row-3 {
    grid-template-columns: 1fr;
  }
}

.portal-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.portal-input,
.portal-textarea {
  width: 100%;
  min-height: 54px;
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.4;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.portal-textarea {
  min-height: 130px;
  resize: vertical;
  font-family: inherit;
}

.portal-input::placeholder,
.portal-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.portal-input:focus,
.portal-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.portal-input-disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.12);
}

.portal-input-otp {
  min-height: 64px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-align: center;
  padding-left: 0.45em;
}

.portal-btn {
  width: 100%;
  justify-content: center;
  min-height: 54px;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: var(--radius-md);
}

.portal-btn-secondary {
  margin-top: 12px;
}

.auth-note,
.auth-status-msg {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.auth-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.auth-dev-hint {
  font-size: 0.92rem;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.auth-error {
  color: var(--accent-rose);
  margin-top: 18px;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.2);
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.account-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.account-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.account-tab.active {
  color: var(--bg-primary);
  background: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.account-tab-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.72rem;
  line-height: 20px;
  text-align: center;
}

.account-tab.active .account-tab-badge {
  background: rgba(0, 0, 0, 0.15);
  color: var(--bg-primary);
}

.account-tab-panels {
  width: 100%;
}

.account-tab-panel {
  display: none;
  animation: accountTabIn 0.25s ease;
}

.account-tab-panel.active {
  display: block;
}

@keyframes accountTabIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-profile-card {
  max-width: 720px;
}

.account-orders-card {
  width: 100%;
}

body.light-theme .account-tabs {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .account-tab.active {
  color: #1a1a1a;
}

.account-logout-btn {
  flex-shrink: 0;
  color: var(--accent-rose);
  border-color: var(--accent-rose);
  min-height: 48px;
  padding: 12px 20px;
}

.account-save-msg {
  margin-top: 14px;
  font-size: 0.95rem;
}

.account-orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.account-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--accent-gold);
  font-size: 2rem;
}

.account-order-card {
  border: 1px solid var(--border-color);
  padding: 26px 30px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.18);
  width: 100%;
  box-sizing: border-box;
}

.account-order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.account-order-id {
  font-weight: 700;
  font-size: 1rem;
}

.account-order-status {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-order-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.account-order-status-wrap {
  text-align: right;
}

.account-order-payment-status {
  font-size: 0.75rem;
  margin-top: 2px;
}

/* Vertical order timeline (track-order style) */
.account-vtimeline {
  margin: 20px 0 16px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-color);
}

.account-vtimeline-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 18px;
  padding-bottom: 32px;
  position: relative;
}

.account-vtimeline-step.is-last {
  padding-bottom: 0;
}

.account-vtimeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100%;
}

.account-vtimeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border-color);
  flex-shrink: 0;
  margin-top: 12px;
  z-index: 2;
  transition: var(--transition-fast);
}

.account-vtimeline-step:not(.is-last) .account-vtimeline-rail::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  bottom: 0;
  background: var(--border-color);
  z-index: 1;
}

.account-vtimeline-step.done .account-vtimeline-dot {
  background: var(--accent-emerald);
}

.account-vtimeline-step.done:not(.is-last) .account-vtimeline-rail::after {
  background: var(--accent-emerald);
}

.account-vtimeline-step.active .account-vtimeline-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.18);
}

.account-vtimeline-step.cancelled .account-vtimeline-dot {
  background: var(--accent-rose);
  box-shadow: 0 0 0 5px rgba(244, 63, 94, 0.15);
}

.account-vtimeline-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.account-vtimeline-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.account-vtimeline-text {
  min-width: 0;
  padding-top: 4px;
}

.account-vtimeline-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.account-vtimeline-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.45;
}

.account-vtimeline-step.done .account-vtimeline-icon {
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.account-vtimeline-step.done .account-vtimeline-title {
  color: var(--text-secondary);
}

.account-vtimeline-step.active .account-vtimeline-icon {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
}

.account-vtimeline-step.active .account-vtimeline-title {
  color: var(--accent-gold);
}

.account-vtimeline-step.active .account-vtimeline-desc {
  color: var(--text-secondary);
}

.account-vtimeline-step.cancelled .account-vtimeline-icon {
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.08);
}

.account-vtimeline-step.cancelled .account-vtimeline-title {
  color: var(--accent-rose);
}

.account-vtimeline-step.upcoming {
  opacity: 0.42;
}

.account-vtimeline-step.upcoming .account-vtimeline-icon,
.account-vtimeline-step.upcoming .account-vtimeline-title,
.account-vtimeline-step.upcoming .account-vtimeline-desc {
  color: var(--text-muted);
}

.account-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.account-order-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  font-size: 0.85rem !important;
  margin: 0 !important;
}

.account-order-shipping,
.account-tracking-box {
  margin: 14px 0 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.12);
}

.account-info-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.account-info-row:last-child {
  margin-bottom: 0;
}

.account-info-key {
  color: var(--text-muted);
  min-width: 140px;
  flex-shrink: 0;
}

.account-info-val {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.account-tracking-number {
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.account-tracking-box .account-track-btn {
  margin-top: 12px;
}

body.light-theme .account-order-shipping,
body.light-theme .account-tracking-box {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .account-vtimeline {
  background: rgba(0, 0, 0, 0.03);
}


@media (max-width: 640px) {
  .account-order-card {
    padding: 20px 16px;
  }

  .account-vtimeline {
    padding: 18px 16px;
  }

  .account-vtimeline-step {
    grid-template-columns: 22px 1fr;
    gap: 0 12px;
    padding-bottom: 26px;
  }

  .account-vtimeline-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .account-order-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-order-action-btn {
    justify-content: center;
    width: 100%;
  }
}

.account-refund-notice {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.08);
}

.account-refund-lead {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-refund-timing,
.account-refund-date,
.account-refund-help {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 6px;
  line-height: 1.5;
}

.account-refund-help {
  margin-bottom: 0;
  margin-top: 10px;
  font-style: italic;
}

.account-refund-refs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.account-refund-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.account-refund-ref span {
  color: var(--text-muted);
  min-width: 130px;
}

.account-refund-ref code,
.account-payment-ref code {
  font-size: 0.78rem;
  color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
  word-break: break-all;
}

.account-payment-ref {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

body.light-theme .account-refund-notice {
  background: rgba(244, 63, 94, 0.06);
  border-color: rgba(244, 63, 94, 0.2);
}

body.light-theme .account-refund-ref code,
body.light-theme .account-payment-ref code {
  background: rgba(0, 0, 0, 0.06);
}

.account-order-divider {
  border: none;
  border-top: 1px dashed var(--border-color);
  margin: 14px 0;
}

.account-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.account-order-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.account-order-item-name {
  font-size: 0.92rem;
  font-weight: 500;
}

.account-order-item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

body.light-theme .portal-input,
body.light-theme .portal-textarea {
  background: rgba(255, 255, 255, 0.85);
}

body.light-theme .account-order-card {
  background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .portal-card {
    padding: 28px 24px;
  }

  .account-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .account-logout-btn {
    width: 100%;
    justify-content: center;
  }

  .account-tabs {
    flex-direction: column;
  }

  .account-tab {
    width: 100%;
    justify-content: center;
  }
}

.payment-tabs-menu-dual {
  max-width: 420px;
}

.cod-info-box {
  padding: 22px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cod-confirm-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--text-primary);
}

.checkout-submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 20px;
  margin-top: 40px;
  border-radius: var(--radius-md);
  min-height: 54px;
}

/* --- PRODUCT REVIEWS --- */
.product-reviews-section {
  margin: 50px 0;
}

.review-section-title {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
  align-items: start;
}

.review-form-box,
.review-your-rating {
  padding: 24px;
  border-radius: var(--radius-md);
}

.review-form-box h4,
.review-your-rating h4 {
  font-family: var(--font-serif);
  margin-bottom: 10px;
}

.review-form-note,
.review-login-hint,
.review-thanks,
.review-empty {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.review-star-picker,
.review-card-stars,
.order-rate-stars {
  display: flex;
  gap: 6px;
  margin: 14px 0;
}

.review-star-btn,
.review-star {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.review-star-btn.active,
.review-star.active {
  color: var(--accent-gold);
}

.review-star {
  cursor: default;
  font-size: 1rem;
}

.review-form-msg {
  margin-top: 12px;
  font-size: 0.9rem;
}

.review-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card {
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.15);
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.review-card-author {
  font-weight: 600;
  font-size: 0.92rem;
}

.review-card-comment {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.review-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.account-order-item-body {
  flex: 1;
  min-width: 0;
}

.account-order-rate {
  margin-top: 8px;
}

.order-rate-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-rate-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.order-rate-stars .review-star-btn {
  font-size: 1.1rem;
}

.order-rated-msg {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-auth-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.08);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- ADMIN DASHBOARD --- */
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.admin-page-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 8px;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.admin-login-box {
  max-width: 420px;
  margin: 60px auto;
  padding: 50px 40px;
  text-align: center;
}

.admin-login-box h2 {
  font-family: var(--font-serif);
  margin: 20px 0 10px;
}

.admin-login-error {
  color: var(--accent-rose);
  font-size: 0.85rem;
  margin-top: 12px;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  padding: 25px;
  text-align: center;
}

.admin-stat-card i {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.admin-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

.admin-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 12px 24px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 600;
  font-size: 0.85rem;
}

.admin-tab.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.admin-tab-pane {
  display: none;
  padding: 30px;
}

.admin-tab-pane.active {
  display: block;
}

.admin-toolbar {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.admin-toolbar .admin-input {
  flex: 1;
  min-width: 200px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-table-product img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-table-product span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.admin-table-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  transition: var(--transition-smooth);
}

.admin-table-btn.edit { color: var(--accent-gold); }
.admin-table-btn.delete { color: var(--accent-rose); }
.admin-table-btn:hover { background: rgba(255,255,255,0.12); }

.stock-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(46, 204, 113, 0.15);
  color: var(--accent-emerald);
}

.stock-pill.low {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
}

.stock-pill.out {
  background: rgba(231, 76, 60, 0.15);
  color: var(--accent-rose);
}

@media (max-width: 768px) {
  .admin-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- STRIPE CHECKOUT --- */
.stripe-checkout-box {
  padding: 25px 0;
}

.stripe-brand-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.stripe-features-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stripe-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stripe-features-list i {
  color: var(--accent-emerald);
}

.checkout-success-box {
  max-width: 500px;
  margin: 60px auto;
  padding: 60px 40px;
  text-align: center;
}

.checkout-success-box h2 {
  font-family: var(--font-serif);
  margin-top: 20px;
}

@media (max-width: 600px) {
  .color-swatch-list {
    gap: 16px;
  }
  .color-swatch-pill {
    width: 46px;
    height: 46px;
  }
  .size-selector {
    flex-wrap: wrap;
    gap: 15px;
  }
  .size-pill {
    padding: 12px 25px !important;
    font-size: 1.1rem;
  }
}
