:root {
  --orange: #ff6600;
  --orange-dark: #cc5200;
  --orange-light: #ff8533;
  --bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --card-bg: #fafafa;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
  --safe-right: env(safe-area-inset-right);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  /* Remove height constraints to prevent double scrollbar */
  position: relative;
  padding-top: 80px; /* Reduce to account for actual header height */
  /* Remove min-height entirely to prevent overflow */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 102, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
  padding-left: max(15px, var(--safe-left));
  padding-right: max(15px, var(--safe-right));
}

/* Header */
header {
  background: white;
  color: var(--text);
  padding: 0;
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: none;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 102, 0, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(255, 102, 0, 0.3);
  border-bottom: 2px solid var(--orange);
  z-index: 1000; /* Ensure z-index doesn't change on scroll */
}

header.scrolled .brand {
  color: white;
}

header.scrolled .logo-img {
  filter: brightness(0) invert(1);
}

header.scrolled .nav-links a {
  color: white;
}

header.scrolled .nav-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

header.scrolled .nav-toggle {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: block;
}

.brand small {
  display: none;
}

.nav-links {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  flex-direction: column;
  padding: 120px 20px 20px; /* Account for fixed banner + header */
  z-index: 1002; /* Above banner and header */
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: translateZ(0); /* Create new stacking context */
}

.nav-links .nav-close {
  position: absolute;
  top: 80px; /* Position below header */
  right: 15px;
  z-index: 1002;
}

.nav-links.open {
  display: flex;
  z-index: 99999 !important;
}

/* When nav is open, ensure it's above everything */
body.nav-open .discount-banner,
body.nav-open header {
  z-index: 1;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: 18px 20px;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: all 0.3s;
  min-height: 56px;
}

.nav-links a:active {
  background: var(--card-bg);
  color: var(--orange);
}

.nav-links a.active {
  background: rgba(255, 102, 0, 0.1);
  color: var(--orange);
  border-left: 4px solid var(--orange);
}

.nav-toggle {
  display: flex;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:active {
  background: var(--card-bg);
}

.nav-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--orange);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 1001;
  font-weight: bold;
}

.nav-close:hover,
.nav-close:active {
  background: var(--orange-dark);
  transform: scale(1.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  border-radius: 12px;
  min-height: 48px;
  min-width: 120px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn.primary:active {
  background: var(--orange-dark);
  box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3);
}

.btn.secondary {
  background: white;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn.secondary:active {
  background: var(--orange);
  color: white;
}

/* Full Screen Banner */
.fullscreen-banner {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.05) 0%, rgba(255, 102, 0, 0.1) 100%);
  padding: 80px 20px;
  margin: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.fullscreen-banner .hero-overlay h1 {
  color: white;
}

.fullscreen-banner .hero-overlay p {
  color: rgba(255, 255, 255, 0.9);
}

.fullscreen-banner .hero-badge {
  background: rgba(0, 0, 0, 0.35);
  color: white;
}

.fullscreen-banner .hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.fullscreen-banner .stat-label {
  color: rgba(255, 255, 255, 0.85);
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: white;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-slider-btn.prev {
  left: 16px;
}

.hero-slider-btn.next {
  right: 16px;
}

.hero-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  background: white;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-bg);
  color: var(--text);
  margin: 40px 0;
  border-radius: 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 20s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 102, 0, 0.1);
  color: var(--orange);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 42px);
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
}

.hero p {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-light);
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: var(--orange);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

/* Eye-Catching Section Dividers */
.section-divider {
  height: 3px;
  margin: 80px 0;
  position: relative;
  overflow: visible;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--orange) 20%, 
    #ff6b9d 40%, 
    #c44569 60%, 
    var(--orange) 80%, 
    transparent 100%);
  border-radius: 2px;
  animation: shimmer 3s ease-in-out infinite;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--orange), #ff6b9d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.section-divider.gift::after {
  content: '🎁';
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

.section-divider.star::after {
  content: '⭐';
  background: linear-gradient(135deg, #ffd700, #ffb347);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
}

.section-divider.cake::after {
  content: '🎂';
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.4);
}

.section-divider.heart::after {
  content: '💕';
  background: linear-gradient(135deg, #ff1744, #e91e63);
  box-shadow: 0 8px 32px rgba(255, 23, 68, 0.4);
}

/* Sparkle particles */
.section-divider::before {
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
}

.section-divider::after {
  position: relative;
}

.section-divider::after::before,
.section-divider::after::after {
  content: '✨';
  position: absolute;
  font-size: 12px;
  animation: sparkle 1.5s ease-in-out infinite;
}

.section-divider::after::before {
  top: -15px;
  left: -10px;
  animation-delay: 0s;
}

.section-divider::after::after {
  top: -15px;
  right: -10px;
  animation-delay: 0.5s;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.6; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}
section {
  margin: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text);
  margin-bottom: 10px;
}

.section-head p {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 10px;
}

/* Categories Showcase */
.categories-showcase {
  background: transparent;
  padding: 50px 20px;
  border-radius: 16px;
  margin: 50px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.category-card {
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  border-color: var(--orange);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text);
}

.category-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.category-link {
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
}

/* Anniversary Section */
.anniversary-section {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  padding: 50px 20px;
  border-radius: 16px;
  margin: 50px 0;
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.08);
}

/* Birthday Section */
.birthday-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  padding: 50px 20px;
  border-radius: 16px;
  margin: 50px 0;
  box-shadow: 0 8px 32px rgba(251, 146, 60, 0.08);
}

/* Features Section */
.features {
  margin: 60px 0;
  background: transparent;
  padding: 50px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Featured Section */
.featured-section {
  margin: 60px 0;
  background: transparent;
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

/* Home Lifestyle Gallery */
.home-gallery {
  padding: 40px 0 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f1 60%, #ffffff 100%);
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  grid-template-rows: 200px 200px;
  gap: 14px;
  margin-top: 18px;
}

.home-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.home-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
  opacity: 0.9;
}

.home-gallery-item:hover img {
  transform: scale(1.04);
}

.home-gallery-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.home-gallery-item-large {
  grid-row: 1 / span 2;
}

.home-gallery-item-wide {
  grid-column: 2 / span 1;
}

@media (max-width: 768px) {
  .home-gallery {
    padding-top: 20px;
  }

  .home-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 150px 150px;
  }

  .home-gallery-item-large {
    grid-row: auto;
    grid-column: 1 / span 2;
  }

  .home-gallery-item-wide {
    grid-column: auto;
  }
}

/* How It Works */
.how-it-works {
  background: transparent;
  padding: 50px 20px;
  border-radius: 16px;
  margin: 50px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Products Grid */
.grid.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* Product Card */
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: var(--orange);
}

.product-card:active {
  transform: translateY(-2px);
}

/* Product Slider/Image */
.product-slider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.product-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

/* Fallback for missing images */
.product-slider:not(:has(img)) {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-slider:not(:has(img))::after {
  content: '🎁';
  font-size: 48px;
  opacity: 0.5;
}

.product-card:hover .product-slider img {
  transform: scale(1.05);
}

/* Product Info */
.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.3;
}

/* Product Videos - Dynamic Space Management */
.product-video {
  margin-top: 20px;
  display: grid;
  gap: 15px;
  /* Dynamic grid that adjusts based on video count and container width */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.video-item {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.video-item video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #000;
  display: block;
}

/* Dynamic adjustments based on video count */
.product-video:has(.video-item:nth-child(1):last-child) {
  /* Single video - centered and larger */
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 20px auto 0;
}

.product-video:has(.video-item:nth-child(2):last-child),
.product-video:has(.video-item:nth-child(2):nth-last-child(2)) {
  /* Two videos - side by side */
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-video:has(.video-item:nth-child(3):last-child),
.product-video:has(.video-item:nth-child(3):nth-last-child(3)) {
  /* Three videos - balanced layout */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.product-video:has(.video-item:nth-child(n+4)) {
  /* Four or more videos - compact grid */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-video {
    /* Mobile - always single column */
    grid-template-columns: 1fr !important;
    margin: 20px 0 0 0 !important;
    max-width: none !important;
  }
  
  .video-item video {
    max-height: 300px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet - optimized spacing */
  .product-video:has(.video-item:nth-child(2):last-child),
  .product-video:has(.video-item:nth-child(2):nth-last-child(2)) {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .product-video:has(.video-item:nth-child(n+3)) {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1025px) {
  /* Desktop - optimal layout */
  .product-video:has(.video-item:nth-child(3):last-child),
  .product-video:has(.video-item:nth-child(3):nth-last-child(3)) {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .product-video:has(.video-item:nth-child(n+4)) {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}
.product-slider video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

/* Product Detail Page - Grid Layout */
.detail-layout {
  display: flex;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Detail Main - REMOVED HEIGHT CONSTRAINT TO PREVENT DOUBLE SCROLLBAR */
.detail-main {
  flex: 0 0 50%;
  position: sticky;
  top: 100px;
  height: fit-content;
  /* Removed: max-height: calc(100vh - 120px); */
  /* Removed: overflow-y: auto; */
}

.product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--orange);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 11;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.detail-grid-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.detail-grid-item:hover {
  transform: scale(1.02);
}

.detail-grid-item video,
.detail-grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.detail {
  flex: 1;
  padding: 20px 0;
}

.detail h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text);
}

.detail .price {
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 30px;
}

.detail p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 30px;
}

.customization-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.custom-option {
  margin-bottom: 25px;
}

.custom-option label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text);
}

.custom-option input[type="text"],
.custom-option select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
}

.custom-option small {
  display: block;
  margin-top: 8px;
  color: var(--text-light);
  font-size: 14px;
}

.color-options {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.color-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.color-option input[type="radio"] {
  display: none;
}

.color-dot {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.color-option input[type="radio"]:checked + .color-dot {
  border-color: var(--orange);
  transform: scale(1.1);
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin: 30px 0;
}

.hero-actions .btn {
  flex: 1;
  padding: 18px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.hero-actions .btn.primary {
  background: var(--orange);
  color: white;
  border: 2px solid var(--orange);
}

.hero-actions .btn.primary:hover {
  background: white;
  color: var(--orange);
}

.hero-actions .btn.secondary {
  background: white;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.hero-actions .btn.secondary:hover {
  background: var(--orange);
  color: white;
}

.price-summary {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
  border: 1px solid var(--border);
}

.specs {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.spec {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-light);
}

.spec:last-child {
  margin-bottom: 0;
}

/* Mobile Responsive for Product Detail */
@media (max-width: 768px) {
  .detail-layout {
    flex-direction: column;
    gap: 30px;
    padding: 20px 15px;
  }
  
  .detail-main {
    flex: 1;
    position: static;
  }
  
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .detail-grid-item video,
  .detail-grid-item img {
    height: 150px;
  }
  
  .detail h1 {
    font-size: 24px;
  }
  
  .detail .price {
    font-size: 22px;
  }
  
  .customization-form {
    padding: 20px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
}

/* Price Row */
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  justify-content: flex-end;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
}

.offer-price {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Product Detail Layout */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 20px;
  margin: 20px 0;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.product-detail + .product-detail {
  margin-top: 24px;
}

.product-media img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 360px;
}

.product-info h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.product-info .price {
  font-size: 22px;
  margin: 0 0 12px;
}

.product-info p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.product-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-light);
}

.product-meta div + div {
  margin-top: 6px;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-media img {
    max-height: 260px;
  }

  .product-info h2 {
    font-size: 20px;
  }
}

/* Product Detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.detail-main {
  position: relative;
}

.detail-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 5px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.detail-thumb {
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.detail-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--orange);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
}

.detail h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--text);
}

.detail p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.detail .price {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--orange);
}

/* Customization Form */
.customization-form {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 5px;
  border: 1px solid var(--border);
  margin: 25px 0;
}

.custom-option {
  margin-bottom: 25px;
}

.custom-option label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
}

.custom-option input[type="text"],
.custom-option textarea,
.custom-option select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 5px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 5px;
}

.custom-option input[type="text"]:focus,
.custom-option textarea:focus,
.custom-option select:focus {
  outline: none;
  border-color: var(--orange);
}

.custom-option small {
  color: var(--text-light);
  font-size: 13px;
}

/* Color Options */
.color-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-option {
  position: relative;
  cursor: pointer;
}

.color-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.color-dot {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid transparent;
  display: block;
  cursor: pointer;
  transition: all 0.3s;
}

.color-option input[type="radio"]:checked + .color-dot {
  border-color: var(--orange);
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

/* ===================================
   PRODUCT DETAIL PAGE ARCHITECTURE
   =================================== */

/* Product Detail Wrapper */
.product-detail-wrapper {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Product Title Section */
.product-title-section {
  width: 100%;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0;
}

/* Product Detail Container */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}

/* Product Images Section */
.product-images-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 100px;
  height: fit-content;
  z-index: 10;
}

/* Product Info Section */
.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ===================================
   RESPONSIVE ARCHITECTURE
   =================================== */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .product-title {
    font-size: 28px;
  }
  
  .main-product-image {
    height: 400px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .product-detail-wrapper {
    padding: 0 15px;
  }
  
  .product-title-section {
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    z-index: 2;
  }
  
  .product-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .price-info {
    margin-top: 16px;
  }
  
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .product-images-section {
    position: static;
    order: 2;
  }
  
  .product-info-section {
    order: 3;
  }
  
  /* Mobile Image Slider - Show on Mobile */
  .mobile-image-slider {
    display: block;
  }
  
  /* Center product title on mobile */
  .product-title {
    text-align-last: center !important;
  }
  
  .slider-container {
    height: 250px;
    margin-bottom: 10px;
  }
  
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
  }
  
  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .dot.active {
    background: var(--orange);
    width: 20px;
    border-radius: 3px;
  }
  
  .slider-prev,
  .slider-next {
    width: 30px;
    height: 30px;
    font-size: 16px;
    background: rgba(255, 102, 0, 0.8);
  }
  
  /* Video slide styling */
  .video-slide {
    background: #000;
  }
  
  .video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Hide desktop main image on mobile */
  .main-product-image {
    display: none;
  }
  
  /* Hide all individual image sections on mobile */
  .product-thumbnails {
    display: none !important;
  }
  
  .product-video {
    display: none !important;
  }
  
  .product-variants {
    display: none !important;
  }
  
  .additional-images {
    display: none !important;
  }
  
  .main-product-image {
    display: none !important;
  }
  
  .variant-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .variant-item img {
    height: 80px;
  }
  
  .additional-images {
    grid-template-columns: 1fr;
  }
  
  .current-price {
    font-size: 24px;
  }
  
  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .rating-number {
    font-size: 36px;
  }
  
  .file-upload {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.main-image-container {
  position: relative;
}

.main-product-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Mobile Image Slider - Hidden on Desktop */
.mobile-image-slider {
  display: none;
}

/* Mobile Image Slider - Show on Mobile */
@media (max-width: 768px) {
  .mobile-image-slider {
    display: block !important;
    background: transparent !important;
    margin-bottom: 20px;
  }
  
  .slider-container {
    height: 250px;
    margin-bottom: 10px;
  }
  
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
  }
  
  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .dot.active {
    background: var(--orange);
    width: 20px;
    border-radius: 3px;
  }
  
  .slider-prev,
  .slider-next {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  height: 300px;
}

/* Override height for mobile */
@media (max-width: 768px) {
  .slider-container {
    height: 250px;
  }
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 600%; /* 6 slides * 100% */
  height: 100%;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Video in slider */
.slide .product-video {
  width: 100%;
  height: 300px;
}

.slide .product-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Variants in slider */
.slide .product-variants {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  height: 300px;
  overflow-y: auto;
}

.slide .product-variants h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.slide .variant-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slide .variant-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.slide .variant-item p {
  font-size: 12px;
  text-align: center;
  margin: 5px 0 0 0;
  color: var(--text-light);
}

/* Additional images in slider */
.slide .additional-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  height: 300px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.slide .additional-image-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 102, 0, 0.9);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--orange);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

/* Product Thumbnails */
.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumbnail {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.thumbnail:hover {
  border-color: var(--border);
}

.thumbnail.active {
  border-color: var(--orange);
}

.thumbnail img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* Product Video */
.product-video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.product-video video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  position: relative;
  width: 100%;
  height: 250px;
  background: url('https://images.unsplash.com/photo-1579532582838-21c2b6b9df3a?auto=format&fit=crop&w=800&q=80') center/cover;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 102, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.video-placeholder:hover .play-icon {
  background: var(--orange);
  transform: scale(1.1);
}

/* Additional Images */
.additional-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.additional-image-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.product-variants {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.product-variants h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text);
}

.variant-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.variant-item {
  text-align: center;
}

.variant-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.variant-item p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

.additional-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.additional-image-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Price Section */
.price-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.original-price {
  font-size: 18px;
  color: var(--text-light);
  text-decoration: line-through;
}

.current-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
}

.sale-badge {
  background: var(--orange);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.shipping-info {
  font-size: 14px;
  color: var(--text-light);
}

/* Product Options - STYLES MOVED TO CUSTOMIZATION SECTION */

.size-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.size-btn {
  background: white;
  border: 2px solid var(--border);
  padding: 15px 20px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.size-btn:hover {
  border-color: var(--orange);
}

.size-btn.active {
  border-color: var(--orange);
  background: rgba(255, 102, 0, 0.1);
  color: var(--orange);
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-input {
  display: none;
}

.file-upload-btn {
  background: var(--orange);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.file-upload-btn:hover {
  background: var(--orange-dark);
}

.file-note {
  font-size: 14px;
  color: var(--text-light);
}

.upload-note {
  font-size: 12px;
  color: var(--text-light);
  margin: 5px 0 0 0;
}

.text-input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
}

.text-input:focus {
  outline: none;
  border-color: var(--orange);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.qty-btn {
  background: white;
  border: 2px solid var(--border);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.qty-btn:first-child {
  border-radius: 8px 0 0 8px;
}

.qty-btn:last-child {
  border-radius: 0 8px 8px 0;
}

.qty-btn:hover {
  background: var(--card-bg);
}

.qty-input {
  width: 60px;
  height: 40px;
  border: 2px solid var(--border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 16px;
}

.qty-input:focus {
  outline: none;
}

/* Action Buttons */
.action-buttons {
  margin: 10px 0;
}

.add-to-cart-btn {
  width: 100%;
  background: var(--orange);
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.add-to-cart-btn:hover {
  background: var(--orange-dark);
}

/* Price Info */
.price-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.price-info p {
  margin: 0 0 10px 0;
  font-size: 14px;
}

.lowest-price {
  color: #28a745;
  font-weight: 600;
}

.discount-info {
  color: var(--orange);
  font-weight: 600;
}

.cod-note {
  color: #dc3545;
  font-weight: 600;
}

/* Reviews Section */
.reviews-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.reviews-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.reviews-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 25px;
}

.rating-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rating-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--orange);
}

.rating-stars {
  text-align: center;
}

.stars {
  font-size: 24px;
  color: #ffc107;
  display: block;
}

.review-count {
  font-size: 14px;
  color: var(--text-light);
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-bar {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.bar-container {
  background: #e9ecef;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  background: #ffc107;
  height: 100%;
  transition: width 0.3s;
}

.individual-reviews {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-stars {
  color: #ffc107;
  font-size: 16px;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text);
}

.review-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Product Description */
.product-description {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.product-description h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text);
}

.product-description p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 15px;
}

.product-description ul {
  list-style: none;
  padding: 0;
}

.product-description li {
  font-size: 14px;
  color: var(--text-light);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.product-description li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .product-detail-wrapper {
    padding: 0 15px;
  }
  
  .product-detail-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .product-images-section {
    position: static;
    max-height: none;
    overflow-y: visible;
    width: 100%;
    flex: none;
  }
  
  .product-info-section {
    width: 100%;
    flex: none;
  }
  
  .main-product-image {
    height: 300px;
  }
  
  .variant-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .variant-item img {
    height: 80px;
  }
  
  .additional-images {
    grid-template-columns: 1fr;
  }
  
  .current-price {
    font-size: 24px;
  }
  
  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .rating-number {
    font-size: 36px;
  }
  
  .file-upload {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Font Options */
.font-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.font-option {
  border: 2px solid var(--border);
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.font-option input[type="radio"] {
  display: none;
}

.font-option span {
  font-size: 14px;
  font-weight: 600;
}

.font-option input[type="radio"]:checked + span {
  color: var(--orange);
}

.font-option:has(input[type="radio"]:checked) {
  border-color: var(--orange);
  background: rgba(255, 102, 0, 0.1);
}

/* Size Select */
.size-select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 5px;
  font-size: 15px;
  background: white;
  cursor: pointer;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 150px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--orange);
  background: white;
  color: var(--orange);
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
}

.qty-btn:hover {
  background: var(--orange);
  color: white;
}

#quantity {
  width: 60px;
  text-align: center;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
}

/* Checkbox Options */
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.checkbox-option:hover {
  background: rgba(255, 102, 0, 0.05);
}

.checkbox-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--orange);
}

/* Price Summary */
.price-summary {
  background: white;
  padding: 20px;
  border-radius: 5px;
  border: 2px solid var(--orange);
  margin: 25px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.price-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.price-row.total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--orange);
  font-size: 20px;
}

.specs {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.spec {
  margin-bottom: 10px;
  color: var(--text-light);
}

/* Footer - Full Width */
footer.footer,
.footer {
  background: #000000;
  color: #ffffff;
  padding: 50px 20px 25px;
  margin-top: 80px;
  border-top: 1px solid #333333;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo {
  margin-bottom: 16px;
  text-align: center;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
  padding-bottom: 10px;
}

.footer-section p {
  font-size: 14px;
  color: #cccccc;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-section a {
  display: block;
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #333333;
  color: #999999;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CTA Section */
.cta {
  background: var(--orange);
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin: 40px 0;
}

.cta h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.cta .mini {
  font-size: 16px;
  margin-bottom: 25px;
  opacity: 0.9;
}

.cta .btn.secondary {
  background: white;
  color: var(--orange);
  border: 2px solid white;
}

.cta .btn.secondary:hover {
  background: transparent;
  color: white;
}

/* Tags and Pills */
.tag, .pill {
  display: inline-block;
  padding: 5px 12px;
  background: var(--orange);
  color: white;
  font-size: 12px;
  border-radius: 3px;
  margin-right: 5px;
}

.pill {
  background: var(--card-bg);
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* Discount Banner */
.discount-banner {
  background: var(--orange);
  color: white;
  text-align: center;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 14px;
  position: fixed;
  top: 80px; /* Position below header */
  left: 0;
  right: 0;
  z-index: 999;
  overflow: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.discount-banner {
  animation: none;
}

.discount-banner-text {
  display: inline-block;
  animation: discount-marquee 16s linear infinite;
  will-change: transform;
}

.discount-banner:hover .discount-banner-text {
  animation-play-state: paused;
}

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

.discount-banner.scrolled {
  background: white;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999; /* Ensure z-index doesn't change on scroll */
}

/* Category Filters */
.categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0;
}

.category-btn {
  padding: 12px 18px;
  background: white;
  border: 2px solid var(--orange);
  color: var(--orange);
  cursor: pointer;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 14px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.category-btn:active {
  transform: scale(0.98);
}

.category-btn.active {
  background: var(--orange);
  color: white;
}

/* Bottom Navigation Bar (Mobile Only) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--border);
  padding: 8px 0;
  padding-bottom: max(8px, var(--safe-bottom));
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  min-width: 60px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
  transform: scale(0.95);
}

.bottom-nav-item.active {
  color: var(--orange);
}

.bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
  display: block;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 15px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 99;
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-btn:active {
  transform: scale(0.95);
}

.whatsapp-btn svg {
  width: 35px;
  height: 35px;
  fill: white;
}

@media (min-width: 769px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }
  
  .whatsapp-btn:hover {
    transform: scale(1.05);
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    overflow: visible;
  }

  .nav-links .nav-close {
    display: none/* Hide mobile navigation on desktop */
  }

  .mobile-nav-overlay {
    display: none !important;
  }

  .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
  }

  .nav-links a {
    color: var(--text);
    font-weight: 500;
    padding: 10px 0;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    border: none;
    border-bottom: none;
  }

  .nav-links a:hover {
    color: var(--orange);
  }

  .nav-links a.active {
    color: var(--orange);
    border-bottom: none;
    background: transparent;
    border-left: none;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding-bottom: 100px; /* Add space for fixed bottom nav */
    overflow-x: hidden;
    /* Remove min-height entirely to prevent overflow */
  }

  .bottom-nav {
    display: flex;
  }

  html {
    overflow-x: hidden;
  }

  .discount-banner {
    padding: 15px 20px;
    font-size: 14px;
    line-height: 1.4;
    position: fixed;
    top: 80px;
    z-index: 999;
  }

  header {
    position: fixed;
    top: 0;
    z-index: 1000;
  }

  .nav {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
  }

  .nav-toggle {
    display: block;
    margin: 0 15px;
  }

  .nav-links {
    display: none;
  }

  .logo-img {
    height: 45px;
    margin: 0 15px;
  }

  /* Mobile Navigation Styles - Only on Mobile */
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
  }

  .mobile-nav-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
  }

  .mobile-nav-overlay.active .mobile-nav-panel {
    left: 0;
  }

  .mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
  }

  .mobile-nav-menu {
    padding: 20px;
  }

  .mobile-nav-menu a {
    display: block;
    padding: 15px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
  }

  .mobile-nav-menu a:hover {
    color: var(--orange);
  }

  .mobile-nav-header .logo-img {
    height: 58px;
  }

  .fullscreen-banner {
    min-height: 70vh;
    padding: 60px 20px;
  }

  .hero-slider-btn {
    display: none;
  }

  .hero {
    padding: 50px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 24px;
  }

  .category-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer {
    padding: 40px 15px 20px;
    margin-top: 50px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .grid.products {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .product-slider {
    height: 160px;
  }

  .product-info {
    padding: 15px;
  }

  .product-info h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .price {
    font-size: 17px;
  }

  .offer-price {
    font-size: 13px;
  }

  .font-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .customization-form {
    padding: 20px;
  }

  .categories {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin: 20px -12px;
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    gap: 12px;
  }

  .categories::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 14px 20px;
    font-size: 15px;
    min-height: 48px;
  }

  .whatsapp-btn {
    display: none;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .section-head p {
    font-size: 15px;
  }

  .btn {
    padding: 16px 24px;
    font-size: 17px;
    min-height: 52px;
  }

  .view-all {
    margin-top: 30px;
  }

  .footer-logo-img {
    height: 48px;
  }
}

/* Prevent text selection on interactive elements */
.btn, .category-btn, .nav-toggle, .bottom-nav-item, .whatsapp-btn, .qty-btn {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
  html {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix banner image zoom on mobile */
  .fullscreen-banner {
    min-height: 60vh;
    padding: 60px 15px;
  }
  
  .hero-slide img,
  .hero-slide video {
    width: 100%;
    height: auto;
    min-height: 60vh;
    object-fit: cover;
    object-position: center;
  }
  
  .banner-content {
    padding: 0 15px;
  }
  
  .fullscreen-banner h1 {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.3;
  }
  
  .fullscreen-banner p {
    font-size: clamp(14px, 3vw, 16px);
  }
  
  body {
    -webkit-overflow-scrolling: touch;
  }

  /* Better touch targets */
  input, textarea, select, button {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* ===================================
   RELATED PRODUCTS SECTION
   =================================== */

.related-products-section {
  padding: 60px 20px;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 0;
}

.related-products-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.related-products-grid .product-card {
  margin: 0;
}

/* Responsive for Related Products Grid */
@media (max-width: 1024px) {
  .related-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .related-products-section {
    padding: 40px 15px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .related-products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Fix banner image zoom on small mobile */
  .fullscreen-banner {
    min-height: 50vh;
    padding: 40px 10px;
  }
  
  .hero-slide img,
  .hero-slide video {
    width: 100%;
    height: auto;
    min-height: 50vh;
    object-fit: cover;
    object-position: top center;
  }
  
  .fullscreen-banner h1 {
    font-size: clamp(20px, 7vw, 28px);
  }
  
  .fullscreen-banner p {
    font-size: clamp(12px, 4vw, 15px);
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* ========================================
   CUSTOMIZATION INPUTS STYLING
   ======================================== */

/* Product Options Container */
.product-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Option Groups */
.option-group {
  margin-bottom: 20px;
}

.option-group label {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  gap: 6px;
}

.option-group label i {
  color: var(--orange);
  font-size: 16px;
}

.option-group .required {
  color: #e74c3c;
  font-size: 13px;
  margin-left: 4px;
}

.option-group small.text-muted {
  font-size: 12px;
  color: var(--text-light);
  margin-left: 6px;
  font-weight: 400;
}

/* Custom Select Dropdown */
.custom-select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6600' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.custom-select:hover {
  border-color: var(--orange-light);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.1);
  transform: translateY(-1px);
}

.custom-select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
  transform: translateY(-1px);
}

.custom-select:disabled {
  background-color: var(--card-bg);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* Custom select options styling */
.custom-select option {
  padding: 10px 14px;
  font-weight: 400;
  color: var(--text);
  background: white;
  border: none;
}

.custom-select option:hover,
.custom-select option:checked {
  background: var(--orange);
  color: white;
}

/* Enhance dropdown appearance in different browsers */
.custom-select::-ms-expand {
  display: none;
}

.custom-select::-webkit-calendar-picker-indicator {
  display: none;
}

/* Add focus ring for accessibility */
.custom-select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Color Options */
.color-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.color-option {
  position: relative;
  cursor: pointer;
}

.color-option input[type="radio"],
.color-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.color-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.color-label:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-option input[type="radio"]:checked + .color-label,
.color-option input[type="checkbox"]:checked + .color-label {
  border-color: var(--orange);
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.color-tooltip {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.color-label:hover .color-tooltip {
  opacity: 1;
}

.price-adjustment {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--orange);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Multi-select Buttons */
.multiselect-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.multiselect-btn {
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.multiselect-btn:hover {
  border-color: var(--orange-light);
  background: var(--card-bg);
  transform: translateY(-1px);
}

.multiselect-btn.selected {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
}

.multiselect-btn .price-adjustment {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 6px;
}

.multiselect-btn.selected .price-adjustment {
  background: rgba(255, 255, 255, 0.9);
  color: var(--orange);
}

/* Icon Options */
.icon-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.icon-option:hover {
  border-color: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-option.selected {
  border-color: var(--orange);
  background: rgba(255, 102, 0, 0.05);
}

.icon-option i {
  font-size: 20px;
  color: var(--orange);
  margin-bottom: 6px;
}

.icon-option span {
  font-size: 11px;
  color: var(--text);
  text-align: center;
  font-weight: 500;
}

.icon-option .price-adjustment {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--orange);
  color: white;
  font-size: 8px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 6px;
}

/* Text Inputs */
.text-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.text-input-group {
  position: relative;
}

.text-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  background: white;
  transition: all 0.3s ease;
}

.text-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.text-input::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.char-count {
  position: absolute;
  bottom: -18px;
  right: 0;
  font-size: 11px;
  color: var(--text-light);
}

/* Radio and Checkbox Options */
.radio-options,
.checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.radio-option:hover,
.checkbox-option:hover {
  border-color: var(--orange-light);
  background: var(--card-bg);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.1);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
}

/* Custom radio button styling */
.radio-option input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: white;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.radio-option input[type="radio"]:hover {
  border-color: var(--orange-light);
}

.radio-option input[type="radio"]:checked {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.radio-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

/* Custom checkbox styling */
.checkbox-option input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: white;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-option input[type="checkbox"]:hover {
  border-color: var(--orange-light);
}

.checkbox-option input[type="checkbox"]:checked {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.checkbox-option input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 11px;
  font-weight: bold;
}

.radio-option.selected,
.checkbox-option.selected {
  border-color: var(--orange);
  background: rgba(255, 102, 0, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.radio-option .option-label,
.checkbox-option .option-label {
  flex: 1;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.radio-option .price-adjustment,
.checkbox-option .price-adjustment {
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 8px;
  box-shadow: 0 1px 2px rgba(255, 102, 0, 0.2);
}

/* Textarea */
.textarea-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  color: var(--text);
  background: white;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.textarea-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* File Upload */
.file-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload:hover {
  border-color: var(--orange-light);
  background: rgba(255, 102, 0, 0.05);
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload i {
  font-size: 32px;
  color: var(--orange);
  margin-bottom: 10px;
}

.file-upload span {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

.file-upload small {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .color-options {
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
  }
  
  .color-label {
    width: 45px;
    height: 45px;
  }
  
  .multiselect-options {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
  }
  
  .icon-options {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
  }
  
  .icon-option {
    padding: 10px 6px;
  }
  
  .icon-option i {
    font-size: 18px;
  }
  
  .custom-select,
  .text-input,
  .textarea-input {
    padding: 12px 14px;
    font-size: 15px;
  }
  
  .custom-select {
    padding: 12px 36px 12px 14px;
    background-position: right 12px center;
    background-size: 14px;
  }
  
  .radio-option,
  .checkbox-option {
    padding: 10px 14px;
  }
  
  .radio-option input[type="radio"],
  .checkbox-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
  }
  
  .radio-option .option-label,
  .checkbox-option .option-label {
    font-size: 13px;
  }
  
  .radio-option .price-adjustment,
  .checkbox-option .price-adjustment {
    font-size: 10px;
    padding: 3px 6px;
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  .multiselect-options {
    grid-template-columns: 1fr;
  }
  
  .icon-options {
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
  }
  
  .option-group {
    margin-bottom: 16px;
  }
  
  .option-group label {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .custom-select {
    padding: 10px 32px 10px 12px;
    background-position: right 10px center;
    background-size: 12px;
  }
  
  .radio-option,
  .checkbox-option {
    padding: 8px 12px;
  }
  
  .radio-option input[type="radio"],
  .checkbox-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-right: 8px;
  }
  
  .radio-option input[type="radio"]:checked::after {
    width: 5px;
    height: 5px;
  }
  
  .checkbox-option input[type="checkbox"]:checked::after {
    font-size: 9px;
  }
  
  .text-input {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* ========================================
   MOBILE PRODUCT PAGE - LENSKART STYLE
   ======================================== */

/* SECTION CONTROLS - Complete Separation */
.mobile-section {
  display: none;
}

.desktop-section {
  display: block;
}

/* Mobile Only - Show Mobile Section */
@media (max-width: 768px) {
  .mobile-section {
    display: block;
  }
  
  .desktop-section {
    display: none;
  }
}

/* Mobile Product Header - Lenskart Style - Mobile Only */
@media (max-width: 768px) {
  .mobile-product-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    z-index: 1000;
    padding: 0 12px;
    align-items: center;
    justify-content: space-between;
  }

  .back-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
  }

  .back-btn:hover {
    background-color: #f5f5f5;
  }

  .header-actions {
    display: flex;
    gap: 4px;
  }

  .share-btn, .wishlist-btn {
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #666;
  }

  .share-btn:hover, .wishlist-btn:hover {
    background-color: #f5f5f5;
    color: #333;
  }
}

/* Mobile Gallery Styles - Lenskart Hero Style - Mobile Only */
@media (max-width: 768px) {
  .mobile-gallery {
    display: block;
    margin-top: 48px; /* Account for smaller fixed header */
  }

  .bk-page .detail-layout {
    padding: 0;
    margin: 0;
  }

  .bk-page .detail-main {
    padding: 0;
    margin: 0;
    position: static;
    height: auto;
    box-shadow: none;
    border-radius: 0;
  }

  .mobile-gallery .main-image-container {
    width: 100%;
    height: 75vw;
    max-height: 500px;
    min-height: 300px;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
  }

  .mobile-gallery .main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-gallery .product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
  }

  .mobile-gallery .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
  }

  .mobile-gallery .main-image-container:active .image-overlay {
    opacity: 1;
  }

  .mobile-gallery .zoom-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .mobile-gallery .zoom-btn:hover {
    background: white;
    transform: scale(1.05);
  }

  .mobile-gallery .thumbnail-container {
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-gallery .thumbnail-container::-webkit-scrollbar {
    display: none;
  }

  .mobile-gallery .thumbnail {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-gallery .thumbnail.active {
    border-color: #ff6b6b;
  }

  .mobile-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Mobile Product Title - Space Optimized */
  .mobile-product-title {
    display: none;
    width: 100%;
    padding: 12px 16px 8px 16px;
    text-align: center;
  }

  .mobile-product-title h1 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
  }
}

/* Mobile Order Bar - E-commerce Style - Mobile Only */
@media (max-width: 768px) {
  .mobile-order-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 12px 16px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 60px;
  }

  .mobile-order-bar.show {
    transform: translateY(0);
    display: block;
  }

  .mobile-order-bar.merging {
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }

  .order-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 0;
  }

  .order-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .price-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
  }

  .price-amount {
    font-size: 22px;
    font-weight: 800;
    color: #2c3e50;
    display: block;
  }

  .order-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
  }

  .mobile-qty-btn {
    background: #f8f9fa;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
  }

  .mobile-order-bar.show .mobile-qty-btn {
    animation: qtyButtonBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s forwards;
  }

  @keyframes qtyButtonBounce {
    0% { transform: scale(0.9); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }

  .mobile-qty-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
  }

  .mobile-qty-btn:active {
    transform: scale(0.95);
  }

  .mobile-qty-input {
    width: 40px;
    height: 36px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 600;
    background: white;
    display: block;
  }

  .mobile-order-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3);
    display: block;
    transform: scale(0.95);
  }

  .mobile-order-bar.show .mobile-order-btn {
    animation: buttonBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
  }

  @keyframes buttonBounce {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }

  .mobile-order-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(238, 90, 36, 0.4);
  }

  .mobile-order-btn:active {
    transform: translateY(-1px) scale(0.98);
  }
}

/* Coming Soon Page Styles */
.coming-soon-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

.coming-soon-content {
  max-width: 600px;
}

.coming-soon-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.coming-soon-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.coming-soon-text {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.6;
}

.coming-soon-subtitle {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 30px;
}

.coming-soon-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Mobile Responsive for Coming Soon */
@media (max-width: 768px) {
  .coming-soon-section {
    min-height: 50vh;
    padding: 20px 15px;
  }
  
  .coming-soon-icon {
    font-size: 60px;
  }
  
  .coming-soon-title {
    font-size: 28px;
  }
  
  .coming-soon-text {
    font-size: 16px;
  }
  
  .coming-soon-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .coming-soon-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Hide bottom nav for BK page - Mobile Only */
@media (max-width: 768px) {
  body.bk-page .bottom-nav {
    display: none !important;
  }

  /* Hide default header on mobile */
  .bk-page header:not(.mobile-product-header) {
    display: none !important;
  }

  /* Hide discount banner on mobile for cleaner look */
  .bk-page .discount-banner {
    display: none !important;
  }

  /* Remove body padding for mobile - no longer needed with new header */
  body.bk-page {
    padding-top: 0 !important;
  }

  /* More specific override to ensure it works */
  body.bk-page {
    padding-top: 0px !important;
  }
}

/* Additional Mobile Styles from HTML - Mobile Only */
@media (max-width: 768px) {
  .main-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    transition: opacity 0.3s ease;
  }

  .main-image-container img,
  .main-image-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .main-image-container:hover img,
  .main-image-container:hover video {
    transform: scale(1.02);
  }
}

/* Media Types - Desktop Only (preserve original desktop functionality) */
@media (min-width: 769px) {
  .media-type {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    z-index: 5;
  }

  .video-thumb .media-type {
    background: rgba(255, 0, 0, 0.7);
  }
}

/* Image Overlay - Mobile Only */
@media (max-width: 768px) {
  .image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 10;
  }

  .main-image-container:hover .image-overlay {
    opacity: 1;
  }

  .zoom-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .zoom-btn:hover {
    background: white;
    transform: scale(1.05);
  }
}

/* Product Features - Mobile Only */
@media (max-width: 768px) {
  .product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
  }

  .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    color: var(--text-light);
  }

  .feature-icon {
    font-size: 18px;
  }

  .char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
  }

  .color-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
  }

  .color-option input[type="radio"] {
    margin: 0;
  }

  .color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
  }

  .color-option input[type="radio"]:checked + .color-dot {
    border-color: var(--orange);
    transform: scale(1.1);
  }

  .price-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
  }

  .price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .price-row.total {
    border-top: 2px solid var(--border);
    padding-top: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--orange);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
  }

  .btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn.primary {
    background: var(--orange);
    color: white;
  }

  .btn.primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
  }

  .btn.secondary {
    background: white;
    color: var(--orange);
    border: 2px solid var(--orange);
  }

  .btn.secondary:hover {
    background: var(--orange);
    color: white;
  }
}

/* Lightbox Styles */
.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: pointer;
}

.image-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

.image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

/* Desktop Section - Original Styling - Desktop Only */
@media (min-width: 769px) {
  .desktop-section {
    display: block;
  }
  
  .mobile-section {
    display: none;
  }

  .desktop-gallery {
    display: block;
  }
  
  .mobile-gallery {
    display: none;
  }
}

/* Desktop Media Grid - Desktop Only */
@media (min-width: 769px) {
  .media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    position: relative;
  }

  .media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
  }

  .media-item:hover {
    transform: scale(1.02);
  }

  .media-item img,
  .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .media-item:hover .media-overlay {
    opacity: 1;
  }

  .media-overlay .zoom-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .media-overlay .zoom-btn:hover {
    background: white;
    transform: scale(1.1);
  }
}

/* Mobile Responsive - Ultra Space Optimized */
@media (max-width: 768px) {
  .mobile-product-header {
    display: flex;
  }

  .mobile-product-title {
    display: block;
  }
  
  .detail h1 {
    display: none;
  }

  .page {
    padding: 0;
    padding: 0 5px;
    margin: 0;
  }

  .detail-layout {
    padding: 0;
    margin: 0;
  }

  .detail {
    padding: 0 16px 16px 16px;
  }

  .detail h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .price {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .product-features {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .product-feature {
    padding: 8px;
    font-size: 13px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-image-container img {
    height: 300px;
  }

  .mobile-order-bar {
    display: block;
  }
}

/* ==========================================================================
   PRODUCT GALLERY STYLES
   ========================================================================== */

/* Prevent extra scrollbar from customization */
.product-options {
  max-height: none;
  overflow: visible;
}

.option-group {
  margin-bottom: 20px;
}

.option-group:last-child {
  margin-bottom: 0;
}

/* Ensure file uploads don't cause overflow */
.file-upload {
  overflow: hidden;
}

.file-input {
  max-width: 100%;
}

/* Prevent text inputs from causing overflow */
.text-input {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure selects don't cause overflow */
.custom-select {
  max-width: 100%;
  box-sizing: border-box;
}

/* Prevent color options from causing overflow */
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-option {
  flex-shrink: 0;
}

/* Prevent radio/checkbox options from causing overflow */
.radio-options,
.checkbox-options {
  max-width: 100%;
}

.radio-option,
.checkbox-option {
  margin-bottom: 8px;
}

/* Ensure price adjustments don't cause overflow */
.price-adjustment {
  display: inline-block;
  white-space: nowrap;
}

/* Prevent descriptions from causing layout issues */
.rule-description,
.option-description {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

/* Remove problematic CSS fixes */

/* Ensure content doesn't cause unnecessary vertical scrolling */
.option-group {
  margin-bottom: 15px;
}

/* Prevent extra vertical space */
.product-options > div:last-child {
  margin-bottom: 0;
}

/* Reduce padding in customization elements */
.product-options input,
.product-options select,
.product-options textarea {
  padding: 8px;
  margin: 2px 0;
}

/* Compact option descriptions */
.rule-description,
.option-description {
  margin: 2px 0;
  font-size: 11px;
}

/* Fix horizontal scrollbar - targeted approach */
.product-options {
  width: 100%;
  box-sizing: border-box;
}

.product-options input,
.product-options select,
.product-options textarea {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

/* Ensure file upload elements are contained */
.file-upload {
  width: 100%;
  box-sizing: border-box;
}

/* Fix any potential overflow from color options */
.color-options {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
}

/* Product Gallery Styles */
.main-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f9fa;
  cursor: pointer;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.main-image-container:hover .image-overlay,
.media-item:hover .media-overlay {
  opacity: 1;
  pointer-events: all;
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.zoom-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Gallery */
.mobile-gallery {
  display: block;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.detail-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.detail-thumb:hover {
  border-color: #ff6b6b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-thumb.active {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Desktop Gallery */
.desktop-gallery {
  display: none;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.media-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  aspect-ratio: 1;
}

.media-item:hover {
  transform: scale(1.02);
}

/* Common Media Styles */
.detail-thumb img,
.detail-thumb video,
.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-type {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

/* Lightbox */
.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.image-lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 90vh;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
}

.image-lightbox img,
.image-lightbox video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Product Gallery Responsive */
@media (min-width: 769px) {
  .mobile-gallery {
    display: none;
  }
  .desktop-gallery {
    display: block;
  }
}

@media (max-width: 768px) {
  .main-image-container {
    height: 300px;
  }
}
