:root { color-scheme: light; font-family: var(--brand-font); color: var(--brand-ink); background: var(--brand-background); }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand-red); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.notice { padding: .55rem .85rem; text-align: center; background: var(--brand-yellow); color: var(--brand-ink); font-size: .875rem; }
.site-header { border-bottom: 3px solid var(--brand-red); background: var(--brand-white); margin-bottom: clamp(1rem, 3vw, 1.65rem); }
.top { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); min-height: 5rem; }
.brand { display: block; flex: 0 1 16rem; min-width: 0; margin-right: auto; }
.brand img { display: block; width: 100%; height: auto; }
.nav { color: var(--brand-red); font-weight: 600; text-underline-offset: .25rem; }
.solid, .outline, .hero-link { padding: .65rem .9rem; border-radius: .55rem; font-weight: 650; }
.solid { background: var(--brand-green-dark); border: 1px solid var(--brand-green-dark); color: var(--brand-white); }
.solid:hover { text-decoration: underline; text-underline-offset: .2em; }
#open-cart { flex: none; min-height: 44px; }
#cart-count { margin-left: .35rem; color: var(--brand-green-dark); background: var(--brand-green-light); padding: .1rem .4rem; border-radius: 10px; }
.outline { background: var(--brand-white); color: var(--brand-green-dark); border: 1px solid var(--brand-line); }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); align-items: center; background: var(--brand-banner); color: var(--brand-white); border-radius: 24px; overflow: hidden; }
.hero-copy { padding: clamp(1.5rem, 5vw, 4rem); }
h1 { font-size: clamp(2rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 1.2rem; }
.hero h1 span { color: var(--brand-yellow); }
.hero p { line-height: 1.55; max-width: 32ch; margin: 0 0 1.4rem; }
.hero-link { display: inline-block; background: var(--brand-yellow); color: var(--brand-ink); text-decoration: none; }
.hero .hero-link:focus-visible { outline-color: var(--brand-white); }
.hero-art { display: block; width: 100%; height: 100%; max-height: 390px; object-fit: cover; }
.catalog { padding-block: clamp(2rem, 6vw, 4rem); }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.35rem); letter-spacing: -.035em; }
.catalog-head label { display: grid; gap: .35rem; width: min(100%, 24rem); font-size: .875rem; font-weight: 600; }
input { width: 100%; border: 1px solid var(--brand-muted); border-radius: .6rem; background: var(--brand-white); color: inherit; padding: .7rem .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.filter { border: 1px solid var(--brand-line); border-radius: 2rem; background: var(--brand-white); padding: .55rem .85rem; color: var(--brand-green-dark); }
.filter[aria-pressed="true"] { border-color: var(--brand-red); background: var(--brand-red-light); color: var(--brand-red); font-weight: 650; }
.results, .muted { color: var(--brand-muted); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
.card { border-radius: 1rem; border: 1px solid var(--brand-line); overflow: hidden; background: var(--brand-white); display: flex; flex-direction: column; }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: flex; flex-direction: column; padding: 1rem; flex: 1; }
.category { color: var(--brand-red); font-size: .9rem; font-weight: 650; }
.card p { color: var(--brand-muted); font-size: .9rem; }
.card h3 { margin: .3rem 0 0; font-size: 1.15rem; }
.card p { margin: .35rem 0 1rem; }
.card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.card-bottom strong { color: var(--brand-red); font-size: 1.14rem; }
.footer { background: var(--brand-footer); color: var(--brand-white); padding-block: 1.75rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; }
dialog { border: 1px solid var(--brand-line); border-top: 4px solid var(--brand-green); border-radius: 1rem; padding: clamp(1rem, 4vw, 1.65rem); width: min(33rem, calc(100% - 2rem)); max-height: 90dvh; color: inherit; }
dialog::backdrop { background: color-mix(in srgb, var(--brand-ink) 65%, transparent); }
.cart-head, .cart-total, .cart-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.cart-head p { margin: 0; color: var(--brand-muted); }
.cart-items { list-style: none; padding: 0; }
.cart-item { padding: .65rem 0; border-bottom: 1px solid var(--brand-line); }
.cart-actions { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.cart-actions button { padding: .3rem .6rem; }
.cart-total { padding-top: .5rem; }
.cart-total strong { color: var(--brand-red); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; left: 1rem; top: 1rem; z-index: 1; padding: .5rem; background: var(--brand-white); }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .hero { grid-template-columns: minmax(0,1fr); }
  .hero-art { max-height: 235px; }
  .nav { display: none; }
}
