:root {
  color-scheme: light;
  --paper: #fff8ee;
  --ink: #241819;
  --dark: #321c1d;
  --accent: #a33722;
  --line: #ead9c9;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #cc5925; outline-offset: 3px; }
img, video, iframe { max-width: 100%; height: auto; }
.store-header, .store-footer { background: var(--dark); color: var(--paper); }
.store-header nav, .store-footer nav, main { max-width: 76rem; margin: auto; padding: 1rem clamp(1rem, 3vw, 2rem); }
.store-header nav, .store-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.2rem; }
.brand { font-weight: 850; margin-right: auto; text-decoration: none; }
main { min-height: 65vh; }
h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.06; margin: 1rem 0 1.5rem; overflow-wrap: anywhere; }
h2 { overflow-wrap: anywhere; }
.button, .quiet { display: inline-block; padding: .58rem .8rem; border: 1px solid transparent; border-radius: .55rem; font: inherit; text-decoration: none; cursor: pointer; }
.button { color: #fff; background: var(--accent); font-weight: 650; }
.quiet { border-color: var(--line); color: var(--ink); background: #fff; }
.quiet[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #fff0e6; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; list-style: none; padding: 0; }
.product-card { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; border: 1px solid var(--line); border-radius: 1rem; background: #fff; overflow: hidden; }
.product-link { text-decoration: none; }
.product-link img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.product-link :is(h2, h3) { font-size: 1.05rem; padding: 0 1rem; }
.card-body { padding: 0 1rem 1rem; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .65rem; }
.product-actions .quiet { font-size: .9rem; }
.categories, .catalog-controls, .pagination { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.categories { margin: 1rem 0; }
.categories a { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 2rem; text-decoration: none; }
.categories a[aria-current] { background: var(--dark); color: #fff; }
.catalog-controls { margin: 1.5rem 0; }
.catalog-controls label { display: flex; flex-direction: column; gap: .25rem; }
.catalog-controls input, .catalog-controls select { max-width: 100%; font: inherit; padding: .45rem; border: 1px solid #9e8277; border-radius: .35rem; background: white; }
.catalog-controls button { align-self: end; }
.pagination { justify-content: center; margin: 1.5rem 0; }
.prose { max-width: 52rem; overflow-wrap: anywhere; }
.prose table, .comparison table { border-collapse: collapse; }
.prose :is(th, td), .comparison :is(th, td) { border: 1px solid var(--line); padding: .65rem; text-align: start; }
.prose, .comparison { overflow-x: auto; }
.comparison td { min-width: 12rem; max-width: 20rem; vertical-align: top; }
.product-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); gap: 2rem; margin-bottom: 2rem; }
.product-detail img { display: block; width: 100%; border-radius: 1rem; background: #fff; }
.product-detail .price { font-size: 1.65rem; }
.hero { background: var(--dark); color: var(--paper); border-radius: 1.2rem; padding: clamp(1.25rem, 5vw, 3.5rem); margin-block: 1rem 2rem; }
.hero h1 { margin-top: 0; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; z-index: 10; background: #fff; padding: .5rem; }
@media (max-width: 550px) {
  .store-header .brand { flex-basis: 100%; }
  .store-header nav { gap: .5rem .8rem; }
}
.quantity { display: flex; flex-wrap: wrap; align-items: end; gap: .45rem; }
.quantity label { display: grid; gap: .2rem; font-size: .9rem; }
.quantity input { max-width: 8rem; padding: .55rem; border: 1px solid #9e8277; border-radius: .35rem; font: inherit; }
.comparison th[scope="col"]:not(:first-child) { min-width: 12rem; }
.comparison th[scope="col"] a { display: block; }
.map { max-width: 52rem; margin-block: 1.5rem; }

/* Storefront visual system */
:root {
  --paper: #fffefa;
  --ink: #18221c;
  --dark: #142e24;
  --accent: #b8392b;
  --line: #e9e7dc;
  --soft: #f4f3ec;
}
body { font-family: system-ui, sans-serif; }
.store-header { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.store-header nav { min-height: 67px; gap: .8rem 1.45rem; }
.store-header nav > a { text-decoration: none; font-size: .88rem; font-weight: 650; }
.store-header nav > a:hover { text-decoration: underline; text-underline-offset: .25em; }
.store-header .brand { display: inline-flex; align-items: center; gap: .28rem; color: var(--dark); font-size: 1.42rem; font-weight: 950; letter-spacing: -.095em; white-space: nowrap; }
.brand span { background: var(--dark); color: #fff; border-radius: .34rem; padding: .12rem .34rem .2rem; line-height: 1.1; letter-spacing: -.07em; }
.header-cart-link { display: inline-flex; align-items: center; gap: .35rem; background: var(--soft); padding: .48rem .75rem; border-radius: 2rem; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: .6rem 2rem; flex-wrap: wrap; padding: .4rem 0 0; margin: .85rem 0 1.25rem; color: var(--ink); background: none; border-radius: 0; }
.hero h1, .catalog-heading { max-width: 19ch; margin: 0; font-size: clamp(2rem, 5vw, 4.3rem); font-weight: 790; letter-spacing: -.045em; text-wrap: balance; }
.catalog-heading { margin-block: .85rem 1rem; }
.hero-link { color: var(--dark); font-size: .9rem; font-weight: 670; text-underline-offset: .22em; }
.categories { margin: 0; gap: .38rem; flex-wrap: wrap; }
.categories a { white-space: nowrap; background: var(--soft); border-color: transparent; font-size: .84rem; font-weight: 650; padding: .48rem .75rem; }
.categories a:hover { border-color: var(--dark); }
.categories a[aria-current] { background: var(--dark); }
.filters { margin: .4rem 0 1rem; }
.filters summary { width: fit-content; font-size: .85rem; font-weight: 680; cursor: pointer; }
.catalog-controls { margin: .65rem 0; }
.catalog-controls input, .catalog-controls select { border-color: var(--line); }
.menu-title { font-size: 1.5rem; letter-spacing: -.04em; margin: .7rem 0 .6rem; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-top: .55rem; }
.product-card { border-radius: .85rem; background: #fff; }
.product-card:hover { border-color: #c6c9b9; }
.product-link img { aspect-ratio: 5 / 4; padding: .35rem; }
.product-link :is(h2, h3) { font-size: clamp(.84rem, 1.4vw, 1rem); line-height: 1.22; padding: 0 .8rem; margin: .45rem 0 .65rem; }
.card-body { padding: 0 .8rem .75rem; }
.card-body .price { font-size: 1.06rem; letter-spacing: -.035em; }
.button { border-radius: 2rem; }
.button:hover { background: #982d21; }
.compact-actions { display: grid; grid-template-columns: minmax(0, 1fr) 2.35rem 2.35rem; gap: .25rem; }
.compact-actions .button { text-align: center; font-size: .84rem; padding: .45rem .32rem; }
.compact-actions .quiet { display: grid; place-items: center; padding: .45rem 0; border-radius: 50%; min-height: 2.35rem; }
.compact-actions .quiet[aria-pressed="true"] svg { stroke-width: 2.5; }
.sale-note { color: #555e54; font-size: .85rem; }
@media (max-width: 850px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compact-actions { grid-template-columns: minmax(0, 1fr) 2rem 2rem; }
  .compact-actions .quiet { min-height: 2rem; }
}
@media (max-width: 600px) {
  .store-header nav { display: grid; grid-template-columns: repeat(3, auto) 1fr; justify-content: start; gap: .4rem .75rem; min-height: 0; padding-block: .62rem; }
  .store-header .brand { grid-column: 1 / 4; grid-row: 1; }
  .store-header nav > a { font-size: .77rem; }
  .header-cart-link { grid-column: 4; grid-row: 1; justify-self: end; }
  .hero { margin-block: .25rem .65rem; }
  .hero h1, .catalog-heading { font-size: clamp(1.75rem, 8vw, 2.6rem); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .product-link :is(h2, h3) { padding-inline: .55rem; }
  .card-body { padding: 0 .55rem .55rem; }
  .compact-actions { grid-template-columns: minmax(0, 1fr) 1.85rem 1.85rem; }
  .compact-actions .quiet { min-height: 1.85rem; }
  .compact-actions .quiet svg { width: 16px; height: 16px; }
  .compact-actions .button { font-size: .74rem; }
}
@media (max-width: 355px) {
  .compact-actions .button { grid-column: 1 / -1; }
  .compact-actions { grid-template-columns: 1.85rem 1.85rem; }
}

.product-detail .product-actions:has(> .quantity) { align-items: flex-end; }
.product-detail .quantity input,
.product-detail .quantity > .button,
.product-detail .product-actions:has(> .quantity) > .quiet { min-height: 44px; }

.menu-navigation { margin-block: 1rem .55rem; }
.menu-navigation .menu-title { margin: 0 0 .55rem; }
.more-categories { margin-top: .55rem; }
.more-categories summary, .filters summary {
  width: fit-content; padding: .38rem .6rem; border: 1px solid var(--line); border-radius: .5rem;
  font-size: .8rem; font-weight: 700; cursor: pointer;
}
.secondary-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .25rem .6rem; margin-top: .45rem; padding: .5rem; border: 1px solid var(--line); border-radius: .65rem; }
.secondary-categories a { padding: .4rem; border-radius: .35rem; overflow-wrap: anywhere; font-size: .85rem; }
.secondary-categories a[aria-current] { background: var(--dark); color: white; }
@media (max-width: 600px) {
  .menu-navigation { margin-block: .65rem .45rem; }
  .categories a { padding: .31rem .55rem; font-size: .76rem; }
  .secondary-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail .product-actions:has(> .quantity) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail .quantity { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .product-detail .quantity input { width: 100%; }
}

/* MY ЯМИ poster palette */
:root {
  --paper: #fffaf4;
  --ink: #261338;
  --dark: #261338;
  --accent: #5a2d81;
  --line: #e8ddec;
  --soft: #f0e8f5;
}
.store-header .brand { letter-spacing: -.075em; }
.brand span { background: #e7fb74; color: var(--ink); }
.header-cart-link { background: #e7fb74; }
.store-footer { color: #fffaf4; }
.button:hover { background: #472265; }
.quiet[aria-pressed="true"] { background: #efe4fb; }
.product-card:hover { border-color: #baa3cb; }
.categories a { border-radius: .5rem; }
.product-card { border-radius: .85rem; }
.product-link img { aspect-ratio: 6 / 5; }
.button { border-radius: .5rem; }
#menu { scroll-margin-top: .6rem; }
