:root {
    color-scheme: light;
    --ink: #162d27;
    --forest: #173c32;
    --muted: #55665d;
    --line: #d7dfd8;
    --paper: #f7f8f3;
    --lime: #ddf16b;
    --radius: 12px;
    font: 16px/1.5 "Inter", "Segoe UI", Arial, "PingFang SC", sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #976729; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
header { background: #fff; border-bottom: 1px solid var(--line); }
.utility { background: var(--forest); color: #e6efe7; font-size: .79rem; }
.utility-row { display: flex; align-items: center; gap: 20px; }
.utility-row > span { border-left: 1px solid #658275; padding-left: 16px; }
.language { position: relative; }
.language summary { display: flex; gap: 6px; align-items: center; cursor: pointer; min-height: 36px; list-style: none; }
.language summary::-webkit-details-marker { display: none; }
.globe { position: relative; width: 15px; height: 15px; border: 1px solid; border-radius: 50%; display: inline-block; font-size: 0; }
.globe::before { content: ""; position: absolute; inset: -1px 3px; border: 1px solid; border-radius: 50%; }
.globe::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid; }
.arrow { width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 5px; }
.language[open] .arrow { transform: rotate(180deg); margin-top: -3px; }
.language nav { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 154px; padding: 5px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 6px 24px #172e231a; }
.language nav a { display: block; padding: 9px 13px; border-radius: 4px; }
.language nav a:hover, .language nav [aria-current] { background: #eef4e8; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 20px; }
.wordmark, .footer-brand { font-family: "Barlow", "Arial Black", Arial, sans-serif; font-size: clamp(24px, 3.2vw, 36px); font-weight: 850; letter-spacing: -.075em; white-space: nowrap; line-height: 1.04; }
.wordmark::before, .footer-brand::before { content: ""; display: inline-block; width: .30em; height: .88em; margin-right: .25em; background: #65844a; transform: skewX(-17deg); }
.wordmark:hover, .footer-brand:hover { text-decoration: none; }
.search { display: flex; width: min(460px, 50%); }
.search input { min-width: 0; flex: 1; background: #f5f7f3; color: var(--ink); border: 1px solid var(--line); border-right: 0; border-radius: 7px 0 0 7px; padding: 11px 14px; }
.search button, .button { border: 0; background: var(--forest); color: white; padding: 11px 18px; font-size: .94rem; font-weight: 650; cursor: pointer; }
.search button { border-radius: 0 7px 7px 0; }
.search button:hover, .button:hover { background: #255645; }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: .9rem; font-weight: 600; }
.nav a { padding-block: 10px 12px; }
main { min-height: 58vh; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 385px; margin-block: 28px 42px; border-radius: var(--radius); overflow: hidden; background: var(--forest); }
.hero-copy { padding: clamp(25px, 4vw, 62px); color: white; display: flex; flex-direction: column; align-items: start; justify-content: center; }
h1, h2, h3, p { margin: 0; }
.hero h1 { font-family: "Barlow", "Inter", Arial, sans-serif; font-size: clamp(30px, 4.1vw, 62px); letter-spacing: -.044em; line-height: 1.04; }
.hero-price { color: var(--lime); font-size: clamp(20px, 2.4vw, 34px); font-weight: 650; margin: 18px 0 24px; line-height: 1.1; }
.hero .button { background: var(--lime); color: var(--ink); border-radius: 6px; }
.button span { margin-inline-start: 13px; }
.hero-photo { min-width: 0; background: #fff; display: grid; place-items: center; }
.hero-photo img { display: block; width: 100%; height: 365px; object-fit: contain; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
.section-head a { font-size: .93rem; font-weight: 650; white-space: nowrap; }
h2, .catalog-heading h1 { font-size: clamp(25px, 3.35vw, 42px); letter-spacing: -.05em; line-height: 1.15; }
.catalog-heading { margin-top: 36px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.card-photo, .detail-photo { background: #fff; display: grid; place-items: center; }
.card-photo { aspect-ratio: 1.34; padding: 12px; border-bottom: 1px solid #e7ece6; }
.card-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.card-copy { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 16px; }
.card h3 { font-size: .99rem; font-weight: 620; line-height: 1.35; }
.card h3 a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sku, .crumb, .result-count, .sales-status, .no-photo { font-size: .85rem; color: var(--muted); }
.sku { padding-block: 7px 12px; }
.card-price { margin-top: auto; font-size: 1.19rem; font-weight: 750; }
.condition { display: inline-flex; background: #f9e3cc; color: #703b14; border-radius: 4px; padding: 2px 7px; margin-bottom: 7px; font-weight: 650; font-size: .78rem; }
.tabs { display: flex; gap: 9px; flex-wrap: wrap; }
.tabs a { padding: 6px 13px; border: 1px solid var(--line); background: white; border-radius: 20px; font-size: .9rem; }
.tabs [aria-current] { background: var(--forest); color: white; border-color: var(--forest); }
.result-count { margin: 14px 0; }
.crumb { padding: 23px 0 15px; }
.crumb a, [data-empty] a { text-decoration: underline; text-underline-offset: 3px; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 75px); align-items: start; margin-bottom: 40px; }
.detail-photo { overflow: hidden; min-height: 250px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.detail-photo img { width: 100%; max-height: 530px; object-fit: contain; }
.detail-copy { padding-top: 14px; }
.detail-copy h1 { font-size: clamp(24px, 3vw, 42px); line-height: 1.18; letter-spacing: -.035em; }
.detail-price { font-size: clamp(23px, 3vw, 37px); font-weight: 720; margin: 16px 0; }
dl { margin: 22px 0; } dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; }
dt { color: var(--muted); } dd { margin: 0; text-align: end; }
footer { margin-top: 48px; padding: 30px 0; border-top: 1px solid var(--line); background: #eaf0e8; }
.footer-brand { font-size: 23px; }
footer p { font-size: .84rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 680px) {
    .wrap { width: min(100% - 32px, 1240px); }
    .masthead { align-items: stretch; flex-direction: column; gap: 14px; padding-block: 15px 3px; }
    .search { width: 100%; }
    .nav { gap: 15px; font-size: .83rem; }
    .hero { grid-template-columns: 1fr 1fr; min-height: 200px; margin: 16px 0 26px; }
    .hero-copy { padding: 18px 13px; }
    .hero h1 { font-size: clamp(20px, 5.3vw, 32px); }
    .hero-price { font-size: 19px; margin: 13px 0; }
    .hero .button { font-size: .8rem; padding: 9px; } .button span { margin-inline-start: 0; }
    .hero-photo img { height: min(240px, 53vw); }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .card-photo { padding: 5px; } .card-copy { padding: 10px; }
    .card h3 { font-size: .9rem; } .card-price { font-size: 1rem; }
    .product { grid-template-columns: 1fr; gap: 5px; }
    .detail-photo img { max-height: 340px; }
    .section-head { align-items: center; gap: 6px; } .section-head a { font-size: .8rem; }
    .language summary, .language nav a { min-height: 44px; }
}

.nav .cart-link { margin-inline-start: auto; }
.cart-link span { display: inline-block; min-width: 22px; background: var(--forest); color: white; text-align: center; border-radius: 20px; padding: 1px 5px; font-size: .79rem; }
.cart-add { margin-top: 12px; border: 1px solid var(--forest); color: var(--forest); background: white; border-radius: 6px; padding: 7px 10px; font-weight: 620; cursor: pointer; }
.cart-add:hover { background: var(--forest); color: #fff; }
.detail-copy .cart-add { margin: 0; background: var(--forest); color: white; padding: 11px 18px; }
[data-cart-note]:not(:empty) { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: white; background: var(--forest); padding: 10px 20px; border-radius: 8px; z-index: 20; max-width: min(94vw,540px); box-shadow: 0 3px 14px #0002; }
.cart-page { padding-block: 34px 14px; }
.cart-page h1 { margin-bottom: 20px; font-size: clamp(29px,4vw,47px); letter-spacing: -.04em; }
.checkout-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.8fr); gap: 30px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; background: #fff; border: 1px solid var(--line); padding: 14px; border-radius: 8px; margin-bottom: 10px; }
.cart-item { min-width: 0; } .cart-item a { font-weight: 630; line-height: 1.25; } .cart-item small { display: block; color: var(--muted); margin-top: 4px; }
.quantity-controls { display: flex; gap: 0; align-self: start; }
.quantity-controls button, .quantity-controls input { height: 34px; border: 1px solid var(--line); font: inherit; background: #f5f8f2; color: var(--ink); }
.quantity-controls button { width: 32px; cursor: pointer; }
.quantity-controls input { width: 38px; text-align: center; border-inline: 0; background: white; appearance: textfield; }
.quantity-controls input::-webkit-inner-spin-button { appearance: none; }
.remove-item, .retry-check { justify-self: end; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.line-total { align-self: end; }
.cart-total { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 8px; border-top: 1px solid var(--line); padding-top: 14px; font-weight: 650; }
.delivery, [data-receipt] { padding: clamp(16px,2.4vw,28px); background: white; border: 1px solid var(--line); border-radius: 10px; }
.delivery h2,[data-receipt] h2 { font-size: 1.35rem; letter-spacing: -.03em; }
.delivery fieldset { display: grid; gap: 10px; padding: 0; margin: 14px 0; border: 0; }
.delivery label { display: grid; gap: 4px; font-size: .87rem; font-weight: 600; }
.delivery input { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #aeb9af; border-radius: 5px; color: var(--ink); background: white; }
.delivery button[type="submit"] { display: block; width: 100%; border-radius: 6px; margin-top: 12px; }
.delivery button:disabled,.quantity-controls button:disabled,.remove-item:disabled { cursor: default; opacity: .53; }
[data-checkout-state]:empty { display: none; }
[data-checkout-state],[data-receipt] p,.cart-total + p { font-size: .9rem; color: var(--muted); }
[data-receipt] p { margin-top: 9px; }
[data-cart-empty] a { display: inline-block; margin-top: 10px; text-decoration: underline; }
@media (max-width: 780px) {
    .checkout-grid { grid-template-columns: 1fr; gap: 20px; }
    .cart-page { padding-top: 23px; }
}
@media (max-width: 420px) {
    .nav { gap: 8px 13px; }
    .cart-line { grid-template-columns: 1fr auto; }
    .cart-item { grid-column: 1 / -1; }
    .line-total { align-self: center; }
    .remove-item { grid-column: 1 / -1; }
}
