/* Public storefront tokens and component overrides. Keep mobile rules here. */
:root, html[data-theme="rainbow"] {
  --ink:#173e3a; --muted:#526b65; --paper:#fffaf2; --paper-2:#fffdf8;
  --surface:#fff; --surface-soft:#eaf5ed; --line:#e1e9df;
  --primary:#e76743; --primary-strong:#a63c25; --secondary:#137b71;
  --accent:#ffc44a; --hero-start:#ddf3e6; --hero-end:#f6edc7;
  --hero-ink:#173e3a; --hero-soft:#365f54; --footer:#173e3a;
  --shadow:0 12px 32px #273e3510; --shadow-small:0 4px 16px #273e3509;
  --shell:min(1240px, calc(100% - 64px));
}
html[data-theme="sky"] { --ink:#183e56; --muted:#4f687b; --paper:#f3faff; --paper-2:#fbfdff; --surface-soft:#e4f1fd; --line:#d8e6ee; --primary:#3383c7; --primary-strong:#205f94; --secondary:#237b79; --accent:#ffca59; --hero-start:#d7edff; --hero-end:#e3f5ed; --hero-ink:#183e56; --hero-soft:#3f6279; --footer:#193c52; }
html[data-theme="garden"] { --ink:#294a35; --muted:#546c57; --paper:#f8fbed; --paper-2:#fdfff8; --surface-soft:#e6f2d9; --line:#dce8d4; --primary:#62883f; --primary-strong:#3d632a; --secondary:#946027; --accent:#f6c64c; --hero-start:#deefc7; --hero-end:#faf0c9; --hero-ink:#294a35; --hero-soft:#456342; --footer:#294a35; }
html[data-theme="berry"] { --ink:#573047; --muted:#75596b; --paper:#fff6f8; --paper-2:#fffafb; --surface-soft:#fbe4ec; --line:#ecdbe3; --primary:#d2507d; --primary-strong:#a12e57; --secondary:#885376; --accent:#ffc568; --hero-start:#fbdce8; --hero-end:#fff0d5; --hero-ink:#573047; --hero-soft:#765265; --footer:#503144; }
*, *::before, *::after { box-sizing:border-box; }
.preview-rainbow { --preview-a:#e76743; --preview-b:#ffc44a; --preview-c:#137b71; --preview-d:#fffaf2; }
.preview-sky { --preview-a:#3383c7; --preview-b:#ffca59; --preview-c:#237b79; --preview-d:#d7edff; }
.preview-garden { --preview-a:#62883f; --preview-b:#f6c64c; --preview-c:#946027; --preview-d:#deefc7; }
.preview-berry { --preview-a:#d2507d; --preview-b:#ffc568; --preview-c:#885376; --preview-d:#fbdce8; }
html { scroll-padding-top:120px; }
body { background:var(--paper); color:var(--ink); font-size:16px; line-height:1.5; overflow-x:clip; }
body::before { display:none; }
body:has(dialog[open]) { overflow:hidden; }
button, input, select, textarea { font:inherit; }
button { touch-action:manipulation; }
button:disabled { cursor:wait; opacity:.6; }
button, a, input, select { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--primary-strong); outline-offset:3px; }
svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
h1,h2,h3 { color:inherit; }
.section-kicker { color:var(--primary-strong); font-size:10px; font-weight:900; letter-spacing:.15em; }
.site-header,.detail-header { position:sticky; top:0; z-index:30; background:var(--paper-2); border-bottom:1px solid var(--line); box-shadow:none; backdrop-filter:none; }
.header-shell,.detail-header .header-shell { width:var(--shell); min-height:88px; margin:auto; gap:28px; display:flex; align-items:center; }
.brand { gap:10px; flex:none; }
.brand-logo { display:block; width:210px; height:auto; aspect-ratio:3; object-fit:contain; flex:none; }
.account-brand .brand-logo { width:190px; }
.auth-story .account-brand { align-self:flex-start; background:#fffaf2; border-radius:18px; padding:5px 12px; }
.account-brand .sr-only { display:block; }
.brand-mark { width:43px; height:44px; transform:none; border-radius:0; box-shadow:none; background:none; }
.brand-mark span { transform:none; border:6px solid #dc6046; border-bottom:0; border-radius:40px 40px 0 0; position:absolute; width:40px; height:25px; left:1px; bottom:9px; background:none; }
.brand-mark span:nth-child(2) { border-color:#e3b64c; width:28px; height:19px; left:7px; bottom:9px; }
.brand-mark span:nth-child(3) { border-color:#5d8c6c; width:16px; height:13px; left:13px; bottom:9px; }
.brand-copy small { color:var(--muted); font-size:8px; letter-spacing:.15em; }
.brand-copy strong { color:var(--ink); font-size:25px; letter-spacing:.01em; font-weight:600; }
.header-search { border:1px solid var(--line); border-radius:16px; box-shadow:0 2px 0 #173e3a04; background:var(--surface); min-height:48px; margin:0 auto; flex:1; max-width:560px; }
.header-search:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent); }
.header-search input { min-width:0; width:100%; font-size:15px; font-weight:600; color:var(--ink); background:transparent; }
.header-search .search-submit { width:44px; height:44px; padding:12px; color:var(--primary-strong); background:transparent; }
.header-search .search-submit svg { width:20px; height:20px; }
.clear-search { min-width:40px; min-height:40px; }
.header-tools { display:flex; gap:8px; flex:none; }
.theme-launcher,.header-action,.header-logout,.share-button { border:1px solid var(--line); border-radius:50px; background:var(--surface); color:var(--ink); min-height:44px; padding:10px 14px; font-size:12px; gap:7px; box-shadow:none; transform:none; }
.theme-launcher svg,.header-action svg,.header-logout svg { width:19px; height:19px; }
.theme-launcher-label { max-width:115px; }
.search-suggestions { z-index:40; inset:auto 0; top:calc(100% + 10px); min-width:0; border-radius:20px; padding:6px; background:var(--surface); border:1px solid var(--line); box-shadow:0 15px 40px #263e3824; max-height:min(58dvh,470px); overscroll-behavior:contain; }
.search-suggestion-item { border-radius:12px; min-height:78px; }
.search-suggestion-image { width:56px; height:56px; border-radius:10px; background:#fff; }
.search-suggestion-copy strong { font-size:14px; }
.search-suggestion-copy span { font-size:12px; }
.search-suggestion-copy > small { font-size:11px; color:var(--muted); }
.search-suggestion-copy b { font-size:13px; }
.search-suggestion-copy > span { gap:5px; flex-wrap:wrap; }
.search-suggestion-code { font-size:11px; }
.hero-carousel { margin:20px auto 22px; width:var(--shell); }
.hero-carousel-viewport { border-radius:24px; box-shadow:none; border:0; }
.hero-carousel .hero-slide { min-height:270px; height:270px; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); grid-template-rows:minmax(0,1fr); align-items:center; color:var(--hero-ink); background:radial-gradient(circle at 95% 6%,#ffffff90 0 10%,transparent 10.2%),linear-gradient(115deg,var(--hero-start),var(--hero-end)); }
.hero-carousel .hero-slide::before,.hero-carousel .hero-slide::after { display:none; }
.hero-carousel .hero-slide-copy { position:relative; min-width:0; width:auto; padding:30px 42px; inset:auto; z-index:2; }
.hero-carousel .hero-slide h1,.hero-carousel .hero-slide h2 { width:100%; }
.hero-kicker { color:var(--hero-soft); font-size:10px; line-height:1.3; letter-spacing:.15em; margin-bottom:12px; }
.hero-kicker i { background:var(--primary); width:6px; height:6px; }
.hero-carousel .hero-slide h1,.hero-carousel .hero-slide h2 { font-family:"Fredoka Pelangi",sans-serif; font-size:clamp(30px,3.4vw,43px); font-weight:540; line-height:1.13; letter-spacing:-.025em; color:var(--hero-ink); text-shadow:none; margin:0 0 12px; }
.hero-carousel .hero-slide h1 em,.hero-carousel .hero-slide h2 em { color:var(--primary-strong); font-style:normal; }
.hero-carousel .hero-slide-copy > p { color:var(--hero-soft); font-size:14px; line-height:1.6; max-width:390px; margin:0; }
.hero-slide-actions { margin-top:20px; gap:16px; align-items:center; }
.hero-cta { min-height:44px; padding:11px 20px; border-radius:13px; box-shadow:0 3px 0 #173e3a13; background:var(--ink); color:#fff; font-size:13px; border:0; gap:16px; transform:none; }
.hero-cta:hover { background:var(--primary-strong); transform:none; }
.hero-stat,.hero-stat-light { color:var(--hero-soft); font-size:10px; }
.hero-stat strong,.hero-stat-light strong { font-family:inherit; color:var(--ink); font-size:13px; }
.hero-carousel-controls { position:relative; bottom:auto; left:auto; transform:none; margin:4px auto 0; background:none; box-shadow:none; border:0; width:fit-content; padding:0; gap:6px; min-height:34px; }
.hero-carousel-controls button { color:var(--muted); background:none; width:34px; height:34px; border:0; border-radius:50%; }
.hero-carousel-dots { gap:4px; }
.hero-carousel-dots button { width:20px; height:30px; position:relative; background:none; }
.hero-carousel-dots button::after { content:""; width:6px; height:6px; border-radius:50px; position:absolute; left:7px; top:12px; background:var(--line); }
.hero-carousel-dots button.is-active { width:26px; background:none; }
.hero-carousel-dots button.is-active::after { width:20px; left:3px; background:var(--primary); }
.hero-carousel-pause span { font-size:11px; }
.hero-discovery-scene { position:relative; min-width:0; padding:28px 40px 28px 0; height:100%; display:flex; flex-direction:column; justify-content:center; }
.scene-note { font-size:11px; text-align:center; color:var(--hero-soft); letter-spacing:.12em; margin-bottom:12px; }
.discovery-photos { display:flex; align-items:center; justify-content:center; isolation:isolate; }
.discovery-photos > span { display:block; width:32%; max-height:185px; aspect-ratio: .85; background:#fff; border:7px solid #fff; border-bottom-width:12px; border-radius:18px; box-shadow:0 8px 0 #173e3a0c,0 14px 22px #33472a13; transform:rotate(-9deg); overflow:hidden; }
.discovery-photos > span:nth-child(2) { z-index:2; transform:translateY(-7px) rotate(5deg); margin:0 -7%; }
.discovery-photos > span:nth-child(3) { transform:rotate(15deg); }
.discovery-photos img { width:100%; height:100%; object-fit:contain; }
.discovery-placeholder { background:linear-gradient(135deg,#f5d6b6,#e3eddb); }
.scene-stamp { position:absolute; right:27px; bottom:22px; border-radius:50%; background:var(--accent); width:73px; height:73px; display:grid; place-content:center; text-align:center; color:#69521d; font-size:8px; font-weight:900; letter-spacing:.1em; transform:rotate(12deg); box-shadow:0 5px 15px #6c552214; }
.scene-stamp b { font-size:18px; }
.hero-carousel .hero-slide-points { background:linear-gradient(115deg,#f5e6c3,#f8efd9); --hero-ink:#4d4326; --hero-soft:#756342; }
.hero-carousel .hero-slide-points h2 em { color:#866023; }
.hero-points-scene { position:relative; width:100%; height:270px; inset:auto; transform:scale(.8); transform-origin:center; }
.hero-slide-points .hero-slide-copy { padding-right:0; }
.hero-carousel .hero-slide-promo { background:linear-gradient(115deg,#f9ded4,#f7ebdc); --hero-ink:#654037; --hero-soft:#7b554a; }
.hero-promo-scene { position:relative; inset:auto; height:240px; width:auto; margin-right:26px; display:flex; gap:12px; justify-content:center; align-items:center; }
.hero-promo-product { position:relative; inset:auto; width:45%; max-width:180px; min-width:0; transform:none; padding:9px; background:#fffdf8; border-radius:15px; box-shadow:0 8px 20px #68413510; }
.hero-promo-product:nth-child(3) { display:none; }
.hero-promo-photo { height:100px; aspect-ratio:auto; border-radius:8px; }
.hero-promo-photo img { object-fit:contain; }
.hero-promo-copy strong { font-size:11px; -webkit-line-clamp:1; }
.hero-promo-copy em { font-size:16px; }
.category-section { width:var(--shell); margin:0 auto 24px; }
.section-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; gap:12px; }
.section-heading > div { padding:0; min-width:0; }
.section-heading h2,.catalog-heading h2,.related-section h2 { margin:3px 0; font-family:"Nunito Pelangi",sans-serif; font-weight:900; letter-spacing:-.035em; font-size:27px; }
.section-heading p { display:none; }
.text-button { color:var(--primary-strong); border:0; background:none; padding:10px 0 10px 10px; min-height:44px; font-size:12px; font-weight:800; }
.category-rail { display:flex; gap:16px; padding:0 0 8px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; }
.category-rail::-webkit-scrollbar { display:none; }
.category-card { scroll-snap-align:start; display:flex; flex-direction:column; flex:0 0 104px; gap:9px; min-height:0; padding:0; background:none; border:0; border-radius:0; box-shadow:none; transform:none; animation:none; }
.category-card::after,.category-image i,.category-arrow { display:none; }
.category-card:hover { transform:none; box-shadow:none; }
.category-card.active { background:none; border:0; }
.category-image { display:block; width:76px; height:76px; margin:auto; background:var(--category-tint,var(--surface-soft)); border:2px solid transparent; border-radius:24px; padding:7px; transform:none; box-shadow:inset 0 -4px 0 #173e3a05; }
.tone-0 { --category-tint:#ffe2cc; } .tone-1 { --category-tint:#dcefff; } .tone-2 { --category-tint:#ffe1eb; }
.tone-3 { --category-tint:#e6efce; } .tone-4 { --category-tint:#fff0bb; } .tone-5 { --category-tint:#e8e1f6; }
.category-image img { width:100%; height:100%; border-radius:17px; object-fit:contain; background:#fff; transform:none; }
.category-card.active .category-image { border-color:var(--primary-strong); box-shadow:0 0 0 3px var(--surface-soft); }
.category-copy { display:block; padding:0; text-align:center; }
.category-copy strong { font:800 12px/1.35 "Nunito Pelangi",sans-serif; color:var(--ink); min-height:32px; display:block; }
.category-copy small { display:none; }
.category-skeleton { display:flex; gap:16px; height:113px; }
.category-skeleton i { width:76px; height:76px; flex:none; border-radius:24px; }
.catalog-section { width:var(--shell); margin:0 auto 56px; }
.catalog-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:14px; }
.catalog-heading p { font-size:12px; color:var(--muted); margin:4px 0 0; }
.sort-control { font-size:12px; color:var(--muted); gap:8px; }
.sort-control select { min-height:42px; padding:8px 32px 8px 14px; border:1px solid var(--line); border-radius:30px; box-shadow:none; color:var(--ink); background-color:var(--surface); font-size:12px; font-weight:750; }
.browse-filters { display:flex; gap:8px; overflow:auto; margin:0 0 18px; scrollbar-width:none; padding:3px 0; }
.browse-filters button { flex:none; border:1px solid var(--line); padding:9px 15px; min-height:40px; border-radius:24px; color:var(--muted); background:var(--surface); font-size:12px; font-weight:800; }
.browse-filters button.active { background:var(--ink); color:#fff; border-color:var(--ink); box-shadow:0 3px 0 #173e3a12; }
[data-saved-count] { font-size:10px; min-width:14px; margin-left:2px; }
.active-filter { background:var(--surface-soft); padding:10px 14px; border-radius:12px; color:var(--ink); margin-bottom:16px; font-size:12px; }
.active-filter button { min-height:32px; color:var(--primary-strong); }
.product-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; }
.product-card,.product-card.has-promo { position:relative; display:flex; flex-direction:column; min-width:0; margin:0; border:1px solid var(--line); border-radius:20px; background:var(--surface); overflow:hidden; box-shadow:0 3px 0 #173e3a04; transform:none; animation:none; transition:border-color .18s,box-shadow .18s; }
.product-card::before,.product-card::after,.product-photo-spark,.view-arrow { display:none; }
.product-card:hover { transform:none; box-shadow:0 8px 24px #293b3610; border-color:color-mix(in srgb,var(--primary) 50%,var(--line)); }
.product-card .product-photo { position:relative; display:block; width:100%; aspect-ratio:1; height:auto; padding:12px; background:#fff; border:0; overflow:hidden; border-radius:0; }
.product-card .product-photo img { width:100%; height:100%; object-fit:contain; border-radius:8px; transform:none; mix-blend-mode:normal; }
.product-card:hover .product-photo img { transform:none; }
.product-body { padding:12px 14px 14px; display:flex; flex:1; flex-direction:column; gap:0; border-top:1px solid #f4f4f0; }
.product-category { font-size:9px; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:none; padding:0; line-height:1.4; }
.product-name { font:800 14px/1.45 "Nunito Pelangi",sans-serif; color:var(--ink); letter-spacing:0; margin:6px 0 10px; min-height:40px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.product-footer { margin-top:auto; padding:0; display:flex; align-items:flex-end; }
.product-price,.product-price.promo-price { font:900 19px/1.25 "Nunito Pelangi",sans-serif; letter-spacing:-.025em; color:var(--ink); }
.product-normal-price { font-size:11px; margin-bottom:3px; }
.product-meta { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:9px; min-height:21px; }
.product-meta .product-points { display:inline-flex; align-items:center; gap:4px; margin:0; padding:4px 7px; border-radius:7px; color:#725014; background:#fff0ba; border:0; box-shadow:none; font-size:11px; font-weight:900; }
.stock-low { font-size:9px; color:#a0442b; font-weight:800; }
.product-code { font-size:10px; color:var(--muted); margin-top:8px; }
.save-product { position:absolute; top:8px; right:8px; z-index:2; width:44px; height:44px; min-height:44px; display:grid; place-items:center; border:1px solid #eeeeea; border-radius:50%; background:#fff; color:#61736b; box-shadow:0 2px 8px #00000008; padding:11px; }
.save-product svg { width:18px; height:18px; }
.save-product[aria-pressed="true"] { color:#ad3e28; }
.save-product[aria-pressed="true"] svg { fill:#f5cec2; }
.promo-ribbon { top:12px; left:10px; padding:4px 7px; background:#ac442d; color:white; border-radius:6px; font-size:10px; box-shadow:none; }
.product-skeleton { aspect-ratio:.64; border-radius:18px; height:auto; background:linear-gradient(100deg,#edece7 20%,#f8f8f4 45%,#edece7 70%); background-size:200% 100%; animation:catalog-shimmer 1.5s linear infinite; }
@keyframes catalog-shimmer { to { background-position:-200% 0; } }
.load-more-wrap { margin:28px 0 0; }
.load-more { min-height:46px; padding:12px 28px; border:1px solid var(--ink); border-radius:40px; color:var(--ink); background:var(--surface); box-shadow:none; font-size:13px; font-weight:850; }
.catalog-end { text-align:center; margin:25px 0; font-size:12px; color:var(--muted); }
.catalog-error { border:1px solid #ebc6bc; border-radius:14px; padding:14px 20px; background:#fff3ed; margin:15px 0; font-size:14px; }
.catalog-error button { padding:10px 15px; background:var(--ink); color:white; border:0; border-radius:30px; }
.empty-state { padding:45px 20px; background:var(--surface); border-radius:20px; border:1px dashed var(--line); }
.empty-state h3 { font-size:24px; }
.empty-state p { color:var(--muted); font-size:14px; }
.empty-state button { min-height:44px; border-radius:30px; background:var(--ink); }
.payment-section,.store-location,.trust-strip { width:var(--shell); max-width:1240px; margin:36px auto; }
.payment-section { padding:26px; background:var(--surface); border:1px solid var(--line); border-radius:22px; box-shadow:none; }
.payment-heading h2,.store-location h2 { font-size:26px; font-weight:500; }
.payment-heading p { font-size:13px; }
.payment-bank-card,.payment-transfer-card,.payment-qris-card { box-shadow:none; border-radius:16px; }
.payment-account-number { font-size:18px; letter-spacing:.025em; }
.store-location { border-radius:24px; box-shadow:none; }
.trust-strip { border-radius:0; border:0; background:transparent; box-shadow:none; border-top:1px solid var(--line); padding:25px 0; }
.trust-strip article { padding:0 20px 0 0; }
.trust-strip strong { font-size:14px; }
.trust-strip p { font-size:12px; }
.trust-icon { background:var(--surface-soft); border-radius:12px; color:var(--primary-strong); box-shadow:none; transform:none; width:40px; height:40px; }
.site-footer { background:var(--footer); padding:42px 0 20px; margin-top:30px; }
.footer-rainbow { display:none; }
.footer-main,.footer-bottom { width:var(--shell); margin:auto; }
.footer-main { padding:0 0 28px; }
.footer-brand h2 { font-size:27px; font-weight:500; }
.site-footer h3 { font:850 13px "Nunito Pelangi",sans-serif; color:#fff; }
.site-footer p,.site-footer a { font-size:13px; color:#e0e8df; }
.footer-bottom { padding:18px 0 0; font-size:11px; color:#c5d7cb; }
dialog { overscroll-behavior:contain; }
dialog::backdrop { background:#20353085; backdrop-filter:blur(3px); }
.category-dialog,.theme-dialog,.loyalty-dialog,.payment-dialog { border:1px solid var(--line); border-radius:24px; box-shadow:0 25px 80px #20353035; }
.dialog-header,.theme-dialog-head,.loyalty-dialog-head,.payment-dialog-head { background:var(--surface); }
.dialog-header h2,.theme-dialog h2,.loyalty-dialog h2,.payment-dialog h2 { font-size:26px; font-weight:500; color:var(--ink); }
.dialog-header > button,.theme-dialog-head > button,.loyalty-dialog-head > button,.payment-dialog-head > button { min-width:44px; min-height:44px; border-radius:50%; color:var(--ink); }
.category-search-label { display:block; font-size:12px; font-weight:800; margin-bottom:6px; }
.category-search { width:100%; min-height:46px; border:1px solid var(--line); background:var(--paper); color:var(--ink); border-radius:12px; padding:12px; margin-bottom:22px; font-size:16px; }
.dialog-category-group button { border-radius:12px; min-height:44px; font-size:12px; }
.theme-option { border-radius:16px; min-height:108px; }
.theme-option strong { font-size:16px; }
.theme-option small { font-size:12px; }
.theme-preview { border-radius:12px; }
.reward-card,.loyalty-story,.loyalty-steps li { border-radius:16px; box-shadow:none; }
.toast { bottom:94px; left:50%; z-index:100; max-width:calc(100vw - 32px); border-radius:16px; background:var(--ink); color:#fff; font-size:13px; padding:12px 18px; box-shadow:0 5px 20px #0002; }
.detail-main { width:var(--shell); margin:24px auto 40px; }
.detail-layout { gap:40px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.gallery-main { position:relative; background:#fff; border:1px solid var(--line); border-radius:24px; aspect-ratio:1; padding:20px; box-shadow:none; cursor:zoom-in; }
.gallery-main img { width:100%; height:100%; object-fit:contain; }
.gallery-thumbs { margin-top:12px; gap:10px; }
.gallery-thumbs button { width:70px; height:70px; border-radius:13px; padding:5px; background:#fff; }
.gallery-thumbs button.active { border-color:var(--primary-strong); }
.detail-copy { padding:10px 0; background:none; border:0; box-shadow:none; }
.detail-copy h1 { font:600 clamp(24px,3vw,35px)/1.2 "Fredoka Pelangi",sans-serif; color:var(--ink); margin:12px 0; }
.detail-breadcrumb { font-size:12px; color:var(--muted); }
.detail-code { font-size:13px; color:var(--muted); }
.detail-price,.detail-price.promo-price { font:900 32px "Nunito Pelangi",sans-serif; color:var(--primary-strong); margin-top:16px; }
.detail-description-panel { margin-top:24px; padding:22px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; background:none; }
.detail-description-panel h2 { font-size:19px; }
.detail-description { font-size:15px; line-height:1.75; color:var(--ink); white-space:pre-line; }
.detail-stock { background:#eaf3e7; color:#336540; border:0; font-size:12px; border-radius:8px; }
.detail-note { border-radius:12px; box-shadow:none; font-size:12px; }
.detail-actions { gap:10px; flex-wrap:wrap; }
.detail-actions a,.detail-actions button { min-height:46px; border-radius:30px; font-size:13px; }
.detail-actions a { background:var(--secondary); color:#fff; }
.detail-actions .detail-save { position:static; display:inline-flex; gap:7px; width:auto; padding:12px 16px; border:1px solid var(--line); border-radius:30px; }
.detail-sticky { background:var(--paper-2); border-top:1px solid var(--line); box-shadow:0 -4px 20px #2035300b; padding:12px 20px calc(12px + env(safe-area-inset-bottom)); }
.detail-sticky a { background:var(--secondary); border-radius:30px; min-height:44px; }
.detail-sticky strong { color:var(--primary-strong); }
.related-section { width:var(--shell); margin:30px auto 60px; }
.related-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.product-video-section { border-radius:20px; background:var(--surface-soft); box-shadow:none; margin-top:30px; }
.product-video-player { border-radius:15px; min-height:220px; }
.lightbox { position:fixed; inset:0; width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; padding:40px; border:0; background:#172723f5; color:#fff; }
.lightbox:not([open]) { display:none; }
.lightbox[open] { display:flex; align-items:center; justify-content:center; }
.lightbox img { max-width:calc(100% - 80px); max-height:calc(100dvh - 100px); border-radius:10px; object-fit:contain; }
.lightbox button { position:absolute; min-width:44px; min-height:44px; width:44px; height:44px; padding:0; line-height:1; color:#fff; background:#172723e6; border:1px solid #fff6; border-radius:50%; display:grid; place-items:center; font-size:28px; }
.lightbox #closeLightbox { top:16px; right:16px; }
.lightbox .lightbox-prev { left:14px; top:calc(50% - 22px); }
.lightbox .lightbox-next { right:14px; top:calc(50% - 22px); }
.lightbox-counter { position:absolute; bottom:22px; left:0; width:100%; text-align:center; font-size:13px; }
.auth-story { background:linear-gradient(145deg,var(--footer),var(--secondary)); }
.auth-shell,.auth-card { box-shadow:none; }
.auth-shell { border-radius:24px; }
.auth-form input,.profile-form input { font-size:16px; }
@media(min-width:761px) { .mobile-nav { display:none; } }
@media(max-width:1050px) {
  .product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
  .header-shell,.detail-header .header-shell { gap:16px; }
  .theme-launcher-label { display:none; }
  .hero-carousel .hero-slide-copy { padding:28px; }
  .hero-carousel .hero-slide h1,.hero-carousel .hero-slide h2 { font-size:37px; }
  .hero-discovery-scene { padding-right:25px; }
}
@media(max-width:760px) {
  html[data-theme] { --shell:calc(100% - 28px); }
  html { scroll-padding-top:124px; }
  body { padding-bottom:76px; }
  .site-header .header-shell,.detail-header .header-shell { min-height:0; padding:5px 0 10px; flex-wrap:wrap; gap:6px; }
  .brand { gap:7px; }
  .brand-logo { width:196px; height:48px; object-fit:cover; }
  .detail-header .brand-logo { width:136px; height:48px; }
  .detail-header-actions { gap:4px; margin-left:auto; }
  .detail-header-actions .compact-theme { display:none; }
  .detail-header-actions .header-action,.detail-header-actions .header-logout,.detail-header-actions .share-button { width:44px; height:44px; min-height:44px; padding:11px; }
  .detail-header-actions .header-action span { display:none; }
  .brand-copy strong { font-size:21px; }
  .brand-mark { width:37px; height:37px; transform:scale(.86); transform-origin:left center; margin-right:-5px; }
  .brand-copy small { font-size:7px; }
  .header-tools { margin-left:auto; gap:4px; }
  .theme-launcher,.header-action,.header-logout { min-height:44px; height:44px; padding:10px; font-size:12px; border-color:transparent; background:var(--surface-soft); }
  .theme-launcher { width:44px; padding:11px; }
  .header-tools .header-action span { display:none; }
  .header-logout span { display:none; }
  .header-tools svg { width:20px; height:20px; }
  .header-search,.site-header .header-search,.detail-header .header-search { order:3; flex:1 0 100%; width:100%; max-width:none; min-height:44px; height:44px; }
  .header-search input { font-size:16px; }
  .header-search .search-submit { width:42px; height:40px; padding:11px; }
  .search-suggestions { border-radius:16px; top:calc(100% + 8px); max-height:55dvh; }
  .hero-carousel { margin:12px auto 10px; }
  .hero-carousel-viewport { border-radius:20px; }
  .hero-carousel .hero-slide { min-height:164px; height:164px; grid-template-columns:minmax(0,1.75fr) minmax(0,1fr); }
  .hero-carousel .hero-slide-copy { padding:14px 0 14px 18px; }
  .hero-carousel .hero-slide h1,.hero-carousel .hero-slide h2 { font-size:24px; line-height:1.12; margin-bottom:0; }
  .hero-carousel .hero-slide-points h2 { font-size:23px; }
  .hero-carousel .hero-slide-points { grid-template-columns:minmax(0,3fr) minmax(0,1fr); }
  .hero-kicker { font-size:8px; letter-spacing:.05em; margin-bottom:9px; gap:5px; }
  .hero-carousel .hero-slide-copy > p { display:none; }
  .hero-slide-actions { margin-top:11px; gap:0; }
  .hero-cta { min-height:44px; height:auto; padding:10px 12px; font-size:12px; gap:9px; }
  .hero-stat,.hero-stat-light { display:none; }
  .hero-discovery-scene { padding:14px 10px 14px 0; }
  .scene-note { display:none; }
  .discovery-photos > span { width:84%; max-height:112px; border-width:4px; border-bottom-width:8px; border-radius:12px; }
  .discovery-photos > span:nth-child(2) { margin-left:-33%; margin-right:0; }
  .discovery-photos > span:nth-child(3) { display:none; }
  .scene-stamp { display:none; }
  .scene-stamp b { font-size:12px; }
  .hero-points-scene { width:220px; height:230px; transform:scale(.38); transform-origin:left center; margin-left:-28px; }
  .hero-slide-points .hero-slide-copy { padding-right:0; }
  .hero-carousel .hero-slide-points .hero-slide-copy > p { display:none; }
  .hero-promo-scene { margin:0 10px 0 6px; height:152px; }
  .hero-promo-product { width:100%; padding:7px; }
  .hero-promo-product:nth-child(2) { display:none; }
  .hero-promo-photo { height:86px; }
  .hero-promo-copy strong { font-size:9px; }
  .hero-promo-copy small { font-size:7px; }
  .hero-promo-copy em { font-size:12px; }
  .hero-promo-copy del { font-size:9px; }
  .hero-carousel-controls { position:absolute; right:7px; bottom:2px; left:auto; margin:0; min-height:30px; z-index:3; gap:2px; }
  .hero-carousel-controls .hero-carousel-arrow { display:none; }
  .hero-carousel-controls button { height:30px; width:30px; }
  .hero-carousel-dots button { width:20px; }
  .category-section { margin-bottom:14px; }
  .section-heading { margin-bottom:8px; }
  .section-heading .section-kicker,.catalog-heading .section-kicker { display:none; }
  .category-section .section-heading h2 { font-size:21px; line-height:1.2; padding-right:62px; }
  .section-heading h2,.catalog-heading h2,.related-section h2 { font-size:20px; margin:0; }
  .category-rail { gap:8px; margin-right:-14px; padding-right:14px; }
  .category-card { flex-basis:86px; min-height:0; gap:6px; }
  .category-image { width:60px; height:60px; border-radius:20px; padding:5px; }
  .category-image img { border-radius:14px; }
  .category-copy strong { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space:normal; font-size:11px; line-height:1.3; min-height:29px; }
  .category-skeleton { height:100px; }
  .category-skeleton i { width:62px; height:62px; }
  .catalog-section { margin-bottom:30px; }
  .catalog-heading { flex-wrap:nowrap; align-items:center; gap:8px; margin-bottom:10px; }
  .catalog-heading > div { flex:1; min-width:0; }
  .catalog-heading h2 { font-size:21px; line-height:1.2; }
  .catalog-heading p { font-size:11px; margin-top:5px; }
  .catalog-heading .sort-control { display:flex; flex-direction:row; flex:none; width:auto; min-width:0; align-items:center; font-size:12px; }
  .sort-control select { min-height:44px; min-width:0; padding:8px 24px 8px 10px; font-size:12px; width:126px; max-width:126px; border-radius:12px; }
  .browse-filters { gap:7px; margin-bottom:10px; margin-right:-14px; padding-right:14px; }
  .browse-filters button { min-height:44px; font-size:12px; padding:9px 12px; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .product-card { border-radius:18px; }
  .product-card .product-photo { padding:8px; }
  .product-body { padding:10px 11px 12px; }
  .product-name { font-size:14px; line-height:1.35; min-height:38px; margin:5px 0 9px; }
  .product-category { font-size:9px; }
  .product-price,.product-price.promo-price { font-size:18px; }
  .product-meta { margin-top:8px; gap:3px; min-height:20px; }
  .product-meta .product-points { font-size:11px; padding:3px 6px; }
  .product-code { font-size:11px; margin-top:7px; }
  .save-product { width:44px; height:44px; min-height:44px; padding:11px; top:6px; right:6px; }
  .save-product svg { width:17px; height:17px; }
  .payment-section { padding:18px; margin-top:25px; border-radius:18px; }
  .payment-heading h2,.store-location h2 { font-size:23px; }
  .payment-heading p { font-size:12px; }
  .payment-bank-list { gap:10px; }
  .payment-bank-card { padding:14px; }
  .payment-transfer-card { padding:14px; }
  .payment-bank-card .payment-account-number { grid-column:1 / -1; font-size:19px; white-space:nowrap; overflow-wrap:normal; word-break:normal; }
  .payment-bank-card .payment-account-name { grid-column:1 / -1; }
  .payment-bank-card .payment-copy-button { grid-column:1 / -1; grid-row:auto; width:100%; margin-top:8px; }
  .store-location { border-radius:18px; }
  .trust-strip { padding:20px 0; gap:18px; }
  .trust-strip article { padding:0; }
  .site-footer { margin-top:24px; padding-top:28px; padding-bottom:20px; }
  .footer-main { gap:24px; padding-bottom:20px; }
  .footer-bottom { padding-top:16px; }
  .mobile-nav { position:fixed; bottom:0; left:0; right:0; transform:none; width:100%; z-index:35; display:grid; grid-template-columns:repeat(4,1fr); gap:5px; padding:7px 14px calc(7px + env(safe-area-inset-bottom)); border:0; border-top:1px solid var(--line); border-radius:20px 20px 0 0; background:var(--paper-2); color:var(--muted); box-shadow:0 -5px 22px #173e3a0a; }
  .mobile-nav a,.mobile-nav button { min-height:48px; border:0; padding:4px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border-radius:13px; font-size:11px; font-weight:850; background:none; color:var(--muted); }
  .mobile-nav a.active,.mobile-nav button.active { background:var(--surface-soft); color:var(--primary-strong); }
  .mobile-nav svg { width:21px; height:21px; }
  .category-dialog,.theme-dialog,.loyalty-dialog,.payment-dialog { margin:auto auto 0; width:100%; max-width:100%; max-height:88dvh; border-radius:24px 24px 0 0; padding-bottom:calc(24px + env(safe-area-inset-bottom)); }
  .dialog-header h2,.theme-dialog h2,.loyalty-dialog h2,.payment-dialog h2 { font-size:24px; }
  .theme-options { grid-template-columns:1fr; }
  .theme-option { min-height:86px; }
  .auth-story { min-height:0; padding:18px 20px; }
  .auth-story .brand-logo { width:170px; height:auto; }
  .auth-story-copy { margin:18px 0 0; }
  .auth-story h1 { margin:8px 0 0; font-size:26px; line-height:1.15; }
  .auth-story-copy > p { display:none; }
  .auth-story .auth-kicker { font-size:9px; }
  .auth-card-top { margin-bottom:18px; }
  .detail-main { margin-top:16px; margin-bottom:24px; }
  .detail-layout { grid-template-columns:1fr; gap:20px; }
  .detail-copy h1 { font-size:27px; }
  .detail-price,.detail-price.promo-price { font-size:30px; }
  .gallery-main { border-radius:20px; padding:12px; aspect-ratio:1.12; }
  .gallery-thumbs button { width:60px; height:60px; flex-basis:60px; }
  .detail-actions { display:flex; }
  .detail-actions a { display:none; }
  .detail-actions button { flex:1; }
  .detail-description { font-size:14px; }
  .detail-sticky { z-index:35; display:flex; }
  .detail-sticky small { font-size:10px; }
  .detail-sticky strong { font-size:19px; }
  .detail-sticky a { font-size:12px; }
  .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lightbox { padding:50px 10px; }
  .lightbox img { max-width:100%; }
  .lightbox button { z-index:2; }
}
@media(max-width:365px) {
  html[data-theme] { --shell:calc(100% - 24px); }
  .brand-logo { width:150px; height:50px; }
  .detail-header .brand-logo { width:112px; }
  .hero-carousel .hero-slide h1,.hero-carousel .hero-slide h2 { font-size:21px; }
  .hero-carousel .hero-slide-copy { padding-left:15px; }
  .hero-carousel .hero-slide-points h2 { font-size:20px; }
  .hero-cta { font-size:11px; padding-inline:10px; gap:5px; }
  .hero-carousel .hero-slide { height:164px; min-height:164px; }
  .catalog-heading h2 { font-size:19px; }
  .sort-control select { width:112px; }
  .product-grid { gap:9px; }
  .product-name { font-size:13px; }
  .product-price,.product-price.promo-price { font-size:16px; }
  .product-body { padding:9px; }
}
@media(max-height:520px) and (orientation:landscape) {
  .site-header .header-shell,.detail-header .header-shell { flex-wrap:nowrap; min-height:58px; padding:7px 0; gap:12px; }
  .site-header .header-search,.detail-header .header-search { order:0; flex:1; min-width:140px; }
  .header-action span { display:none; }
  .brand-logo,.detail-header .brand-logo { width:160px; height:46px; object-fit:cover; }
  .header-tools { gap:4px; }
  .header-tools .header-action span { display:none; }
  .hero-carousel .hero-slide { min-height:196px; height:196px; }
  .hero-carousel .hero-slide h1,.hero-carousel .hero-slide h2 { font-size:28px; margin-bottom:0; }
  .hero-carousel .hero-slide-copy { padding:16px 26px; }
  .hero-carousel .hero-slide-copy > p { display:none; }
  .hero-kicker { font-size:9px; margin-bottom:8px; }
  .hero-slide-actions { margin-top:12px; }
  .hero-discovery-scene { max-height:190px; }
  .discovery-photos > span { max-height:125px; width:33%; }
  .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .mobile-nav { position:static; display:none; }
  body { padding-bottom:0; }
  .detail-sticky { display:none; }
  .detail-actions a { display:inline-flex; }
  .detail-layout { grid-template-columns:1fr 1fr; gap:20px; }
  dialog { max-height:94dvh; }
}
@media(prefers-reduced-motion:reduce) {
  .product-skeleton { animation:none; }
}
