/* ========================================
   PRODUCT PAGE STYLES
   ======================================== */

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.4;
}

.breadcrumb .current {
  color: var(--gray-light);
}

/* --- Product Layout --- */
.product-page {
  padding: 24px 0 80px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* --- Gallery --- */
.product-gallery {
  position: sticky;
  top: 100px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-2);
  margin-bottom: 12px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.gallery-main .gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
  z-index: 2;
}

.gallery-zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
}

.gallery-main:hover .gallery-zoom {
  opacity: 1;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  flex-shrink: 0;
  background: var(--dark-2);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--red);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Product Details --- */
.product-details {
  padding-top: 8px;
}

.product-details .product-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 8px;
}

.product-details h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.product-details .product-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.product-details .stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
}

.product-details .rating-text {
  font-size: 13px;
  color: var(--gray);
}

.product-price-display {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.product-price-display .price-current {
  color: var(--white);
}

.product-price-display .price-range {
  color: var(--gray);
  font-size: 14px;
  font-weight: 400;
}

/* --- Size/Variant Selector --- */
.variant-selector {
  margin-bottom: 28px;
}

.variant-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--gray-light);
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-option {
  padding: 12px 24px;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.variant-option:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--dark-3);
}

.variant-option.active {
  border-color: var(--red);
  background: rgba(145, 26, 26, 0.15);
  color: var(--white);
}

/* --- Quantity & Add to Cart --- */
.add-to-cart-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  width: 44px;
  height: 50px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.qty-value {
  width: 44px;
  text-align: center;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--white);
  outline: none;
}

.btn-add-cart {
  flex: 1;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.btn-add-cart svg {
  margin-right: 8px;
}

/* --- Trust Badges (Product Page) --- */
.product-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.product-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-light);
}

.product-trust-item svg {
  flex-shrink: 0;
  color: var(--red);
}

/* --- Specs Table --- */
.product-specs {
  margin-bottom: 32px;
}

.product-specs h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.specs-table td {
  padding: 12px 0;
  font-size: 14px;
}

.specs-table td:first-child {
  color: var(--gray);
  width: 40%;
  font-weight: 500;
}

.specs-table td:last-child {
  color: var(--white);
  font-weight: 500;
}

/* --- Tabs --- */
.product-tabs {
  margin-top: 60px;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0;
}

.tab-btn {
  padding: 16px 28px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  color: var(--white);
}

.tab-btn.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.tab-panel {
  display: none;
  padding: 32px 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-light);
}

.tab-panel.active {
  display: block;
}

.tab-panel h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 12px;
}

.tab-panel ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 16px;
}

.tab-panel ul li {
  margin-bottom: 6px;
}

/* --- Shipping Notice --- */
.shipping-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(145, 26, 26, 0.08);
  border: 1px solid rgba(145, 26, 26, 0.2);
  border-radius: var(--radius);
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-light);
}

.shipping-notice svg {
  flex-shrink: 0;
  color: var(--red);
  margin-top: 2px;
}

.shipping-notice strong {
  color: var(--white);
}

/* --- Related Products --- */
.related-products {
  padding: 80px 0;
  background: var(--dark);
}

.related-products .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .product-layout {
    gap: 40px;
  }

  .related-products .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-gallery {
    position: static;
  }

  .product-details h1 {
    font-size: 28px;
  }

  .product-price-display {
    font-size: 24px;
  }

  .add-to-cart-row {
    flex-direction: column;
  }

  .quantity-selector {
    align-self: flex-start;
  }

  .product-trust {
    grid-template-columns: 1fr;
  }

  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 14px 20px;
    font-size: 12px;
  }

  .related-products .product-grid {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
}
