/* DI VÉNCO — single product (PDP), ported 1:1 from DIVENCO Product.html. */

.pdp {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 3vw, 60px);
  padding: clamp(20px, 2.4vw, 40px) var(--gutter) clamp(48px, 7vh, 100px);
  align-items: start;
}
.pdp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 14px); }
.pdp-shot { aspect-ratio: 3/4; background-color: var(--tile); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.pdp-shot:nth-child(even) { background-color: var(--tile-2); }
/* Real <img> so retina can pull the 2x rung from srcset; object-fit matches the
   background-size:cover this used to rely on. */
.pdp-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.pdp-info { position: sticky; top: 96px; }
.pdp-info h1 {
  margin: 0 0 12px;
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em;
  font-size: clamp(26px, 2.5vw, 40px); line-height: 1.05;
}
.pdp-price { font-size: 13px; letter-spacing: 0.04em; color: var(--fg-soft); margin: 0 0 34px; font-feature-settings: 'tnum'; }
.pdp-price del { opacity: 0.5; margin-right: 8px; }
.pdp-price ins { text-decoration: none; }
.pdp-block { margin-bottom: 26px; }
.pdp-blockhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pdp-lbl { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg); }
.pdp-lbl b { font-weight: 600; }
.size-guide { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-mute); border-bottom: 1px solid var(--fg-mute); padding-bottom: 2px; transition: color .25s; cursor: pointer; }
.size-guide:hover { color: var(--fg); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size {
  min-width: 42px; height: 42px; padding: 0 6px;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 10px; letter-spacing: 0.08em; color: var(--fg-soft);
  transition: border-color .25s, background .25s, color .25s;
}
.size:hover { border-color: var(--fg-mute); color: var(--fg); }
.size.active { background: var(--fg); color: #fff; border-color: var(--fg); }
.size.soldout { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 42px; height: 42px; border: 1px solid var(--line); padding: 3px; transition: border-color .25s; }
.swatch i { display: block; width: 100%; height: 100%; }
.swatch.active { border-color: var(--fg); }
.pdp-actions { margin: 30px 0 12px; }
.qty-cart { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 38px; height: 50px; font-size: 15px; color: var(--fg-soft); transition: color .2s; }
.qty button:hover { color: var(--fg); }
.qty span { min-width: 30px; text-align: center; font-size: 12px; font-feature-settings: 'tnum'; }
.btn-cart {
  height: 50px; background: var(--fg); color: #fff;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  transition: opacity .25s;
}
.btn-cart:hover { opacity: 0.82; }
.btn-cart[disabled] { opacity: 0.4; cursor: default; }
.btn-buy {
  width: 100%; height: 48px; border: 1px solid var(--fg);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 10px;
  transition: background .25s, color .25s;
}
.btn-buy:hover { background: var(--fg); color: #fff; }
.btn-buy[disabled] { opacity: 0.4; cursor: default; }
.pdp-desc { font-size: 13px; line-height: 1.85; color: var(--fg-soft); margin: 32px 0 30px; max-width: 460px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg);
}
.acc-head .pm { font-size: 17px; font-weight: 300; transition: transform .3s; }
.acc.open .acc-head .pm { transform: rotate(45deg); }
.acc-body { overflow: hidden; max-height: 0; transition: max-height .4s cubic-bezier(.4,0,.2,1); }
.acc.open .acc-body { max-height: 320px; }
.acc-body p { font-size: 12px; line-height: 1.85; color: var(--fg-soft); margin: 0; padding: 0 0 22px; max-width: 440px; }

/* ---- collection feature ---- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1vw, 14px);
  padding: clamp(40px, 6vh, 88px) var(--gutter);
}
.fcell { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.fcell .fimg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s cubic-bezier(.16,.84,.36,1); }
.fcell:hover .fimg { transform: scale(1.035); }
.fcell.dark { background: var(--dark); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; gap: 18px; }
.fcell.dark .ftitle { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(28px, 3vw, 48px); line-height: 1; color: #fff; }
.fcell.dark .ftitle b { font-style: normal; font-weight: 300; }
.fcell.dark .fk { font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dark-mute); }
.fcell.dark p { font-size: 12px; line-height: 1.85; color: var(--dark-fg); max-width: 360px; margin: 0; }
.fcell.dark .fbtn {
  margin-top: 8px; padding: 13px 30px; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px;
  font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: #fff; transition: background .25s, border-color .25s;
}
.fcell.dark .fbtn:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---- category row ---- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 14px); padding: 0 var(--gutter) clamp(48px, 7vh, 96px); }
.cat { cursor: pointer; }
.cat .cimg { aspect-ratio: 3/4; overflow: hidden; background: var(--tile); }
.cat .cimg i { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 1.1s cubic-bezier(.16,.84,.36,1); }
.cat:hover .cimg i { transform: scale(1.04); }
.cat .clabel { margin-top: 14px; font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 1.6vw, 24px); }

/* WooCommerce notice on PDP (kept subtle) */
.pdp .woocommerce-notices-wrapper { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp-info { position: static; }
  .cats { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
}
@media (max-width: 520px) {
  .feature { grid-template-columns: 1fr; }
  .fcell { aspect-ratio: 4/5; }
  .cats { grid-template-columns: 1fr 1fr; }
}
