:root {
  --gold-primary: #C6A664;
  --gold-dark: #A88C4A;
  --gold-light: #E8D9B0;
  --beige-primary: #D6C6B1;
  --beige-light: #F5F3F0;
  --beige-lighter: #FAF9F7;
  --text-dark: #2C2C2C;
  --text-light: #6C6C6C;
  --border-light: #EAE5DD;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(214, 198, 177, 0.15);
  --shadow-hover: 0 8px 30px rgba(198, 166, 100, 0.2);
  
  /* Dark Background Variables */
  --bg-dark: #0f0f0f;
  --bg-darker: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --border-dark: #333333;
  --text-on-dark: #ffffff;
  --text-muted-dark: #a0a0a0;
}

/* Breadcrumb - Dark Theme */
.breadcrumb-nav {
  background: var(--bg-card);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-dark);
  font-family: 'Montserrat', sans-serif;
}

.breadcrumb-nav .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-link {
  color: var(--text-muted-dark);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.breadcrumb-link:hover {
  color: var(--gold-primary);
}

.breadcrumb-separator {
  color: var(--text-muted-dark);
  margin: 0 0.25rem;
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Product Main Layout */
.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 3rem 0;
}

@media (max-width: 768px) {
  .product-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Product Gallery - Updated for Dark Premium Theme */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.main-image-container {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-card);
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-image-container:hover .gallery-main-image {
  transform: scale(1.02);
}

/* ==================== ULTRA PREMIUM MINIMALIST BADGES ==================== */
.product-badges-container {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.product-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  font-family: 'Unica One', cursive;
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: premiumSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

@keyframes premiumSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Ultra Premium Sale Badge */
.sale-badge {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.95), rgba(238, 90, 36, 0.95));
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Ultra Premium Sold Out Badge */
.soldout-badge {
  background: linear-gradient(135deg, rgba(44, 44, 44, 0.95), rgba(26, 26, 26, 0.95));
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Ultra Premium Unique Badge */
.unique-badge {
  background: linear-gradient(135deg, rgba(198, 166, 100, 0.95), rgba(168, 140, 74, 0.95));
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Premium Shine Effect */
.product-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.product-badge:hover::before {
  left: 100%;
}

/* ==================== SOLD OUT PRODUCT STYLING ==================== */
.sold-out-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(108, 108, 108, 0.15);
  z-index: 15;
  border-radius: 20px;
  pointer-events: none;
}

/* Sold Out State */
.sold-out-state {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid var(--border-dark);
}

.sold-out-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted-dark);
  font-weight: 600;
}

.sold-out-message i {
  color: #FF6B6B;
  font-size: 1.5rem;
}

.sold-out-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Enhanced Gallery Enlarge Button */
.gallery-zoom-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.gallery-zoom-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(198, 166, 100, 0.3);
}

/* Premium Thumbnails */
.gallery-thumbnails {
  overflow: hidden;
}

.thumbnail-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) var(--bg-card);
}

.thumbnail-scroll::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-scroll::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 3px;
}

.thumbnail-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 3px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  background: var(--bg-card);
}

.thumbnail.active {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(198, 166, 100, 0.3);
}

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

.thumbnail:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(198, 166, 100, 0.2);
  background: var(--bg-card-hover);
}

.thumbnail:hover img {
  transform: scale(1.1);
}

.thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(198, 166, 100, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail.active::after,
.thumbnail:hover::after {
  opacity: 1;
}

/* Product Info */
.product-info {
  padding: 1rem 0;
}

.product-header {
  margin-bottom: 1.5rem;
}

.product-title {
  font-family: 'Unica One', cursive;
  font-size: 2.5rem;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

/* Pricing */
.product-pricing {
  margin-bottom: 2rem;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.price-original {
  font-size: 1.5rem;
  color: var(--text-muted-dark);
  text-decoration: line-through;
}

.price-current {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-on-dark);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-current1 {
  font-weight: 500;
  position: relative;
  opacity: 0.8;
  font-size: 0.9rem;
  color: white;
}

.sale-savings {
  background: linear-gradient(135deg, #FF6B6B, #EE5A24);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Product Description */
.product-description {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 15px;
  border-left: 4px solid var(--gold-primary);
}

.product-description p {
  color: var(--text-on-dark);
  line-height: 1.6;
  margin: 0;
}

.details-content {
  color: var(--text-muted-dark);
  line-height: 1.6;
  margin-top: 1rem;
}

/* Product Specs */
.product-specs {
  margin-bottom: 2rem;
}

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

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

.spec-item i {
  color: var(--gold-primary);
  font-size: 1.2rem;
  width: 24px;
}

.spec-content {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-value {
  font-weight: 600;
  color: var(--text-on-dark);
}

/* Purchase Section */
.purchase-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-dark);
}

.quantity-selector {
  margin-bottom: 2rem;
}

.quantity-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

.quantity-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
  border-color: var(--gold-primary);
}

.quantity-input {
  width: 80px;
  height: 44px;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.quantity-input:focus {
  border-color: var(--gold-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(198, 166, 100, 0.1);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-premium {
  flex: 2;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--text-dark);
  border: none;
  border-radius: 15px;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(198, 166, 100, 0.3);
}

.btn-premium-outline {
  flex: 1;
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
  border-radius: 15px;
  padding: 1rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-premium-outline:hover {
  background: var(--gold-primary);
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* ==================== UPDATED RELATED PRODUCTS STYLES ==================== */
.related-products {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-dark);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Unica One', cursive;
  font-size: 2rem;
  color: var(--text-on-dark);
  margin: 0;
}

.view-all-link {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: 25px;
}

.view-all-link:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
  gap: 0.75rem;
  transform: translateX(5px);
}

/* Products Grid - Dark Theme */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid var(--border-dark);
  opacity: 0;
  transform: translateY(20px);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(198, 166, 100, 0.2);
  background: var(--bg-card-hover);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-card);
}

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

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

/* ==================== ULTRA PREMIUM SOLD OUT STYLING ==================== */
.product-card.sold-out .product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(108, 108, 108, 0.15);
  z-index: 15;
  border-radius: 16px;
}

.product-card.sold-out .product-image img {
  transition: all 0.4s ease;
}

/* Premium Price Styling for Sold Out */
.product-card.sold-out .product-price {
  position: relative;
}

.product-card.sold-out .price-current,
.product-card.sold-out .price-old,
.product-card.sold-out .price-new {
  color: var(--text-muted-dark) !important;
  font-weight: 500;
  position: relative;
  opacity: 0.8;
}

/* Elegant line-through effect */
.product-card.sold-out .price-current::after,
.product-card.sold-out .price-old::after,
.product-card.sold-out .price-new::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5%;
  width: 110%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--text-muted-dark) 20%, 
    var(--text-muted-dark) 80%, 
    transparent 100%);
  opacity: 0.6;
  transform: translateY(-50%);
}

/* Remove the default line-through */
.product-card.sold-out .price-old {
  text-decoration: none;
}

/* Ultra Premium Sold Out CTA */
.product-card.sold-out .product-link {
  background: transparent;
  color: var(--text-muted-dark);
  border: 1px solid var(--border-dark);
  opacity: 1;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card.sold-out .product-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  transition: left 0.6s ease;
}

.product-card.sold-out .product-link:hover {
  background: var(--text-muted-dark);
  color: var(--bg-dark);
  border-color: var(--text-muted-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 108, 108, 0.2);
}

.product-card.sold-out .product-link:hover::before {
  left: 100%;
}

/* Premium icon transition */
.product-card.sold-out .product-link i {
  transition: transform 0.3s ease;
}

.product-card.sold-out .product-link:hover i {
  transform: translateX(3px);
}

/* Premium price grouping */
.product-card.sold-out .product-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-card.sold-out .price-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

/* Elegant price separator */
.product-card.sold-out .price-separator {
  color: var(--text-muted-dark);
  opacity: 0.5;
  font-weight: 300;
}

.product-actions {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  cursor: pointer;
}

.action-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
  transform: scale(1.1);
  border-color: var(--gold-primary);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted-dark);
  font-size: 0.9rem;
}

.price-new {
  color: #FF6B6B;
  font-weight: 700;
  font-size: 1.1rem;
}

.price-current {
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.product-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.product-link:hover {
  gap: 0.75rem;
  color: var(--gold-light);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted-dark);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 4rem;
  color: var(--border-dark);
  margin-bottom: 1.5rem;
}

.empty-state h4 {
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
}

/* ==================== SIMPLE IMAGE MODAL STYLES ==================== */
.image-modal-simple {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.image-modal-simple.active {
  display: flex;
}

.modal-overlay-simple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

.modal-content-simple {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  z-index: 10001;
}

.modal-close-simple {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  z-index: 10002;
}

.modal-close-simple:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
  transform: rotate(90deg);
}

.modal-image-container-simple {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  max-height: 80vh;
}

.modal-image-simple {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

/* Navigation arrows */
.nav-arrow-simple {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.nav-arrow-simple:hover {
  opacity: 1;
  background: var(--gold-primary);
  color: var(--bg-dark);
  transform: translateY(-50%) scale(1.1);
}

.nav-prev-simple {
  left: 20px;
}

.nav-next-simple {
  right: 20px;
}

.image-counter-simple {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Body scroll lock */
body.modal-open {
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-name {
    font-size: 1rem;
    min-height: 2.4em;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .product-badges-container {
    top: 1rem;
    right: 1rem;
    gap: 0.3rem;
  }
  
  .product-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
  
  .sold-out-actions {
    flex-direction: column;
  }
  
  .sold-out-message {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .price-current {
    font-size: 2rem;
  }
  
  .price-original {
    font-size: 1.2rem;
  }
  
  /* Mobile modal adjustments */
  .modal-content-simple {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .modal-close-simple {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  .nav-arrow-simple {
    width: 40px;
    height: 40px;
  }
  
  .nav-prev-simple {
    left: 10px;
  }
  
  .nav-next-simple {
    right: 10px;
  }
  
  .image-counter-simple {
    bottom: -50px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-badge {
    padding: 0.35rem 0.7rem;
    font-size: 0.6rem;
  }
  
  .product-main {
    gap: 1.5rem;
  }
  
  .purchase-section {
    padding: 1.5rem;
  }
  
  .gallery-zoom-btn {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
  }
  
  .thumbnail {
    width: 70px;
    height: 70px;
  }
}

/* Additional responsive improvements */
@media (max-width: 1024px) {
  .product-main {
    gap: 3rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

/* Animation for product cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
/* ==================== RESPONSIVE RELATED PRODUCTS GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* For large desktops - 4 products per row */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* For desktop - 4 products per row */
@media (min-width: 992px) and (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* For tablets - 3 products per row */
@media (max-width: 991px) and (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* For mobile devices - 2 products per row */
@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-card {
    margin-bottom: 0;
    min-width: 0; /* Important for responsive behavior */
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-name {
    font-size: 1rem;
    min-height: 2.4em;
  }
  
  .product-price {
    font-size: 0.9rem;
  }
  
  .price-current, .price-new {
    font-size: 1rem;
  }
}

/* For very small mobile devices - ensure 2 products fit nicely */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .product-card {
    min-width: 0;
  }
  
  .product-info {
    padding: 0.75rem;
  }
  
  .product-name {
    font-size: 0.9rem;
    min-height: 2.2em;
  }
  
  .price-current, .price-new {
    font-size: 0.9rem;
  }
  
  .product-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
  }
  
  .action-btn {
    width: 35px;
    height: 35px;
  }
}

/* ==================== ENHANCED RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .view-all-link {
    align-self: center;
  }
  
  .related-products {
    margin-top: 3rem;
    padding-top: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  /* Products - 2 per row on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-name {
    font-size: 1rem;
    min-height: 2.4em;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .product-badges-container {
    top: 1rem;
    right: 1rem;
    gap: 0.3rem;
  }
  
  .product-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
  
  .sold-out-actions {
    flex-direction: column;
  }
  
  .sold-out-message {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .price-current {
    font-size: 2rem;
  }
  
  .price-original {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .product-badge {
    padding: 0.35rem 0.7rem;
    font-size: 0.6rem;
  }
  
  .product-main {
    gap: 1.5rem;
  }
  
  .purchase-section {
    padding: 1.5rem;
  }
  
  .gallery-zoom-btn {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
  }
  
  .thumbnail {
    width: 70px;
    height: 70px;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .view-all-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ==================== RESPONSIVE CARD BEHAVIOR ==================== */
.product-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid var(--border-dark);
  opacity: 0;
  transform: translateY(20px);
  min-width: 0; /* Important for responsive grid behavior */
  width: 100%; /* Ensure full width within grid cell */
}

/* Ensure images are properly responsive */
.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-card);
  width: 100%;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

/* ==================== RESPONSIVE ANIMATIONS ==================== */
@media (max-width: 768px) {
  .product-card {
    animation: fadeInUp 0.4s ease forwards;
  }
  
  .product-card:nth-child(1) { animation-delay: 0.1s; }
  .product-card:nth-child(2) { animation-delay: 0.2s; }
  .product-card:nth-child(3) { animation-delay: 0.3s; }
  .product-card:nth-child(4) { animation-delay: 0.4s; }
}

/* ==================== RESPONSIVE PAGINATION (if used) ==================== */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .pagination-btn, .pagination-page {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ==================== RESPONSIVE EMPTY STATE ==================== */
@media (max-width: 768px) {
  .empty-state {
    padding: 3rem 1rem;
  }
  
  .empty-icon {
    font-size: 3rem;
  }
  
  .empty-state h4 {
    font-size: 1.2rem;
  }
}