/* ───────────────────────────────────────
   ArDen Watches — product page styles
   ─────────────────────────────────────── */

.product-page {
  padding-top: 5rem;
  min-height: 100vh;
}

.product-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

/* ── Back link ───────────────────────── */
.back-link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

/* ── Hero ────────────────────────────── */
.product-hero {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.product-image-wrap {
  flex: 0 0 320px;
  height: 360px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #faf6ec;
}
.product-image-bg {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}
.product-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-align: center;
}
.product-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.product-header {
  flex: 1;
  padding-top: 0.25rem;
}
.product-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  letter-spacing: 0.14em;
  line-height: 1;
  transition: color 0.3s;
}
.product-model-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-top: 0.4rem;
}
.product-refyear {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}
.refyear-sep { margin: 0 6px; opacity: 0.35; }

.product-price {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  margin-top: 1.75rem;
  transition: color 0.3s;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.action-btn {
  display: block;
  text-align: center;
  padding: 0.72rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}
.action-btn.primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.action-btn.primary:hover { opacity: 0.82; }
.action-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(26,22,18,0.22);
}
.action-btn.secondary:hover { background: rgba(26,22,18,0.05); }

/* ── Sections ────────────────────────── */
.product-section {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.section-header {
  background: var(--text);
  color: var(--bg);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  padding: 0.6rem 1.25rem;
  text-transform: uppercase;
}

/* ── Spec table ──────────────────────── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-label {
  width: 32%;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  vertical-align: top;
  border-right: 1px solid var(--border);
  background: rgba(26,22,18,0.02);
}
.spec-value {
  padding: 0.75rem 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  vertical-align: top;
}

/* ── Quick specs (header) ────────────── */
.product-quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.quick-spec-item {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.quick-spec-item:nth-child(even) { border-right: none; }
.quick-spec-item:nth-last-child(-n+2) { border-bottom: none; }
.quick-spec-label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.quick-spec-value {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
}

/* ── Trust strip ─────────────────────── */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  background: rgba(26,22,18,0.015);
}
.trust-item {
  flex: 1;
  text-align: center;
  padding: 1.1rem 1rem;
}
.trust-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
  flex-shrink: 0;
}
.trust-title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.trust-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Description prose ───────────────── */
.description-block {
  padding: 1.25rem 1.25rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
}

/* ── Collapsible sections ────────────── */
details.product-section > summary.section-header {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
details.product-section > summary.section-header::-webkit-details-marker { display: none; }
details.product-section > summary.section-header::after {
  content: '+';
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.55;
  display: inline-block;
  transition: transform 0.22s ease;
}
details.product-section[open] > summary.section-header::after {
  transform: rotate(45deg);
}

.section-body-wrap {
  overflow: hidden;
  transition: height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Policy block (shipping) ─────────── */
.policy-block {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Responsive: tablet & mobile ─────── */
@media (max-width: 768px) {
  .product-page { padding-top: 4.5rem; }
  .product-container { padding: 1.75rem 1.25rem 4rem; }

  /* Stack image above header */
  .product-hero { flex-direction: column; gap: 1.5rem; }
  .product-image-wrap { flex: none; width: 100%; height: 280px; }

  .product-brand { font-size: 2.6rem; }
  .product-model-name { font-size: 0.9rem; }
  .product-price { font-size: 2rem; margin-top: 1rem; }
  .product-actions { margin-top: 1.1rem; }

  /* Trust strip — stack to column */
  .trust-strip { flex-direction: column; }
  .trust-divider { width: 100%; height: 1px; }
  .trust-item { padding: 0.85rem 1rem; }

  /* Spec table — widen label on narrow screens */
  .spec-label { width: 38%; }

  /* Back link */
  .back-link { margin-bottom: 1.25rem; }
}

/* ── Responsive: small phones (≤480px) ─ */
@media (max-width: 480px) {
  .product-image-wrap { height: 240px; }
  .product-brand { font-size: 2.2rem; }
  .product-price { font-size: 1.75rem; }

  /* Stack spec table rows so label sits above value */
  .spec-table tr { display: flex; flex-direction: column; }
  .spec-label {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .spec-value { padding-top: 0.4rem; }

  /* Quick specs — already 2col, fine at this size */
  .action-btn { font-size: 0.82rem; letter-spacing: 0.16em; }
}

/* ───────────────────────────────────────
   Product Gallery (Amazon-style)
   ─────────────────────────────────────── */

.gallery-container {
  display: flex;
  gap: 1.25rem;
  flex: 0 0 62%;
  min-width: 0;
}

.product-hero .gallery-main {
  width: 100%;
  max-width: none;
}

.gallery-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Main image display */
.gallery-main {
  flex: 0 0 auto;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #faf6ec;
}

.gallery-main-bg {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.gallery-main-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.gallery-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  cursor: zoom-in;
}

/* Thumbnail carousel */
.gallery-thumbnails-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

/* Thumbnail scrollbar styling */
.gallery-thumbnails::-webkit-scrollbar {
  width: 6px;
}
.gallery-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}
.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(26, 22, 18, 0.2);
  border-radius: 3px;
}
.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 22, 18, 0.35);
}

/* Individual thumbnail */
.gallery-thumb {
  flex: 0 0 70px;
  width: 70px;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  background: #faf6ec;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.6;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  pointer-events: none;
}

.gallery-thumb:hover {
  opacity: 0.9;
  border-color: rgba(26, 22, 18, 0.2);
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--text);
}

.gallery-thumb:focus {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Navigation buttons (optional for future) */
.gallery-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s;
  z-index: 10;
}

.gallery-nav-button:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.2);
}

.gallery-nav-prev {
  left: 10px;
}

.gallery-nav-next {
  right: 10px;
}

/* Counter / Index display */
.gallery-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.5rem 0;
}

.gallery-counter-arrow {
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  flex-shrink: 0;
}

.gallery-counter-arrow:hover {
  background: rgba(26,22,18,0.07);
  border-color: rgba(26,22,18,0.28);
}

/* Responsive gallery */
@media (max-width: 768px) {
  .gallery-container {
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-main-wrap {
    gap: 0.5rem;
  }

  .gallery-main {
    max-width: 100%;
    height: auto;
  }

  .gallery-thumbnails-wrapper {
    flex-direction: row;
  }

  .gallery-thumbnails {
    max-height: none;
    flex-direction: row;
    overflow-y: hidden;
    overflow-x: auto;
    padding-right: 0;
    padding-bottom: 4px;
  }

  .gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
  }

  .gallery-thumb {
    flex: 0 0 65px;
    width: 65px;
  }

  /* When hero stacks, gallery should take full width */
  .product-hero {
    flex-direction: column;
  }

  .gallery-container {
    order: -1;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    gap: 0.5rem;
  }

  .gallery-main {
    border-radius: 2px;
  }

  .gallery-thumb {
    flex: 0 0 50px;
    width: 50px;
  }

  .gallery-counter {
    font-size: 0.65rem;
  }

  .gallery-container {
    flex: 0 0 100%;
  }
}

/* ── Lightbox ────────────────────────── */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 9, 8, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 3px;
  pointer-events: none;
  user-select: none;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  width: 36px;
  height: 36px;
  border-radius: 2px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, color 0.18s;
}

.gallery-lightbox-close:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
