.demo-banner { padding: .65rem 0; background: #fff1cb; color: #554520; font-size: .82rem; }
.store-main { padding-block: clamp(2rem,5vw,4rem) clamp(4rem,8vw,7rem); min-height: 65vh; }
.store-main:focus { outline:none; }
.store-page .product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; border:0; overflow:visible; scroll-snap-type:none; padding-bottom:0; background:transparent; }
.store-main h1 { max-width: none; font-size: clamp(2.15rem,4.4vw,4rem); }
.store-main h2 { font-size: clamp(1.5rem,2.6vw,2.2rem); }
.store-main h3 { font-size: 1.18rem; }
.breadcrumbs { display:flex; gap:.55rem; flex-wrap:wrap; margin-bottom:1.7rem; font-size:.85rem; color:var(--muted); }
.breadcrumbs a { text-decoration:underline; text-underline-offset:4px; }
.store-heading { display:flex; justify-content:space-between; gap:1rem; align-items:baseline; }
.store-heading > p { flex:none; padding:.4rem .8rem; border:1px solid var(--line); border-radius:30px; font-size:.85rem; }
.store-intro { max-width:640px; color:var(--muted); margin-bottom:2rem; }
.store-heading p { color:var(--muted); }
.store-toolbar { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr) minmax(0,1fr) auto; gap:1rem; margin:1.8rem 0; padding:1.3rem; border:1px solid var(--line); border-radius:20px; background:#fff; align-items:end; }
.store-toolbar .button { min-height:50px; }
.store-toolbar > a { grid-column:1/-1; justify-self:start; min-height:0; padding:0; font-size:.85rem; }
.store-toolbar input,.store-toolbar select { height:50px; }
.store-field { display:flex; flex-direction:column; gap:.45rem; min-width:0; font-size:.92rem; }
.store-field input, .store-field select, .store-field textarea { width:100%; min-height:48px; padding:.7rem .85rem; border:1px solid #a3b4bf; border-radius:12px; color:var(--ink); background:#fff; font:inherit; }
.store-field [aria-invalid="true"] { border-color:#ac244f; box-shadow:0 0 0 1px #ac244f; }
.field-error { display:block; color:#ac244f; font-size:.8rem; min-height:1em; }
.store-field small { color:var(--muted); }
.store-results { background:var(--paper); border-radius:var(--radius-md); }
.store-page .product-card { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:20px; background:#fff; padding:1.15rem; }
.store-page .product-card__image { display:grid; place-items:center; }
.product-card__image img { aspect-ratio:1; }
.store-page .product-card h3 { min-height:2.7em; line-height:1.3; margin-bottom:.65rem; overflow-wrap:anywhere; }
.product-card__buy strong { white-space:nowrap; font-variant-numeric:tabular-nums; }
.product-card__buy > div { gap:.5rem; flex-wrap:wrap; min-height:30px; }
.store-page .product-card__buy { margin-top:auto; }
.favorite[aria-pressed="true"] svg { fill:#fff; stroke:#fff; }
.favorite svg { width:22px; height:22px; flex:none; }
.button:disabled, button:disabled { opacity:.55; cursor:not-allowed; transform:none; }
.store-favorites-link { font-size:.85rem; padding:.6rem; }
.notice { padding:1rem 1.2rem; background:#e5eff5; border-radius:14px; margin:1rem 0; color:#274c67; font-size:.92rem; }
.notice--error { background:#ffedf0; color:#842340; }
.notice a { text-decoration:underline; }
.empty-state { padding:clamp(2rem,6vw,5rem); text-align:center; background:white; border:1px solid var(--line); border-radius:24px; }
.empty-state p { max-width:540px; margin-inline:auto; color:var(--muted); }
.store-loading { padding:3rem; text-align:center; color:var(--muted); }
.product-detail { display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(2rem,5vw,5rem); align-items:start; }
.product-detail__image { border-radius:30px; padding:2rem; background:#fff; position:sticky; top:1.5rem; border:1px solid var(--line); }
.product-detail__caption { text-align:center; color:var(--muted); font-size:.8rem; margin:1rem 0 0; }
.product-purchase { padding:1.5rem; border-radius:20px; background:#e7eff3; margin:1.5rem 0; }
.product-purchase .button-row { display:grid; grid-template-columns:1fr auto; gap:.65rem; }
.product-purchase .button { min-height:52px; }
.product-purchase > p { margin-bottom:1rem; }
.product-purchase small { color:var(--muted); }
.product-features { display:grid; gap:.5rem; color:var(--muted); }
.product-reading { display:flex; align-items:center; gap:1rem; padding:1.15rem; border:1px solid var(--line); border-radius:18px; margin-top:1.5rem; }
.product-reading img { width:72px; height:80px; border-radius:12px; object-fit:cover; flex:none; }
.product-reading small { display:block; color:var(--muted); margin-bottom:.25rem; }
.product-reading a { color:var(--navy); font-size:.92rem; }
.product-detail__image img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
.product-detail h1 { font-size:clamp(2rem,3.7vw,3.4rem); }
.product-detail__price { font-size:2rem; color:var(--navy); }
.product-detail__copy > p { color:var(--muted); }
.product-detail ul { padding-left:1.2rem; }
.product-detail details { border-bottom:1px solid var(--line); padding:1rem 0; }
.product-detail summary { cursor:pointer; font-weight:600; padding:.4rem 0; }
.product-detail details p { margin:.6rem 0 0; font-size:.9rem; }
.purchase-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(290px,.8fr); gap:2rem; align-items:start; }
.cart-list { display:grid; gap:1rem; }
.cart-line { display:grid; grid-template-columns:100px 1fr auto; gap:1.2rem; padding:1.25rem; background:#fff; border:1px solid var(--line); border-radius:20px; align-items:center; }
.cart-line img { width:100%; height:110px; object-fit:contain; }
.cart-line h2 { margin:0 0 .5rem; font-size:1.2rem; }
.cart-line p { margin:.3rem 0; color:var(--muted); font-size:.85rem; }
.cart-line__controls { display:grid; gap:.7rem; justify-items:end; }
.cart-line > div { min-width:0; }
.cart-line h2 { overflow-wrap:anywhere; line-height:1.3; }
.quantity { flex:none; }
.quantity output { font-variant-numeric:tabular-nums; }
.quantity { display:flex; align-items:center; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.quantity button { width:44px; height:44px; border:0; background:#f0f5f8; cursor:pointer; color:var(--navy); font-size:1.2rem; }
.quantity output { min-width:36px; text-align:center; }
.remove-item { border:0; background:transparent; text-decoration:underline; color:var(--muted); min-height:44px; cursor:pointer; font-size:.8rem; }
.order-summary { background:#fff; border:1px solid var(--line); border-radius:24px; padding:1.6rem; position:sticky; top:1.5rem; }
.order-summary dl { margin:0 0 1.5rem; }
.order-summary dl div { display:flex; justify-content:space-between; gap:1rem; padding:.5rem 0; }
.order-summary dd { margin:0; text-align:right; }
.order-summary .total { margin-top:.65rem; padding-top:1rem; border-top:1px solid var(--line); font-weight:700; color:var(--navy); font-size:1.25rem; }
.order-summary .button { width:100%; }
.order-summary small { display:block; margin-top:1rem; color:var(--muted); }
.checkout-form > fieldset { min-width:0; margin:0; padding:0; border:0; }
.checkout-section { background:white; border:1px solid var(--line); border-radius:24px; padding:clamp(1.2rem,3vw,2rem); margin-bottom:1.1rem; }
.checkout-section h2 { margin-bottom:1.3rem; font-size:1.45rem; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form-grid .wide { grid-column:1/-1; }
.delivery-choice { display:flex; align-items:flex-start; gap:.7rem; padding:1rem; margin:.6rem 0; border:1px solid var(--line); border-radius:12px; cursor:pointer; }
.delivery-choice:has(input:checked) { border-color:var(--navy); background:#edf5fb; }
.delivery-choice input { width:20px; height:20px; flex:none; accent-color:var(--navy); margin-top:4px; }
.consent { display:flex; gap:.7rem; font-size:.88rem; margin-top:1.4rem; }
.consent input { width:20px; height:20px; flex:none; accent-color:var(--navy); }
.checkout-submit { width:100%; margin-top:1rem; }
.button[data-favorite][aria-pressed="true"] { color:var(--coral); border-color:var(--coral); }
.checkout-error:empty { display:none; }
#calculate { min-width:250px; }
#load-points { width:100%; min-height:52px; margin-top:.5rem; }
.order-success { max-width:780px; margin:auto; }
.success-mark { width:76px; height:76px; display:grid; place-items:center; border-radius:50%; background:#dcebdd; color:#345e3d; font-size:2rem; margin:0 auto 1.5rem; }
.store-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:2rem; }
.store-footer p { margin:0; }
.store-toast { position:fixed; bottom:1.2rem; left:50%; transform:translate(-50%,30px); opacity:0; pointer-events:none; z-index:100; max-width:min(520px,calc(100vw - 2rem)); width:max-content; padding:.9rem 1.3rem; border-radius:14px; background:#173b59; color:white; box-shadow:var(--shadow); transition:opacity .2s,transform .2s; font-size:.9rem; }
.store-toast.is-visible { opacity:1; transform:translate(-50%,0); }
.store-toast.is-error { background:#842340; }
@media(max-width:1100px) { .store-page .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .purchase-layout { grid-template-columns:minmax(0,1.3fr) minmax(260px,.85fr); gap:1rem; } .cart-line { grid-template-columns:80px 1fr; } .cart-line__controls { grid-column:2; justify-items:start; } .store-toolbar { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) auto; gap:.65rem; } .store-page .product-card__buy > div { align-items:start; flex-direction:column; } }
@media(max-width:850px) { .store-page .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .store-toolbar { grid-template-columns:1fr 1fr; } .store-toolbar label:first-child,.store-toolbar > button { grid-column:1/-1; } .product-detail { gap:1.5rem; } }
@media(max-width:700px) { .store-toolbar,.product-detail,.purchase-layout { grid-template-columns:1fr; } .store-toolbar { gap:.75rem; } .store-toolbar label:first-child { grid-column:auto; } .order-summary { position:static; } .form-grid { grid-template-columns:1fr; } .store-heading { display:block; } .store-page .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .store-page .product-card { padding:.8rem; } .store-page .product-card h3 { font-size:1rem; min-height:3.3em; } .store-page .product-card ul { font-size:.76rem; padding-left:.9rem; } .store-page .product-card__buy > div { align-items:start; flex-direction:column; gap:.3rem; } .store-page .product-card__image { height:auto; aspect-ratio:1; } .store-page .product-photo { max-height:100%; } .store-page .product-card .button { font-size:.86rem; padding:.6rem; min-height:48px; } .store-page .product-meta { font-size:.65rem; margin-top:1rem; } .demo-banner { font-size:.75rem; } .store-page .header-main { gap:.5rem; } .store-page .logo img { width:120px; } .store-favorites-link { font-size:.75rem; padding:.3rem; } .store-page .header-actions { margin-left:auto; } .store-page .favorite { width:38px; height:38px; right:.55rem; top:.55rem; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; animation:none!important; } }
@media(max-width:700px) { .purchase-layout:has(.checkout-form) .order-summary { grid-row:1; } }
/* Keep paired controls and their buttons stable at narrow/intermediate widths. */
@media(max-width:700px) {
  .store-toolbar { grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding:1rem; }
  .store-toolbar label:first-child { grid-column:1/-1; }
  .store-toolbar label { font-size:.8rem; }
  .store-toolbar select { font-size:.82rem; padding-inline:.55rem; }
  .store-page .product-grid { gap:.65rem; }
  .store-page .product-card { padding:.7rem; border-radius:16px; }
  .store-page .product-meta { margin-top:0; font-size:.64rem; }
  .store-page .product-card h3 { min-height:3.9em; line-height:1.3; }
  .store-page .product-card ul { display:none; }
  .store-page .product-card__buy > div { gap:.25rem; }
  .product-detail__image { position:static; padding:1.25rem; }
  .product-purchase { padding:1.1rem; }
  .product-purchase .button-row { grid-template-columns:1fr; }
  .store-heading > p { display:inline-block; margin-bottom:1rem; }
  .store-main h1 { font-size:clamp(2rem,7.8vw,3rem); }
  .store-intro { font-size:.94rem; margin-bottom:1.5rem; }
  #calculate { min-width:0; width:100%; }
}
@media(hover:none) { .task-card:hover { transform:none; } }
