:root {
    font: 16px/1.45 Inter, "Segoe UI", sans-serif;
    color: #20291e;
    background: #f8f8f0;
    --ink: #20291e;
    --muted: #515b4d;
    --surface: #fff;
    --line: #e0e4d9;
    --green: #293f2b;
    --leaf: #dfebad;
}

* { box-sizing: border-box; }
body { margin: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #507735; outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
.shell { max-width: 1200px; width: calc(100% - 64px); margin-inline: auto; }

.header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: .16em; color: var(--green); font-size: 32px; font-weight: 850; letter-spacing: -.075em; text-decoration: none; line-height: 1; white-space: nowrap; }
.holiday-mark { position: relative; flex: none; width: .87em; height: 1em; transform-origin: 50% 90%; animation: tree-sway 7s ease-in-out infinite; }
.holiday-tree {
    position: absolute;
    inset: 24% 2% 0;
    background: linear-gradient(100deg, #1a4a37, #3c7957 66%, #1b4e39);
    clip-path: polygon(50% 0, 76% 37%, 63% 37%, 88% 65%, 72% 65%, 100% 89%, 58% 89%, 58% 100%, 42% 100%, 42% 89%, 0 89%, 28% 65%, 12% 65%, 37% 37%, 24% 37%);
}
.holiday-star {
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    color: #a97020;
    font: 900 .49em/1 "Segoe UI Symbol", sans-serif;
    text-align: center;
    animation: winter-spark 7s ease-in-out infinite;
}
@keyframes tree-sway {
    0%, 12%, 45%, 100% { transform: rotate(0); }
    20% { transform: rotate(-13deg); }
    32% { transform: rotate(8deg); }
}
@keyframes winter-spark {
    0%, 14%, 52%, 100% { opacity: 1; transform: scale(1); }
    27% { opacity: .72; transform: scale(1.45); color: #d69927; }
}

.header-orders { margin-left: auto; border: 0; background: transparent; padding: 8px 2px; color: var(--muted); font-weight: 650; }
.header-cart { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 13px; font-weight: 650; color: var(--ink); }
#header-total { margin-left: 4px; }

.delivery {
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 2;
    background: #f8f8f0;
    padding: 12px 0 10px;
}
.delivery > div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.delivery progress { display: block; appearance: none; width: 100%; height: 5px; margin: 6px 0 4px; border: 0; border-radius: 3px; overflow: hidden; background: var(--line); accent-color: #547638; }
.delivery progress::-webkit-progress-bar { background: var(--line); }
.delivery progress::-webkit-progress-value { background: #547638; }
.delivery progress::-moz-progress-bar { background: #547638; }
.delivery p { color: var(--muted); font-size: 12px; }
.progress-track {
    position: relative;
    display: block;
    height: 8px;
    margin: 10px 11px 8px;
    border-radius: 10px;
    background: #e1e7d7;
}
[data-order-progress] .progress-track progress { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--cart-progress, 0%);
    overflow: hidden;
    border-radius: inherit;
    background: linear-gradient(90deg, #40765a, #73a05e, #ddb563);
    transition: width .5s cubic-bezier(.22,.72,.25,1);
}
.progress-fill::after { content: ""; position: absolute; inset: 0; transform: translateX(-110%); background: linear-gradient(100deg, transparent 25%, #fff9dbbe, transparent 75%); }
.progress-track.is-moving .progress-fill::after { animation: progress-glow .65s ease-out; }
.progress-coin {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: var(--cart-progress, 0%);
    transform: translate(-50%, -50%);
    transition: left .5s cubic-bezier(.22,.72,.25,1);
}
.shop-coin {
    display: grid;
    place-items: center;
    width: 23px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #bf832a;
    background: linear-gradient(140deg, #fff1a1, #f0ca60 54%, #d69a36);
    box-shadow: inset 0 0 0 1px #ffed9b, 0 2px 0 #af7327, 0 3px 4px #65430930;
    color: #384733;
    font: 900 12px/1 system-ui, sans-serif;
}
.flying-coin { position: fixed; z-index: 10; margin: 0; pointer-events: none; will-change: transform, opacity; }
.progress-track.is-arriving .progress-coin .shop-coin { animation: progress-arrival .4s ease-out; }
.delivery.ready .progress-fill, .delivery-progress.ready .progress-fill { background: linear-gradient(90deg, #347454, #709d63, #e7b95d); }
@keyframes progress-glow { to { transform: translateX(110%); } }
@keyframes progress-arrival { 45% { transform: scale(1.23) rotate(-18deg); box-shadow: 0 0 0 5px #efd07564, inset 0 0 0 1px #ffed9b; } }

.hero {
    min-height: 215px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 26px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff8e8;
    background: radial-gradient(ellipse at 79% 5%, #bcdec244, transparent 43%), linear-gradient(120deg, #15392f, #245841 69%, #37715b);
    border-radius: 20px;
    padding: 23px 35px;
}
.hero h1 { font-size: clamp(33px, 4.2vw, 58px); line-height: 1.01; letter-spacing: -.065em; max-width: 460px; }
.hero-copy, .hero-images { z-index: 1; }
.hero p { font-size: 15px; color: #edf4de; margin: 10px 0 16px; }
.hero button, #submit { background: var(--green); color: white; border: 0; border-radius: 9px; padding: 10px 14px; font-size: 14px; font-weight: 700; }
.hero button { background: #f8da8d; color: #293924; }
.hero button span { padding-left: 4px; }
.holiday-garland {
    pointer-events: none;
    position: absolute;
    inset: 2px 8% auto 45%;
    height: 21px;
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #e2ebc881;
    border-radius: 0 0 58% 60%;
    transform: rotate(-4deg);
}
.holiday-garland i {
    width: 6px;
    height: 9px;
    margin-top: 16px;
    border-radius: 60%;
    background: #ffd689;
    box-shadow: 0 0 10px #ffc85d;
    animation: garland-light 4s ease-in-out infinite;
}
.holiday-garland i:nth-child(3n+2) { background: #ffb1a1; box-shadow: 0 0 10px #f69274; animation-delay: -1.2s; }
.holiday-garland i:nth-child(3n) { background: #d3f3df; box-shadow: 0 0 10px #a5e8be; animation-delay: -2.5s; }
.holiday-flurries { position: absolute; inset: 0; color: #f3f6db; pointer-events: none; }
.holiday-flurries span { position: absolute; font-size: clamp(12px, 2vw, 23px); opacity: .58; animation: flurry 8s ease-in-out infinite; }
.holiday-flurries span:nth-child(1) { top: 18%; left: 48%; }
.holiday-flurries span:nth-child(2) { bottom: 13%; right: 32%; animation-delay: -2s; }
.holiday-flurries span:nth-child(3) { bottom: 12%; right: 3%; animation-delay: -5s; }
@keyframes garland-light { 50% { opacity: .54; } }
@keyframes flurry { 50% { transform: translate(4px, 6px) rotate(24deg); opacity: .82; } }
.hero-images { position: relative; height: 158px; display: flex; align-items: center; justify-content: flex-end; padding-right: 9%; }
.hero-image {
    width: clamp(105px, 14vw, 168px);
    height: 146px;
    object-fit: contain;
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 9px 17px #293f2b20;
    transform: translate(var(--shift-x), var(--shift-y)) rotate(var(--tilt));
    animation: banner-drift 5.5s ease-in-out infinite;
}
.hero-image:nth-child(1) { --tilt: -13deg; --shift-x: 10px; --shift-y: 1px; }
.hero-image:nth-child(2) { --tilt: 7deg; --shift-x: 0px; --shift-y: 5px; animation-delay: -1.6s; z-index: 1; }
.hero-image:nth-child(3) { --tilt: 14deg; --shift-x: -8px; --shift-y: 4px; animation-delay: -3.1s; }
@keyframes banner-drift {
    50% { transform: translate(var(--shift-x), calc(var(--shift-y) - 10px)) rotate(calc(var(--tilt) + 4deg)); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-image, .holiday-mark, .holiday-star, .holiday-garland i, .holiday-flurries span,
    .progress-track.is-moving .progress-fill::after, .progress-track.is-arriving .progress-coin .shop-coin { animation: none; }
    .progress-fill, .progress-coin { transition: none; }
}

.browse { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; align-items: center; gap: 16px; margin: 19px 0 23px; scroll-margin-top: 75px; }
.search { position: relative; display: block; }
.search span { pointer-events: none; position: absolute; top: 14px; left: 15px; width: 13px; height: 13px; border: 1.7px solid var(--muted); border-radius: 50%; }
.search span::after { content: ""; position: absolute; inset: 10px auto auto 8px; width: 6px; height: 1.7px; transform: rotate(45deg); background: var(--muted); }
.search input { width: 100%; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; padding: 10px 12px 10px 37px; font-size: 15px; }
.categories { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 3px; }
.categories button { white-space: nowrap; border: 1px solid var(--line); border-radius: 99px; padding: 8px 13px; color: var(--ink); background: white; font-size: 13px; }
.categories [aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
.category-strip { min-width: 0; }
.category-strip:has(.categories[hidden]) { display: none; }
.category-arrow { display: none; }
.section { margin-bottom: 30px; scroll-margin-top: 76px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section h2 { font-size: 28px; line-height: 1.1; letter-spacing: -.045em; }
.section-heading span { color: var(--muted); font-size: 13px; }

.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.collection-card {
    min-width: 0;
    width: 100%;
    min-height: 145px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    overflow: hidden;
    padding: 17px 18px;
    text-align: left;
    color: #51271d;
    background: #fde7db;
    border: 1px solid #f3dbd0;
    border-radius: 16px;
}
.collection-card:nth-child(even) { color: #233727; background: #e7eed8; border-color: #dae4c9; }
.collection-copy { display: grid; gap: 5px; align-content: center; }
.collection-copy strong { font-size: clamp(18px, 2.1vw, 29px); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.collection-description { font-size: 13px; line-height: 1.32; }
.collection-link { margin-top: 5px; font-size: 13px; font-weight: 700; }
.collection-pictures { display: flex; justify-content: center; align-items: center; }
.collection-image { width: 52%; max-width: 105px; height: 90px; padding: 5px; background: #fff; border-radius: 13px; object-fit: contain; transform: translateX(4px) rotate(-9deg); }
.collection-image + .collection-image { transform: translateX(-4px) rotate(10deg); }
#collection-details { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
#reset-collection { flex: none; border: 0; background: none; padding: 4px 0; color: var(--green); font-weight: 650; }

.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.product-photo { display: grid; place-items: center; height: 124px; background: white; }
.product-photo img { width: 100%; height: 124px; object-fit: contain; padding: 10px; }
.details { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 10px 11px 11px; }
.details h3 { min-height: 2.5em; font-size: 14px; font-weight: 620; line-height: 1.25; overflow-wrap: anywhere; }
.stock, .variant { color: var(--muted); min-height: 1.3em; font-size: 12px; }
.buy { display: grid; justify-items: center; align-content: start; grid-template-rows: auto 32px; gap: 4px; margin-top: auto; }
.price { font-size: 19px; font-weight: 760; letter-spacing: -.035em; text-align: center; white-space: nowrap; }
.price small { font-size: .68em; font-weight: 550; }
.quantity { display: flex; align-items: center; justify-content: space-between; gap: 3px; background: #edf2df; border-radius: 8px; color: var(--green); font-size: 13px; font-weight: 650; }
.quantity button { color: var(--green); min-width: 31px; min-height: 32px; padding: 0 4px; border: 0; border-radius: 8px; background: #e2ebca; font-size: 20px; line-height: 1; }
.quantity .order-button { padding: 0 13px; background: var(--green); color: white; font-size: 13px; font-weight: 700; }
.quantity button:disabled { opacity: .4; }
.unavailable .product-photo { opacity: .6; }
.empty { grid-column: 1 / -1; padding: 22px 0; color: var(--muted); }

.mobile-cart { display: none; }
#notice { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
#notice:empty { display: none; }
.more { display: block; margin: 14px auto 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--green); font-weight: 650; }
dialog { width: min(460px, calc(100% - 22px)); max-height: min(78vh, 670px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: var(--ink); }
dialog::backdrop { background: #101b12a0; }
.sheet-head, .progress-heading, .cart-line { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.sheet-head { margin-bottom: 12px; }
.close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 24px; line-height: 1; }
.cart-line { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14px; }
.cart-line .quantity { flex: none; }
.cart-line p { color: var(--muted); margin-top: 3px; }
#cart-lines h2 { margin-top: 12px; font-size: 18px; }
#cart .delivery-progress { position: sticky; top: 0; z-index: 1; margin-block: 14px 9px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8f8f0; font-size: 13px; }
#cart .delivery-progress progress { display: block; width: 100%; height: 6px; margin: 6px 0; accent-color: #547638; }
.delivery-note, .fine, .progress-caption { color: var(--muted); font-size: 12px; }
#checkout label { display: block; margin-top: 13px; font-size: 13px; font-weight: 650; }
#checkout input, #checkout textarea { display: block; width: 100%; margin-top: 4px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; color: inherit; font: inherit; font-weight: 400; }
#checkout textarea { min-height: 60px; resize: vertical; }
#checkout-error { margin-top: 7px; color: #9b2924; font-size: 13px; }
#submit { width: 100%; margin: 10px 0 6px; }
#submit:disabled { background: #dfe4d6; color: #4c5749; }
.order { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

@media (max-width: 1000px) {
    .browse { grid-template-columns: 1fr; gap: 5px; }
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .shell { width: calc(100% - 28px); }
    .header-inner { min-height: 53px; gap: 8px; }
    .brand { font-size: 26px; }
    .header-orders { font-size: 11px; }
    .header-cart { font-size: 12px; padding: 6px 8px; }
    .hero { min-height: 145px; grid-template-columns: auto; padding: 13px 14px; border-radius: 15px; }
    .hero-copy { position: relative; z-index: 1; max-width: 62%; }
    .hero h1 { font-size: clamp(23px, 7vw, 34px); }
    .hero p { margin: 6px 0 9px; font-size: 12px; }
    .hero button { font-size: 11px; padding: 7px 8px; }
    .hero-images { position: absolute; right: 5px; height: 100%; padding-right: 0; }
    .holiday-garland { inset: 0 4% auto 57%; height: 13px; }
    .holiday-garland i { width: 4px; height: 6px; margin-top: 9px; }
    .holiday-flurries span:nth-child(1) { left: 55%; top: 12%; }
    .hero-image { width: clamp(58px, 20vw, 99px); height: clamp(76px, 24vw, 118px); padding: 4px; border-radius: 12px; }
    .hero-image:nth-child(1) { display: none; }
    .hero-image:nth-child(2) { --tilt: -10deg; --shift-x: 9px; --shift-y: -7px; }
    .hero-image:nth-child(3) { --tilt: 13deg; --shift-x: -3px; --shift-y: 11px; }
    .browse { margin: 12px 0 14px; }
    .category-strip { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; align-items: center; gap: 4px; }
    .categories { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; scroll-padding-inline: 3px; }
    .categories button { scroll-snap-align: start; }
    .category-arrow { display: grid; place-items: center; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--green); font-size: 21px; }
    .category-arrow:disabled { visibility: hidden; }
    .section { margin-bottom: 22px; }
    .section h2 { font-size: 24px; }
    .section-heading { margin-bottom: 9px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .collection-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(227px, 77%); overflow-x: auto; scrollbar-width: none; }
    .collection-card { min-height: 129px; padding: 11px; }
    .collection-image { height: 65px; border-radius: 8px; }
    .collection-description, .collection-link { font-size: 12px; }
    #collection-details { align-items: flex-start; flex-direction: column; gap: 2px; }
    .details { padding: 8px; }
    .mobile-cart:not([hidden]) { display: flex; justify-content: space-between; position: fixed; z-index: 3; bottom: max(10px, env(safe-area-inset-bottom)); left: 14px; right: 14px; background: var(--green); color: white; border: 0; border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 12px #26371f40; }
    body:has(.mobile-cart:not([hidden])) { padding-bottom: 60px; }
}

@media (max-width: 350px) {
    .header-inner { gap: 6px; }
    .brand { font-size: 22px; }
    .header-orders { font-size: 10px; }
    .hero-image:nth-child(2) { display: none; }
    #header-total { display: none; }
}

