@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600&display=swap');

:root {
  color-scheme: only light;
  --ink: #3A342C;
  --muted: #797366;
  --forest: #6B4A1B;
  --forest-soft: #5E6F23;
  --gold: #86B300;
  --cream: #F7F3EA;
  --paper: #FFFEFA;
  --line: rgba(31, 46, 41, .11);
  --danger: #a84e45;
  --success: #3f745c;
  --shadow: 0 18px 50px rgba(35, 48, 43, .11);
  --radius: 24px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); scroll-behavior: smooth; }
body { min-height: 100vh; min-height: 100dvh; max-width: 100vw; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--cream); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.sheet-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-hidden { display: none !important; }

.splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; background: var(--cream); transition: opacity .3s ease, visibility .3s ease; }
.splash::before, .splash::after { content: ""; position: absolute; border: 1px solid rgba(184,154,85,.25); border-radius: 50%; }
.splash::before { width: min(85vw, 470px); aspect-ratio: 1; }
.splash::after { width: min(68vw, 370px); aspect-ratio: 1; }
.splash.done { opacity: 0; visibility: hidden; }
.splash-logo { position: relative; z-index: 1; display: block; width: min(44vw, 180px); height: auto; aspect-ratio: 1; object-fit: contain; }
.splash-line { position: relative; z-index: 1; width: 150px; height: 2px; margin-top: 28px; overflow: hidden; background: rgba(184,154,85,.18); }
.splash-line b { display: block; height: 100%; background: var(--gold); width: 100%; transform-origin: left; animation: loading 2.5s ease-out both; }
.splash-note { position: relative; z-index: 1; margin-top: 16px; color: var(--muted); font-size: 11px; }
@keyframes loading { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.app-shell { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(92px + var(--safe-bottom)); background: var(--cream); opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.app-shell.ready { opacity: 1; visibility: visible; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; width: 100vw; max-width: 100%; align-items: center; justify-content: space-between; height: calc(66px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 18px 0; background: rgba(245,241,232,.9); border-bottom: 1px solid rgba(37,55,49,.06); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; max-width: min(64vw, 230px); padding: 0; border: 0; background: none; cursor: pointer; }
.brand img { display: block; width: auto; max-width: 100%; height: 34px; object-fit: contain; object-position: left center; }
.topbar-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.round-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.round-btn svg { width: 20px; height: 20px; }
.install-btn { color: var(--gold); font-size: 22px; }

main { width: min(100%, 1180px); margin: 0 auto; background: var(--cream); }
.view { display: none; padding: 18px 16px 36px; animation: viewIn .36s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.eyebrow { display: inline-block; color: rgba(255,255,255,.68); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.dark { color: var(--gold); }

.hero-card { position: relative; min-height: 440px; padding: 42px 28px; overflow: hidden; border-radius: 30px; color: white; background: linear-gradient(145deg, #5E6F23 0%, #86B300 100%); box-shadow: var(--shadow); }
.hero-card h1 { position: relative; z-index: 2; max-width: 650px; margin: 16px 0; font: 500 clamp(40px, 9vw, 74px)/.98 Playfair Display, serif; letter-spacing: -.04em; }
.hero-card p { position: relative; z-index: 2; max-width: 490px; margin: 0 0 28px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.65; }
.hero-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(225,207,159,.26); }
.hero-orb-one { width: 350px; height: 350px; right: -145px; top: -90px; }
.hero-orb-two { width: 260px; height: 260px; right: -70px; bottom: -130px; }
.hero-capsule { position: absolute; right: 18px; bottom: 26px; width: 158px; height: 68px; transform: rotate(-25deg); border: 1px solid rgba(255,255,255,.35); border-radius: 50px; box-shadow: inset 0 0 40px rgba(255,255,255,.08), 0 18px 45px rgba(0,0,0,.18); }
.hero-capsule::after { content: ""; position: absolute; left: 50%; height: 100%; border-left: 1px solid rgba(255,255,255,.35); }
.hero-capsule i { position: absolute; inset: 7px 8px 7px 50%; border-radius: 0 50px 50px 0; background: rgba(207,177,101,.24); }
.primary-btn, .secondary-btn { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .04em; cursor: pointer; }
.primary-btn { position: relative; z-index: 2; background: #86B300; color: #3A342C; box-shadow: 0 10px 25px rgba(0,0,0,.17); }
.secondary-btn { border: 1px solid var(--line); background: white; color: var(--forest); }

.benefits { display: grid; gap: 10px; margin: 14px 0 42px; }
.benefits article { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.48); }
.benefits article > span { color: var(--gold); font: 500 22px Playfair Display, serif; }
.benefits strong, .benefits small { display: block; }
.benefits strong { font-size: 13px; }
.benefits small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 0 2px 18px; }
.section-head h2, .page-heading h1 { margin: 5px 0 0; font: 500 34px/1.05 Playfair Display, serif; }
.text-btn { padding: 5px 0; border: 0; border-bottom: 1px solid var(--gold); background: none; color: var(--forest); font-size: 11px; font-weight: 700; cursor: pointer; }
.product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(238px, 74vw); gap: 12px; margin: 0 -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product-rail::-webkit-scrollbar { display: none; }

.page-heading { padding: 14px 2px 22px; }
.page-heading h1 { font-size: 42px; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.mobile-promo { display: grid; gap: 10px; margin: 0 0 16px; }
.mobile-promo-banner { width: 100%; max-height: 180px; aspect-ratio: 16 / 7; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 8px 24px rgba(32,45,40,.06); }
.mobile-promo-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mobile-promo-ticker { width: 100%; overflow: hidden; border-radius: 14px; color: white; background: var(--forest); box-shadow: 0 6px 18px rgba(32,45,40,.09); }
.mobile-promo-ticker-track { display: flex; width: max-content; min-width: 100%; padding: 10px 0; animation: mobilePromoTicker 18s linear infinite; }
.mobile-promo-ticker-track span { flex: 0 0 auto; padding: 0 28px; font-size: 11px; font-weight: 700; letter-spacing: .035em; white-space: nowrap; }
.mobile-promo-ticker-track span::after { content: " •"; margin-left: 22px; color: #86B300; }
@keyframes mobilePromoTicker { to { transform: translateX(-50%); } }
.stories-strip { display: flex; gap: 12px; margin: 0 -16px 16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.stories-strip::-webkit-scrollbar { display: none; }
.story-bubble { flex: 0 0 68px; padding: 0; border: 0; color: var(--ink); background: none; cursor: pointer; }
.story-ring { display: grid; width: 66px; height: 66px; padding: 3px; border-radius: 50%; background: linear-gradient(145deg,#c89d45,#7e3d82,#d15858); }
.story-bubble.seen .story-ring { background: #d7d4cc; }
.story-thumb { display: block; overflow: hidden; border: 2px solid var(--cream); border-radius: 50%; background: #eee; }
.story-thumb img,.story-thumb video { width: 100%; height: 100%; object-fit: cover; }
.story-bubble small { display: block; margin-top: 6px; overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.story-viewer { position: fixed; z-index: 200; inset: 0; display: none; overflow: hidden; color: white; background: #10110f; }
.story-viewer.open { display: block; }
.story-media,.story-media img,.story-media video { width: 100%; height: 100%; }
.story-media img,.story-media video { display: block; object-fit: contain; }
.story-viewer-head { position: absolute; z-index: 4; left: 0; right: 0; top: 28px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.story-viewer-head strong { max-width: calc(100% - 52px); overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.story-viewer-head button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: white; background: rgba(0,0,0,.35); font-size: 24px; }
.story-progress { position: absolute; z-index: 5; left: 8px; right: 8px; top: max(10px,var(--safe-top)); display: flex; gap: 4px; }
.story-progress span { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.35); }
.story-progress i { display: block; width: 0; height: 100%; background: white; }
.story-progress span.done i { width: 100%; }
.story-progress span.active i { animation: storyProgress linear forwards; }
@keyframes storyProgress { to { width: 100%; } }
.story-zone { position: absolute; z-index: 2; top: 80px; bottom: 70px; width: 38%; border: 0; background: transparent; }
.story-zone.prev { left: 0; }.story-zone.next { right: 0; }
.story-link { position: absolute; z-index: 5; left: 50%; bottom: calc(24px + var(--safe-bottom)); min-width: 160px; padding: 13px 20px; border-radius: 999px; color: var(--ink); background: white; text-align: center; text-decoration: none; font-size: 12px; font-weight: 800; transform: translateX(-50%); }
body.story-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mobile-promo-ticker-track { width: 100%; animation: none; }
  .mobile-promo-ticker-track span { width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; }
  .mobile-promo-ticker-track span[aria-hidden="true"] { display: none; }
  .mobile-promo-ticker-track span::after { display: none; }
}
.search-box { display: flex; align-items: center; height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.search-box svg { width: 20px; margin-right: 10px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box button { border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.chips { display: flex; gap: 8px; margin: 14px -16px 18px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.45); color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.chip.active { border-color: var(--forest); background: var(--forest); color: white; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); scroll-snap-align: start; box-shadow: 0 8px 24px rgba(32,45,40,.045); }
.product-image { position: relative; aspect-ratio: 1/.92; overflow: hidden; background: linear-gradient(150deg,#f7f3eb,#ebe6dc); cursor: pointer; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-badge { position: absolute; left: 10px; top: 10px; padding: 6px 9px; border-radius: 999px; background: rgba(38,59,53,.88); color: white; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; backdrop-filter: blur(8px); }
.favorite-btn { position: absolute; right: 9px; top: 9px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--forest); cursor: pointer; backdrop-filter: blur(8px); }
.favorite-btn svg { width: 18px; height: 18px; }
.favorite-btn.active { color: #a8524b; }
.favorite-btn.active svg { fill: currentColor; }
.product-info { padding: 13px; }
.product-meta { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-title { display: -webkit-box; min-height: 38px; margin: 7px 0 12px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.product-rating { display: block; min-height: 18px; margin: -5px 0 8px; padding: 0; border: 0; color: var(--muted); background: none; font-size: 9px; cursor: pointer; }
.product-rating-stars { color: var(--gold); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.product-price { white-space: nowrap; font-size: 14px; font-weight: 800; }
.add-btn { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--forest); color: white; font-size: 20px; cursor: pointer; }

.empty-state { padding: 48px 24px; border: 1px dashed rgba(37,55,49,.18); border-radius: 24px; text-align: center; background: rgba(255,255,255,.35); }
.empty-state > span { display: block; margin-bottom: 12px; color: var(--gold); font: 500 48px Playfair Display, serif; }
.empty-state h3 { margin: 0; font: 500 23px Playfair Display, serif; }
.empty-state p { max-width: 330px; margin: 10px auto 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.bottom-nav { position: fixed; z-index: 50; left: 0; bottom: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100vw; height: calc(70px + var(--safe-bottom)); padding: 7px 8px max(8px,var(--safe-bottom)); border: 1px solid rgba(255,255,255,.6); border-bottom: 0; border-radius: 24px 24px 0 0; background: #FFFEFA; box-shadow: none; filter: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bottom-nav button { position: relative; display: grid; min-width: 0; place-items: center; align-content: center; gap: 4px; padding: 0; border: 0; background: none; color: #888e8a; cursor: pointer; }
.bottom-nav svg { width: 21px; height: 21px; }
.bottom-nav span { max-width: 100%; overflow: hidden; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav button.active { color: var(--forest); }
.bottom-nav button.active::before { content: ""; position: absolute; top: -6px; width: 24px; height: 2px; border-radius: 2px; background: var(--gold); }
.floating-cart { position: fixed; z-index: 55; right: 17px; bottom: calc(82px + var(--safe-bottom)); display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: var(--forest); color: white; box-shadow: 0 12px 30px rgba(28,45,39,.28); cursor: pointer; transform: scale(0); transition: transform .25s ease; }
.floating-cart.visible { transform: scale(1); }
.floating-cart svg { width: 23px; height: 23px; }
.floating-cart span { position: absolute; right: -2px; top: -3px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid var(--cream); border-radius: 999px; background: var(--gold); color: white; font-size: 9px; font-weight: 800; }

.sheet-backdrop { position: fixed; z-index: 80; inset: 0; visibility: hidden; opacity: 0; background: rgba(16,27,23,.45); backdrop-filter: blur(3px); transition: .28s ease; }
.sheet-backdrop.open { visibility: visible; opacity: 1; }
.sheet { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; visibility: hidden; max-height: 91vh; padding: 26px 18px calc(20px + var(--safe-bottom)); overflow-y: auto; border-radius: 28px 28px 0 0; background: var(--paper); box-shadow: none; pointer-events: none; transform: translateY(105%); transition: transform .34s cubic-bezier(.2,.8,.2,1), visibility 0s linear .34s; }
.sheet.open { visibility: visible; box-shadow: 0 -20px 60px rgba(20,35,29,.2); pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.sheet-handle { position: absolute; left: 50%; top: 9px; width: 40px; height: 4px; border-radius: 5px; background: #dad7d0; transform: translateX(-50%); }
.sheet-close { position: absolute; z-index: 3; right: 15px; top: 18px; display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); font-size: 24px; cursor: pointer; }
.sheet-product-img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 20px; background: #eee9df; }
.sheet-product-copy { padding: 22px 4px 5px; }
.sheet-product-copy h2 { margin: 8px 38px 10px 0; font: 500 29px/1.15 Playfair Display, serif; }
.sheet-product-copy > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.sheet-product-buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.sheet-product-buy strong { font-size: 22px; }
.sheet-product-buy .primary-btn { flex: 1; }
.sheet-product-details { display: grid; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.sheet-product-details h3 { margin: 0 0 8px; font: 600 19px/1.2 Playfair Display, serif; }
.sheet-product-description { color: var(--muted); font-size: 12px; line-height: 1.75; }
.sheet-product-characteristics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.sheet-product-characteristic { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(245,241,232,.55); }
.sheet-product-characteristic small, .sheet-product-characteristic strong { display: block; }
.sheet-product-characteristic small { margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sheet-product-characteristic strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.4; }
.sheet-product-sections { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.52); }
.sheet-product-section + .sheet-product-section { border-top: 1px solid var(--line); }
.sheet-product-section summary { position: relative; padding: 14px 42px 14px 14px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 800; line-height: 1.4; }
.sheet-product-section summary::-webkit-details-marker { display: none; }
.sheet-product-section summary::after { content: "+"; position: absolute; right: 14px; top: 50%; color: var(--gold); font-size: 19px; font-weight: 400; transform: translateY(-50%); transition: transform .2s ease; }
.sheet-product-section[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.sheet-product-section-body { padding: 0 14px 15px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.product-reviews-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-reviews-head h3 { margin: 0; font: 600 21px Playfair Display,serif; }
.reviews-loading { padding: 25px 0; color: var(--muted); text-align: center; font-size: 11px; }
.no-reviews { margin-top: 13px; padding: 20px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }
.no-reviews strong { font-size: 13px; }.no-reviews p { margin: 5px 0 14px; color: var(--muted); font-size: 11px; }
.reviews-summary { display: flex; align-items: center; gap: 9px; margin: 14px 0; padding: 13px; border-radius: 15px; background: var(--cream); }
.reviews-summary > strong { font-size: 22px; }.reviews-summary small { margin-left: auto; color: var(--muted); font-size: 9px; }
.rating-stars { display: inline-flex; direction: ltr; }.rating-stars i { color: #d8d3c8; font-style: normal; }.rating-stars i.filled { color: var(--gold); }
.product-review-list { display: grid; gap: 9px; }.product-review { padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.product-review > div { display: flex; justify-content: space-between; gap: 10px; }.product-review strong { font-size: 11px; }.product-review small { color: var(--muted); font-size: 8px; }
.product-review p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.review-product-name { margin: -12px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.rating-input { padding: 0; border: 0; }.rating-input legend { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.rating-input > div { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; }.rating-input label { color: #d8d3c8; font-size: 34px; cursor: pointer; }
.rating-input input:checked ~ label,.rating-input label:hover,.rating-input label:hover ~ label { color: var(--gold); }

.sheet-title { margin: 10px 0 20px; font: 500 30px Playfair Display, serif; }
.cart-list { display: grid; gap: 10px; }
.cart-row { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 18px; }
.cart-row img { width: 68px; height: 68px; border-radius: 13px; object-fit: cover; background: #eee; }
.cart-row h4 { margin: 0 0 7px; font-size: 11px; line-height: 1.45; }
.cart-row strong { font-size: 12px; }
.qty { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.qty button { width: 25px; height: 25px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.remove-btn { align-self: start; border: 0; background: none; color: #a1a39f; font-size: 20px; cursor: pointer; }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.cart-total span { color: var(--muted); font-size: 13px; }
.cart-total strong { font-size: 23px; }
.checkout-btn { display: grid; place-items: center; width: 100%; text-decoration: none; }

.auth-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 20px; padding: 4px; border-radius: 14px; background: #eeebe5; }
.auth-tabs button { height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-tabs button.active { background: white; color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.flash-auth-intro, .flash-code-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 14px; border-radius: 16px; background: rgba(184,154,85,.1); }
.flash-auth-intro > span, .flash-code-note > span { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: white; font-size: 16px; }
.flash-auth-intro strong, .flash-code-note strong { display: block; margin-top: 1px; font-size: 12px; }
.flash-auth-intro p, .flash-code-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.flash-legal { color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.field input.flash-code-input { font-size: 24px; font-weight: 700; letter-spacing: .55em; text-align: center; }
.form-grid { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span { color: var(--muted); font-size: 10px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 49px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: white; font-size: 13px; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,154,85,.11); }
.form-error { min-height: 16px; color: var(--danger); font-size: 11px; }
.form-grid .primary-btn { width: 100%; color: white; background: var(--forest); }

.profile-card { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 8px 25px rgba(32,45,40,.05); }
.profile-head { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.profile-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--forest); color: white; font: 500 24px Playfair Display, serif; }
.profile-head h3 { margin: 0; font: 500 22px Playfair Display, serif; }
.profile-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.profile-actions { display: grid; gap: 9px; margin-top: 14px; }
.logout-btn { border-color: rgba(168,78,69,.2); color: var(--danger); }
.assistant-icon { font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.wellness-lead { margin: -12px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.wellness-hint { margin: 0 0 14px; padding: 11px 13px; border-radius: 14px; color: var(--muted); background: var(--cream); font-size: 10px; line-height: 1.5; }
.push-enable-btn, .wellness-add-btn { width: 100%; margin-bottom: 14px; }
.course-list, .assistant-session-list { display: grid; gap: 12px; margin: 12px 0 16px; }
.course-card, .assistant-session { padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,249,.8); }
.course-card.paused { opacity: .65; }
.course-card-head { display: grid; grid-template-columns: 46px 1fr auto; gap: 11px; align-items: center; }
.course-card-head img, .course-placeholder { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; background: var(--cream); }
.course-placeholder { display: grid; place-items: center; color: var(--forest); font-size: 10px; font-weight: 900; }
.course-card h3, .assistant-session h3 { margin: 0; font-size: 12px; line-height: 1.45; }
.course-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.course-card-head small { display: block; margin-top: 3px; color: var(--gold); font-size: 8px; line-height: 1.35; }
.course-menu { width: 28px; height: 28px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 18px; cursor: pointer; }
.course-progress { height: 6px; margin: 14px 0 9px; overflow: hidden; border-radius: 99px; background: #e8e4dc; }
.course-progress span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.course-stats { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }.course-stats strong { color: var(--ink); font-size: 11px; }
.course-actions, .field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.course-actions { margin-top: 13px; }.course-actions .primary-btn,.course-actions .secondary-btn { min-height: 41px; padding: 0 12px; }
.course-actions .course-snooze { grid-column: 1/-1; }
.course-suggestions { display: grid; gap: 7px; margin: 0 0 15px; padding: 13px; border-radius: 17px; background: rgba(184,154,85,.1); }.course-suggestions > strong { margin-bottom: 2px; font-size: 10px; }.course-suggestions > button { display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; min-height: 49px; padding: 6px; border: 0; border-radius: 13px; color: var(--ink); background: white; text-align: left; cursor: pointer; }.course-suggestions img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }.course-suggestions span { overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.course-suggestions small { display: block; margin-top: 3px; color: var(--gold); font-size: 8px; }.course-suggestions b { padding-right: 5px; color: var(--gold); font-size: 16px; }
.course-restock { display: block; margin-top: 11px; padding: 9px 11px; border-radius: 12px; color: #7d6325; background: #f5e9c9; font-size: 9px; font-weight: 800; text-align: center; text-decoration: none; }
.wellness-empty { padding: 25px 15px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }.wellness-empty > span { display: block; color: var(--gold); font-size: 28px; }.wellness-empty strong { display: block; margin-top: 6px; font-size: 12px; }.wellness-empty p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.wellness-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.assistant-warning { margin: -10px 0 16px; padding: 14px; border-radius: 16px; color: #314d44; background: #e6f0eb; }.assistant-warning strong { font-size: 11px; }.assistant-warning p { margin: 5px 0 0; font-size: 9px; line-height: 1.55; }
.assistant-goal-form { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.assistant-consent { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 9px; line-height: 1.45; }.assistant-consent input { margin-top: 1px; }
.assistant-status { display: inline-block; margin-bottom: 8px; padding: 5px 8px; border-radius: 99px; color: #765d22; background: #f5e9c9; font-size: 8px; font-weight: 800; }
.assistant-documents { display: grid; gap: 6px; margin: 12px 0; }.assistant-documents > p { margin: 0; color: var(--muted); font-size: 9px; }
.assistant-document { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; align-items: center; padding: 8px 9px; border-radius: 11px; background: var(--cream); }.assistant-document button { overflow: hidden; border: 0; color: var(--forest); background: transparent; font-size: 9px; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }.assistant-document button:last-child { color: var(--danger); font-size: 15px; }.assistant-document small { color: var(--muted); font-size: 8px; }
.assistant-upload-form { display: grid; gap: 8px; }.assistant-upload-form input { width: 100%; padding: 9px; border: 1px dashed var(--line); border-radius: 12px; font-size: 9px; }.assistant-upload-form .secondary-btn { min-height: 40px; }
.assistant-analyze-btn { width: 100%; min-height: 42px; margin-top: 9px; }
.profile-reviews-link { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; min-height: 64px; margin-top: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: rgba(255,253,249,.72); text-decoration: none; }
.profile-messages-link { width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.message-count,.nav-badge { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; color: white; background: #a8524b; font-size: 9px; font-weight: 800; }
.nav-badge { position: absolute; z-index: 2; top: 0; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid white; }
.messages-note { margin: -12px 0 16px; color: var(--muted); font-size: 11px; }
.message-thread { display: flex; flex-direction: column; gap: 8px; max-height: 48vh; overflow-y: auto; padding: 3px 1px 14px; }
.message-bubble { max-width: 85%; padding: 11px 13px; border-radius: 17px 17px 17px 4px; background: var(--cream); }
.message-bubble.customer { align-self: flex-end; border-radius: 17px 17px 4px 17px; color: white; background: var(--forest); }
.message-bubble p { margin: 0; font-size: 11px; line-height: 1.55; }.message-bubble strong,.message-bubble small { display: block; margin-top: 5px; font-size: 8px; opacity: .67; }
.no-messages { padding: 28px 15px; color: var(--muted); text-align: center; font-size: 11px; }
.message-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.message-form textarea { min-height: 48px; max-height: 120px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; resize: vertical; font-family: inherit; }
.message-form .primary-btn { align-self: start; min-height: 48px; }.message-form .form-error { grid-column: 1/-1; }
.profile-reviews-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--forest); font-size: 15px; }
.profile-reviews-copy strong, .profile-reviews-copy small { display: block; }
.profile-reviews-copy strong { font-size: 12px; }
.profile-reviews-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.profile-reviews-arrow { color: var(--gold); font-size: 18px; }
.profile-reviews-link:active { border-color: rgba(184,154,85,.45); background: var(--paper); }
.profile-documents { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,249,.72); }
.profile-documents summary { position: relative; display: flex; align-items: center; min-height: 60px; padding: 13px 46px 13px 16px; cursor: pointer; list-style: none; user-select: none; }
.profile-documents summary::-webkit-details-marker { display: none; }
.profile-documents summary::after { content: "+"; position: absolute; right: 16px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--forest); background: rgba(38,59,53,.07); font-size: 20px; font-weight: 400; transform: translateY(-50%); transition: transform .2s ease; }
.profile-documents[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.profile-documents-title { display: block; font-size: 12px; font-weight: 800; }
.profile-documents-note { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.profile-documents-body { padding: 2px 14px 14px; border-top: 1px solid var(--line); }
.profile-documents-group { padding-top: 13px; }
.profile-documents-group + .profile-documents-group { margin-top: 5px; border-top: 1px solid rgba(31,46,41,.07); }
.profile-documents-group h3 { margin: 0 4px 6px; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.profile-document-link { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 7px 4px; color: var(--ink); font-size: 11px; font-weight: 600; text-decoration: none; }
.profile-document-link + .profile-document-link { border-top: 1px solid rgba(31,46,41,.055); }
.profile-document-link::after { content: "↗"; flex: 0 0 auto; margin-left: 12px; color: var(--muted); font-size: 12px; }
.profile-document-link:active { color: var(--gold); }
.account-gate { padding: 34px 22px; border-radius: 25px; text-align: center; color: white; background: linear-gradient(145deg,var(--forest),var(--forest-soft)); }
.account-gate span { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 23px; }
.account-gate h3 { margin: 0; font: 500 25px Playfair Display, serif; }
.account-gate p { max-width: 330px; margin: 10px auto 18px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.6; }

.order-list { display: grid; gap: 12px; }
.order-card { padding: 17px; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); }
.order-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.order-head strong { font-size: 13px; }
.order-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.status-pill { padding: 6px 9px; border-radius: 999px; background: #eeeae2; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.status-pill.new { background: #f3e8cb; color: #866b29; }
.status-pill.in_progress { background: #dce8e4; color: #3f6658; }
.status-pill.done { background: #dcecdf; color: #39714a; }
.order-items { margin: 15px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.order-foot { display: flex; align-items: center; justify-content: space-between; }
.order-foot span { color: var(--muted); font-size: 10px; }
.order-foot strong { font-size: 16px; }
.order-course-actions { display: grid; gap: 5px; margin-top: 11px; }.order-course-actions:empty { display: none; }.order-course-actions .text-btn { min-height: 34px; padding: 6px 10px; border-radius: 10px; background: var(--cream); text-align: left; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(102px + var(--safe-bottom)); max-width: calc(100% - 32px); padding: 12px 17px; border-radius: 999px; background: #3A342C; color: white; box-shadow: 0 12px 35px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translate(-50%,18px); transition: .28s ease; white-space: nowrap; font-size: 11px; font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (min-width: 700px) {
  .view { padding: 28px 30px 50px; }
  .hero-card { min-height: 520px; padding: 62px 58px; }
  .hero-capsule { right: 80px; bottom: 80px; width: 220px; height: 92px; }
  .benefits { grid-template-columns: repeat(3,1fr); }
  .product-grid { grid-template-columns: repeat(3,1fr); gap: 18px; }
  .product-rail { grid-auto-columns: 280px; margin: 0; padding: 0; }
  .sheet { left: 50%; right: auto; width: min(560px,100%); border-radius: 28px 28px 0 0; transform: translate(-50%,105%); }
  .sheet.open { transform: translate(-50%,0); }
}

@media (min-width: 1040px) {
  .product-grid { grid-template-columns: repeat(4,1fr); }
  .bottom-nav { left: 50%; width: 620px; border-radius: 24px 24px 0 0; transform: translateX(-50%); }
  .floating-cart { right: max(28px,calc((100vw - 1180px)/2 + 28px)); }
}

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

/* Natgard: palette and typography from the supplied brand book. */
:root { --nat-brown: #6B4A1B; --nat-green: #86B300; --olive: #5E6F23; --sage: #E7EFDB; --line: rgba(107,74,27,.13); --shadow: 0 16px 42px rgba(107,74,27,.07); }
.topbar { height: calc(76px + env(safe-area-inset-top, 0px)); background: #fff; border-bottom-color: var(--line); border-radius: 0 0 16px 16px; }
.brand { max-width: 120px; }
.brand img { width: 112px; height: auto; }
.round-btn { background: var(--cream); color: var(--nat-brown); }
.splash { background: #fff; }
.splash::before, .splash::after { border-color: rgba(134,179,0,.14); }
.splash-line { background: var(--sage); }
.splash-note { color: var(--olive); letter-spacing: .08em; }
.natgard-intro { position: relative; overflow: hidden; isolation: isolate; margin: 0 0 28px; padding: 28px 24px 24px; border: 1px solid #d9dfd1; border-radius: 24px 6px 24px 6px; background: var(--sage); }
.natgard-intro::before { content: ''; position: absolute; z-index: -1; width: 180px; height: 280px; right: -70px; top: 38px; border: 1px solid #A8BE7A; border-radius: 100% 0 100% 0; transform: rotate(-18deg); }
.natgard-intro::after { content: ''; position: absolute; z-index: -1; width: 130px; height: 200px; right: -58px; top: 75px; border: 1px solid #A8BE7A; border-radius: 100% 0 100% 0; transform: rotate(-18deg); }
.natgard-kicker { color: var(--olive); font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.natgard-intro h1 { margin: 20px 0 16px; color: var(--nat-brown); font: 500 clamp(38px,10vw,54px)/1.08 'Playfair Display', Georgia, serif; letter-spacing: -.035em; }
.natgard-intro h1 em { color: var(--olive); font-weight: 500; }
.natgard-intro p { margin: 0; color: #5e624f; font-size: 12px; line-height: 1.7; }
.natgard-signature { display: block; margin-top: 26px; color: var(--olive); font-size: 8px; letter-spacing: .13em; }
.natgard-catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.natgard-catalog-heading h2 { margin: 0; color: var(--nat-brown); font: 500 26px/1.15 'Playfair Display', Georgia, serif; }
.search-box { border-radius: 12px; background: #fff; }
.chip { border-radius: 10px; }
.chip.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.product-card { border-radius: 18px 5px 18px 5px; box-shadow: none; }
.product-image { background: var(--sage); }
.primary-btn, .add-btn { background: var(--nat-green); color: var(--ink); box-shadow: none; }
.primary-btn { border-radius: 12px; }
.secondary-btn { border-radius: 12px; }
.product-badge { color: var(--nat-brown); background: var(--sage); }
.favorite-btn.active { color: var(--olive); }
.bottom-nav { border-color: var(--line); border-radius: 18px 18px 0 0; background: #fff; }
.bottom-nav button.active { color: var(--olive); }
.bottom-nav span { font-size: 10px; font-weight: 600; }
.bottom-nav button.active::before { background: var(--nat-green); width: 32px; }
.empty-state { border: 1px dashed #d9dfd1; border-radius: 18px; background: rgba(255,255,255,.5); }
.empty-state h3 { color: var(--nat-brown); }
.page-heading h1, .sheet-title, .sheet-product-copy h2 { color: var(--nat-brown); }
@media (min-width: 700px) { .natgard-intro { padding: 40px; } .natgard-intro h1 { font-size: 58px; } }
@media (min-width: 1040px) { .app-shell { max-width: 900px; margin: 0 auto; border-inline: 1px solid var(--line); } .topbar { width: 100%; } .bottom-nav { width: 620px; } }

/* Demo products use the supplied project icon without cropping. */
.product-image img[src="/app/splash-icon-v2.png"],
.sheet-product-img[src="/app/splash-icon-v2.png"] { object-fit: contain; padding: 24px; background: var(--sage); }
