/* YASUK shop views: product grid, product page, cart, checkout, dialogs. */
@font-face { font-family: 'Aref Ruqaa'; src: url(fonts/aref-ruqaa.woff2) format('woff2'); font-weight: 700; font-display: swap; }

/* Necklace configurator */
.cfg { margin-bottom: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.cfg-title { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-size: 1.05rem; font-weight: 700; }
.cfg-title span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .8rem; }
.cfg-label { display: block; margin-bottom: .55rem; font-size: .8rem; font-weight: 600; letter-spacing: .03em; }
.cfg-colors { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.cfg-color { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; border: 1px solid var(--line); font-size: .92rem; font-weight: 600; text-decoration: none; }
.cfg-color:hover { border-color: var(--ink); }
.cfg-color[aria-current='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cfg-color i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px #0002; }
.cfg-help { margin-top: .5rem; color: var(--muted); font-size: .85rem; }
.cfg-preview { display: grid; place-items: center; min-height: 128px; margin-top: .8rem; padding: 1rem; background: var(--mist); font-family: 'Aref Ruqaa', serif; font-size: clamp(3rem, 6vw, 4rem); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; text-align: center; }
.cfg-preview bdi { background-clip: text; -webkit-background-clip: text; color: transparent; }
.cfg-preview.is-gold bdi { background-image: linear-gradient(180deg, #e8cd86, #b98a33 70%, #d9b562); }
.cfg-preview.is-silver bdi { background-image: linear-gradient(180deg, #d9dbdf, #85888e 70%, #b6b9be); }
.cfg-preview.is-empty { opacity: .4; }


/* Product grid: edge to edge, photo fills the cell */
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.product-card { position: relative; min-width: 0; }
.product-link { display: block; text-decoration: none; }
.product-img-wrapper { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.product-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.product-img-alt { opacity: 0; }
.product-link:hover .product-img-alt, .product-link:focus-visible .product-img-alt { opacity: 1; }
.product-badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; font-size: .75rem; font-weight: 600; }
.product-media { position: relative; overflow: hidden; }
.product-meta { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem clamp(.75rem, 1.4vw, 1.25rem) 1.5rem; text-decoration: none; }
.product-meta-main { display: grid; gap: .15rem; min-width: 0; }
.product-meta small { color: var(--muted); font-size: .8rem; }
.dots { display: flex; gap: 4px; margin-top: .3rem; }
.dots i { width: 12px; height: 12px; border: 1px solid #0003; }

/* Wishlist heart */
.wish { position: absolute; top: .4rem; right: .4rem; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.wish svg { fill: none; }
.wish[aria-pressed='true'] { color: var(--accent); }
.wish[aria-pressed='true'] svg { fill: currentColor; }

/* Quick add: slides up on hover, or from the plus button on touch */
.quick { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: .7rem; background: rgba(255, 255, 255, .96); transform: translateY(101%); visibility: hidden; transition: transform .18s ease-out, visibility .18s; }
.quick > span { display: block; margin-bottom: .4rem; font-size: .72rem; font-weight: 700; }
.quick-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)); gap: 3px; }
.quick-sizes button { min-height: 38px; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; cursor: pointer; }
.quick-sizes button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.quick-sizes button:disabled { color: #a5a5ab; cursor: not-allowed; text-decoration: line-through; }
.quick-toggle { position: absolute; right: .5rem; bottom: .5rem; z-index: 3; display: none; width: 38px; height: 38px; background: rgba(255, 255, 255, .92); color: var(--ink); border: 0; border-radius: 50%; font-size: 1.4rem; font-weight: 400; line-height: 1; cursor: pointer; }
@media (hover: hover) { .product-card > .wish { opacity: 0; transition: opacity .15s; } .product-card:hover > .wish, .product-card > .wish:focus-visible, .product-card > .wish[aria-pressed='true'] { opacity: 1; } .product-media:hover .quick, .product-media:focus-within .quick { transform: none; visibility: visible; } }
@media (hover: none) {
  .quick-toggle { display: block; }
  .quick-open .quick { transform: none; visibility: visible; }
  .quick-open .quick-toggle { font-size: 0; }
  .quick-open .quick-toggle::before { content: '×'; font-size: 1.5rem; }
}

/* Product rails on top of Swiper */
.rail-section { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 0 var(--gutter) 1.25rem; }
.rail-head h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.rail { position: relative; }
.rail-btn { position: absolute; top: 38%; z-index: 4; width: 44px; height: 44px; background: var(--paper); color: var(--ink); border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.rail-btn:hover { background: var(--line); }
.rail-prev { left: 0; }
.rail-next { right: 0; }
.rail-btn.swiper-button-disabled, .rail-btn.swiper-button-lock { display: none; }
@media (hover: none) { .rail-btn { display: none; } }

/* Category rail */
.cats { padding: 3px 0 0; }
.cat-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 3px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat { display: block; scroll-snap-align: start; text-decoration: none; }
.cat-img { display: block; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.cat:hover img { transform: scale(1.05); }
.cat-name { display: block; padding: .6rem clamp(.75rem, 1.4vw, 1.25rem) 0; font-size: .92rem; font-weight: 600; }

/* Express pay */
.paypal-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: .5rem; background: #ffc439; border: 0; font-size: 1.3rem; font-weight: 700; font-style: italic; letter-spacing: -.02em; cursor: pointer; transition: filter .15s; }
.paypal-btn:hover { filter: brightness(.95); }
.pp-a { color: #003087; }
.pp-b { color: #0070e0; }
.drawer-foot .paypal-btn { margin-bottom: .55rem; }
.summary .paypal-btn { margin-bottom: .55rem; }
.express { margin-bottom: 2rem; }
.express p { font-size: .85rem; font-weight: 700; }
.express .or { display: block; margin-top: 1rem; color: var(--muted); font-size: .85rem; text-align: center; }

/* Buy box additions */
.buy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
.buy-row .wish { position: static; width: 58px; height: 58px; background: var(--paper); border: 1px solid var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: .4rem; }
.swatch { display: block; width: 64px; border: 1px solid var(--line); }
.swatch:hover { border-color: var(--ink); }
.swatch[aria-current='true'] { outline: 2px solid var(--ink); outline-offset: 1px; }
.swatch img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--stone); }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem var(--gutter); background: var(--paper); border-top: 1px solid var(--line); }
.buy-bar span { display: grid; min-width: 0; }
.buy-bar strong { overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.buy-bar small { font-weight: 700; }
.buy-bar .btn { flex: none; }

/* Cart upsell */
.upsell { padding: 1.25rem 0; }
.upsell h3 { margin-bottom: .6rem; font-size: .8rem; font-weight: 700; }
.upsell-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: .75rem; align-items: center; padding: .4rem 0; text-decoration: none; }
.upsell-item img { width: 56px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--stone); }
.upsell-item span { display: grid; }
.upsell-item strong { font-size: .85rem; }
.upsell-item:hover strong { color: var(--accent); }

.product-card h3 { font-size: .95rem; font-weight: 600; line-height: 1.25; }
.product-price { flex: none; font-size: .95rem; font-weight: 500; }
.price-old { margin-right: .3rem; color: var(--muted); font-weight: 400; text-decoration: line-through; }
.price-new { color: #b3121d; font-weight: 600; }

/* Page shell */
.page { padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem); min-height: 70vh; }
.page h1 { margin-bottom: 1.25rem; font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; overflow-wrap: anywhere; }
#viewPage h1:focus { outline: none; }
.page-lead { color: var(--muted); margin-bottom: 2.5rem; }
.input, .page select, .page input[type='text'], .page input[type='email'], .page input[type='password'], .page input[type='search'] {
    width: 100%; min-height: 50px; padding: .7rem 1rem; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
}
.input:focus, .page select:focus, .page input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
[aria-invalid='true'] { border-color: #c5121f !important; }
.text-btn { padding: 0; background: none; border: 0; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.field { display: grid; gap: .35rem; font-size: .8rem; font-weight: 700; }
.field .input, .field select, .field input { font-weight: 400; text-transform: none; }
.field-error { color: #c5121f; font-size: .85rem; font-weight: 600; text-transform: none; }
.field-error:empty { display: none; }

/* Shop list */
.shop-head { padding: clamp(2rem, 5vw, 4rem) var(--gutter) 1.5rem; }
.shop-head h1 { margin-bottom: 1.25rem; font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px) minmax(0, 240px); gap: 1rem; align-items: end; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { min-height: 42px; padding: 0 1.05rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .88rem; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.toolbar input, .toolbar select { width: 100%; min-height: 42px; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.result-count { padding: 1rem var(--gutter) .75rem; font-size: .82rem; font-weight: 700; }
.empty { display: grid; gap: 1.25rem; justify-items: start; padding: 2rem 0; }
.shop-empty { padding: 2rem var(--gutter) 5rem; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.shot { display: block; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.buy-wrap { position: sticky; top: calc(var(--nav-h) + 1.5rem); padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 4.5rem); }
.crumbs { margin-bottom: 1.5rem; color: var(--muted); font-size: .8rem; }
.buy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.buy h1 { margin: 0; font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.buy-price { flex: none; font-size: 1.15rem; font-weight: 600; }
.buy-tax { margin: .35rem 0 1.25rem; color: var(--muted); font-size: .8rem; text-align: right; }
.buy-stock { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; color: #0c7a3d; font-size: .8rem; font-weight: 700; }
.buy-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.buy-text { margin-bottom: 1.5rem; color: #33333a; }
.opt { margin-bottom: 1.1rem; border: 0; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; font-size: .85rem; font-weight: 700; }
.size-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: .45rem; }
.size { position: relative; display: block; }
.size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size span:not(.visually-hidden) { position: relative; display: grid; place-items: center; min-height: 50px; padding: .25rem; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; overflow: hidden; }
.size input:hover:not(:disabled) + span { border-color: var(--ink); }
.size input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.size input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.size input:disabled { cursor: not-allowed; }
.size input:disabled + span { color: #8d8d93; background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)); }
.wide { width: 100%; }
.buy-cta { min-height: 56px; font-size: 1rem; }
.buy-note { margin: .9rem 0 1.5rem; color: var(--muted); font-size: .85rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: -.5rem 0 1.5rem; }
.share-label { color: var(--muted); font-size: .85rem; }
.share-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.share-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
.share-btn:hover { border-color: var(--ink); }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-whatsapp { color: #25d366; } .share-telegram { color: #26a5e4; } .share-facebook { color: #0866ff; } .share-pinterest { color: #bd081c; }
.share-done { color: #0c7a3d; font-size: .8rem; font-weight: 600; }
.buy details, .prose details { border-top: 1px solid var(--line); }
.buy details:last-of-type { border-bottom: 1px solid var(--line); }
summary { padding: 1rem 0; font-size: .85rem; font-weight: 700; cursor: pointer; }
details > :not(summary) { margin-bottom: 1rem; color: #33333a; font-size: .92rem; }
.spec-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: .75rem; padding: .25rem 0; }
.spec-list dt { font-weight: 700; }

/* Tables */
.data-table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.data-table th { font-weight: 700; }

/* Dialogs */
dialog { border: 0; padding: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.modal { width: min(560px, calc(100% - 2rem)); margin: auto; padding: 1.75rem; }
.search-modal { margin-top: 10vh; }
.modal p { margin-bottom: 1rem; }
.modal-head, .drawer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.modal-head { margin-bottom: 1rem; }
.modal-head h2, .drawer-head h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 1.5rem; }
.drawer { width: min(460px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; }
.drawer[open] { display: flex; flex-direction: column; animation: drawerIn .22s ease-out; }
@keyframes drawerIn { from { transform: translateX(40px); } }
.drawer-head { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer-items { flex: 1; overflow: auto; padding: 0 1.5rem; }
.drawer-foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; }
.drawer-foot .text-btn { display: block; width: fit-content; margin: .9rem auto 0; }
.free-note { margin-bottom: .6rem; font-size: .85rem; font-weight: 700; }
.free-bar { display: block; height: 6px; margin-bottom: .9rem; background: var(--mist); }
.free-bar i { display: block; height: 100%; background: var(--ink); transition: width .25s; }
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: #000; color: var(--paper); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox .text-btn { align-self: flex-end; padding: 1rem 1.25rem; color: var(--paper); }
.lightbox img { flex: 1; width: 100%; min-height: 0; object-fit: contain; }
.search-hit { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-hit:hover strong { color: var(--accent); }
#searchResults { margin-top: 1rem; }
#searchResults p { margin: 0; }

/* Cart lines */
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--stone); }
.line-body { display: grid; gap: .2rem; justify-items: start; align-content: start; }
.line-body a { font-size: .9rem; font-weight: 700; text-decoration: none; }
.line-body small { color: var(--muted); font-size: .85rem; }
.line-price { font-weight: 700; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; margin: .4rem 0; border: 1px solid var(--ink); }
.qty button { width: 36px; height: 36px; background: none; border: 0; font-size: 1.05rem; cursor: pointer; }
.qty button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.qty button:disabled { color: #a5a5ab; cursor: not-allowed; }
.qty output { min-width: 26px; font-size: .9rem; font-weight: 700; text-align: center; }
.sum { margin-top: .5rem; }
.sum div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; font-size: .92rem; }
.sum .sum-total { padding-top: .6rem; font-size: 1.2rem; font-weight: 700; }
.vat { margin-bottom: 1rem; color: var(--muted); font-size: .8rem; text-align: right; }
.code-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: end; margin: 1rem 0; }
.code-form .field-error { grid-column: 1 / -1; }
.code-on { margin: 1rem 0; font-size: .9rem; }

/* Cart and checkout pages */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.summary { position: sticky; top: calc(var(--nav-h) + 1.5rem); padding: 1.5rem; background: var(--mist); }
.summary h2 { margin-bottom: .5rem; font-size: 1.05rem; font-weight: 700; }
.summary .line { grid-template-columns: 56px minmax(0, 1fr) auto; padding: .8rem 0; border-color: #d3d3d6; }
.summary .line img { width: 56px; }
.container .rail-section { margin-inline: calc(var(--gutter) * -1); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin-bottom: 2.5rem; list-style: none; counter-reset: step; font-size: .82rem; font-weight: 500; }
.steps li { padding: .55rem .4rem; background: var(--mist); color: var(--muted); counter-increment: step; overflow-wrap: anywhere; }
.steps li::before { content: counter(step) '. '; }
.steps .is-current { background: var(--ink); color: var(--paper); }
.steps .is-done { background: var(--line); color: var(--ink); }
.checkout-form fieldset { display: grid; gap: 1rem; border: 0; }
.checkout-form legend { margin-bottom: 1.25rem; font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row-zip { grid-template-columns: 130px minmax(0, 1fr); }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input, .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.choice span { display: grid; }
.choice strong { font-weight: 700; }
.choice small { color: var(--muted); font-size: .85rem; }
.choice em { font-style: normal; font-weight: 700; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; margin-top: 1rem; font-size: .92rem; }
.check input { margin-top: 3px; }
.step-nav { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.review div { padding: .4rem 0; }

/* Text pages */
.prose { max-width: 72ch; }
.prose h2 { margin: 2.25rem 0 .75rem; font-size: 1.25rem; font-weight: 700; }
.prose p, .prose li { margin-bottom: .9rem; }
.prose ul { padding-left: 1.2rem; }
.draft-note { padding: .9rem 1rem; background: var(--mist); border-left: 3px solid var(--ink); }
.login-form { display: grid; gap: 1rem; max-width: 420px; margin-top: 1.5rem; }

@media (max-width: 980px) {
    .pdp, .split { grid-template-columns: minmax(0, 1fr); }
    .buy-wrap, .summary { position: static; }
    .split .summary { order: 1; }
    .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .gallery::-webkit-scrollbar { display: none; }
    .shot { flex: 0 0 86%; scroll-snap-align: start; }
    .toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .chips { grid-column: 1 / -1; }
}
@media (min-width: 981px) { .buy-bar { display: none; } }
@media (hover: none) {
    /* Size picker fills the photo, so nothing behind it competes for the tap. */
    .quick { top: 0; display: grid; align-content: center; gap: .35rem; padding: .75rem; background: rgba(255, 255, 255, .97); }
    .quick > span { text-align: center; }
    .quick-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quick-sizes button { min-height: 44px; }
    .product-card:has(.quick-open) .wish, .product-card:has(.quick-open) .product-badge { visibility: hidden; }
}
@media (max-width: 860px) {
    .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .collection-grid .product-card:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
    .product-meta { flex-direction: column; gap: .15rem; padding-bottom: 1.1rem; }
    .row, .code-form { grid-template-columns: minmax(0, 1fr); }
    .row-zip { grid-template-columns: 110px minmax(0, 1fr); }
    .toolbar { grid-template-columns: minmax(0, 1fr); }
    .steps li::before { display: block; }
    .shop-head { padding-top: 1.5rem; padding-bottom: .75rem; }
    .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .chips { flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: none; min-height: 44px; }
    .toolbar .field { font-size: .7rem; }
    .result-count { padding-top: .35rem; }
    .rail-head { flex-direction: column; align-items: flex-start; gap: .35rem; }
    .size-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .buy-cta { padding-inline: .5rem; font-size: .9rem; letter-spacing: .01em; }
    .buy-bar { padding-bottom: calc(.6rem + env(safe-area-inset-bottom)); }
    .step-nav .btn { flex: 1; }
    .qty button { width: 44px; height: 44px; }
    .text-btn { padding-block: .35rem; }
    body[data-route='produkte'] { padding-bottom: 74px; }
}
