:root {
  color-scheme: light;
  --ink: #182921;
  --muted: #53645b;
  --paper: #f6f8f5;
  --line: #d6dfd6;
  --forest: #224c3d;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--forest); }
:is(a, button, select, summary):focus-visible { outline: 3px solid #537e68; outline-offset: 3px; }
.wrap { width: min(100% - 2.5rem, 66rem); margin-inline: auto; }
.header { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; }
.wordmark { color: var(--ink); font-weight: 800; letter-spacing: .16em; text-decoration: none; }
.shop-link { font-size: .95rem; text-underline-offset: .2em; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.055em; }
h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; }
.shop-intro { padding-block: clamp(2.5rem, 7vw, 4.4rem) 1.8rem; }
.shop-intro p, .intro { margin-top: .75rem; color: var(--muted); font-size: 1.1rem; }
.shop-grid, .product { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-grid { gap: 1.25rem; padding-bottom: 3rem; }
.card, .product-image { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.card-image { display: block; }
.card-image img, .product-image img { display: block; width: 100%; object-fit: contain; }
.card-image img { aspect-ratio: 16 / 11; height: auto; padding: 1rem; }
.card-content { padding: 1.2rem; border-top: 1px solid var(--line); }
.card-content p { margin-block: .45rem 1rem; color: var(--muted); }
.card-content .card-price { color: var(--ink); font-weight: 750; }
.button { display: inline-block; border: 1px solid var(--forest); border-radius: .5rem; padding: .55rem .95rem; color: var(--forest); text-decoration: none; font-weight: 700; }
.button:hover { background: #e7efe7; }
.primary { display: block; padding: .8rem 1.25rem; color: #fff; background: var(--forest); text-align: center; }
.primary:hover { background: #183d30; }
.product { align-items: start; gap: clamp(1.6rem, 5vw, 4rem); padding-block: clamp(1.5rem, 5vw, 4rem); }
.product-image img { aspect-ratio: 1; height: auto; padding: clamp(.75rem, 3vw, 1.75rem); }
.product-gallery { min-width: 0; }
.gallery-thumbnails { display: grid; grid-auto-flow: column; grid-auto-columns: 4.35rem; gap: .5rem; overflow-x: auto; padding: .45rem; margin: .5rem -.45rem 0; scroll-snap-type: x proximity; }
.gallery-thumb { display: block; padding: .2rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: .5rem; background: #fff; cursor: pointer; scroll-snap-align: start; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-expand { margin-top: .4rem; border: 0; padding: .35rem 0; color: var(--forest); background: none; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
#gallery-dialog { width: min(92vw, 62rem); max-height: 92vh; margin: auto; padding: .8rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
#gallery-dialog::backdrop { background: #182921b8; }
#gallery-dialog form { display: flex; justify-content: end; }
#gallery-dialog button { background: #fff; cursor: pointer; }
#gallery-dialog img { display: block; width: 100%; max-height: 75vh; object-fit: contain; }
.product-content h1 { max-width: 17ch; }
.options { display: grid; grid-template-columns: 1fr 1.6fr; gap: .8rem; margin-top: 1.5rem; }
.options label { display: block; min-width: 0; font-size: .9rem; font-weight: 650; }
select { appearance: none; display: block; width: 100%; margin-top: .35rem; border: 1px solid #9aada1; border-radius: .5rem; background: #fff; color: var(--ink); padding: .65rem 1.9rem .65rem .65rem; font: inherit; }
.options label { position: relative; }
.options label::after { position: absolute; right: .85rem; bottom: 1rem; width: .45rem; height: .45rem; border: solid var(--forest); border-width: 0 2px 2px 0; transform: rotate(45deg); content: ""; pointer-events: none; }
.pack-details { margin-top: 1.3rem; }
.pack-details h2 { margin-bottom: .2rem; }
.included, .delivery, details p { color: var(--muted); }
.included { margin-top: .45rem; }
.offer { margin-top: 1.35rem; }
.price { font-size: 1.55rem; font-weight: 750; }
.delivery { margin-bottom: .7rem; }
.pending { padding: .75rem; border-radius: .5rem; background: #e3ebe3; color: #35433a; text-align: center; }
details { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: .65rem; }
summary { cursor: pointer; font-weight: 650; }
#return-policy { margin-top: .5rem; white-space: pre-line; }
.listing-section { padding-block: 1.45rem 2rem; border-top: 1px solid var(--line); }
.listing-bullets { max-width: 78ch; padding-left: 1.25rem; margin: .8rem 0 0; }
.listing-bullets li + li { margin-top: .55rem; }
.listing-media { display: grid; gap: 1rem; margin-top: 1rem; }
.listing-media figure { margin: 0; }
.listing-media img { display: block; width: 100%; height: auto; border-radius: .65rem; background: #fff; }
footer { padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (max-width: 42rem) {
  .shop-grid, .product { grid-template-columns: 1fr; }
  .product-content h1 { max-width: none; }
  .product-image img { aspect-ratio: 4 / 3; }
}
