:root {
  color-scheme: dark;
  --paper: #314b36;
  --surface: #1d2920;
  --ink: #f2f2ef;
  --muted: #a0a1a5;
  --line: #4d654f;
  --accent: #9fdb92;
  --accent-deep: #73b96d;
  --moss: #92a98f;
  --shadow: 0 18px 50px rgba(24, 24, 21, 0.12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--paper); }
html, body { overscroll-behavior-y: none; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(174,207,167,.11) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, ui-sans-serif, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

button, .product-image-wrap, .screen-view, .menu-panel, .account-panel, .feature-track, .gallery-track, .toast {
  -webkit-tap-highlight-color: transparent;
}

.app-shell { min-height: 100dvh; padding-bottom: calc(92px + var(--safe-bottom)); }

.topbar {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 68px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(31, 47, 34, 0.92);
  border-bottom: 0;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  will-change: background-color;
  isolation: isolate;
}

.wordmark { align-items: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; display: flex; justify-content: center; padding: 0; text-decoration: none; transform: translateZ(0); transition: opacity .2s ease, transform .24s cubic-bezier(.22,.7,.25,1); }
.wordmark:active { opacity: .78; transform: scale(.94) translateZ(0); }
.topbar > .wordmark { height: 56px; max-height: 56px; min-width: 90px; overflow: hidden; width: 90px; }
.topbar > .wordmark img { display: block; height: 48px !important; max-height: 48px; max-width: 76px; object-fit: contain; width: 76px !important; }
.wordmark span { font-size: 15px; font-weight: 800; letter-spacing: .12em; line-height: 1; }
.wordmark small, .eyebrow { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .14em; line-height: 1.4; }
.topbar-actions { align-items: center; display: flex; gap: 4px; justify-content: flex-end; }
.topbar-left { align-items: center; display: flex; gap: 2px; }
.topbar-left { justify-self: start; }
.topbar-actions { justify-self: end; }
.menu-panel, .account-panel { background: rgba(26,27,31,.96); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 0 0 16px 16px; box-shadow: var(--shadow); color: var(--ink); left: 12px; padding: 14px; position: fixed; right: 12px; top: 68px; z-index: 25; }
.menu-panel, .account-panel { opacity: 0; transform: translate3d(0, -14px, 0); transition: opacity .28s cubic-bezier(.22,.7,.25,1), transform .28s cubic-bezier(.22,.7,.25,1); will-change: opacity, transform; }
.menu-panel.is-open, .account-panel.is-open { opacity: 1; transform: translate3d(0, 0, 0); }
.menu-panel button:not(.icon-button) { background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; display: block; font-size: 15px; padding: 14px 4px; text-align: left; transform: translateZ(0); transition: background-color .24s cubic-bezier(.22,.7,.25,1), padding-left .28s cubic-bezier(.22,.7,.25,1), transform .22s cubic-bezier(.22,.7,.25,1); width: 100%; will-change: transform, background-color; }
.menu-panel button:not(.icon-button):hover { background: rgba(174,207,167,.08); padding-left: 9px; transform: scale(1.01) translateZ(0); }
.menu-panel button:not(.icon-button):active { transform: scale(.98) translateZ(0); }
.menu-head { align-items: center; display: flex; justify-content: space-between; padding: 0 2px 8px; }
.profile-card { align-items: center; display: flex; gap: 12px; padding: 18px 4px; }
.profile-card span { color: var(--muted); display: block; font-size: 12px; margin-top: 4px; }
.profile-avatar { align-items: center; background: var(--line); border-radius: 50%; display: flex; height: 48px; justify-content: center; overflow: hidden; width: 48px; }
.profile-avatar img { height: 100%; object-fit: cover; width: 100%; }
.panel-copy { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 4px; }
.admin-link { align-items: center; background: rgba(174,207,167,.1); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); display: inline-flex; font-size: 13px; gap: 8px; justify-content: center; margin: 8px 4px 2px; padding: 11px 13px; text-decoration: none; transition: transform .22s cubic-bezier(.22,.7,.25,1), background-color .22s ease; width: calc(100% - 8px); }
.admin-link:active { transform: scale(.97); }
.admin-link svg { height: 15px; width: 15px; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: 50%; cursor: pointer; display: inline-flex; height: 36px; justify-content: center; padding: 0; position: relative; transform: translateZ(0); transition: background-color .2s ease, transform .2s cubic-bezier(.22,.7,.25,1); width: 36px; }
.icon-button:hover { background: rgba(174, 207, 167, .12); }
.icon-button:active { transform: scale(.9) translateZ(0); }
.icon-button svg { height: 18px; stroke-width: 1.7; width: 18px; }
.bag-count { align-items: center; background: var(--accent); border: 2px solid var(--paper); border-radius: 50%; color: #fff; display: flex; font-size: 9px; font-weight: 800; height: 17px; justify-content: center; line-height: 1; min-width: 17px; padding: 0 3px; position: absolute; right: -1px; top: -1px; }
.favorites-count { align-items: center; background: var(--accent); border: 2px solid var(--paper); border-radius: 50%; color: #fff; display: flex; font-size: 9px; font-weight: 800; height: 17px; justify-content: center; min-width: 17px; padding: 0 3px; position: absolute; right: -1px; top: -1px; }

main, .screen-view { margin: 0 auto; max-width: 1240px; overscroll-behavior-y: contain; padding: 0 18px; }
.intro-block { padding: 52px 0 34px; }
.eyebrow { align-items: center; display: inline-flex; gap: 8px; }
.eyebrow-dot { background: var(--accent); border-radius: 50%; display: inline-block; height: 6px; width: 6px; }
.intro-block h1 { font-size: clamp(38px, 11vw, 74px); font-weight: 650; letter-spacing: 0; line-height: .98; margin: 17px 0 12px; max-width: 620px; }
.intro-block p { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 0; }
.feature-carousel { margin: 18px 0 18px; overflow: hidden; position: relative; }
.feature-carousel, .detail-hero { touch-action: pan-y; }
.feature-track { display: flex; transform: translate3d(0, 0, 0); transition: transform .52s cubic-bezier(.22,.7,.25,1); will-change: transform; }
.feature-slide { border-radius: 16px; flex: 0 0 100%; height: 185px; overflow: hidden; position: relative; }
.feature-slide img { height: 100%; object-fit: cover; width: 100%; }
.feature-slide::after { background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 60%); content: ""; inset: 0; position: absolute; }
.feature-caption { bottom: 16px; color: #fff; display: flex; flex-direction: column; gap: 4px; left: 17px; position: absolute; z-index: 1; }
.feature-caption span { font-size: 9px; font-weight: 700; letter-spacing: .14em; opacity: .78; }
.feature-caption strong { font-size: 21px; font-weight: 650; }
.feature-dots { bottom: 13px; display: flex; gap: 6px; position: absolute; right: 16px; z-index: 2; }
.feature-dot { background: rgba(255,255,255,.5); border: 0; border-radius: 50%; cursor: pointer; height: 6px; padding: 0; transform: translateZ(0); transition: background-color .22s ease, transform .28s cubic-bezier(.22,.7,.25,1); width: 6px; }
.feature-dot.is-active { background: #fff; transform: scale(1.25) translateZ(0); }

.search-row { align-items: center; border-bottom: 1px solid var(--ink); display: flex; gap: 10px; margin: 0 0 24px; padding: 0 0 10px; }
.search-row > svg { color: var(--muted); height: 18px; width: 18px; }
.search-row input { background: transparent; border: 0; color: var(--ink); flex: 1; font-size: 16px; min-width: 0; outline: 0; }
.search-row input::placeholder { color: #a4a19a; }
.clear-search { background: transparent; border: 0; cursor: pointer; display: inline-flex; padding: 3px; }
.clear-search svg { height: 16px; width: 16px; }

.category-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 23px; overflow-x: auto; padding-bottom: 11px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.tab { background: transparent; border: 0; color: var(--muted); cursor: pointer; flex: 0 0 auto; font-size: 13px; padding: 0; position: relative; transition: color .24s ease, transform .2s cubic-bezier(.22,.7,.25,1); }
.tab:active { transform: scale(.96); }
.tab::after { background: transparent; bottom: -12px; content: ""; height: 2px; left: 0; position: absolute; right: 0; }
.tab.is-active { color: var(--ink); font-weight: 700; }
.tab.is-active::after { background: var(--accent); }

.catalog-section { padding: 28px 0 48px; }
.category-stage { overflow: hidden; position: relative; }
.category-stage.is-previewing { display: flex; }
.category-stage.is-previewing.is-preview-reverse { flex-direction: row-reverse; }
.category-stage.is-previewing .product-grid { flex: 0 0 100%; }
.category-stage.is-previewing .category-preview { display: grid !important; }
.category-stage.is-category-dragging { transition: none; will-change: transform; }
.section-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 15px; position: relative; transform: translateY(-9px); z-index: 10; }
.section-heading h2 { font-size: 20px; font-weight: 650; letter-spacing: 0; margin: 0; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); }
.sort-control { align-items: center; color: var(--muted); display: inline-flex; gap: 4px; position: relative; z-index: 11; }
.sort-button { align-items: center; background: rgba(174,207,167,.1); border: 1px solid rgba(174,207,167,.26); border-radius: 12px; color: var(--ink); cursor: pointer; display: inline-flex; height: 34px; justify-content: center; padding: 0; transform: translateZ(0); transition: background-color .24s ease, border-color .24s ease, transform .22s cubic-bezier(.22,.7,.25,1); width: 38px; }
.sort-button:active { background: rgba(174,207,167,.2); transform: scale(.92) translateZ(0); }
.sort-button svg { height: 17px; width: 17px; }
.price-menu { background: rgba(29,41,32,.99); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 14px 35px rgba(0,0,0,.32); min-width: 220px; padding: 12px; position: absolute; right: 46px; top: calc(100% + 8px); z-index: 100; animation: sortMenuIn .24s cubic-bezier(.22,.7,.25,1) both; }
.price-menu strong { display: block; font-size: 13px; margin-bottom: 10px; }
.price-fields { display: flex; gap: 8px; }
.price-fields input { background: rgba(174,207,167,.08); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 12px; min-width: 0; padding: 8px; width: 50%; }
.price-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 11px; }
.price-actions button { background: transparent; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 11px; padding: 7px 9px; }
.price-actions button:last-child { background: #2f5d35; color: #fff; }
.sort-menu { background: rgba(29,41,32,.99); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 14px 35px rgba(0,0,0,.32); min-width: 176px; padding: 5px; position: absolute; right: 0; top: calc(100% + 8px); transform-origin: top right; z-index: 100; animation: sortMenuIn .24s cubic-bezier(.22,.7,.25,1) both; }
@keyframes sortMenuIn { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(.96); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
.sort-menu button { background: transparent; border: 0; border-radius: 9px; color: var(--ink); cursor: pointer; display: block; font-size: 12px; padding: 10px 11px; text-align: left; transition: background-color .2s ease, transform .2s ease; width: 100%; }
.sort-menu button:hover, .sort-menu button:active { background: rgba(174,207,167,.13); transform: translateX(2px); }
.section-heading span { color: var(--muted); font-size: 12px; }
.product-grid { contain: layout paint; display: grid; gap: 22px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); will-change: transform, opacity; }
.product-grid.category-swipe-left { animation: categorySlideLeft .82s cubic-bezier(.16,1,.3,1) both; }
.product-grid.category-swipe-right { animation: categorySlideRight .82s cubic-bezier(.16,1,.3,1) both; }
.product-grid.is-category-dragging { transition: none; }
@keyframes categorySlideLeft { from { opacity: .15; transform: translate3d(26px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes categorySlideRight { from { opacity: .15; transform: translate3d(-26px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.product-card { contain: layout style paint; min-width: 0; }
.product-card { transform: translateZ(0); transition: transform .32s cubic-bezier(.22,.7,.25,1); will-change: transform; }
@media (hover: hover) {
  .product-card:hover { transform: translateY(-2px) translateZ(0); }
}
.product-image-wrap { aspect-ratio: 4 / 5; background: #25262a; border: 0; border-radius: 14px; cursor: pointer; overflow: hidden; padding: 0; position: relative; transform: translateZ(0); transition: transform .28s cubic-bezier(.22,.7,.25,1), box-shadow .28s ease; width: 100%; }
.product-image-wrap:active { box-shadow: 0 8px 24px rgba(0,0,0,.18); transform: scale(.985) translateZ(0); }
.product-image { display: block; height: 100%; object-fit: cover; transform: translateZ(0) scale(1.001); transition: transform .52s cubic-bezier(.22,.7,.25,1); width: 100%; will-change: transform; }
.catalog-gallery-track { display: flex; height: 100%; transform: translate3d(0, 0, 0); transition: transform .42s cubic-bezier(.16,1,.3,1); width: 100%; will-change: transform; }
.catalog-gallery-track .product-image { flex: 0 0 100%; }
.catalog-gallery-dots { bottom: 10px; display: flex; gap: 5px; left: 12px; pointer-events: none; position: absolute; z-index: 2; }
.catalog-gallery-dot { background: rgba(255,255,255,.52); border-radius: 50%; height: 5px; transition: background-color .22s ease, transform .25s cubic-bezier(.22,.7,.25,1); width: 5px; }
.catalog-gallery-dot.is-active { background: #fff; transform: scale(1.25); }
.product-card:hover .product-image { transform: scale(1.04); }
.stock-badge { background: rgba(255, 254, 250, .92); bottom: 8px; color: var(--moss); font-size: 9px; font-weight: 750; left: 8px; letter-spacing: .06em; padding: 5px 7px; position: absolute; text-transform: uppercase; }
.stock-badge.is-empty { color: var(--muted); }
.product-add { align-items: center; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.72); border-radius: 50%; bottom: 10px; box-shadow: 0 5px 18px rgba(27,27,25,.14); color: var(--ink); cursor: pointer; display: inline-flex; height: 36px; justify-content: center; position: absolute; right: 10px; transform: translateZ(0); transition: background-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.22,.7,.25,1); width: 36px; }
.product-add:active { box-shadow: 0 3px 10px rgba(27,27,25,.18); transform: scale(.88) translateZ(0); }
.product-add:hover { background: var(--accent); }
.product-add:disabled { background: rgba(27, 27, 25, .3); cursor: not-allowed; }
.product-add svg { height: 16px; width: 16px; }
.product-meta { padding-top: 10px; }
.product-brand { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-name { font-size: 14px; font-weight: 550; line-height: 1.25; margin-top: 3px; }
.product-price { color: #9fdb92; font-size: 13px; font-weight: 650; margin-top: 7px; }
.product-price.is-request { color: var(--muted); }

.loading-state, .empty-state { align-items: center; color: var(--muted); display: flex; flex-direction: column; font-size: 13px; gap: 10px; grid-column: 1 / -1; justify-content: center; min-height: 180px; text-align: center; }
.spinner { animation: spin .8s linear infinite; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; height: 23px; width: 23px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state strong, .cart-empty strong { color: var(--ink); font-size: 16px; font-weight: 650; }
.empty-state svg, .cart-empty svg { color: var(--muted); height: 25px; width: 25px; }
.empty-state span { font-size: 12px; }

.bottom-cart { bottom: 0; left: 0; padding: 10px 18px calc(10px + var(--safe-bottom)); position: fixed; right: 0; z-index: 15; }
.bottom-cart-main { align-items: center; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(27,27,25,.84); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; box-shadow: 0 8px 30px rgba(27, 27, 25, .22); color: #fff; cursor: pointer; display: flex; font-size: 13px; justify-content: space-between; padding: 15px 16px; transform: translateZ(0); transition: transform .24s cubic-bezier(.22,.7,.25,1), box-shadow .24s ease, background-color .24s ease; width: 100%; }
.bottom-cart-main:active { box-shadow: 0 5px 20px rgba(27, 27, 25, .2); transform: scale(.985) translateZ(0); }
.bottom-cart-main span { align-items: center; display: inline-flex; gap: 9px; }
.bottom-cart-main svg { height: 16px; width: 16px; }
.bottom-cart-main strong { color: #fff; font-size: 13px; }

.screen-view { padding-bottom: 40px; padding-top: 26px; }
.screen-view.view-enter { animation: viewEnter .42s cubic-bezier(.22,.7,.25,1) both; }
@keyframes viewEnter { from { opacity: 0; transform: translate3d(22px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.screen-view#product-view { background: var(--paper); contain: layout paint; inset: 68px 0 0; overflow-y: auto; overscroll-behavior: contain; position: fixed; touch-action: pan-y; transform: translate3d(0, 0, 0); will-change: transform, opacity; z-index: 40; }
.screen-view#cart-view, .screen-view#favorites-view { background: var(--paper); contain: layout paint; inset: 68px 0 0; overflow-y: auto; overscroll-behavior: contain; position: fixed; touch-action: pan-y; transform: translate3d(0, 0, 0); will-change: transform, opacity; z-index: 40; }
.screen-view.is-swiping-back { transition: transform .34s cubic-bezier(.22,.7,.25,1), opacity .34s ease; }
.screen-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 26px; }
.screen-heading h1 { font-size: 42px; font-weight: 650; line-height: 1; margin: 11px 0 0; }
.detail-wrap { padding-bottom: 40px; }
.detail-title { padding: 6px 0 14px; }
.detail-title h1 { font-size: 25px; font-weight: 650; margin: 5px 0 0; }
.detail-hero { aspect-ratio: 1 / 1.22; background: #e6e3dc; border-radius: 16px; overflow: hidden; position: relative; }
.gallery-track { display: flex; height: 100%; transform: translate3d(0, 0, 0); transition: transform .42s cubic-bezier(.22,.7,.25,1); width: 100%; will-change: transform; }
.detail-hero img { display: block; flex: 0 0 100%; height: 100%; object-fit: cover; width: 100%; }
.gallery-count { background: rgba(27,27,25,.64); border: 1px solid rgba(255,255,255,.35); border-radius: 20px; bottom: 10px; color: #fff; font-size: 11px; left: 50%; padding: 5px 9px; position: absolute; transform: translateX(-50%); }
.detail-info { padding-top: 22px; }
.detail-info h1 { font-size: 40px; font-weight: 650; line-height: .98; margin: 9px 0 13px; }
.detail-info p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; max-width: 540px; }
.detail-price-row { align-items: center; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin: 24px 0; padding: 15px 0; }
.detail-price { font-size: 16px; font-weight: 700; }
.detail-actions { display: grid; gap: 10px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.detail-actions .favorite-detail { margin-bottom: 0; min-width: 0; padding: 0 8px; }
.favorite-detail { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer; display: inline-flex; font-size: 13px; gap: 8px; justify-content: center; margin-bottom: 12px; min-height: 44px; padding: 0 14px; transform: translateZ(0); transition: background-color .24s ease, border-color .24s ease, color .24s ease, transform .22s cubic-bezier(.22,.7,.25,1); width: 100%; }
.favorite-detail:active { transform: scale(.985) translateZ(0); }
.favorite-detail svg { height: 17px; width: 17px; }
.favorite-detail.is-active { background: rgba(159,219,146,.14); border-color: var(--accent); color: #9fdb92; }
.detail-stock { color: var(--moss); font-size: 12px; }
.detail-stock.is-empty { color: var(--muted); }

.cart-list { display: flex; flex-direction: column; gap: 0; }
.cart-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 66px minmax(0, 1fr) auto; padding: 15px 0; }
.cart-item:first-child { border-top: 1px solid var(--line); }
.cart-thumb { aspect-ratio: 1 / 1.15; background: #e6e3dc; object-fit: cover; width: 66px; }
.cart-item-brand { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.cart-item-price { font-size: 12px; margin-top: 7px; }
.qty-control { align-items: center; display: flex; gap: 7px; }
.qty-control button { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; display: inline-flex; height: 24px; justify-content: center; padding: 0; transform: translateZ(0); transition: background-color .2s ease, border-color .2s ease, transform .2s cubic-bezier(.22,.7,.25,1); width: 24px; }
.qty-control button:active:not(:disabled) { transform: scale(.88) translateZ(0); }
.qty-control button:disabled { cursor: not-allowed; opacity: .35; }
.qty-control svg { height: 12px; width: 12px; }
.qty-control span { font-size: 12px; min-width: 13px; text-align: center; }
.cart-empty { align-items: center; display: flex; flex-direction: column; gap: 13px; justify-content: center; min-height: 330px; text-align: center; }
.text-button { align-items: center; background: transparent; border: 0; color: var(--accent-deep); cursor: pointer; display: inline-flex; font-size: 13px; gap: 6px; padding: 4px 0; transform: translateZ(0); transition: color .2s ease, opacity .2s ease, transform .2s cubic-bezier(.22,.7,.25,1); }
.text-button:active { opacity: .75; transform: scale(.97) translateZ(0); }
.text-button svg { height: 15px; width: 15px; }
.cart-summary { border-top: 1px solid var(--ink); margin-top: 20px; padding-top: 15px; }
.summary-line { align-items: center; color: var(--muted); display: flex; font-size: 13px; justify-content: space-between; padding: 4px 0; }
.summary-line strong { color: var(--ink); font-weight: 600; }
.total-line { color: var(--ink); font-size: 17px; padding: 11px 0 17px; }
.total-line strong { font-size: 18px; }
.primary-button { align-items: center; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(47,93,53,.92); border: 1px solid rgba(174,207,167,.3); border-radius: 14px; box-shadow: 0 8px 22px rgba(18,45,24,.24); color: #fff; cursor: pointer; display: inline-flex; font-size: 14px; font-weight: 650; gap: 10px; justify-content: center; min-height: 50px; padding: 0 17px; transform: translateZ(0); transition: background-color .24s ease, box-shadow .24s ease, opacity .2s ease, transform .22s cubic-bezier(.22,.7,.25,1); width: 100%; }
.primary-button:active:not(:disabled) { box-shadow: 0 5px 16px rgba(18,45,24,.24); transform: scale(.985) translateZ(0); }
.primary-button:disabled { cursor: not-allowed; opacity: .55; }
.primary-button:hover { background: var(--accent-deep); }
.primary-button svg { height: 16px; width: 16px; }

.overlay { background: rgba(27, 27, 25, .3); inset: 0; opacity: 1; position: fixed; transition: opacity .28s ease; will-change: opacity; z-index: 30; }
.sheet { animation: sheetEnter .38s cubic-bezier(.22,.7,.25,1) both; background: var(--surface); border: 0; border-radius: 12px 12px 0 0; bottom: 0; box-shadow: var(--shadow); color: var(--ink); margin: 0; max-height: min(92dvh, 680px); max-width: 680px; padding: 12px 18px calc(22px + var(--safe-bottom)); position: fixed; transform: translate3d(0, 0, 0); will-change: transform, opacity; width: 100%; }
@keyframes sheetEnter { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.sheet::backdrop { background: transparent; }
.sheet-handle { background: var(--line); border-radius: 2px; height: 4px; margin: 0 auto 22px; width: 38px; }
.sheet-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.sheet-heading h2 { font-size: 32px; font-weight: 650; line-height: 1; margin: 9px 0 0; }
.sheet-copy { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 14px 0 23px; }
.field-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .03em; margin: 14px 0 7px; }
.field-label span { color: var(--muted); font-weight: 400; }
.text-input { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); display: block; font-size: 15px; outline: 0; padding: 9px 0 11px; width: 100%; }
.text-input:focus { border-bottom-color: var(--accent); }
.text-input::placeholder { color: #aaa79f; }
.text-area { min-height: 70px; resize: vertical; }
.form-error { background: #f9e8e3; color: #a74335; font-size: 12px; line-height: 1.4; margin-top: 14px; padding: 10px; }
.form-submit { margin-top: 25px; }
.success-sheet { align-items: flex-start; display: flex; flex-direction: column; gap: 12px; justify-content: center; min-height: 360px; padding: 32px 24px calc(28px + var(--safe-bottom)); }
.success-mark { align-items: center; background: var(--moss); border-radius: 50%; color: #fff; display: flex; height: 52px; justify-content: center; margin-bottom: 8px; width: 52px; }
.success-mark svg { height: 24px; width: 24px; }
.success-sheet h2 { font-size: 36px; font-weight: 650; line-height: 1; margin: 3px 0 0; }
.success-sheet p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 8px; }
.reference-box { background: var(--paper); display: flex; flex-direction: column; gap: 4px; margin: 4px 0 12px; padding: 12px 14px; width: 100%; }
.reference-box span { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.reference-box strong { font-size: 16px; letter-spacing: .06em; }

.toast { align-items: center; background: #292b30; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; bottom: calc(88px + var(--safe-bottom)); box-shadow: 0 12px 35px rgba(0,0,0,.35); color: #f3f3f2; display: flex; font-size: 13px; gap: 10px; left: 50%; max-width: calc(100% - 36px); opacity: 0; padding: 12px 15px 12px 12px; pointer-events: none; position: fixed; transform: translate3d(-50%, 12px, 0); transition: opacity .28s cubic-bezier(.22,.7,.25,1), transform .28s cubic-bezier(.22,.7,.25,1); will-change: opacity, transform; z-index: 50; }
.toast.is-visible { opacity: 1; pointer-events: auto; transform: translate3d(-50%, 0, 0); }
.toast-icon { align-items: center; background: #4a4c53; border-radius: 50%; color: #d7d7d5; display: inline-flex; flex: 0 0 22px; height: 22px; justify-content: center; width: 22px; }
.toast-icon svg { height: 13px; width: 13px; }

/* Channel-inspired green palette: no blue accents. */
.product-price, .text-button, .favorite-detail.is-active { color: #9fdb92; }
.tab.is-active::after, .eyebrow-dot { background: #9fdb92; }
.primary-button { background: #2f5d35; border-color: rgba(174,207,167,.3); }
.primary-button:hover { background: #3b7542; }
.favorite-detail.is-active { background: rgba(159,219,146,.14); border-color: #9fdb92; }

@media (min-width: 680px) {
  .topbar { padding-left: 34px; padding-right: 34px; }
  main, .screen-view { padding-left: 34px; padding-right: 34px; }
  .intro-block { padding-top: 76px; }
  .product-grid { gap: 34px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-wrap { align-items: start; display: grid; gap: 54px; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); padding-top: 28px; }
  .detail-info { padding-top: 28px; }
  .detail-info h1 { font-size: 56px; }
  .sheet { animation-name: sheetEnterCentered; left: 50%; }
  @keyframes sheetEnterCentered { from { opacity: 0; transform: translate3d(-50%, 30px, 0); } to { opacity: 1; transform: translate3d(-50%, 0, 0); } }
}

@media (min-width: 1020px) {
  .topbar { grid-template-columns: 1fr auto 1fr; height: 76px; padding-left: 52px; padding-right: 52px; }
  main, .screen-view { padding-left: 52px; padding-right: 52px; }
  .intro-block { padding-bottom: 48px; padding-top: 98px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
