/* Webshop, legal pages and shop admin. Builds on styles.css tokens. Mobile first. */
.shop-header .navbar { padding: .6rem 0; }
.shop-header .navbar-brand { color: var(--choco-700); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.shop-nav { display: flex; gap: .25rem; align-items: center; }
.shop-nav a { color: var(--choco-800); text-decoration: none; padding: .5rem .7rem; border-radius: 999px; font-weight: 500; }
.shop-nav a:hover, .shop-nav a:focus-visible, .shop-nav a[aria-current="page"] { background: var(--cream-400); }
.cart-button { position: relative; border: 0; background: var(--choco-700); color: #fff; border-radius: 999px; padding: .55rem 1rem; font-weight: 600; min-height: 44px; }
.cart-button:focus-visible, .btn:focus-visible, .chip:focus-visible, .product-card:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.cart-count { display: inline-block; min-width: 1.4em; margin-left: .35rem; padding: 0 .35em; border-radius: 999px; background: var(--gold-400); color: var(--choco-900); font-size: .85em; }

.page-wrap { padding: 1.5rem 0 4rem; min-height: 70vh; }
.page-card { background: var(--cream-100); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: 1.25rem; }
@media (min-width: 768px) { .page-card { padding: 2.25rem; } }
.page-title { font-family: var(--font-heading); color: var(--choco-800); font-weight: 700; font-size: clamp(2rem, 6vw, 3rem); }
.muted { color: #6b5446; }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.25rem; }
.chip { border: 1px solid var(--choco-300); background: #fff; color: var(--choco-800); border-radius: 999px; padding: .45rem 1rem; min-height: 44px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--choco-700); border-color: var(--choco-700); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; } }
.product-card { display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .2s var(--ease-premium); color: inherit; width: 100%; }
.product-card:hover { transform: translateY(-3px); }
.product-card img, .product-card .ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--cream-300); }
.product-card .ph { display: grid; place-items: center; font-size: 3rem; }
.product-card .body { padding: .75rem .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.product-card h3 { font-size: 1.15rem; margin: 0; color: var(--choco-800); font-weight: 700; }
.price { font-weight: 700; color: var(--choco-700); }
.badge-soldout { align-self: flex-start; background: #ece4dc; color: #5c4033; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 600; }

dialog.sheet { border: 0; padding: 0; width: min(640px, 100vw); max-height: 100dvh; border-radius: 22px 22px 0 0; margin: auto auto 0; background: var(--cream-100); color: #2c1810; }
@media (min-width: 768px) { dialog.sheet { border-radius: 22px; margin: auto; max-height: 92vh; } }
dialog.sheet::backdrop { background: rgba(28, 14, 7, .55); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--cream-100); border-bottom: 1px solid var(--cream-400); }
.sheet-head h2 { margin: 0; font-size: 1.6rem; color: var(--choco-800); }
.sheet-body { padding: 1.25rem; }
.icon-btn { border: 0; background: var(--cream-400); width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; flex: none; }
.gallery { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 1rem; }
.gallery img { width: 100%; flex: none; scroll-snap-align: center; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; }
.allergen-list { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; }
.allergen-list li { background: #fff3d9; border: 1px solid var(--gold-300); border-radius: 999px; padding: .15rem .65rem; font-weight: 700; font-size: .9rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--choco-300); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: transparent; width: 44px; height: 44px; font-size: 1.2rem; }
.qty output, .qty input { width: 2.5rem; text-align: center; font-weight: 600; border: 0; }
.btn-choco { background: var(--choco-700); color: #fff; border: 0; border-radius: 999px; font-weight: 600; min-height: 48px; padding: .6rem 1.4rem; }
.btn-choco:hover { background: var(--choco-800); color: #fff; }
.btn-choco:disabled { background: #9c8577; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .75rem 0; border-bottom: 1px solid var(--cream-400); }
.totals { width: 100%; margin: 1rem 0; }
.totals td { padding: .2rem 0; }
.totals td:last-child { text-align: right; white-space: nowrap; }
.totals .grand td { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--choco-300); padding-top: .5rem; }
.form-error { background: #fde8e6; color: #8a1f11; border-radius: 12px; padding: .75rem 1rem; }
.notice { background: #fff3d9; border: 1px solid var(--gold-300); border-radius: 14px; padding: .9rem 1rem; }
.legal h2 { font-size: 1.5rem; margin-top: 1.75rem; color: var(--choco-800); }
.legal [data-company]:empty::before { content: '…'; color: #a08877; }
.shop-footer { background: var(--choco-900); color: var(--cream-300); padding: 2rem 0; }
.shop-footer a { color: var(--cream-200); }
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[data-if][hidden] { display: none; }
