/* ============================================
   PRODUCT DETAIL PAGE - DARK THEME OVERRIDE
   ============================================ */

/* Override global variables for dark theme */
body {
  background-color: #131825;
  color: #ffffff;
}

:root {
  --bg-primary: #131825;
  --bg-secondary: #131825; 
  --bg-tertiary: #131825;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --border-light: #333333;
}

/* Product Hero Section */
.product-hero {
  background-color: var(--bg-secondary);
  padding: var(--spacing-4xl) var(--spacing-xl);
}

.product-breadcrumbs {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.product-breadcrumbs a {
  color: var(--primary-blue);
}

.product-breadcrumbs span {
  color: var(--text-primary);
}

/* Product Container */
.product-container {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  margin-top: var(--spacing-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Product Gallery */
.main-image {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  height: 500px;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 500px;
}

.thumbnail {
  border: 2px solid var(--border-light);
  background-color: var(--bg-tertiary);
}

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

.thumbnail:hover {
  border-color: #555555;
}

/* Product Info */
.product-info h1 {
  color: var(--text-primary);
}

.tagline {
  color: var(--primary-blue);
  font-style: italic;
  margin-bottom: var(--spacing-lg);
}

.price-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.price {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--primary-blue);
}

.availability {
  background-color: rgba(46, 213, 115, 0.1);
  color: #2ed573;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Variant Options */
.variant-label {
  color: var(--text-primary);
}

.size-option {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.size-option:hover {
  border-color: #555555;
}

.size-option.selected {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Product Description */
.product-description {
  background-color: var(--bg-tertiary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
  border: 1px solid var(--border-light);
}

.product-description h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.product-description p, .product-description li {
  color: var(--text-secondary);
}

/* Add to Cart Section */
.add-to-cart {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.quantity-selector {
  display: flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity-btn {
  background-color: transparent;
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.quantity-btn:hover {
  background-color: var(--bg-secondary);
}

.quantity-input {
  background-color: transparent;
  border: none;
  color: var(--text-primary);
  width: 60px;
  text-align: center;
  font-weight: 600;
  padding: 0 var(--spacing-sm);
}

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

/* Product Meta */
.product-meta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.shipping-info, .guarantee {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.meta-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0.8);
}

/* Product Story Section */
.product-story {
  background: linear-gradient(135deg, #131825 0%, #1a1a2e 50%, #16213e 100%);
  color: var(--text-primary);
  padding: var(--spacing-4xl) var(--spacing-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.story-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.story-text h2 {
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-lg);
}

.story-text p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

/* Related Products Section */
.related-products {
  padding: var(--spacing-4xl) var(--spacing-xl);
  background-color: var(--bg-secondary);
}

.related-products h2 {
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-2xl);
  max-width: 1400px;
  margin: 0 auto;
}

.related-products .product-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
}

.related-products .product-card:hover {
  transform: translateY(-4px);
  border-color: #555555;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.related-products .product-image {
  height: 200px;
  max-height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  position: relative;
  background-color: var(--bg-tertiary);
}

.related-products .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.related-products .product-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--text-lg);
}

.related-products .product-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
  min-height: 60px;
}

.related-products .product-card .price {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: var(--text-lg);
  display: block;
  margin-bottom: var(--spacing-md);
}

/* Modal Overrides */
.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.size-chart-table th {
  background-color: var(--bg-tertiary);
}

.size-chart-table td {
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* Mini Cart Dark Theme */
.mini-cart {
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-light);
}

.mini-cart-header {
  border-bottom: 1px solid var(--border-light);
}

.mini-cart-header h3 {
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-hero {
    padding: var(--spacing-3xl) var(--spacing-md);
  }
  
  .product-container {
    padding: var(--spacing-lg);
    margin-top: var(--spacing-md);
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .main-image {
    height: 350px;
    max-height: 350px;
  }
  
  .main-image img {
    max-height: 350px;
  }
  
  .add-to-cart {
    flex-direction: column;
    align-items: stretch;
  }
  
  .add-to-cart .btn {
    width: 100%;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .main-image {
    height: 280px;
    max-height: 280px;
  }
  
  .main-image img {
    max-height: 280px;
  }
}