/* ═══════════════════════════════════════
   PRODUCT PAGE — single-product.php
   Layout: full-height left gallery + right info panel
   Session 17: Removed wishlist button styles
═══════════════════════════════════════ */

.prod-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
  margin-top: 72px;
  background: var(--bg);
}

/* ── LEFT — GALLERY ── */
.prod-gallery {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
}
.prod-main-img { flex: 1; overflow: hidden; }
.prod-main-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity .3s;
}

.prod-thumbs {
  display: flex; gap: 3px; padding: 3px;
  background: var(--bg-card); flex-shrink: 0;
  overflow-x: auto; scrollbar-width: none;
}
.prod-thumbs::-webkit-scrollbar { display: none; }
.thumb { width: 88px; height: 116px; flex-shrink: 0; overflow: hidden; cursor: none; border: 2px solid transparent; transition: border-color .2s; }
.thumb.act { border-color: var(--orange); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── RIGHT — INFO PANEL ── */
.prod-info {
  padding: 5rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg);
  border-left: 1px solid rgba(26,20,16,.07);
  overflow-y: auto;
  max-height: calc(100vh - 72px);
}

.p-cat { font-family: var(--font-body); font-size: 9px; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.p-name { font-family: var(--font-display); font-size: clamp(38px, 4.5vw, 64px); font-weight: 500; letter-spacing: -.01em; line-height: .92; color: var(--ink); margin-bottom: 1.2rem; }
.p-tagline { font-family: var(--font-display); font-size: 16px; font-style: italic; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.8rem; }
.p-tagline p { margin: 0; }
.p-price { font-family: var(--font-display); font-size: 34px; font-style: italic; color: var(--ink); margin-bottom: 2.5rem; }
.p-price ins { text-decoration: none; }
.p-price del { opacity: .45; font-size: 22px; margin-right: 8px; }

.sz-label { font-family: var(--font-body); font-size: 9px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: .9rem; }
.sz-grid { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 2rem; }
.sz-btn {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(26,20,16,.18); background: transparent;
  color: var(--ink-muted); font-family: var(--font-body); font-size: 11px; font-weight: 500;
  cursor: none; transition: all .2s;
}
.sz-btn:hover { border-color: var(--ink); color: var(--ink); }
.sz-btn.act { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Add to cart button */
.add-btn {
  width: 100%; padding: 18px;
  background: var(--ink); color: var(--bg); border: none;
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  cursor: none; margin-bottom: 2.5rem;
  transition: background .2s, transform .1s;
  display: flex; align-items: center; justify-content: center;
}
.add-btn:hover { background: var(--orange); transform: translateY(-1px); }
.add-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Accordions */
.acc { border-top: 1px solid rgba(26,20,16,.09); }
.acc:last-child { border-bottom: 1px solid rgba(26,20,16,.09); }
.acc-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; cursor: none; width: 100%; border: none; background: none;
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink); text-align: left;
}
.acc-icon { font-size: 18px; color: var(--ink-muted); transition: transform .3s; line-height: 1; flex-shrink: 0; }
.acc.open .acc-icon { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.acc.open .acc-body { max-height: 300px; }
.acc-body p { font-family: var(--font-body); font-size: 12px; line-height: 1.9; color: var(--ink-muted); padding-bottom: 1.2rem; }


/* ═══════════════════════════════════════
   MOBILE PRODUCT PAGE — image top, info below
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .prod-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    margin-top: 60px !important;
    min-height: 0 !important;
  }
  .prod-gallery {
    position: static !important;
    height: auto !important;
    width: 100% !important;
    max-height: none !important;
  }
  .prod-main-img {
    width: 100%;
    height: 0;
    padding-bottom: 125%;
    position: relative;
    overflow: hidden;
    flex: none;
  }
  .prod-main-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
  }
  .prod-thumbs { width: 100%; padding: 6px; gap: 4px; }
  .thumb { width: 68px; height: 90px; }
  .prod-info {
    width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding: 2rem 1.4rem 4rem !important;
    border-left: none !important;
    border-top: 1px solid rgba(26,20,16,.07) !important;
    justify-content: flex-start !important;
  }
  .add-btn { width: 100% !important; min-height: 52px !important; cursor: pointer !important; font-size: 11px !important; }
  .sz-btn { width: 52px !important; height: 52px !important; cursor: pointer !important; }
  .acc-hdr { min-height: 48px !important; cursor: pointer !important; }
}
