/* ============================================================
   GOLDLINES — Product Page Styles (product.css)
   Matches wireframe: gallery + details + size guide + related
   ============================================================ */

/* ── PAGE WRAPPER ─────────────────────────────────────────── */
.product-page {
  padding-top: var(--nav-h);
  background: var(--white);
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.product-breadcrumb {
  padding: var(--space-sm) 0;
  border-bottom: 0.5px solid var(--grey-mid);
  background: var(--ivory);
}

/* ── MAIN PRODUCT SECTION ─────────────────────────────────── */
.product-main {
  padding: var(--space-xl) 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── GALLERY ──────────────────────────────────────────────── */
.product-gallery { position: sticky; top: calc(var(--nav-h) + 24px); }

.gallery-main {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--grey-light);
  margin-bottom: var(--space-sm);
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.gallery-main img.fading { opacity: 0; }

/* Video play button overlay */
.gallery-play-btn {
  position: absolute;
  bottom: 16px; left: 16px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gallery-play-btn:hover {
  background: var(--white);
  transform: scale(1.08);
}

.gallery-play-btn svg { margin-left: 2px; }

/* Navigation arrows */
.gallery-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.85);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 2;
}

.gallery-arrow:hover { background: var(--white); }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex-shrink: 0;
  width: 80px; height: 100px;
  overflow: hidden;
  background: var(--grey-light);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  position: relative;
}

.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.gallery-thumb:hover img { transform: scale(1.05); }

.gallery-thumb.active { border-color: var(--black); }

/* ── PRODUCT DETAILS ──────────────────────────────────────── */
.product-details {}

.product-details-name {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 8px;
}

.product-details-tagline {
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: var(--grey-text);
  margin-bottom: var(--space-md);
}

.product-details-price {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: var(--space-sm);
}

/* Star rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 0.5px solid var(--grey-mid);
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 16px; height: 16px;
  color: var(--camel);
}

.star.empty { color: var(--grey-mid); }

.rating-count {
  font-size: 13px;
  color: var(--grey-text);
  font-weight: 300;
}

/* Description */
.product-description {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--grey-text);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 0.5px solid var(--grey-mid);
}

/* Colour selector */
.selector-block {
  margin-bottom: var(--space-lg);
}

.selector-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.selector-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
}

.selector-selected {
  font-size: 12px;
  font-weight: 300;
  color: var(--grey-text);
}

/* Size selector */
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-option {
  min-width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 0.5px solid var(--grey-mid);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 500;
  color: var(--black);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.size-option:hover { border-color: var(--black); }

.size-option.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.size-option.unavailable {
  color: var(--grey-mid);
  cursor: not-allowed;
  text-decoration: line-through;
}

.size-option.unavailable::after {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 0.5px;
  background: var(--grey-mid);
  transform: rotate(-25deg);
}

/* Model info */
.model-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 300;
  color: var(--grey-text);
}

.model-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grey-light);
  flex-shrink: 0;
}

.model-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Size guide table */
.size-guide {
  margin-top: var(--space-md);
  border: 0.5px solid var(--grey-mid);
  overflow: hidden;
}

.size-guide-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  border-bottom: 0.5px solid var(--grey-mid);
  font-size: 12px;
}

.size-guide-row:last-child { border-bottom: none; }

.size-guide-row.header {
  background: var(--grey-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-text);
}

.size-guide-cell {
  padding: 10px 14px;
  border-right: 0.5px solid var(--grey-mid);
  color: var(--black);
  font-weight: 400;
}

.size-guide-cell:last-child { border-right: none; }

.size-guide-row.active-size .size-guide-cell:first-child {
  font-weight: 600;
  color: var(--burgundy);
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--space-md) 0;
  padding: var(--space-md) 0;
  border-top: 0.5px solid var(--grey-mid);
  border-bottom: 0.5px solid var(--grey-mid);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
}

.trust-badge-icon {
  width: 20px; height: 20px;
  color: var(--camel);
  flex-shrink: 0;
}

/* CTA button */
.product-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.btn-preorder {
  width: 100%;
  justify-content: center;
  background: var(--camel);
  border-color: var(--camel);
  font-size: 12px;
  padding: 20px;
  letter-spacing: 0.15em;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition);
}

.btn-preorder:hover {
  background: var(--camel-d);
  border-color: var(--camel-d);
}

.btn-preorder-wa {
  width: 100%;
  justify-content: center;
  background: transparent;
  border: 0.5px solid var(--grey-mid);
  color: var(--black);
  font-size: 11px;
  padding: 14px;
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  transition: border-color var(--transition), background var(--transition);
}

.btn-preorder-wa:hover {
  border-color: #25D366;
  background: rgba(37,211,102,0.04);
  color: #1ebe5c;
}

/* Details accordion */
.product-accordion {
  border-top: 0.5px solid var(--grey-mid);
}

.accordion-item {
  border-bottom: 0.5px solid var(--grey-mid);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  text-align: left;
  transition: color var(--transition);
}

.accordion-trigger:hover { color: var(--burgundy); }

.accordion-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--grey-text);
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  display: none;
  padding-bottom: var(--space-md);
}

.accordion-item.open .accordion-body { display: block; }

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  color: var(--grey-text);
  line-height: 1.6;
}

.accordion-list-item::before {
  content: '•';
  color: var(--camel);
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.2;
}

.care-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  color: var(--grey-text);
}

.care-icon {
  width: 20px; height: 20px;
  color: var(--camel);
  flex-shrink: 0;
}

/* ── RELATED PRODUCTS ─────────────────────────────────────── */
.related-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--ivory);
  border-top: 0.5px solid var(--grey-mid);
}

.related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.related-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
}

.related-title em { font-style: italic; color: var(--burgundy); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.related-card { cursor: pointer; }

.related-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--grey-light);
  margin-bottom: 12px;
}

.related-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.related-card:hover .related-card-image img { transform: scale(1.04); }

.related-card-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 4px;
  transition: color var(--transition);
}

.related-card:hover .related-card-name { color: var(--burgundy); }

.related-card-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--camel);
  text-transform: uppercase;
  border-bottom: 1px solid var(--camel);
  padding-bottom: 1px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
  .product-gallery { position: static; }
  .gallery-main { aspect-ratio: 4/5; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .product-main { padding: var(--space-lg) 0; }
  .gallery-thumb { width: 64px; height: 80px; }
  .size-option { min-width: 48px; height: 48px; font-size: 16px; }
  .product-details-name { font-size: 28px; }
  .product-details-price { font-size: 28px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .related-section { padding: var(--space-lg) 0 var(--space-xl); }
}

@media (max-width: 480px) {
  .gallery-main { aspect-ratio: 1/1; }
  .gallery-thumb { width: 56px; height: 70px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .product-cta-wrap .btn-preorder { font-size: 11px; padding: 18px; }
}