.shop-product-layout,.shop-checkout-grid { display:grid; gap:clamp(1rem,3vw,2.5rem); align-items:start; }
.shop-product-layout { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
.shop-checkout-grid { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); margin:1.5rem 0; }
.shop-product-visual { background:var(--panel); border-radius:.75rem; overflow:hidden; }
.shop-product-visual img { display:block; width:100%; aspect-ratio:4/3; object-fit:contain; }
.shop-product-visual img[hidden] { display:none; }
.shop-product-price { color:var(--yellow); font-size:clamp(1.35rem,3vw,2rem); font-weight:700; margin:.75rem 0 1.25rem; }
.shop-product-form { max-width:31rem; }
.shop-product-buy { display:grid; grid-template-columns:6rem auto; align-items:end; gap:1rem; }
.shop-product-buy button:disabled { opacity:.55; cursor:not-allowed; }
.shop-product-description { margin:2rem 0; max-width:47rem; }
.shop-basket-lines { display:grid; gap:.75rem; margin:0; padding:0; list-style:none; }
.shop-basket-line { display:grid; grid-template-columns:3.5rem minmax(0,1fr) auto; gap:.75rem; align-items:start; padding:.75rem 0; border-bottom:1px solid var(--line); }
.shop-basket-line :is(img,.shop-line-placeholder) { display:block; width:100%; aspect-ratio:1; height:auto; object-fit:cover; border-radius:.35rem; background:var(--bg); }
.shop-basket-line a { overflow-wrap:anywhere; }
.shop-line-detail { display:block; color:var(--muted); font-size:.9rem; }
.shop-line-price { white-space:nowrap; }
.shop-remove { background:none; color:var(--muted); padding:.15rem 0; border:0; font-size:.9rem; text-align:left; }
.shop-remove:hover { color:var(--yellow); }
.shop-order-totals { margin:1rem 0; }
.shop-order-totals div { display:flex; justify-content:space-between; gap:1rem; }
.shop-order-totals dd { margin:0; }
.shop-order-total { border-top:1px solid var(--line); margin-top:.5rem; padding-top:.5rem; font-weight:700; }
.shop-summary .btn { width:100%; text-align:center; }
.shop-checkout-options,.shop-account-link { display:block; margin-top:1rem; }
.shop-store a,.shop-mini-basket a,.shop-admin a,.shop-admin td a { text-decoration:none; }
.shop-checkout-options a,.shop-account-link,.shop-secondary-link { color:var(--yellow); font-weight:700; }
.shop-secondary-link { justify-self:start; font-size:.875rem; }
.shop-existing-account { margin:0 0 .8rem; }
:is(.shop-store,.shop-admin) .stack :is(select,input:not([type="checkbox"],[type="radio"],[type="file"],[type="hidden"])) {
    box-sizing:border-box;
    height:52px;
    min-height:52px;
    line-height:1.4;
}
.shop-checkout-options a+a { margin-left:1rem; }
.shop-delivery-fields { display:grid; grid-template-columns:1fr 1fr; gap:1rem; min-width:0; border:0; padding:0; }
.shop-delivery-fields legend { font-weight:bold; padding:0; margin-bottom:.5rem; }
.shop-field-wide { grid-column:1/-1; }
.shop-mini-basket { position:relative; flex-shrink:0; }
.shop-mini-basket summary { cursor:pointer; list-style:none; font-weight:700; }
.shop-mini-basket summary::-webkit-details-marker { display:none; }
.shop-mini-basket summary::after { content:" ▾"; }
.shop-mini-basket[open] summary::after { content:" ▴"; }
.shop-mini-panel { position:absolute; z-index:12; top:calc(100% + .75rem); right:0; width:min(24rem, calc(100vw - 2rem)); max-height:70vh; overflow:auto; padding:1rem; background:var(--panel); border:1px solid var(--line); border-radius:.55rem; box-shadow:0 .65rem 2rem #0008; }
.shop-mini-actions { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.5rem; }
#shop-stripe-payment:not(:empty) { margin-top:1rem; background:white; border-radius:.65rem; overflow:hidden; }
@media (min-width:851px) and (max-width:1100px) {
    .header .nav:has(.shop-mini-basket) .navlinks { gap:.75rem; }
    .header .nav:has(.shop-mini-basket) .logo { font-size:1.7rem; }
}
@media (max-width:850px) {
    .header .nav:has(.shop-mini-basket) { column-gap:.65rem; }
    .header .nav:has(.shop-mini-basket) .logo { font-size:clamp(1rem,5vw,1.75rem); margin-right:auto; }
    .shop-mini-panel { position:static; width:100%; max-height:45vh; margin-top:.5rem; }
}
@media (max-width:700px) {
    .shop-product-layout,.shop-checkout-grid { grid-template-columns:1fr; }
    .shop-basket-line { grid-template-columns:2.75rem minmax(0,1fr) auto; gap:.5rem; }
}
@media (max-width:420px) { .shop-delivery-fields { grid-template-columns:1fr; } }
