.commerce {
    --ink: #25241f;
    --paper: #fff;
    --sand: #f7f2e9;
    --line: #dfd5c6;
    --accent: #765b36;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.55 system-ui, sans-serif;
}
.commerce *, .commerce *::before, .commerce *::after { box-sizing: border-box; }
.commerce a { color: inherit; }
.commerce-shell { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.commerce-header { position: sticky; z-index: 5; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.commerce-header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.commerce-brand { font: 26px/1.1 Georgia, serif; text-decoration: none; }
.commerce-header nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 36px); }
.commerce-header nav a { padding-block: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.commerce-header nav [aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.commerce-bag { display: inline-flex; align-items: center; gap: 6px; }
.commerce-bag span, .order-bag h2 span {
    min-width: 24px; height: 24px; padding-inline: 5px; border-radius: 99px; background: var(--sand);
    display: inline-grid; place-items: center; font: 650 12px system-ui, sans-serif;
}
.commerce-main { flex: 1; padding-block: 32px 60px; }
.commerce-intro { margin-bottom: 24px; padding: clamp(22px, 4vw, 48px); background: var(--sand); border: 1px solid var(--line); }
.commerce-intro h1 { margin: 0; font: 400 clamp(38px, 6vw, 74px)/1.08 Georgia, serif; letter-spacing: -.045em; }
.commerce-intro p { margin: 10px 0 0; color: var(--accent); }
.shop-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 24px; }
.shop-filters label { display: grid; gap: 4px; flex: 1 1 190px; }
.shop-filters label, .checkout-form label { font-weight: 650; }
.commerce input:not([type=hidden]), .commerce select, .commerce textarea {
    border: 1px solid #a69987; border-radius: 3px; padding: 10px 12px; min-height: 42px;
    background: var(--paper); color: var(--ink); font: inherit; width: 100%;
}
.commerce textarea { resize: vertical; }
.commerce a:focus-visible, .commerce button:focus-visible, .commerce input:focus-visible, .commerce select:focus-visible, .commerce textarea:focus-visible {
    outline: 2px solid #805b29; outline-offset: 3px;
}
.commerce .commerce-button {
    display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 18px;
    border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: #fff;
    font: 650 14px/1.25 system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.commerce .commerce-button-outline { background: var(--paper); color: var(--ink); border-color: #a69987; }
.commerce .commerce-button-muted { background: var(--sand); color: var(--ink); border-color: var(--line); }
.commerce .commerce-button:hover:not(:disabled) { background: #57412c; border-color: #57412c; color: #fff; }
.commerce .commerce-button:disabled { opacity: .55; cursor: default; }
.commerce .commerce-text-link { padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.shop-filters .commerce-text-link { align-self: center; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.shop-piece { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); scroll-margin-top: 80px; }
.shop-piece:target { border-color: #907547; }
.shop-image { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); text-decoration: none; }
.shop-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-image span { font-size: 13px; color: var(--accent); }
.shop-piece-info { flex: 1; display: flex; flex-direction: column; padding: clamp(10px, 1.5vw, 18px); }
.shop-piece h2 { flex: 1; margin: 0; font: 400 clamp(15px, 1.65vw, 22px)/1.28 Georgia, serif; overflow-wrap: anywhere; }
.shop-piece h2 a { text-decoration: none; }
.shop-piece h2 a:hover { text-decoration: underline; }
.shop-price { margin: 10px 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-price del { margin-left: 4px; color: var(--accent); font-weight: 400; }
.shop-piece .commerce-button { width: 100%; padding-inline: 7px; }
.commerce-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; }
.commerce-pager a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); text-decoration: none; }
.commerce-panel { padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); min-width: 0; }
.commerce-panel h2 { margin: 0 0 16px; font: 400 clamp(24px, 3vw, 34px)/1.18 Georgia, serif; }
.empty-bag { text-align: center; padding-block: clamp(35px, 7vw, 80px); }
.empty-bag .commerce-button { margin-top: 12px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.order-bag { background: var(--sand); }
.order-bag h2 { display: flex; align-items: center; gap: 12px; }
.order-bag h2 span { background: #fff; }
.checkout-piece { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.checkout-piece img, .checkout-piece-placeholder { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.checkout-piece h3 { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.checkout-piece p { margin: 3px 0; }
.checkout-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-block: 1px solid var(--line); padding: 14px 0; margin-bottom: 14px; }
.checkout-unavailable { color: #922c2c; border-top: 1px solid var(--line); padding: 10px 0; }
.checkout-unavailable p { margin: 0 0 3px; }
.checkout-form { display: grid; gap: 6px; }
.checkout-form label:not(:first-of-type) { margin-top: 10px; }
.checkout-form .commerce-button { margin-top: 14px; min-height: 48px; }
.checkout-form p { margin: 4px 0 0; color: #5e5549; font-size: 13px; }
.commerce-error { color: #7d2525; background: #fff2ef; border: 1px solid #ddb3ac; padding: 10px 12px; }
.field-error { color: #7d2525; font-size: 13px; }
.commerce-footer { border-top: 1px solid var(--line); background: var(--sand); padding: 24px 0; color: #5e5549; }
.commerce-footer span { margin: 0 5px; }
@media (max-width: 980px) {
    .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
    .commerce-shell { width: calc(100% - 28px); }
    .commerce-brand { font-size: clamp(17px, 5vw, 23px); }
    .commerce-header-inner { gap: 8px; min-height: 62px; }
    .commerce-header nav { gap: 10px; font-size: 13px; }
    .commerce-main { padding-top: 18px; }
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .shop-filters label { flex-basis: min(130px, 40%); }
    .checkout-grid { grid-template-columns: 1fr; gap: 14px; }
    .commerce input:not([type=hidden]), .commerce select, .commerce textarea { font-size: 16px; }
}

.catalogue-bag-link { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; white-space: nowrap; }
.catalogue-bag-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.catalogue-bag-link b { font-size: 12px; }
.catalogue-dialog-cart { margin: 12px 0; }
.catalogue-dialog-cart button { padding: 10px 18px; background: #292721; color: #fff; border: 1px solid #292721; cursor: pointer; font: inherit; }
@media (max-width: 660px) { .catalogue-bag-link { display: none; } }
