:root {
    font-family: system-ui, sans-serif;
    color: #282522;
    background: #f6f4f0;
    line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #425a48; text-underline-offset: .2em; }
h1, h2, h3, p, dl { margin: 0 0 .65rem; }
h1 { font: 500 clamp(2rem, 6vw, 3.25rem)/1.15 Georgia, serif; margin-bottom: .8rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }

.shop-width { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }
.shop-header { background: #fffcf7; border-bottom: 1px solid #ded9d0; }
.shop-nav, .shop-nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 1.25rem;
}
.shop-nav { min-height: 64px; }
.shop-brand { font: 600 1.5rem Georgia, serif; color: inherit; text-decoration: none; }
.shop-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.shop-nav [aria-current="page"] { font-weight: 700; }
.shop-main { padding-block: clamp(1.5rem, 6vw, 3.5rem); }
.shop-muted { color: #625b53; }
.shop-grid, .shop-checkout { display: grid; gap: 1rem; margin-top: 1.5rem; align-items: start; }
.shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-checkout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.shop-panel {
    background: #fffcf7;
    border: 1px solid #ded9d0;
    border-radius: 12px;
    padding: clamp(1rem, 3vw, 1.5rem);
    overflow-wrap: anywhere;
}
.shop-catalog-variant {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem .75rem;
    padding: .65rem 0;
    border-top: 1px solid #ded9d0;
}
.shop-catalog-variant p { margin: 0; }
.shop-catalog-stepper { display: grid; grid-template-columns: 44px 32px 44px; align-items: center; text-align: center; }
.shop-catalog-stepper button { padding-inline: 0; }
.shop-catalog-stepper button:disabled { cursor: default; }
.shop-more-variants { border-top: 1px solid #ded9d0; padding-top: .5rem; }
.shop-form { display: grid; gap: .8rem; }
.shop-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: .8rem;
    padding-block: .8rem;
    border-top: 1px solid #ded9d0;
}
.shop-row p { margin: .35rem 0 0; }
.shop-line-controls { display: grid; justify-items: start; gap: .3rem; }
.shop-stepper { display: grid; grid-template-columns: 44px 52px 44px; gap: .25rem; }
.shop-stepper input { text-align: center; margin: 0; }
.shop-line-prices { grid-column: 1 / -1; }
.shop-promo { padding-top: .8rem; border-top: 1px solid #ded9d0; }
.shop-promo-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-total { margin-top: .5rem; border-top: 1px solid #ded9d0; padding-top: .5rem; font-weight: 700; }
.shop-totals div { display: flex; flex-wrap: wrap; gap: .2rem 1rem; justify-content: space-between; }
.shop-totals dd { margin: 0; }
.shop-notice { padding: .75rem; background: #f8ead8; border-left: 4px solid #935024; }
.shop-notice-success { background: #e7f0e7; border-color: #425a48; }
.shop-feedback { position: sticky; top: .5rem; z-index: 1; max-width: 34rem; }
.shop-feedback [data-kind="success"] { background: #e7f0e7; border-color: #425a48; }
.shop-retry { margin-bottom: .65rem; }
.shop-checkout[data-pending] [data-cart-totals] { visibility: hidden; }
.shop-receipt { max-width: 36rem; }

button, input, select {
    font: inherit;
    min-height: 44px;
    max-width: 100%;
    border: 1px solid #968c7f;
    border-radius: 8px;
    padding: .5rem .7rem;
}
input, select { width: 100%; margin-top: .25rem; background: white; color: inherit; }
button { background: #354b3c; color: white; cursor: pointer; }
button:hover { background: #25382b; }
button:disabled { opacity: .6; cursor: wait; }
.shop-secondary { background: #e8e4da; color: #282522; }
.shop-secondary:hover { background: #ded8ca; }
:focus-visible { outline: 3px solid #775223; outline-offset: 3px; }
[aria-invalid="true"] { border-color: #935024; box-shadow: 0 0 0 1px #935024; }
[hidden] { display: none !important; }
details { margin-top: .5rem; }
summary { cursor: pointer; }
ul { padding-left: 1.25rem; }

@media (max-width: 700px) {
    .shop-grid, .shop-checkout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 440px) {
    .shop-row { grid-template-columns: minmax(0, 1fr); }
}

.shop-nav nav a[href="/shop/cart"],
.shop-catalog-variant .shop-catalog-stepper {
    display: none !important;
}
