/* ============================================================
   FROLLEIN S — Product / Collection page
   Builds on styles.css. Light editorial throughout.
   ============================================================ */

body.pdp {
  background: var(--bone);
  color: var(--ink);
}
body.pdp .footer { background: var(--ink); color: var(--bone); }

.pdp-main { padding-top: clamp(6rem, 9vw, 8.5rem); }

/* breadcrumb */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.55;
  display: flex;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.breadcrumb a { transition: opacity 0.3s var(--ease); }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .here { opacity: 0.9; }

/* product layout */
.product {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

/* gallery */
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 0.7rem; }
.thumb {
  width: 84px; height: 112px; overflow: hidden;
  cursor: pointer; position: relative;
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease), opacity 0.4s var(--ease);
  opacity: 0.6;
  background: var(--beige);
}
.thumb image-slot { width: 100%; height: 100%; pointer-events: none; }
.thumb.active { opacity: 1; border-color: var(--ink); }
.thumb:hover { opacity: 1; }
.gallery-main { position: relative; overflow: hidden; background: var(--beige); }
.gallery-main image-slot { width: 100%; height: clamp(460px, 64vw, 920px); }
.gallery-flag {
  position: absolute; top: 1.2rem; left: 1.2rem; z-index: 3;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  background: var(--bone); color: var(--ink); padding: 0.55em 0.95em; border-radius: 999px;
}

/* info column */
.info { position: sticky; top: clamp(6rem, 9vw, 8rem); }
.info .cat { font-size: var(--t-label); letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; opacity: 0.55; }
.info h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: 1; letter-spacing: -0.01em;
  margin: 0.7rem 0 0.9rem; text-wrap: balance;
}
.info .price { font-size: var(--t-lead); font-variant-numeric: tabular-nums; }
.info .desc { margin-top: 1.6rem; max-width: 46ch; opacity: 0.78; line-height: 1.7; }

.opt { margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.opt-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.9rem;
}
.opt-head .label { font-size: var(--t-label); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.opt-head .val { font-size: var(--t-label); letter-spacing: 0.08em; opacity: 0.6; }

/* colour swatches */
.swatches { display: flex; gap: 0.7rem; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  position: relative; border: 1px solid var(--line-light);
  transition: transform 0.3s var(--ease);
}
.swatch::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--ink); opacity: 0; transition: opacity 0.3s var(--ease);
}
.swatch.active::after { opacity: 1; }
.swatch:hover { transform: scale(1.08); }

/* sizes */
.sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
.size {
  border: 1px solid var(--line-light); background: transparent;
  padding: 0.95em 0; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em;
  cursor: pointer; color: var(--ink);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.size:hover { border-color: var(--ink); }
.size.active { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.size.soldout { opacity: 0.32; cursor: not-allowed; text-decoration: line-through; }
.size-link { margin-top: 0.9rem; font-size: var(--t-label); letter-spacing: 0.06em; opacity: 0.55; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-block; }

/* actions */
.actions { margin-top: clamp(1.8rem, 3vw, 2.4rem); display: flex; gap: 0.8rem; }
.actions .btn--ink { flex: 1; justify-content: center; padding-top: 1.3em; padding-bottom: 1.3em; }
.icon-btn {
  width: 56px; flex: 0 0 56px; border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.icon-btn:hover { background: var(--ink); color: var(--bone); }
.icon-btn svg { width: 18px; height: 18px; }

/* reassurance line */
.reassure { margin-top: 1.4rem; display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: var(--t-label); letter-spacing: 0.08em; opacity: 0.6; }
.reassure span { display: flex; align-items: center; gap: 0.5rem; }
.reassure span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* accordion */
.accordion { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-light); }
.acc-item { border-bottom: 1px solid var(--line-light); }
.acc-head {
  width: 100%; background: transparent; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3em 0; font-family: var(--sans); color: var(--ink);
  font-size: var(--t-label); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
.acc-head .plus { position: relative; width: 13px; height: 13px; flex: none; }
.acc-head .plus::before, .acc-head .plus::after {
  content: ""; position: absolute; background: var(--ink); transition: transform 0.4s var(--ease);
}
.acc-head .plus::before { top: 6px; left: 0; width: 13px; height: 1px; }
.acc-head .plus::after { left: 6px; top: 0; width: 1px; height: 13px; }
.acc-item.open .plus::after { transform: scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.acc-body-inner { padding: 0 0 1.5em; max-width: 52ch; opacity: 0.78; line-height: 1.7; font-size: var(--t-body); }
.acc-body-inner ul { list-style: none; display: grid; gap: 0.5rem; }
.acc-body-inner li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--line-light); padding-bottom: 0.5rem; }

/* related */
.related { margin-top: var(--section); }

@media (max-width: 980px) {
  .product { grid-template-columns: 1fr; gap: 2.5rem; }
  .info { position: static; }
  .gallery-main image-slot { height: clamp(460px, 120vw, 760px); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; }
  .thumb { width: 64px; height: 84px; }
  .sizes { grid-template-columns: repeat(4, 1fr); }
}
