:root {
  color-scheme: light;
  --ink: #202e28;
  --green: #173f33;
  --paper: #f9f6ee;
  --edge: #cecdbf;
  --serif: Georgia, 'Times New Roman', serif;
  font: 100%/1.48 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
button, .filters a { border: 1px solid #778377; border-radius: .55rem; padding: .6rem .85rem; color: var(--green); background: transparent; }
button:hover:enabled, .filters a:hover { background: #e8eddf; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #a45315; outline-offset: 3px; }
.wrap { max-width: 74rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 3.5rem); }
header { border-bottom: 1px solid var(--edge); }
.mast { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { font: bold 2.15rem/1 var(--serif); text-decoration: none; }
.basket-link { font-weight: 650; }
#count { padding-left: .2rem; font-variant-numeric: tabular-nums; }
.intro { padding-block: clamp(2rem, 5vw, 5rem); max-width: 62rem; }
.intro p { max-width: 43rem; margin-bottom: 0; }
.overline { color: #546151; font-size: .82rem; letter-spacing: .035em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--green); }
h1 { font-size: clamp(2.65rem, 6.4vw, 5.4rem); letter-spacing: -.055em; line-height: 1.05; margin: .45rem 0 .9rem; }
h2 { margin-bottom: .9rem; font-size: 2rem; line-height: 1.15; }
h3 { font-size: 1rem; margin-bottom: .1rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.filters, .controls, footer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filters { margin-bottom: 1rem; }
.filters a { text-decoration: none; }
.filters a[aria-current="page"], .primary { background: var(--green); color: white; border-color: var(--green); }
.primary:hover:enabled { background: #285541; }
.product, .cart-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid var(--edge); padding: .85rem 0; }
.product p, .cart-row p { margin: 0; color: #535d54; }
.product > button { flex-shrink: 0; }
.basket { background: #fffdf7; border: 1px solid var(--edge); border-radius: .9rem; padding: clamp(1rem, 3vw, 1.75rem); scroll-margin: 1rem; }
.cart-row { display: block; }
.cart-row .controls { margin-top: .45rem; }
.controls button { min-width: 2.75rem; min-height: 2.75rem; }
.controls span { min-width: 1.25rem; text-align: center; }
.total { display: flex; justify-content: space-between; border-top: 1px solid var(--edge); padding-top: 1rem; margin: .75rem 0 1rem; }
.primary { display: block; width: 100%; font-weight: 650; }
#order-status:not(:empty) { margin: .85rem 0 0; }
#last-order { display: inline-block; margin-top: .9rem; }
#order-status:empty, #catalog-status:empty { display: none; }
footer.wrap { margin-top: 3rem; border-top: 1px solid var(--edge); padding-block: 1.4rem; font-size: .85rem; gap: .5rem 1.4rem; }
@media (max-width: 45rem) { .layout { grid-template-columns: minmax(0, 1fr); } }
