:root {
  --ink: #193d32;
  --paper: #f5f3ed;
  --white: #fff;
  --muted: #647163;
  --line: #d8dcd2;
  --accent: #d8ed8b;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #728d39;
  outline-offset: 4px;
}
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: white; padding: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.service-strip { background: var(--ink); color: #fff; padding: 10px 5%; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; letter-spacing: .03em; }
.catalog-header { display: flex; align-items: center; gap: 36px; padding: 26px 5%; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 40px; font-weight: 800; letter-spacing: -3px; line-height: 1; }
.wordmark span { color: #809b45; font-size: 20px; margin-left: 3px; }
.header-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; }
.header-nav a { display: inline-flex; align-items: center; min-height: 48px; }
.header-nav a:last-child { text-decoration: underline; text-underline-offset: 7px; }
.catalog-search { display: flex; width: 270px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 30px; background: white; }
.catalog-search input { min-height: 48px; border: 0; padding: 12px 0 12px 20px; min-width: 0; flex: 1; background: transparent; color: var(--ink); font-size: 16px; border-radius: 30px; }
.catalog-search button { min-height: 48px; min-width: 48px; border: 0; border-radius: 30px; background: transparent; font-size: 26px; cursor: pointer; color: var(--ink); }
main { max-width: 1440px; margin: auto; padding: 0 5%; }
.catalog-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 5%; padding: 55px 0 45px; align-items: center; }
.catalog-hero > div { min-width: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.6; }
.catalog-hero h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1.03; font-weight: 500; letter-spacing: -4px; margin: 25px 0; }
.catalog-hero h1 em { font-family: Georgia, serif; font-weight: 400; }
.catalog-hero > div > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; max-width: 340px; font-size: 15px; }
.solid-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; background: var(--ink); color: white; border-radius: 40px; padding: 17px 24px; margin-top: 16px; min-height: 48px; font-size: 14px; font-weight: 500; }
.hero-visual { height: 465px; background: #e4e8da; border-radius: 140px 140px 12px 12px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-visual:before { content: ''; position: absolute; width: 72%; aspect-ratio: 1; background: #ced8b9; border-radius: 50%; top: 15%; left: 12%; }
.hero-visual > img { width: 87%; height: 85%; object-fit: contain; mix-blend-mode: multiply; position: relative; transform: rotate(-8deg); }
.hero-stamp { position: absolute; top: 30px; right: 20px; width: 94px; height: 94px; background: var(--accent); border-radius: 50%; display: grid; place-content: center; text-align: center; transform: rotate(12deg); font-size: 12px; line-height: 1.5; }
.hero-product { position: absolute; bottom: 24px; left: 24px; right: 24px; width: fit-content; max-width: calc(100% - 48px); background: #fffef5; padding: 14px 18px; border-radius: 10px; box-shadow: 0 5px 20px #193d3210; }
.hero-product > span:first-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.5; margin-bottom: 5px; overflow-wrap: anywhere; }
.hero-product .catalog-price { font-size: 16px; }
.hero-product .pending-price { font-size: 13px; }
.hero-fallback > span { position: relative; font-size: clamp(34px, 4vw, 60px); letter-spacing: -2px; }
.hero-fallback em { font-family: Georgia, serif; }
.benefit-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; gap: 20px; }
.benefit-row a { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; line-height: 1.5; }
.benefit-row a:hover { text-decoration: underline; }
.benefit-row span { font-size: 19px; margin-right: 12px; vertical-align: middle; }
.category-directions { padding: 50px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 14px 0 26px; }
.section-heading h1, .section-heading h2 { font-size: 36px; letter-spacing: -1.3px; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.section-heading > div { min-width: 0; }
.section-heading > p { font-size: 12px; color: var(--muted); white-space: nowrap; }
.text-link { font-size: 13px; text-decoration: underline; text-underline-offset: 6px; white-space: nowrap; padding: 10px 0; }
.category-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-shortcut { min-height: 110px; border: 1px solid var(--line); padding: 22px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: background .2s, transform .2s; }
.category-shortcut:hover { background: var(--accent); transform: translateY(-3px); }
.category-shortcut small { display: block; color: var(--muted); margin-top: 9px; font-size: 11px; line-height: 1.5; }
.category-symbol { font-size: 25px; }
.catalog-section { padding: 55px 0; }
.catalog-toolbar { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.category-pill, .current-category { border: 1px solid var(--line); padding: 12px 20px; border-radius: 25px; font-size: 13px; min-height: 48px; display: inline-flex; align-items: center; line-height: 1.5; overflow-wrap: anywhere; }
.category-pill.selected { background: var(--ink); color: white; border-color: var(--ink); }
.category-pill span { color: var(--muted); margin-left: 10px; font-size: 11px; }
.category-pill.selected span { color: #d8ed8b; }
.current-category { background: #e4e8da; }
.category-picker { border: 0; padding: 0; flex: 1; min-width: min(240px, 100%); }
.category-picker > summary { border: 1px solid var(--line); border-radius: 25px; width: fit-content; min-height: 48px; padding: 13px 20px; font-size: 13px; font-weight: 400; }
.category-picker > summary span { color: var(--muted); margin-left: 6px; font-size: 11px; }
.category-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 360px; overflow-y: auto; margin-top: 15px; padding: 5px 5px 15px; scrollbar-width: thin; }
.category-list .category-pill { background: white; max-width: 100%; }
.category-list .selected { background: var(--ink); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; }
.catalog-card { min-width: 0; }
.product-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.08; border-radius: 10px; background: white; padding: 20px; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.catalog-card:hover .product-photo img { transform: scale(1.05); }
.product-placeholder { font-size: 30px; color: #7c8974; letter-spacing: -2px; font-weight: 700; }
.product-info { padding: 18px 0 0; }
.product-category { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.product-info h2 { font-size: 15px; font-weight: 500; line-height: 1.5; margin: 0; min-height: 68px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.availability { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 12px 0; }
.availability i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #87927b; margin-right: 6px; }
.availability.available i { background: #59865d; }
.availability.unavailable i { background: #a77f60; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.catalog-price { font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.catalog-price small { font-size: 12px; font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.pending-price { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.product-open { width: 48px; min-height: 48px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.catalog-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; font-size: 12px; }
.catalog-pagination a { min-height: 48px; display: inline-flex; align-items: center; padding: 13px 15px; border: 1px solid var(--line); border-radius: 25px; }
.catalog-pagination > span { font-size: 11px; color: var(--muted); }
.catalog-empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: 10px; }
.catalog-empty h2 { font-size: 26px; font-weight: 500; }
.catalog-empty p { color: var(--muted); font-size: 14px; }
.catalog-empty a { display: flex; justify-content: center; align-items: center; text-decoration: underline; min-height: 48px; }
.help-band { margin: 15px 0 55px; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 45px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.help-band h2 { font-family: Georgia, serif; font-size: 42px; letter-spacing: -1px; font-weight: 400; max-width: 480px; margin: 20px 0 0; }
.help-band > div > p:not(.eyebrow) { font-size: 14px; color: #d1dacb; line-height: 1.7; max-width: 300px; }
.light { background: var(--accent); color: var(--ink); }
.catalog-footer { border-top: 1px solid var(--line); padding: 30px 5%; color: var(--muted); font-size: 12px; }
.catalog-footer .wordmark { color: var(--ink); }
.catalog-footer p { line-height: 1.8; }
.catalog-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 15px 0; }
.catalog-footer a:not(.wordmark) { text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 48px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); padding: 28px 0; overflow-wrap: anywhere; }
.breadcrumbs a { text-decoration: underline; }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 7%; padding: 15px 0 60px; align-items: start; }
.product-layout > *, .product-summary { min-width: 0; }
.product-gallery { display: grid; gap: 20px; }
.product-gallery img { display: block; max-width: 100%; width: 100%; max-height: 600px; object-fit: contain; background: white; padding: 28px; border-radius: 12px; }
.product-summary h1 { font-size: 36px; line-height: 1.25; font-weight: 500; letter-spacing: -1px; overflow-wrap: anywhere; }
.own-sku { font-size: 11px; color: var(--muted); margin: 15px 0 25px; }
.purchase-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 16px; }
.purchase-price .catalog-price { font-size: 34px; }
.purchase-price .pending-price { font-size: 20px; }
.purchase-payment { margin: 0; font-size: 14px; font-weight: 600; }
.purchase-actions { display: grid; gap: 8px; max-width: 440px; }
.buy-button { display: flex; justify-content: center; margin: 0; }
.delivery-summary { background: #e4e8da; padding: 16px 20px; border-radius: 12px; margin: 16px 0 22px; }
.delivery-summary h2 { font-size: 16px; margin: 0 0 6px; }
.delivery-summary p, .delivery-summary a, .checkout-help { font-size: 14px; line-height: 1.6; }
.delivery-summary p { margin: 0 0 4px; }
.delivery-summary nav { display: flex; flex-wrap: wrap; column-gap: 16px; }
.delivery-summary a, .checkout-help { display: inline-flex; align-items: center; min-height: 48px; text-decoration: underline; text-underline-offset: 4px; }
details { border-top: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-size: 14px; font-weight: 700; min-height: 48px; line-height: 1.5; }
details > p { font-size: 14px; line-height: 1.8; }
.product-description { white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); }
.store-checkout { scroll-margin-top: 24px; margin: 20px 0 70px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: #e4e8da; border-radius: 12px; }
.store-checkout > div > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.7; }
.store-checkout h2 { font-family: Georgia, serif; font-weight: 400; font-size: 42px; margin: 10px 0 20px; }
.store-checkout form { display: grid; gap: 14px; min-width: 0; }
.store-checkout label { display: grid; gap: 7px; font-size: 14px; line-height: 1.5; }
.store-checkout input:not([type="checkbox"]), .store-checkout select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #b5c1ac; background: white; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); }
.store-checkout button { min-height: 48px; font-size: 16px; }
.store-checkout button:not(.solid-button) { justify-self: start; border: 1px solid var(--ink); background: transparent; border-radius: 25px; padding: 10px 18px; color: var(--ink); cursor: pointer; }
.store-checkout .solid-button { border: 0; cursor: pointer; justify-content: center; }
.store-checkout .consent { display: flex; align-items: flex-start; line-height: 1.5; gap: 10px; }
.store-checkout #store-meta-choice[hidden] { display: none; }
.store-checkout .consent input { margin-top: 5px; }
.store-checkout .consent a { text-decoration: underline; text-underline-offset: 3px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.payment-choice { font-weight: 700; font-size: 14px; line-height: 1.5; }
#order-result, #delivery-result { line-height: 1.6; overflow-wrap: anywhere; }
button:disabled { opacity: .6; cursor: wait; }
@media (min-width: 1440px) {
  .catalog-header, .service-strip, .catalog-footer { padding-left: max(5%, calc((100vw - 1296px) / 2)); padding-right: max(5%, calc((100vw - 1296px) / 2)); }
}
@media (max-width: 1050px) {
  .catalog-header { gap: 24px; }
  .header-nav { gap: 18px; font-size: 13px; }
  .catalog-search { width: 240px; }
  .catalog-hero h1 { letter-spacing: -2px; }
  .hero-visual { height: 380px; }
  .category-shortcut { padding: 18px; }
  .product-layout { gap: 5%; }
  .product-summary h1 { font-size: 28px; }
}
@media (max-width: 900px) {
  .header-nav { display: none; }
  .catalog-search { margin-left: auto; }
  .category-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-row { flex-wrap: wrap; gap: 0 20px; }
  .help-band { padding: 30px; gap: 25px; }
  .help-band h2 { font-size: 36px; }
}
@media (max-width: 740px) {
  .service-strip { padding: 10px 5%; font-size: 11px; text-align: center; justify-content: center; }
  .service-strip > a { display: none; }
  .catalog-header { padding: 20px 5%; gap: 16px; flex-wrap: wrap; }
  .catalog-header .wordmark { min-height: 48px; display: flex; align-items: center; }
  .wordmark { font-size: 34px; }
  .catalog-search { width: auto; flex: 1; min-width: 0; max-width: 100%; }
  .catalog-search input { padding-left: 12px; }
  .catalog-hero { grid-template-columns: 1fr; padding: 35px 0; gap: 30px; }
  .catalog-hero h1 { font-size: clamp(42px, 9.5vw, 64px); letter-spacing: -2px; }
  .catalog-hero > div > p:not(.eyebrow) { max-width: 100%; }
  .hero-visual { height: 360px; }
  .hero-stamp { width: 80px; height: 80px; font-size: 11px; }
  .benefit-row { flex-wrap: wrap; gap: 0 18px; padding: 4px 0; }
  .benefit-row span { display: inline-block; min-width: 22px; }
  .category-directions { padding-top: 35px; }
  .section-heading h1, .section-heading h2 { font-size: 29px; }
  .section-heading { align-items: flex-start; }
  .section-heading > p { font-size: 11px; }
  .category-directions .section-heading { flex-wrap: wrap; }
  .category-shortcut { padding: 16px; font-size: 14px; }
  .category-shortcut small { font-size: 11px; }
  .category-symbol { font-size: 22px; }
  .catalog-section { padding: 35px 0; }
  .catalog-grid { gap: 28px 14px; }
  .product-photo { padding: 12px; }
  .product-info h2 { font-size: 14px; min-height: 63px; }
  .catalog-price { font-size: 18px; }
  .catalog-price small { font-size: 11px; margin-left: 3px; }
  .pending-price { font-size: 13px; }
  .catalog-pagination { font-size: 11px; gap: 8px; }
  .catalog-pagination a { padding: 12px; }
  .help-band { display: block; margin-bottom: 36px; padding: 26px; }
  .help-band h2 { font-size: 34px; }
  .help-band > div > p:not(.eyebrow) { margin-top: 22px; }
  .catalog-footer { padding: 30px 5%; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; padding-bottom: 35px; }
  .product-summary h1 { font-size: 29px; }
  .product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-gallery img { padding: 14px; }
  .product-gallery img:first-child { grid-column: 1/-1; }
  .purchase-price .catalog-price:not(.pending-price) { font-size: 30px; }
  .purchase-actions { max-width: none; }
  .purchase-actions:has(.cart-add) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .purchase-actions:has(.cart-add) .buy-button, .purchase-actions .cart-add { min-height: 56px; padding: 8px; font-size: 14px; text-align: center; }
  .purchase-actions .cart-add { border-radius: 40px; }
  .breadcrumbs { padding: 20px 0; line-height: 1.5; }
  .store-checkout { margin: 24px 0; padding: 24px; grid-template-columns: 1fr; gap: 24px; }
  .store-checkout h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-photo img, .category-shortcut { transition: none; }
}

/* Product photos stay compact; horizontal scrolling also works without JS. */
.product-gallery { display: block; min-width: 0; }
.gallery-track { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 12px; background: white; scrollbar-width: thin; }
.gallery-track:focus-visible { outline: 3px solid #728d39; outline-offset: 4px; }
.gallery-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: 440px; object-fit: contain; padding: 20px; }
.gallery-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px; margin-top: 8px; }
.gallery-thumbnails[hidden] { display: none; }
.gallery-thumbnails button { display: grid; place-items: center; flex: 0 0 64px; width: 64px; min-height: 64px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); cursor: pointer; padding: 4px; }
.gallery-thumbnails button[aria-pressed=true] { border: 2px solid var(--ink); }
.gallery-thumbnails img { width: 52px; height: 52px; padding: 0; border-radius: 4px; object-fit: contain; }
.gallery-hint { font-size: 12px; color: var(--muted); margin: 8px 0; }
.model-photo-caption { margin: 10px 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.product-description { white-space: normal; }
.product-description h2, .product-facts h2, .product-contents h2 { color: var(--ink); font-size: 18px; font-weight: 500; margin: 28px 0 14px; }
.product-description p { margin: 0 0 14px; line-height: 1.75; font-size: 14px; }
.product-facts dl { margin: 0; font-size: 14px; line-height: 1.5; }
.product-facts dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--muted); overflow-wrap: anywhere; }
.product-facts dd { margin: 0; overflow-wrap: anywhere; }
.product-contents ul { padding-left: 20px; font-size: 14px; line-height: 1.8; }
.mobile-purchase { display: none; }
@media (max-width: 740px) {
  .store-product { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .store-product .service-strip { display: none; }
  .store-product .catalog-header { padding-block: 8px; gap: 8px; }
  .store-product .breadcrumbs { padding-block: 10px; }
  .product-layout { gap: 12px; padding-top: 0; }
  .gallery-slide img { height: clamp(184px, 58vw, 320px); }
  .gallery-thumbnails { gap: 8px; }
  .gallery-thumbnails button { flex-basis: 56px; width: 56px; min-height: 56px; }
  .gallery-thumbnails img { width: 44px; height: 44px; }
  .product-summary h1 { font-size: 25px; line-height: 1.3; margin: 12px 0; }
  .own-sku { margin: 12px 0 18px; }
  .mobile-purchase { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 5% calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px #193d3210; }
  .mobile-purchase[hidden] { display: none; }
  .mobile-purchase .solid-button { margin: 0; min-height: 48px; font-size: 16px; gap: 12px; padding: 14px 22px; }
  .mobile-price-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
  .mobile-purchase .catalog-price { font-size: 22px; }
  .mobile-purchase .pending-price { font-size: 13px; }
}

/* Existing-store cart: the same palette, spacious controls and visible unit limit. */
.basket-feedback { max-width: 1280px; margin: 0 auto; padding: 0 24px; overflow-wrap: anywhere; }
.basket-feedback:not(:empty) { padding-top: 12px; padding-bottom: 12px; }
.cart-add { min-height: 48px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; font-size: 16px; }
.product-info .cart-add { width: 100%; margin-top: 14px; }
.product-summary .cart-add { display: block; width: 100%; }
.store-cart { max-width: 1180px; margin: auto; padding: 48px 24px 96px; }
.cart-heading h1 { margin: 12px 0; font-size: clamp(32px, 6vw, 60px); }
.cart-heading { margin-bottom: 32px; }
.cart-panel { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 76px; height: 86px; object-fit: contain; border-radius: 12px; background: var(--paper); }
.cart-line a, .cart-line p, .cart-line strong { overflow-wrap: anywhere; }
.cart-line a { text-decoration: underline; text-underline-offset: 4px; line-height: 1.5; }
.cart-line p { color: var(--muted); margin: 8px 0 0; }
.cart-line button, .cart-actions button { min-height: 48px; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--paper); color: var(--ink); cursor: pointer; }
.cart-summary { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; padding-top: 28px; font-size: 20px; }
.cart-summary strong { font-size: clamp(24px, 4vw, 34px); overflow-wrap: anywhere; }
.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.store-checkout[hidden], .cart-actions [hidden] { display: none; }
.store-cart .store-checkout { margin-top: 36px; }
@media (max-width: 700px) {
  .store-cart { padding: 28px 16px 64px; }
  .cart-panel { padding: 20px 16px; border-radius: 18px; }
  .cart-line { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .cart-line img { grid-row: span 2; width: 64px; height: 72px; }
  .cart-line:has(img) { grid-template-columns: 64px minmax(0,1fr); }
  .cart-line strong, .cart-line button { grid-column: 2; }
  .cart-line:not(:has(img)) strong, .cart-line:not(:has(img)) button { grid-column: auto; }
  .cart-summary { flex-wrap: wrap; }
  .cart-actions button { width: 100%; }
  .header-nav { flex-wrap: wrap; }
}

.header-cart { display:inline-flex; align-items:center; min-height:48px; flex-shrink:0; font-size:16px; gap:4px; text-decoration:underline; text-underline-offset:5px; }
@media (max-width: 600px) {
  .header-cart { margin-left:auto; }
  .catalog-header:has(.header-cart) .catalog-search { flex-basis:100%; width:100%; }
}

.cart-quantity { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
.cart-quantity button { min-width:48px; min-height:48px; padding:8px; font-size:20px; }
.cart-quantity input { width:70px; min-width:0; min-height:48px; padding:10px; border:1px solid var(--line); border-radius:10px; background:white; color:var(--ink); font:inherit; font-size:16px; text-align:center; }
.cart-quantity input:focus-visible { outline:3px solid var(--ink); outline-offset:2px; }

/* The next step stays beside the item and within reach of a long mobile cart. */
.cart-add-feedback { margin: 12px 0 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; scroll-margin-bottom: 100px; }
.cart-next { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 8px; padding: 12px 14px; background: var(--ink); color: var(--paper); border-radius: 12px; font-size: 16px; text-align: center; }
.cart-add-feedback[hidden], .cart-next[hidden], .cart-checkout-nav[hidden] { display: none; }
.cart-checkout-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin: 0 0 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.cart-checkout-nav > div { min-width: 0; }
.cart-checkout-nav span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.cart-checkout-nav strong { display: block; font-size: 22px; overflow-wrap: anywhere; }
.cart-checkout-nav .solid-button { margin: 0; min-height: 48px; padding: 14px 18px; font-size: 16px; text-align: center; justify-content: center; }
@media (max-width: 740px) {
  .store-cart-page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .cart-checkout-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; margin: 0; border-radius: 0; border-width: 1px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px #193d3210; }
  .cart-checkout-nav strong { font-size: 20px; }
  .cart-checkout-nav .solid-button { flex-shrink: 0; max-width: 60%; padding: 12px; }
  .store-cart .store-checkout { padding: 20px; }
  .store-cart .store-checkout h2 { font-size: 30px; margin-bottom: 12px; }
}
