/* ============================================================
   SEYLUNE — PRODUCT PAGE
   The photograph holds still on the left (the other views melt
   in through shared/liquid.js); the details move on the right.
   The room, buttons, sizes and cards come from shared/site.css.
   1. Photograph + thumbnails
   2. Name, price, colour
   3. Size, quantity, add
   4. Details
   5. Related pieces + not found
   6. Phones
============================================================ */


/* ============================================================
   1. PHOTOGRAPH + THUMBNAILS
============================================================ */
.product-room {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.product-media .liquid-box img {
  object-position: 50% 12%;
}

.product-thumbs {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2.4rem);
  bottom: clamp(1.25rem, 4vh, 2.4rem);
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.product-thumb {
  width: 46px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  opacity: 0.55;
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: opacity 0.3s, outline-color 0.3s;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.product-thumb:hover {
  opacity: 0.9;
}

.product-thumb[aria-pressed="true"] {
  opacity: 1;
  outline-color: var(--gold);
}

/* Click the photograph (or the magnifier) for the full-screen view */
.product-media .liquid-box {
  cursor: zoom-in;
}

.product-zoom {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.4rem);
  bottom: clamp(1.25rem, 4vh, 2.4rem);
  z-index: 3;
  background: rgba(15, 13, 16, 0.45);
  border-color: rgba(244, 238, 232, 0.35);
}


/* ============================================================
   2. NAME, PRICE, COLOUR
============================================================ */
.product-body {
  padding-left: clamp(1.5rem, 5vw, 5.5rem);
  max-width: 46rem;
}

.product-title {
  font-size: clamp(2.2rem, min(4.2vw, 7.6vh), 4.4rem);
}

.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-bottom: clamp(0.8rem, 2.4vh, 1.4rem);
}

.product-price-large {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.product-tax-note {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.product-short {
  max-width: 32rem;
  margin-bottom: clamp(1.2rem, 3vh, 1.8rem);
  color: var(--text-soft);
}

.product-colour {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(1.2rem, 3.4vh, 2rem);
  font-size: 0.88rem;
}

.option-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.product-colour .option-label {
  margin-right: 0.6rem;
}


/* ============================================================
   3. SIZE, QUANTITY, ADD
============================================================ */
.option-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
}

.option-link {
  padding-bottom: 0.2rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-gold);
  transition: color 0.3s;
}

.option-link:hover {
  color: var(--gold);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-stock {
  min-height: 1.3rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--gold);
}

.size-error {
  min-height: 1.3rem;
  font-size: 0.78rem;
  color: var(--error);
}

.product-buy {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.product-buy .qty-control {
  flex: none;
}

.product-buy .qty-btn {
  height: 48px;
}

.product-buy .btn {
  flex: 1;
}

.product-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}

.product-save {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.product-save:hover,
.product-save.saved {
  color: var(--gold);
}

.product-save.saved svg {
  fill: var(--gold);
}

.product-feedback {
  min-height: 1.4rem;
  margin: 0.5rem 0 clamp(1.4rem, 4vh, 2.4rem);
  font-size: 0.86rem;
  color: var(--gold);
}


/* ============================================================
   4. DETAILS — Description, Fabric & Care, Delivery
============================================================ */
.product-details {
  border-top: 1px solid var(--line);
}

.product-details details {
  border-bottom: 1px solid var(--line);
}

.product-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.product-details summary::-webkit-details-marker {
  display: none;
}

.product-details summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.5s var(--ease);
}

.product-details details[open] summary::after {
  transform: rotate(45deg);
}

.product-details summary:hover {
  color: var(--gold);
}

.product-details details > p,
.info-list {
  padding-bottom: 1.3rem;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.info-list li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.3rem 0;
}

.info-list li > span:first-child {
  padding-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-main);
}


/* ============================================================
   5. RELATED PIECES + NOT FOUND
============================================================ */
.related {
  margin-top: clamp(3rem, 10vh, 5.5rem);
}

.look .section-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.related .section-note {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-room.is-missing {
  display: block;
}


/* ============================================================
   6. PHONES
============================================================ */
@media (max-width: 860px) {
  .product-room {
    grid-template-columns: 1fr;
  }

  .product-media {
    height: 74svh;
  }

  .product-thumbs {
    left: var(--pad);
    bottom: 1rem;
  }

  .product-thumb {
    width: 38px;
  }

  .product-body {
    padding: 1.6rem var(--pad) 3.4rem;
  }

  .product-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .size-btn {
    width: 44px;
    height: 44px;
  }

  .related-grid {
    gap: 2rem 0.8rem;
  }
}
