/* ═══════════════════════════════════════════════════════
   ONEWAY 91ST STREET — product-detail.css
   Maps old class names + adds new gallery / swatch styles
═══════════════════════════════════════════════════════ */

/* ── Accordion overrides ─────────────────────────────────── */
.accordion-item {
  background: transparent !important;
  border: none;
  border-bottom: 1px solid var(--border) !important;
}
.accordion-button {
  background: transparent !important;
  color: var(--text) !important;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.1rem 0;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  color: var(--accent) !important;
}
.accordion-button::after {
  filter: invert(1) brightness(0.5);
}
.accordion-body {
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-main {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg2);
  border: 1px solid var(--border);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}
.gallery-main:hover img {
  transform: scale(1.03);
}

.gallery-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 2px;
  transition: border-color var(--trans);
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--accent);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-thumb:hover img {
  transform: scale(1.06);
}

/* ── Colour swatches ─────────────────────────────────────── */
.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    border-color var(--trans),
    transform 0.15s;
  flex-shrink: 0;
}
.color-swatch:hover {
  transform: scale(1.12);
}
.color-swatch.active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(232, 255, 60, 0.2);
}
.color-swatch.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Size buttons ────────────────────────────────────────── */
/* .size-btn is already defined in brand.css / shop.css —
   these rules ensure the PDP version looks identical */
.size-btn {
  min-width: 52px;
  height: 44px;
  padding: 0 0.9rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color var(--trans),
    background var(--trans),
    color var(--trans);
}
.size-btn:hover:not(.disabled):not(:disabled) {
  border-color: var(--accent);
  background: rgba(232, 255, 60, 0.06);
  color: var(--accent);
}
.size-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.size-btn.disabled,
.size-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

/* ── Quantity control ────────────────────────────────────── */
/* Shared with cart — qty-control / qty-btn / qty-num live in brand.css */

/* ── Badges ──────────────────────────────────────────────── */
.badge-sale {
  display: inline-block;
  background: var(--accent2, #ff3c3c);
  color: #fff;
  font-family: var(--font-sub);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.badge-new {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-sub);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

/* ── Price ───────────────────────────────────────────────── */
.old-price {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: line-through;
}

/* ── Wishlist active state ───────────────────────────────── */
#wishlistBtn.active {
  color: var(--accent2, #ff3c3c);
  border-color: var(--accent2, #ff3c3c);
}

/* ── Related products section ────────────────────────────── */
#relatedProducts .product-card {
  height: 100%;
}

/* ── Old CSS class compatibility shims ───────────────────── */
/* These map old selectors so any copy-pasted markup still renders */
.product-detail-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.thumbnail {
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 2px;
  transition: border-color var(--trans);
}
.thumbnail.active,
.thumbnail:hover {
  border-color: var(--accent);
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.option-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.option-selector-choice {
  padding: 0 10px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg3);
  transition:
    border-color var(--trans),
    background var(--trans);
}
.option-selector-choice:hover {
  border-color: var(--accent);
}
.option-selector-choice.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #000;
}
.option-selector-choice.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity-value {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 2.5rem;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .gallery-main {
    aspect-ratio: 1 / 1;
  }
  .gallery-thumb {
    aspect-ratio: 1 / 1;
  }
}
