:root {
    --ink: #17241e;
    --muted: #536359;
    --green: #204c3d;
    --sage: #edf1ea;
    --gold: #a96a15;
    --brown: #4e2e20;
    --border: #dce4dc;
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--ink);
    background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, form { margin: 0; }
p + p { margin-top: .65rem; }
h1, h2, h3 { line-height: 1.14; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -.035em; }
h3 { font-size: 1rem; }
a { color: var(--green); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(calc(100% - 2rem), 1156px); margin-inline: auto; }
.announcement { background: var(--gold); color: #fff; text-align: center; padding: .55rem; font-weight: 700; font-size: .88rem; letter-spacing: .04em; }
.site-header { background: white; border-bottom: 1px solid var(--border); }
.masthead { min-height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
.brand { grid-column: 2; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: clamp(.55rem, 2vw, 1.5rem); font-size: .9rem; }
.header-actions a, .shop-nav a { text-decoration: none; }
.bag { white-space: nowrap; }
.bag span { display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.45rem; border-radius: 1rem; background: var(--green); color: #fff; font-size: .75rem; }
.shop-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.6rem; padding-block: .55rem 1rem; font-size: .92rem; }
.shop-nav a { padding-block: .25rem; }
.main { padding-block: 1.5rem 4rem; min-height: 65vh; }
.main > h1 { margin-bottom: 1.2rem; }
.hero { background: var(--sage); border-radius: 24px; padding: clamp(1.3rem, 5vw, 4rem); display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero.has-images { grid-template-columns: 1fr 1fr; }
.hero-copy { display: grid; gap: 1.25rem; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 37rem; }
.hero h1 em { color: var(--brown); font-style: normal; }
.eyebrow { color: var(--gold); text-transform: uppercase; font-weight: 750; letter-spacing: .12em; font-size: .76rem; }
.hero-gallery { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, clamp(100px, 15vw, 195px)); gap: .65rem; }
.hero-gallery a { position: relative; border-radius: 16px; overflow: hidden; background: #dce5db; min-width: 0; }
.hero-gallery a:first-child { grid-row: span 2; }
.hero-gallery.featured-1, .hero-gallery.featured-2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-template-rows: clamp(150px, 29vw, 390px); }
.hero-gallery.featured-1 a:first-child, .hero-gallery.featured-2 a:first-child { grid-row: auto; }
.hero-gallery img { width: 100%; height: 100%; object-fit: cover; }
.hero-gallery span { position: absolute; bottom: .65rem; left: .65rem; right: .65rem; width: fit-content; max-width: calc(100% - 1.3rem); background: #fff; color: var(--ink); border-radius: 1rem; padding: .3rem .65rem; font-weight: 700; font-size: .72rem; overflow-wrap: anywhere; }
.catalog { padding-top: clamp(1.5rem, 5vw, 3.5rem); }
.main > .catalog:first-child { padding-top: 0; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.3rem; }
.catalog-heading p, .muted, small { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product { min-width: 0; background: var(--sage); border-radius: 17px; padding: .5rem; display: flex; flex-direction: column; }
.product-photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 11px 11px 0 0; background: #e1e8dd; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { display: flex; flex: 1; flex-direction: column; gap: .65rem; padding: .85rem .65rem .7rem; }
.product-copy h3 a { color: var(--ink); text-decoration: none; }
.product-copy h3 a:hover { text-decoration: underline; }
.product-copy form { margin-top: auto; }
.product-copy button, .product-info button { width: 100%; color: var(--green); background: transparent; border-color: var(--green); }
.product-copy button:hover, .product-info button:hover { background: var(--green); color: white; }
.back { display: inline-block; margin-bottom: 1rem; }
.product-detail { display: grid; grid-template-columns: 1.24fr 1fr; gap: clamp(1rem, 4vw, 3.25rem); align-items: start; }
.detail-image { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 18px; background: var(--sage); }
.product-info { min-width: 0; display: grid; gap: .9rem; }
.product-info h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.product-info h2 { margin-top: .65rem; font-size: 1.35rem; }
.detail-price { font-size: 1.25rem; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); gap: .6rem; margin-top: .75rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
button, .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1rem; border: 1px solid transparent; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-size: .9rem; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .cta:hover { background: #16392d; }
.hero .cta:not(.outline) { background: var(--brown); }
.outline, button.secondary { color: var(--green); background: transparent; border-color: var(--green); }
.outline:hover, button.secondary:hover { background: var(--sage); }
label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 650; min-width: 0; }
input, textarea, select { width: 100%; min-width: 0; background: #fff; border: 1px solid #a8b6ab; border-radius: 9px; color: var(--ink); font: inherit; padding: .65rem .7rem; }
input[type=checkbox] { width: auto; }
textarea { resize: vertical; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.stack { display: grid; gap: .8rem; }
.stack > button { justify-self: start; }
.check { display: flex; align-items: center; }
.panel { padding: clamp(.85rem, 2vw, 1.4rem); border: 1px solid var(--border); border-radius: 15px; background: #fff; min-width: 0; }
.panel h2, .panel h3 { margin-bottom: .55rem; }
.narrow { max-width: 32rem; }
.grid, .checkout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .9rem; }
.checkout { grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); align-items: start; }
.checkout .line { padding-block: .65rem; border-bottom: 1px solid var(--border); }
.checkout .line > div { flex: 1 1 8rem; }
.qty { max-width: 5rem; }
.notice { border: 1px solid #e6c88d; background: #fff4df; border-radius: .65rem; padding: .8rem; margin-bottom: 1rem; }
.admin-page { background: #f4f6f2; }
.admin-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.admin-heading h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.admin-nav a { border-radius: 999px; background: white; border: 1px solid var(--border); padding: .45rem .95rem; font-weight: 650; font-size: .9rem; text-decoration: none; }
.admin-nav a:hover { background: var(--sage); }
.metrics strong { display: block; margin-top: .25rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.admin-page section { margin-top: 1.75rem; scroll-margin-top: 1rem; }
.admin-page section > h2 { font-size: 1.5rem; margin-bottom: .65rem; }
.order { margin-top: .6rem; overflow-wrap: anywhere; }
.order summary, .product-editor summary { cursor: pointer; }
.order[open] summary { padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid var(--border); }
.product-editor { border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.product-editor summary { padding: .8rem 1rem; font-weight: 700; }
.product-editor .panel { border-width: 1px 0 0; border-radius: 0; }
.product-search { margin: .9rem 0; }
.admin-products { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.admin-products > p { padding: 1rem; }
.product-row { padding: .8rem 1rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(5.5rem, auto) 5rem auto; gap: .55rem; align-items: center; overflow-wrap: anywhere; }
.product-row + .product-row { border-top: 1px solid var(--border); }
.product-row small { display: block; }
.status { border-radius: 1rem; background: #eef0ee; padding: .15rem .55rem; width: fit-content; font-size: .8rem; }
.status.visible { background: #e1efe5; color: #165235; }
footer { background: var(--sage); padding-block: 1.6rem; }
footer .wrap { display: flex; gap: .55rem 1.4rem; flex-wrap: wrap; }
@media (max-width: 850px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .masthead { min-height: 72px; grid-template-columns: auto 1fr; }
    .brand { grid-column: 1; }
    .brand img { width: 105px; height: auto; }
    .shop-nav { gap: .2rem .85rem; justify-content: flex-start; font-size: .82rem; }
    .hero.has-images, .product-detail { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .product-copy { padding: .6rem .2rem .35rem; }
    .product-copy button { padding-inline: .35rem; font-size: .8rem; }
    .product-row { grid-template-columns: minmax(0, 1fr) auto; }
    .product-row a { justify-self: end; }
}

/* Checkout */
.cart-page { background: #f5f6f8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.cart-page .main { max-width: 1060px; padding-top: 2rem; }
.cart-page .main > h1 { font-size: clamp(1.9rem, 5vw, 2.65rem); letter-spacing: -.045em; margin-bottom: 1.5rem; }
.cart-page .checkout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr); gap: 1.4rem; align-items: start; }
.cart-page .checkout-delivery, .cart-page .checkout-summary { min-width: 0; background: white; padding: clamp(1.1rem, 3vw, 1.8rem); border: 1px solid #e6e8eb; border-radius: 22px; box-shadow: 0 5px 24px #18251e05; }
.cart-page .checkout-delivery { gap: 1.25rem; }
.cart-page .checkout h2 { font-size: 1.22rem; letter-spacing: -.025em; margin-bottom: .4rem; }
.cart-page .delivery-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.cart-page .delivery-fields label { grid-column: 1 / -1; }
.cart-page .delivery-fields .delivery-postal, .cart-page .delivery-fields .delivery-city { grid-column: auto; }
.cart-page label { color: #4e5b54; font-size: .82rem; font-weight: 600; gap: .4rem; }
.cart-page input:not([type=checkbox]):not([type=radio]), .cart-page select { min-height: 48px; border-radius: 12px; border: 1px solid #dfe3e2; padding: .75rem; background: #fafbfa; color: #17241e; font-size: 16px; }
.cart-page input:focus { background: white; outline: 2px solid #6d9b89; outline-offset: 2px; }
.cart-page .newsletter-optin { font-size: .8rem; font-weight: 400; align-items: start; gap: .6rem; line-height: 1.5; }
.cart-page input[type=checkbox], .cart-page input[type=radio] { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.cart-page .shipping-options { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .6rem; }
.cart-page .shipping-options legend { font-size: .8rem; color: #536359; margin-bottom: .6rem; }
.cart-page .shipping-options label { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .55rem; padding: .9rem; border-radius: 13px; border: 1px solid #e0e6e1; }
.cart-page .shipping-options label:has(:checked) { background: #eff6f1; border-color: #729c87; }
.cart-page button { border-radius: 12px; }
.cart-page button[value=pay] { width: 100%; min-height: 52px; font-size: 1rem; margin-top: .4rem; }
.cart-page .cart-item { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: start; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid #edf0ed; }
.cart-page .cart-item:not(:has(> img)) { grid-template-columns: minmax(0,1fr) auto; }
.cart-page .cart-item > img { width: 52px; height: 60px; object-fit: contain; border: 1px solid #ecefec; background: #f6f8f5; border-radius: 10px; }
.cart-page .cart-item strong { font-size: .88rem; line-height: 1.4; display: block; overflow-wrap: anywhere; }
.cart-page .cart-item > span { font-size: .88rem; white-space: nowrap; }
.cart-page .cart-quantity { margin-top: .6rem; align-items: end; }
.cart-page .cart-quantity .qty { min-height: 40px !important; padding: .35rem .5rem !important; max-width: 68px; }
.cart-page .cart-quantity button { min-height: 40px; font-size: .76rem; padding: .35rem .55rem; }
.cart-page .checkout-summary > small { display: block; margin-block: .6rem 1rem; font-size: .74rem; }
.cart-page .checkout-summary > .toolbar label { flex: 1 1 8rem; }
.cart-page .cart-totals { margin: 1.2rem 0 0; }
.cart-page .cart-totals > div { display: flex; justify-content: space-between; gap: .7rem; padding-block: .45rem; font-size: .92rem; }
.cart-page .cart-totals dd { margin: 0; text-align: right; }
.cart-page .cart-totals .grand-total { font-size: 1.25rem; font-weight: 700; border-top: 1px solid #e2e7e2; margin-top: .5rem; padding-top: 1rem; }
.cart-page .cart-status { margin-bottom: .75rem; font-size: .88rem; }
.cart-page .cart-status:empty { display: none; }
footer .newsletter-footer { padding-bottom: 1rem; margin-bottom: 1rem; gap: .6rem; }
footer .newsletter-footer h2 { font-size: 1.05rem; }
footer .newsletter-signup { max-width: 28rem; }
footer .newsletter-signup label { font-size: .78rem; }
footer .newsletter-signup input { min-height: 42px; padding: .55rem .7rem; }
footer .newsletter-signup button { min-height: 42px; font-size: .82rem; }
@media (max-width: 720px) {
    .cart-page .checkout { grid-template-columns: minmax(0,1fr); }
    .cart-page .checkout-summary { grid-row: 1; }
    .cart-page .main { width: calc(100% - 1.25rem); padding-top: 1.25rem; }
    .cart-page .checkout-delivery, .cart-page .checkout-summary { border-radius: 18px; }
}
@media (max-width: 380px) {
    .cart-page .cart-item { grid-template-columns: 42px minmax(0,1fr); }
    .cart-page .cart-item > img { width: 42px; height: 48px; }
    .cart-page .cart-item > span { grid-column: 2; }
}
