/* Product pages, measurement drawer and the client's product segmentation. */
[hidden] { display:none !important; }
html:has(dialog.side-panel[open]) { overflow:hidden; }
.side-panel { position:fixed; inset:0 0 0 auto; width:min(480px,100%); height:100dvh; max-height:100dvh; max-width:100%; margin:0; padding:0; border:0; overflow:auto; background:var(--paper); color:var(--ink); box-shadow:-12px 0 48px #0002; }
.side-panel::backdrop { background:rgba(22,22,22,.38); }
.side-panel__head { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 24px; background:var(--paper); border-bottom:1px solid var(--line); }
.side-panel__head h2 { font-size:26px; font-weight:400; line-height:1.25; }
.side-panel__body, .manufacture-form { display:grid; gap:22px; padding:24px; }
.side-panel__actions { position:sticky; bottom:0; display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:20px 24px; background:var(--paper); border-top:1px solid var(--line); }
.side-panel__actions .btn { padding-inline:12px; font-size:12px; }
.filter-toggle { display:inline-flex; align-items:center; gap:12px; min-height:44px; padding:0 16px; background:none; border:1px solid var(--line); font:inherit; }
.filter-toggle svg { width:16px; height:16px; }
.facet-group { margin-inline:24px; padding-block:20px; border-bottom:1px solid var(--line); }
.facet-group summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:15px; cursor:pointer; }
.facet-group summary::-webkit-details-marker { display:none; }
.facet-group summary::after { content:"+"; font-size:22px; font-weight:400; }
.facet-group[open] summary::after { content:"−"; }
.facet-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; padding-top:20px; }
.facet-choice { display:flex; align-items:center; gap:8px; min-width:0; min-height:32px; cursor:pointer; font-size:14px; overflow-wrap:anywhere; }
.facet-choice input { flex-shrink:0; }
.facet-choice input { width:17px; height:17px; margin:0; accent-color:var(--wine); }
.facet-price { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; padding-top:18px; }
.facet-price label { display:grid; gap:6px; font-size:14px; }
.facet-price input { width:100%; min-width:0; padding:12px; border:1px solid var(--line); background:transparent; font:inherit; }
.facet-shades { margin-top:20px; padding-top:18px; border-top:1px solid var(--line); font-size:14px; }
.catalog-empty { display:grid; justify-items:start; gap:18px; padding-block:28px 50px; }
.swatch { display:inline-block; flex-shrink:0; width:26px; height:26px; border:1px solid #0003; border-radius:50%; background:var(--swatch); }
.swatch--pattern { background:conic-gradient(#7d2845,#deb948,#688570,#eee,#31313e,#7d2845); }
.product--boutique .product__grid { grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr); gap:clamp(28px,5vw,72px); align-items:start; }
.product--boutique .gallery { display:grid; grid-template-columns:64px minmax(0,1fr); align-items:start; gap:12px; min-width:0; }
@media(min-width:961px) { .product--boutique .gallery { width:100%; max-width:calc((100vh - 210px) * .75 + 76px); } }
.product--boutique .gallery__track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; min-width:0; margin:0; }
.product--boutique .gallery__slide { flex:0 0 100%; min-width:0; margin:0; aspect-ratio:3/4; scroll-snap-align:start; background:var(--photo-bg); }
.product--boutique .gallery__slide img { width:100%; height:100%; object-fit:contain; }
.product--boutique .gallery__thumbs { display:grid; align-content:start; gap:10px; overflow:auto; max-height:720px; }
.product--boutique .gallery__thumb { width:64px; flex-basis:auto; }
.product--boutique .gallery__thumb img { object-fit:contain; }
.product--boutique .product__info { gap:18px; }
.product__name { font-weight:400; }
.product__sku { color:var(--muted); font-size:13px; letter-spacing:.04em; }
.product__description { display:grid; gap:12px; font-size:16px; line-height:1.65; }
.product__materials p { display:inline; }
.product-colors { border:0; padding:0; margin:6px 0; }
.product-colors legend { margin-bottom:12px; padding:0; font-size:14px; }
.product-colors__list { display:flex; flex-wrap:wrap; gap:14px 20px; }
.product-color { position:relative; display:flex; align-items:center; gap:12px; font-size:14px; cursor:pointer; }
.product-color input { position:absolute; width:1px; height:1px; opacity:0; }
.product-color .swatch { width:30px; height:30px; }
.product-color input:checked + .swatch { outline:1px solid var(--ink); outline-offset:4px; }
.product-color input:focus-visible + .swatch { outline:2px solid var(--wine); outline-offset:4px; }
.model-colors { display:flex; align-items:center; gap:18px; min-width:0; }
.model-colors > p { margin:0; font-size:14px; }
.model-colors__list { display:flex; flex-wrap:wrap; gap:8px; }
.model-color { display:grid; place-items:center; width:38px; height:38px; color:inherit; text-decoration:none; }
.model-color > .swatch { width:27px; height:27px; }
.model-color[aria-current="true"] > .swatch { outline:1px solid currentColor; outline-offset:3px; }
.model-color:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.product-size-row { display:flex; align-items:center; flex-wrap:wrap; gap:12px 24px; }
.product-size-guide { flex-basis:100%; }
.product-colors { display:flex; align-items:center; gap:18px; }
.product-colors legend { float:left; margin:0; }
@media(min-width:961px) {
  .product--boutique .gallery { display:block; max-width:none; }
  .product--boutique .gallery__thumbs { display:none; }
  .product--boutique .gallery__track { display:block; overflow:visible; }
  .product--boutique .gallery__slide { width:100%; height:calc(100vh - var(--hdr) - 24px); min-height:420px; aspect-ratio:auto; }
  .product--boutique .product__info { position:sticky; top:calc(var(--hdr) + 24px); }
}
.product-size-head { display:grid; gap:6px; font-size:14px; }
.text-button { display:inline; width:fit-content; padding:0; border:0; background:none; color:var(--wine); font:inherit; font-size:14px; text-decoration:underline; text-underline-offset:4px; text-align:left; cursor:pointer; }
.product--boutique .sizes { margin-top:0; }
.product--boutique .size span { min-width:52px; min-height:44px; padding-inline:12px; }
.product--boutique .size--custom span { min-width:0; }
.size-table--panel { font-size:14px; }
.size-table--panel caption { padding-bottom:10px; }
.size-table--panel th, .size-table--panel td { padding:9px 12px; }
.size-table--panel td:first-child { white-space:nowrap; }
.buy__primary .btn { width:100%; min-height:52px; padding-inline:18px; font-size:12px; }
.measurement { width:100%; height:auto; background:#fff; }
.manufacture-form .field { display:grid; gap:8px; }
.manufacture-form input:not([type=checkbox]), .manufacture-form textarea { width:100%; min-height:46px; border:1px solid var(--line); background:transparent; padding:10px 12px; font:inherit; }
.manufacture-form .test-note { margin:0; font-size:14px; }
.product-recommendations { margin-top:clamp(48px,6vw,88px); }
.product-recommendations .novelties__header { padding-inline:0; }
.product-recommendations .section-title { min-width:0; text-align:center; font-size:clamp(22px,2vw,28px); }
.product-recommendations .slider { margin-inline:calc(-1 * var(--gutter)); }
.product-recommendations .pcard__img { object-fit:contain; }
.product-recommendations .pcard:hover .pcard__img:not(.pcard__img--alt):only-of-type { transform:none; }
@media(max-width:960px) {
  .product--boutique .product__grid { grid-template-columns:minmax(0,1fr); gap:32px; }
  .product--boutique .product__info { position:static; }
  .product--boutique .gallery { grid-template-columns:minmax(0,1fr); }
  .product--boutique .gallery__track { grid-column:1; grid-row:1; }
  .product--boutique .gallery__thumbs { grid-column:1; grid-row:2; display:flex; max-height:none; }
  .product--boutique .gallery__thumb { flex:0 0 56px; width:56px; }
  .product--boutique .product__name { font-size:28px; }
  .product__description { font-size:16px; }
  .ctools__filters { flex-wrap:wrap; }
}
@media(max-width:380px) { .facet-choices { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { .side-panel, .gallery__track { scroll-behavior:auto; } }
