.banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.banner-slides { position: relative; }
html { overscroll-behavior-y: contain; }
.banner-frame { min-height: 224px; color: #fffef6; background: linear-gradient(117deg, #1d4935 22%, #315e43 78%, #386349); animation: banner-in var(--normal) ease-out; }
@keyframes banner-in { from { opacity: .8; transform: translateX(6px); } }
.banner-link { position: relative; isolation: isolate; display: flex; min-height: 224px; align-items: center; padding: 21px 18px 45px; }
.banner-copy { position: relative; z-index: 1; display: grid; min-width: 0; width: 58%; gap: 6px; overflow-wrap: anywhere; }
.banner-copy strong { font-size: 1.65rem; line-height: 1.18; }
.banner-copy > span { font-size: var(--text-sm); }
.banner-copy b { display: flex; align-items: center; font-size: var(--text-sm); }
.banner-copy b svg { width: 15px; height: 15px; }
.banner-link:focus-visible { outline: 2px solid #fff6d0; outline-offset: -4px; }
.slide-controls { position: absolute; display: flex; align-items: center; gap: 0; inset: auto 8px 0 8px; width: fit-content; max-width: calc(100% - 16px); overflow-x: auto; padding-inline: 1px; border-radius: 26px; background: #142f23; color: white; scrollbar-width: none; }
.slide-controls button { width: 44px; height: 44px; color: white; padding: 0; display: grid; place-items: center; flex: none; }
.slide-controls button:focus-visible, .green-panel :focus-visible { outline-color: #fff6d0; outline-offset: -3px; }
.dot span { width: 7px; height: 7px; background: #aebfb1; border-radius: 8px; }
.dot[aria-pressed="true"] span { width: 16px; background: #fffef4; }
.banner-pause svg { width: 15px; height: 15px; }

.ticker { display: flex; min-height: 46px; align-items: center; gap: var(--space-2); padding: 0 0 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--brand); background: var(--soft); font-size: var(--text-xs); }
.ticker > b { display: flex; align-items: center; gap: var(--space-1); white-space: nowrap; }
.ticker svg { width: 16px; height: 16px; }
.ticker-window { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ticker-track, .ticker-track > div { display: flex; width: max-content; }
.ticker-track span { padding-right: var(--space-5); }
.ticker:not(.moving) .ticker-window, .ticker:not(.moving) .ticker-track, .ticker:not(.moving) .ticker-track > div { width: auto; white-space: normal; }
.ticker:not(.moving) .ticker-track span { padding: 4px 8px 4px 0; }
.ticker.moving .ticker-window { overflow: hidden; }
.ticker.moving .ticker-track { animation: ticker-slide var(--ticker-duration) linear infinite; }
.ticker:is(:hover, :focus-within, .paused, .touch-pause) .ticker-track { animation-play-state: paused; }
.ticker-pause { width: 44px; padding: 0; }
.ticker-popup {
  position: fixed; z-index: 9; inset: auto 0 calc(var(--dock) + 8px);
  display: flex; align-items: center; justify-content: space-between;
  width: min(calc(100% - 24px), calc(var(--shell) - 40px)); margin-inline: auto;
  padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--soft); color: var(--brand-dark); box-shadow: var(--shadow);
  font-size: var(--text-sm); pointer-events: none; animation: ticker-enter 240ms ease-out both;
}
.ticker-popup.leaving { animation: ticker-leave 240ms ease-out both; }
.ticker-popup > :first-child { min-width: 0; }
.ticker-close { pointer-events: auto; color: var(--brand-dark); }
.ticker-close svg { width: 18px; height: 18px; }
.ticker-close:focus-visible { outline-offset: -2px; }
body:has(.ticker-popup) #toast { bottom: calc(var(--dock) + 86px); }
@keyframes ticker-enter { from { opacity: 0; transform: translateY(16px); } }
@keyframes ticker-leave { to { opacity: 0; } }
@keyframes ticker-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker.moving .ticker-window, .ticker.moving .ticker-track, .ticker.moving .ticker-track > div { width: auto; overflow: visible; white-space: normal; }
  .ticker.moving .ticker-track { animation: none; }
  .ticker-track > div:first-child span { padding: 4px 8px 4px 0; }
  .ticker-track > div:first-child span:not(:first-child) { display: none; }
  .ticker-track > [aria-hidden], .ticker .ticker-pause, .banner .banner-pause { display: none; }
  .ticker-popup { animation: none; }
}

.home-brand { padding: var(--space-4) 0 0; border-top: 1px solid var(--line); color: var(--brand-dark); }
.home-brand > svg { margin-bottom: var(--space-1); }
.home-brand > p { font-size: var(--text-sm); }

.shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-1); padding: var(--space-2) var(--space-1); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.home-shortcuts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shortcut-link { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-height: 70px; border-radius: var(--radius-sm); color: var(--brand-dark); font-size: var(--text-xs); font-weight: 650; text-align: center; }
.shortcut-link > span { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 14px; background: var(--soft); }
.shortcut-link:nth-child(2n) > span { background: var(--warm); color: var(--accent); }
.order-shortcuts { padding-inline: 0; border: 0; }
.home-promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.promo { display: flex; min-height: 70px; align-items: center; gap: var(--space-2); padding: 8px 10px; border-radius: var(--radius-sm); background: var(--soft); color: var(--brand); }
.promo.warm { background: var(--warm); color: var(--accent); }
.promo span { flex: 1; min-width: 0; }
.promo small { color: inherit; }
.promo > svg:last-child { width: 14px; height: 14px; }
.shelf-nav { position: sticky; z-index: 4; top: var(--sticky-content); padding-bottom: var(--space-1); background: var(--canvas); }
.search-field { display: flex; align-items: center; gap: var(--space-2); }
.search-field svg { color: var(--brand); }

.sku { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.sku-photo { display: block; }
.sku-photo:focus-visible { outline-offset: -3px; z-index: 1; }
.sku-photo .picture { aspect-ratio: 1.12; }
.sku-info { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; padding: var(--space-2) var(--space-3); }
.sku-name { display: flex; flex-direction: column; min-height: 46px; overflow-wrap: anywhere; }
.sku-name b { font-size: var(--text-sm); }
.sku-bottom { display: flex; flex-wrap: wrap; min-height: 46px; justify-content: space-between; align-items: center; gap: var(--space-1); }
.quick { display: grid; place-items: center; width: 44px; color: var(--brand); background: var(--soft); border-radius: 50%; flex: none; }
.quick svg { width: 18px; height: 18px; }
.list .sku { grid-template: 1fr / minmax(96px, 31%) 1fr; }
.list .sku-photo .picture { height: 100%; min-height: 110px; }

.product-card { padding: 0; overflow: hidden; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track:focus-visible { outline-offset: -3px; }
.photo-button { position: relative; display: block; width: 100%; flex: 0 0 100%; padding: 0; scroll-snap-align: start; }
.photo-button:active:not(:disabled) { transform: none; }
.photo-button:focus-visible { outline-offset: -4px; z-index: 1; }
.photo-button .picture { aspect-ratio: 1.16; }
.photo-button img { object-fit: contain; }
.zoom-label { position: absolute; display: flex; align-items: center; gap: 4px; bottom: 12px; right: 12px; padding: 4px 9px; border-radius: 99px; color: var(--on-panel); background: var(--panel-dark); font-size: var(--text-xs); }
.zoom-label svg { width: 14px; height: 14px; }
.gallery-dots { display: flex; justify-content: center; flex-wrap: wrap; }
.gallery-dots .dot { display: grid; place-items: center; }
.gallery-dots .dot span { background: var(--outline); }
.gallery-dots .dot[aria-pressed="true"] span { background: var(--brand); }
.product-intro { padding: var(--space-4); }
.product-intro h1 { margin-block: 4px 10px; overflow-wrap: anywhere; }
.product-intro .amount { display: block; margin-block: 12px; font-size: 1.8rem; }
.photo-dialog { padding: var(--space-2); }
.zoom-stage { touch-action: none; overflow: hidden; }
.zoom-stage .picture { aspect-ratio: 1; max-height: 64dvh; }
.zoom-stage img { object-fit: contain; user-select: none; -webkit-user-drag: none; }
.zoom-controls { display: flex; gap: var(--space-2); justify-content: flex-end; margin-top: var(--space-2); }
.zoom-controls button:disabled { opacity: .65; }
.benefit-row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); color: var(--brand); }
.benefit-row span { flex: 1; }
.purchase-bar { display: grid; grid-template-columns: auto 44px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-2); padding: 8px var(--gutter); }
.purchase-bar .product-cart { padding-inline: 0; }
.purchase-bar > b { grid-column: span 2; text-align: center; }
.purchase-bar > a svg { width: 17px; height: 17px; }
.cart-row { flex-wrap: wrap; }
.cart-row .grow { flex-basis: calc(100% - 64px); }
.cart-row .stepper { margin-left: auto; }
.cart-swipe { position: relative; overflow: hidden; touch-action: pan-y; }
.cart-swipe .cart-row { position: relative; background: var(--paper); transform: translateX(var(--swipe, 0)); }
.cart-delete-track { position: absolute; inset: 0; display: grid; place-items: center end; padding: 0 24px; background: var(--error-bg); color: var(--danger); }
#cart-undo { position: fixed; z-index: 11; inset: auto 0 calc(var(--dock) + 12px); width: min(calc(100% - 24px), 400px); margin-inline: auto; padding: 4px 4px 4px 14px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); border-radius: 8px; color: var(--on-panel); background: var(--panel-dark); box-shadow: var(--shadow); }
body:has(#cart-undo:not([hidden])) #toast { bottom: calc(var(--dock) + 72px); }
.cart-flight { position: fixed; z-index: 12; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--paper); background: var(--brand) center / cover; pointer-events: none; box-shadow: var(--shadow); }
.item-name { display: flex; min-height: 44px; align-items: center; font-weight: 700; }

.quote { margin: 0 0 var(--space-2); padding: var(--space-2); border-radius: var(--radius-sm); background: var(--soft); color: var(--brand-dark); font-size: var(--text-sm); }
.quote.remote, .quote.legacy { background: var(--warm); color: var(--accent); }
.quote.blocked { background: var(--error-bg); color: var(--danger); }
.quote .plain { text-decoration: underline; }
.address-hint { margin: -8px 0 var(--space-3); }
.shipping-rules > p { margin-block: var(--space-2); color: var(--muted); }
.checkout-totals div:last-child { color: var(--accent); font-size: var(--text-lg); }
.green-panel { padding: var(--space-4); border-radius: var(--radius); color: var(--on-panel); background: linear-gradient(125deg, var(--panel-dark), var(--panel-end)); box-shadow: var(--shadow); }
.green-panel > p { margin-block: var(--space-2); color: var(--inverse-muted); }
.green-panel .line { border-color: #ffffff45; }
.green-panel .line > span:first-child { color: var(--inverse-muted); }
.green-panel small { color: var(--inverse-muted); }
.metrics { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.metrics > div { display: grid; min-width: 0; border-radius: var(--radius-sm); padding: var(--space-2); background: #ffffff14; overflow-wrap: anywhere; }
.parcel-items { padding: 6px 0 0 20px; }
.parcel-items li + li { margin-top: 4px; }
.timeline { margin-top: var(--space-2); padding: 0 0 0 14px; list-style: none; }
.timeline li { position: relative; border-left: 1px solid var(--outline); padding: 0 12px 12px; overflow-wrap: anywhere; }
.timeline li::before { position: absolute; content: ''; width: 8px; height: 8px; border-radius: 10px; left: -4px; top: 8px; background: var(--brand); }
.timeline li:last-child { border-left-color: transparent; }
.order-timeline li { border-color: var(--inverse-muted); }
.order-timeline li::before { background: var(--inverse-muted); }
.order-timeline li[aria-current]::before { box-shadow: 0 0 0 3px #ffffff35; }

.identity { display: flex; gap: var(--space-2); align-items: center; }
.avatar, .login-brand span { display: grid; width: 48px; height: 48px; place-items: center; flex: none; border-radius: 16px; background: var(--soft); color: var(--brand); }
.login-brand { display: grid; place-items: center; gap: var(--space-2); padding: var(--space-4); color: var(--brand); }
.login-brand span { background: var(--brand); color: var(--on-brand); }
.metric { display: flex; min-height: 66px; flex-direction: column; justify-content: center; gap: var(--space-1); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--brand); background: var(--soft); overflow-wrap: anywhere; }
.metric b, .metric strong { font-size: var(--text-lg); }
.wallet strong { min-width: 0; overflow-wrap: anywhere; font-size: 1.75rem; }
.ledger { color: var(--brand); }
.ledger > span { max-width: 55%; overflow-wrap: anywhere; text-align: right; }
.guide { display: grid; gap: var(--space-2); padding: 0 0 0 25px; }
.guide li::marker { color: var(--brand); font-weight: 750; }
.progress-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.progress-rail i { height: 7px; border-radius: 10px; background: #9bb3a2; }
.progress-rail .filled { background: #e8f4d3; }
.share-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.share-item { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-2); border-radius: var(--radius); background: var(--paper); overflow-wrap: anywhere; }
.share-item .picture { aspect-ratio: 1.8; border-radius: var(--radius-sm); }
.poster-studio > * + * { margin-top: var(--space-3); }
.poster-templates { display: flex; gap: var(--space-2); padding: 4px; overflow-x: auto; scroll-snap-type: x proximity; }
.template { flex: 0 0 108px; display: grid; gap: 5px; padding: 5px; min-width: 0; border-radius: 8px; border: 1px solid var(--outline); color: var(--ink); background: var(--paper); text-align: center; font-size: var(--text-xs); scroll-snap-align: start; }
.template[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--brand); font-weight: 750; }
.template canvas { width: 100%; aspect-ratio: 750 / 1334; border-radius: 4px; background: var(--surface); }
.template-classic { --surface: #215541; }
.template-warm { --surface: #ffd6a4; }
.template-clean { --surface: #f4f7f4; }
.poster-preview { position: relative; display: grid; width: min(100%, 370px); aspect-ratio: 750 / 1334; margin-inline: auto; place-items: center; border-radius: 8px; overflow: hidden; }
.poster-preview img { width: 100%; height: auto; display: block; }
.poster-status { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-3); text-align: center; }
.poster-status progress { max-width: 100%; accent-color: var(--brand); }
.poster-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.poster-actions svg { width: 17px; height: 17px; }
.poster-save-hint { text-align: center; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) 0; color: var(--muted); font-size: var(--text-sm); }
.not-found { display: grid; justify-items: center; gap: var(--space-3); padding-block: var(--space-5); }
.not-found > strong { color: var(--brand); font-size: 3rem; line-height: 1.15; }
.ticket { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }

@media (max-width: 355px) {
  .banner-copy strong { font-size: 1.42rem; }
  .home-shortcuts .shortcut-link { font-size: .75rem; }
  .promo > svg:last-child { display: none; }
  .promo { gap: 5px; }
  .sku-info { padding-inline: 8px; }
  .purchase-bar { gap: 4px; }
  .purchase-bar button, .purchase-bar a { padding-inline: 6px; font-size: var(--text-sm); }
  .row > .picture { width: 42px; height: 42px; }
}
