@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root { --shop-ink:#161616; --shop-red:#e30613; --shop-red-dark:#b30510; --shop-paper:#f5f1eb; --shop-card:#fffdfa; --shop-muted:#6c6862; --shop-line:#ddd7ce; }
body.shop-page { min-height:100vh; margin:0; color:var(--shop-ink); background:var(--shop-paper); font-family:'DM Sans',sans-serif; }
.shop-page h1,.shop-page h2,.shop-page h3 { font-family:'Bricolage Grotesque',sans-serif; letter-spacing:-.035em; }
.shop-page button,.shop-page input,.shop-page select,.shop-page textarea { font:inherit; }
.shop-page button { cursor:pointer; }
.shop-page .site-nav .cart-button { display:inline-flex; align-items:center; gap:.6rem; color:#fff; background:var(--shop-red); border:1px solid var(--shop-red); border-radius:7px; padding:.68rem .85rem; font-weight:700; }
.shop-page .site-nav .cart-button:hover { background:var(--shop-red-dark); border-color:var(--shop-red-dark); }
.cart-count { display:grid; place-items:center; min-width:1.4rem; height:1.4rem; padding:0 .25rem; border-radius:50%; color:var(--shop-red); background:#fff; font-size:.78rem; }
.shop-main { max-width:1240px; margin:0 auto; padding:clamp(3rem,7vw,6.5rem) 1rem clamp(4rem,8vw,8rem); }
.shop-intro { display:flex; justify-content:space-between; align-items:end; gap:3rem; padding-bottom:clamp(2.5rem,5vw,4.5rem); border-bottom:1px solid var(--shop-line); }
.shop-intro-copy { max-width:780px; }
.shop-kicker,.toolbar-kicker,.dialog-kicker { margin:0 0 .8rem; color:var(--shop-red-dark); font-size:.75rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.shop-intro h1 { max-width:11ch; margin:0; font-size:clamp(3rem,7vw,6.7rem); line-height:.92; font-weight:800; }
.shop-intro h1 em { color:var(--shop-red); font-style:normal; }
.shop-lede { max-width:39rem; margin:1.8rem 0 0; color:var(--shop-muted); font-size:1.05rem; }
.shop-note { min-width:155px; padding-left:1.25rem; border-left:3px solid var(--shop-red); }
.shop-note strong,.shop-note span { display:block; }
.shop-note strong { font-family:'Bricolage Grotesque',sans-serif; font-size:2.2rem; line-height:1; }
.shop-note span { margin-top:.5rem; color:var(--shop-muted); font-size:.85rem; }
.shop-toolbar { display:flex; align-items:end; justify-content:space-between; gap:2rem; padding:2.1rem 0 1.4rem; }
.category-filters { display:flex; flex-wrap:wrap; gap:.55rem; margin-bottom:1.5rem; }
.category-filter { border:1px solid var(--shop-line); border-radius:999px; padding:.55rem 1rem; color:var(--shop-muted); background:transparent; font-size:.82rem; font-weight:700; }
.category-filter:hover,.category-filter.is-active { border-color:var(--shop-red); color:#fff; background:var(--shop-red); }
.toolbar-kicker { margin-bottom:.25rem; color:var(--shop-muted); font-size:.7rem; }
.toolbar-count { margin:0; font-family:'Bricolage Grotesque',sans-serif; font-size:1.35rem; font-weight:700; }
.search-control { display:grid; gap:.35rem; width:min(100%,20rem); color:var(--shop-muted); font-size:.78rem; font-weight:700; }
.search-control input { width:100%; padding:.75rem .9rem; border:1px solid var(--shop-line); border-radius:6px; color:var(--shop-ink); background:var(--shop-card); outline:none; }
.search-control input:focus { border-color:var(--shop-red); box-shadow:0 0 0 3px rgba(227,6,19,.12); }
.shop-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1.25rem; align-items:stretch; }
.product { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--shop-line); border-radius:8px; background:var(--shop-card); transition:transform .2s,box-shadow .2s; }
.product:hover { transform:translateY(-4px); box-shadow:0 18px 36px rgba(33,25,15,.12); }
.product-category { position:absolute; z-index:1; margin:.8rem; padding:.3rem .55rem; border-radius:999px; color:var(--shop-red-dark); background:rgba(255,253,250,.9); font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.product { position:relative; }
.product img,.product-placeholder { display:block; width:100%; aspect-ratio:1 / 1; object-fit:cover; margin:0 auto; background:#e7e0d6; }
.product-placeholder { display:grid; place-items:center; padding:1rem; color:#857d73; text-align:center; font-size:.85rem; font-weight:700; }
.product-body { display:flex; flex:1; flex-direction:column; padding:1.1rem; }
.product h2 { min-height:2.4rem; margin:0; font-size:1.2rem; line-height:1.05; }
.product p { min-height:4.3rem; margin:.7rem 0 0; color:var(--shop-muted); font-size:.88rem; line-height:1.45; }
.price { margin:1rem 0 .8rem; font-family:'Bricolage Grotesque',sans-serif; font-size:1.25rem; font-weight:700; }
.product-controls { display:grid; grid-template-columns:1fr auto; gap:.5rem; align-items:end; margin-top:auto; }
.product-controls select,.dialog input,.dialog textarea { width:100%; padding:.68rem .7rem; border:1px solid var(--shop-line); border-radius:5px; color:var(--shop-ink); background:#fff; outline:none; }
.product-controls select:focus,.dialog input:focus,.dialog textarea:focus { border-color:var(--shop-red); box-shadow:0 0 0 3px rgba(227,6,19,.1); }
.primary { border:0; border-radius:5px; padding:.72rem .9rem; color:#fff; background:var(--shop-red); font-weight:700; white-space:nowrap; }
.primary:hover { background:var(--shop-red-dark); }
.message { position:fixed; z-index:1100; right:1rem; bottom:1rem; width:min(calc(100% - 2rem),420px); margin:0; padding:1rem 1.1rem; border:1px solid #b8dfc0; border-left:4px solid #15803d; border-radius:8px; color:#166534; background:#eaf7ed; box-shadow:0 12px 30px rgba(33,25,15,.16); }
.message.info { border-color:#b9d4eb; border-left-color:#1769aa; color:#124c7d; background:#edf6fd; }
.message.error { border-color:#efb9b9; border-left-color:var(--shop-red); color:#8d1018; background:#fff0f0; }
.empty { grid-column:1/-1; padding:3rem 0; color:var(--shop-muted); }
.dialog { width:min(100% - 2rem,680px); max-height:90vh; overflow:auto; border:0; border-radius:8px; padding:0; box-shadow:0 25px 80px rgba(0,0,0,.25); }
.dialog::backdrop { background:rgba(22,22,22,.62); }
.dialog-inner { padding:clamp(1.25rem,4vw,2.25rem); }
.dialog-header { display:flex; justify-content:space-between; align-items:start; gap:1rem; margin-bottom:1.5rem; }
.dialog-header h2 { margin:0; font-size:clamp(1.7rem,4vw,2.4rem); }
.close { border:0; color:var(--shop-muted); background:transparent; font-size:2rem; line-height:.8; }
.cart-row { display:grid; grid-template-columns:1fr 5rem 5rem auto; align-items:center; gap:.75rem; padding:1rem 0; border-bottom:1px solid var(--shop-line); }
.cart-row small { display:block; color:var(--shop-muted); }
.remove { border:0; color:var(--shop-red-dark); background:transparent; font-size:.85rem; }
.total { display:flex; justify-content:space-between; padding:1.2rem 0; font-size:1.1rem; font-weight:700; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field-full { grid-column:1/-1; }
.form-grid label { display:grid; gap:.4rem; color:var(--shop-ink); font-size:.85rem; font-weight:700; }
.consent { display:flex!important; align-items:start; gap:.6rem!important; font-weight:400!important; }
.consent input { width:auto; margin-top:.2rem; }
.note { margin:-.5rem 0 1.5rem; color:var(--shop-muted); font-size:.88rem; }
.receipt { text-align:center; }
.receipt .dialog-header { text-align:left; }
.receipt-summary { display:flex; justify-content:space-between; gap:1rem; margin:1rem 0; font-size:1.05rem; }
.receipt-qr { display:block; width:220px; height:220px; margin:1.5rem auto 1rem; border:8px solid #fff; box-shadow:0 4px 18px rgba(0,0,0,.12); }
.receipt-code { color:var(--shop-muted); font-size:.85rem; }
.footer-address { margin-top:.85rem; line-height:1.5; }
.shop-page .site-footer { margin-top:0; }
@media (max-width:991px) { .shop-page .site-nav .cart-button { width:100%; justify-content:space-between; } }
@media (max-width:700px) { .shop-main { padding-top:2.8rem; } .shop-intro { display:block; } .shop-note { margin-top:2rem; } .shop-toolbar { display:block; } .search-control { width:100%; margin-top:1.25rem; } .shop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; } .product-body { padding:.85rem; } .product h2 { font-size:1.05rem; } .product p { min-height:5.3rem; font-size:.8rem; } .product-controls { grid-template-columns:1fr; } .primary { width:100%; } }
@media (max-width:460px) { .shop-intro h1 { font-size:clamp(2.7rem,14vw,4rem); } .shop-grid { grid-template-columns:1fr; } .product p { min-height:0; } .cart-row { grid-template-columns:1fr 4.5rem auto; } .cart-row .line-total { display:none; } .form-grid { grid-template-columns:1fr; } .field-full { grid-column:auto; } }
