:root {
  color-scheme: light;
  --paper: var(--shop-canvas, #f4f7f4);
  --white: var(--shop-surface, #fff);
  --ink: var(--shop-ink, #172c23);
  --muted: var(--shop-muted, #52675b);
  --line: var(--shop-line, #d9e3db);
  --accent: var(--shop-primary, #20583e);
  --accent-text: #fff;
  --accent-soft: var(--shop-soft, #eaf3ec);
  --control-radius: var(--shop-radius-control, 10px);
  --card-radius: var(--shop-radius-card, 16px);
  --target-size: var(--shop-control-height, 44px);
  --display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --body: var(--shop-font, Inter, 'Segoe UI', system-ui, sans-serif);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, select, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--shop-focus, #276c4a); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.shop-status:not(.sr-only) { position: fixed; z-index: 10; inset: auto 16px 16px auto; width: max-content; max-width: min(23rem, calc(100% - 32px)); padding: 12px 15px; border-radius: var(--control-radius); color: #fff; background: var(--ink); pointer-events: none; }
.page-width { width: min(100% - 72px, 1260px); margin-inline: auto; }
.store-symbols { position: absolute; pointer-events: none; }
.shop-icon { width: 18px; height: 18px; }

.preview-bar { background: var(--shop-primary-hover, #17452f); color: #fff; font-size: .875rem; }
.preview-inner { min-height: 45px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-inner a { text-underline-offset: 3px; }
.preview-inner span { color: #fff; }
.preview-bar :focus-visible { outline-color: #fff; }

.store-header { border-bottom: 1px solid var(--line); background: var(--white); }
.store-nav { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.store-brand, .store-footer a { text-decoration: none; }
.store-brand { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: var(--target-size); font-size: 1.125rem; font-weight: 780; letter-spacing: -.045em; overflow-wrap: anywhere; }
.store-brand span { min-width: 0; }
.store-logo { flex: 0 0 auto; width: clamp(32px, 5vw, 44px); height: clamp(32px, 5vw, 44px); object-fit: contain; }
.store-nav nav { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.shop-link { display: inline-flex; align-items: center; min-height: var(--target-size); gap: 7px; font-size: .875rem; font-weight: 630; text-decoration: none; }
.shop-link:hover, .store-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-trigger { display: flex; align-items: center; gap: 8px; min-height: var(--target-size); padding: 7px 10px 7px 13px; border: 1px solid var(--accent); border-radius: var(--control-radius); color: var(--accent-text); background: var(--accent); font-size: .875rem; font-weight: 680; }
.cart-trigger:hover { filter: brightness(.93); }
.cart-trigger span { display: grid; place-items: center; min-width: 23px; height: 23px; padding-inline: 5px; border-radius: 50px; color: var(--accent); background: var(--accent-text); font-size: .75rem; }

.store-hero { display: grid; grid-template-columns: 1fr minmax(0, .86fr); min-height: 434px; margin-top: 26px; overflow: hidden; border-radius: calc(var(--card-radius) + 3px); color: var(--accent-text); background: var(--accent); }
.hero-copy { align-self: center; min-width: 0; padding: clamp(48px, 6vw, 100px); }
.hero-copy h1 { margin: 0; font: 500 clamp(3.25rem, 7vw, 7.35rem)/.95 var(--display); letter-spacing: -.063em; overflow-wrap: anywhere; }
.hero-copy p { max-width: 37ch; margin: 23px 0 0; line-height: 1.56; overflow-wrap: anywhere; white-space: pre-line; }
.hero-action { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; margin-top: 28px; padding: 10px 16px; border: 1px solid currentColor; border-radius: var(--control-radius); font-size: .875rem; font-weight: 680; text-decoration: none; }
.hero-action:hover { background: var(--accent-text); color: var(--accent); }
.hero-action:focus-visible { outline-color: var(--accent-text); }
.hero-visual { position: relative; display: grid; min-width: 0; min-height: 100%; overflow: hidden; place-items: center; isolation: isolate; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-visual img.hero-cinematic { object-position: 82% center; }
.hero-visual:empty::before, .hero-visual:empty::after { position: absolute; content: ''; width: min(77%, 420px); aspect-ratio: 1; border: 2px solid color-mix(in srgb, var(--accent-text) 28%, transparent); border-radius: 50%; }
.hero-visual:empty::before { transform: translate(-14%, -15%); }
.hero-visual:empty::after { transform: translate(14%, 15%); }
.store-hero:has(.store-poster-frame:not([hidden])) { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.store-hero:has(.store-poster-frame:not([hidden])) .hero-copy { padding: clamp(26px, 4vw, 52px) clamp(27px, 6vw, 76px); }
.store-hero:has(.store-poster-frame:not([hidden])) .hero-copy h1 { max-width: none; font-size: clamp(2.55rem, 6vw, 5.4rem); }
.store-poster-frame { grid-row: 1; display: grid; place-items: center; min-width: 0; overflow: hidden; background: var(--white); }
.store-poster-frame img { width: 100%; height: auto; max-height: min(56svh, 560px); object-fit: contain; }

.store-socials { margin-top: clamp(14px, 2.1vw, 24px); }
.store-socials ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.store-social-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--target-size); padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--white); font-size: .875rem; font-weight: 650; text-decoration: none; }
.store-social-link .shop-icon { color: var(--muted); }
.store-social-link:hover { border-color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.store-videos { margin-top: clamp(36px, 5.3vw, 78px); }
.store-videos h2 { margin: 0 0 15px; font: 500 clamp(2.2rem, 4.2vw, 3.5rem)/1.05 var(--display); letter-spacing: -.055em; }
.store-video-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.store-video-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--white); }
.store-video-card:only-child { width: min(100%, 690px); }
.store-video-player { display: grid; place-items: center; overflow: hidden; border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0; color: #fff; background: var(--ink); aspect-ratio: 16 / 9; }
.store-video-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.store-video-player video:focus-visible { outline-color: #fff; outline-offset: -4px; }
.store-video-unavailable { margin: 0; padding: 14px; font-size: .875rem; text-align: center; }
.store-video-unavailable:focus-visible { outline-color: #fff; outline-offset: 0; }
.store-video-card h3 { margin: 0; padding: 12px 14px; font-size: 1rem; line-height: 1.4; font-weight: 720; overflow-wrap: anywhere; }

.collection { margin: clamp(48px, 6.1vw, 96px) 0; scroll-margin-top: 24px; }
.collection-intro { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.collection-intro h2, .unavailable h1 { margin: 0; font: 500 clamp(2.45rem, 5vw, 4.2rem)/1.02 var(--display); letter-spacing: -.065em; }
.collection-intro p { margin: 0 0 5px; color: var(--muted); font-size: .875rem; text-align: right; white-space: nowrap; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding-block: 18px; border-top: 1px solid var(--line); }
.category-list, .collection-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.category-list button { max-width: 100%; min-height: var(--target-size); padding: 7px 15px; border: 1px solid var(--line); background: var(--white); border-radius: 100px; font-size: .875rem; font-weight: 580; overflow-wrap: anywhere; }
.category-list button[aria-pressed="true"] { color: var(--accent-text); border-color: var(--accent); background: var(--accent); }
.category-list button:hover:not([aria-pressed="true"]) { border-color: var(--ink); }
.collection-controls { justify-content: flex-end; }
.collection-controls label { position: relative; }
.collection-controls input, .collection-controls select { height: var(--target-size); width: 100%; min-width: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--white); font-size: .875rem; }
.collection-controls input { width: 181px; padding-inline-start: 35px; }
.search-products .shop-icon { position: absolute; inset: 13px auto auto 10px; color: var(--muted); pointer-events: none; }
.collection-controls select { width: 154px; padding-right: 29px; appearance: none; }
.collection-controls label:has(select)::after { position: absolute; inset: 17px 13px auto auto; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; content: ''; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
.product-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--white); }
.media-wrap { position: relative; }
.product-media { display: block; position: relative; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0; text-align: left; aspect-ratio: 1 / 1.08; background: var(--accent-soft); }
.product-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 230ms ease; }
.product-media:hover .product-image { transform: scale(1.045); }
.no-image { display: grid; place-items: center; width: 100%; height: 100%; background: var(--accent-soft); }
.no-image::before { display: block; width: 35%; aspect-ratio: 1; border: 1px solid var(--accent); border-radius: 50%; content: ''; }
.sold-out { position: absolute; inset: 10px auto auto 10px; padding: 4px 9px; border-radius: 30px; color: var(--ink); background: var(--white); font-size: .8125rem; font-weight: 650; }
.quick-add { display: grid; position: absolute; inset: auto 9px 9px auto; place-items: center; width: var(--target-size); height: var(--target-size); border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: var(--white); box-shadow: 0 2px 8px #172c231a; }
.quick-add:hover, .quick-add.is-added { color: var(--accent-text); border-color: var(--accent); background: var(--accent); }
.product-info { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 3px 10px; padding: 11px 12px 13px; }
.product-info h3, .product-info p { margin: 0; overflow-wrap: anywhere; }
.product-info h3 { font-size: 1rem; line-height: 1.4; }
.product-info h3 button { padding: 0; border: 0; background: transparent; text-align: left; font-weight: 700; line-height: inherit; }
.product-info h3 button:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-info p { font-size: .875rem; color: var(--muted); }
.product-price { margin: 0; font-size: .9375rem; font-weight: 720; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-empty { grid-column: 1 / -1; padding: 50px 20px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--white); text-align: center; }
.product-empty h3, .product-empty p { margin: 0; }
.product-empty p + button { margin-top: 15px; }

.store-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 25px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.store-footer a:first-child { color: var(--ink); font-weight: 720; overflow-wrap: anywhere; }
.unavailable { padding-block: 100px; }
.unavailable p { color: var(--muted); }

.shop-dialog { position: fixed; width: min(100% - 24px, 650px); max-height: min(90dvh, 805px); margin: auto; padding: 0; overflow: auto; color: var(--ink); border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--white); box-shadow: 0 22px 74px #172c2340; }
.shop-dialog::backdrop { background: #172c237c; }
.dialog-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: var(--white); }
.dialog-header h2 { margin: 0; font: 500 clamp(1.75rem, 4.8vw, 2.45rem)/1.08 var(--display); letter-spacing: -.055em; overflow-wrap: anywhere; }
.dialog-header h2:focus { outline: none; }
.dialog-close { display: grid; flex: 0 0 var(--target-size); place-items: center; width: var(--target-size); height: var(--target-size); padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.dialog-close:hover { border-color: var(--ink); }
.dialog-body, .dialog-footer { padding: 22px 24px; }
.dialog-footer { border-top: 1px solid var(--line); background: var(--paper); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-media { overflow: hidden; border-radius: var(--control-radius); aspect-ratio: 1; }
.detail-thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--target-size), 1fr)); gap: 7px; margin-top: 10px; }
.detail-thumbnail { display: block; width: 100%; min-height: var(--target-size); padding: 2px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--white); aspect-ratio: 1; }
.detail-thumbnail[aria-pressed="true"] { border: 2px solid var(--accent); padding: 1px; }
.detail-thumbnail:hover { border-color: var(--ink); }
.product-detail p { margin: 0 0 14px; overflow-wrap: anywhere; white-space: pre-line; }
.product-detail .detail-category, .dialog-note { font-size: .875rem; color: var(--muted); }
.product-detail .detail-price { font-size: 1.25rem; font-weight: 720; }
.product-detail .detail-stock { width: fit-content; padding: 3px 9px; border: 1px solid var(--line); border-radius: 100px; background: var(--white); font-size: .8125rem; }
.product-detail .shop-button { margin-top: 8px; }
.shop-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--target-size); padding: 8px 15px; border: 1px solid var(--accent); border-radius: var(--control-radius); background: var(--accent); color: var(--accent-text); font-size: .875rem; font-weight: 680; text-decoration: none; }
.shop-button:hover:not(:disabled) { filter: brightness(.9); }
.shop-button:disabled, .shop-button-secondary { background: transparent; color: var(--muted); border-color: var(--line); }
.shop-button-secondary:hover { border-color: var(--ink); }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 69px minmax(0, 1fr) auto; gap: 12px; padding-block: 13px; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-media { width: 100%; height: 74px; overflow: hidden; border-radius: 8px; }
.cart-item h3, .cart-item p { margin: 0; overflow-wrap: anywhere; }
.cart-item h3 { font-size: 1rem; line-height: 1.3; }
.cart-item .cart-line-price { font-weight: 720; }
.cart-quantity { width: fit-content; display: flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 100px; }
.cart-quantity button { display: grid; place-items: center; width: var(--target-size); min-height: var(--target-size); padding: 0; border: 0; border-radius: 100px; background: transparent; }
.cart-quantity button:hover:not(:disabled) { background: var(--accent-soft); }
.cart-quantity button:disabled { color: #767a73; }
.cart-quantity span { min-width: 22px; font-size: .875rem; text-align: center; }
.cart-item-total { text-align: right; }
.cart-remove { min-height: var(--target-size); padding: 0; border: 0; color: var(--muted); background: transparent; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-subtotal { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 650; }
.cart-subtotal strong { font-size: 1.45rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dialog-footer p { margin-top: 9px; }
.dialog-footer [data-checkout] { justify-content: space-between; width: 100%; }
.delivery-choice { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.delivery-choice legend, .delivery-choice h3 { margin: 0 0 6px; padding: 0; font-size: .9375rem; font-weight: 730; }
.delivery-choice p { margin: 0; color: var(--muted); font-size: .875rem; }
.delivery-option { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); cursor: pointer; }
.delivery-option + .delivery-option { margin-top: 7px; }
.delivery-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.delivery-option input { flex-shrink: 0; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); }
.delivery-option .shop-icon { margin-top: 2px; color: var(--accent); }
.delivery-option strong, .delivery-option small { display: block; font-size: .875rem; }
.delivery-option small { color: var(--muted); }
.delivery-choice .delivery-notes { margin-top: 8px; overflow-wrap: anywhere; white-space: pre-line; }
.empty-cart p { margin: 0 0 16px; }

@media (min-width: 691px) {
  .store-hero:has(.store-poster-frame:not([hidden])) .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 28px; }
  .store-hero:has(.store-poster-frame:not([hidden])) .hero-action { grid-area: 1 / 2 / span 2; margin-top: 0; }
}

@media (max-width: 930px) {
  .page-width { width: calc(100% - 44px); }
  .store-hero { min-height: 365px; }
  .hero-copy { padding: 43px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 690px) {
  .store-nav { min-height: 64px; }
  .store-hero { grid-template-columns: 1fr; margin-top: 16px; }
  .hero-copy { padding: 34px 27px; }
  .hero-copy h1 { max-width: 13ch; }
  .hero-copy p { margin-top: 16px; }
  .hero-action { margin-top: 20px; }
  .hero-visual:not(:empty) { min-height: 255px; aspect-ratio: 1.65; }
  .hero-visual img.hero-cinematic { object-position: 93% center; }
  .hero-visual:empty { display: none; }
  .collection-toolbar { flex-direction: column; }
  .collection-controls { width: 100%; justify-content: flex-start; }
  .collection-controls label:has(input) { flex: 1 1 145px; }
  .collection-controls label:has(select) { flex: 0 1 154px; }
  .collection-controls input, .collection-controls select { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 530px) {
  .product-detail { grid-template-columns: minmax(0, 1fr); }
  .detail-media { aspect-ratio: 1.35; }
}

@media (max-width: 410px) {
  .page-width { width: calc(100% - 32px); }
  .preview-bar { font-size: .8125rem; }
  .store-nav { gap: 10px; }
  .store-nav nav { gap: 11px; }
  .store-nav nav .shop-icon { display: none; }
  .cart-trigger { gap: 5px; padding-inline: 8px; }
  .product-grid { gap: 24px 11px; }
  .product-info { grid-template-columns: 1fr; }
  .product-price { grid-row: 2; }
  .dialog-header, .dialog-body, .dialog-footer { padding: 17px; }
  .cart-item { grid-template-columns: 55px minmax(0, 1fr) auto; gap: 9px; }
}

@media (max-width: 350px) {
  .store-nav nav { gap: 6px; }
  .cart-item { grid-template-columns: 48px minmax(0, 1fr); }
  .cart-item-total { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
