/* ===========================
   SINGLE PRODUCT PAGE
=========================== */

.product-single {
  padding-top: var(--header-height);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
  padding: 4rem 0 6rem;
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.product-gallery__main {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  cursor: zoom-in;
  margin-bottom: 1rem;
}

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

.product-gallery__main:hover img {
  transform: scale(1.04);
}

.product-gallery__main-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

/* Thumbnails */
.product-gallery__thumbs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: calc(25% - 0.6rem);
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: var(--color-bg-alt);
}

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

.product-gallery__thumb:hover img {
  transform: scale(1.08);
}

.product-gallery__thumb.active {
  border-color: var(--color-accent);
}

.product-gallery__thumb:hover {
  border-color: var(--color-accent-dark);
}

/* Fullscreen viewer */
.gallery-fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 8, 6, 0.97);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-fullscreen.active {
  display: flex;
}

.gallery-fullscreen__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.gallery-fullscreen__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.gallery-fullscreen__close:hover {
  background: var(--color-accent);
}

.gallery-fullscreen__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: var(--transition);
}

.gallery-fullscreen__nav:hover {
  background: var(--color-accent);
}

.gallery-fullscreen__prev { left: 1.5rem; }
.gallery-fullscreen__next { right: 1.5rem; }

.gallery-fullscreen__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

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

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.product-breadcrumb a {
  color: var(--color-text-muted);
  transition: var(--transition);
}

.product-breadcrumb a:hover {
  color: var(--color-text);
}

.product-breadcrumb span {
  color: var(--color-border);
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(200,168,130,0.1);
  border: 1px solid rgba(200,168,130,0.25);
  padding: 0.35rem 0.875rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.product-divider {
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

.product-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-info-item {
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.product-info-item__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.product-info-item__value {
  font-size: 0.9rem;
  color: var(--color-text);
}

.product-gallery-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.product-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-cta .btn {
  justify-content: center;
  padding: 1rem 2rem;
}

.product-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.product-share span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.product-share a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.product-share a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

/* Related Products */
.related-products {
  background: var(--color-bg-alt);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0 5rem;
  }

  .product-gallery {
    position: static;
  }
}

@media (max-width: 600px) {
  .product-gallery__thumb {
    width: calc(33.333% - 0.5rem);
  }

  .product-info-grid {
    grid-template-columns: 1fr;
  }

  .gallery-fullscreen__prev { left: 0.75rem; }
  .gallery-fullscreen__next { right: 0.75rem; }
}
