  :root{
    --orange-1:#FF7A45;
    --orange-2:#FFB03B;
    --orange-dark:#E85F2A;
    --orange-tint:#FFF1E6;
    --ink:#241C1A;
    --ink-muted:#A69C96;
    --surface:#FFFFFF;
    --bg:#FAF8F6;
    --heart:#FF4757;
    --line:#F1ECE8;
    --radius:20px;
    --shadow: 0 10px 26px rgba(233,95,42,0.10);
  }
  .frame.dark{
    --ink:#F4EEE8;
    --ink-muted:#948B83;
    --surface:#221D18;
    --bg:#151210;
    --orange-tint:rgba(255,122,69,.16);
    --line:#332C2A;
    --shadow: 0 10px 26px rgba(0,0,0,.45);
  }
  body.dark{ background:#0C0A09; }
  .frame{ transition:background .25s ease; }
  .card, .summary-card, .line-item, .search-row input, .field-input, .app-header, .bottom-nav, .detail-footer, .address-sheet{
    transition:background .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{
    background:#E9E4DE;
    font-family:'Inter',sans-serif;
    color:var(--ink);
    display:flex;
    justify-content:center;
    min-height:100vh;
  }
  .frame{
    width:100%;
    max-width:420px;
    min-height:100vh;
    background:var(--bg);
    color:var(--ink);
    position:relative;
    overflow-x:hidden;
    display:flex;
    flex-direction:column;
  }
  .screen{ display:none; flex-direction:column; flex:1; }
  .screen.active{ display:flex; }

  /* ---------- Home header ---------- */
  .app-header{
    padding:20px 20px 6px;
    background:var(--bg);
  }
  .app-header__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .loc-block{ display:flex; align-items:center; gap:8px; }
  .loc-icon{
    width:34px;height:34px;border-radius:50%;
    background:var(--orange-tint);
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
  }
  .loc-text__eyebrow{ font-size:11px; color:var(--ink-muted); }
  .loc-text__addr{ font-size:13.5px; font-weight:700; font-family:'Golos Text',sans-serif; display:flex; align-items:center; gap:5px; }
  .loc-block{ transition:opacity .15s ease; cursor:pointer; }
  .loc-block:active{ opacity:.6; }
  .bell-btn{
    width:38px;height:38px;border-radius:50%;
    background:var(--surface); border:1px solid var(--line);
    display:flex;align-items:center;justify-content:center;
  }

  /* ---------- Skeleton loading ---------- */
  @keyframes shimmer{
    0%{ background-position:-220px 0; }
    100%{ background-position:220px 0; }
  }
  .skel{
    display:inline-block;
    background:linear-gradient(90deg, #ECE6E1 25%, #F7F3EF 37%, #ECE6E1 63%);
    background-size:400px 100%;
    animation:shimmer 1.3s ease-in-out infinite;
    border-radius:6px;
    vertical-align:middle;
  }
  .skel--eyebrow{ width:86px; height:9px; margin-bottom:5px; }
  .skel--addr{ width:118px; height:13px; }
  .fade-in{ animation:fadeIn .35s ease both; }
  @keyframes fadeIn{ from{ opacity:0; transform:translateY(2px); } to{ opacity:1; transform:translateY(0); } }

  .search-row{ margin-top:16px; position:relative; }
  .search-row input{
    width:100%;
    border:none;
    background:var(--surface);
    box-shadow:var(--shadow);
    border-radius:16px;
    padding:14px 16px 14px 44px;
    font-family:'Inter',sans-serif;
    font-size:14.5px;
    color:var(--ink);
    outline:none;
  }
  .search-row svg{ position:absolute; left:16px; top:50%; transform:translateY(-50%); opacity:.45; }
  .frame.dark .search-row svg{ stroke:var(--ink); }

  /* ---------- Theme toggle ---------- */
  .theme-toggle{
    width:52px; height:30px; border-radius:999px; flex-shrink:0;
    background:var(--surface); border:1px solid var(--line);
    display:flex; align-items:center; padding:3px;
    cursor:pointer;
  }
  .theme-toggle__thumb{
    width:23px; height:23px; border-radius:50%;
    background:var(--orange-1); color:#fff;
    display:flex; align-items:center; justify-content:center;
    transform:translateX(0);
    transition:transform .3s cubic-bezier(.32,.72,0,1), background .3s ease;
  }
  .theme-toggle.dark .theme-toggle__thumb{ transform:translateX(21px); background:#3A332C; }
  .theme-toggle__thumb svg{ width:13px; height:13px; }
  .theme-toggle__thumb .icon-moon{ display:none; }
  .theme-toggle.dark .theme-toggle__thumb .icon-sun{ display:none; }
  .theme-toggle.dark .theme-toggle__thumb .icon-moon{ display:block; }

  /* ---------- Promo banner carousel ---------- */
  .promo-carousel{
    margin:18px 20px 4px;
    border-radius:22px;
    overflow:hidden;
    position:relative;
  }
  .promo-track{
    display:flex;
    transition:transform .45s cubic-bezier(.32,.72,0,1);
  }
  .promo-slide{ flex:0 0 100%; }
  .promo{
    padding:20px;
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:110px;
  }
  .promo-dots{
    position:absolute; left:0; right:0; bottom:10px;
    display:flex; justify-content:center; gap:6px;
    z-index:3;
  }
  .promo-dots span{
    width:6px; height:6px; border-radius:50%;
    background:rgba(255,255,255,.45);
    transition:width .25s ease, background .25s ease;
  }
  .promo-dots span.active{ width:16px; border-radius:4px; background:#fff; }
  .promo__badge{
    position:absolute; top:0; left:0;
    background:var(--heart);
    color:#fff;
    font-family:'Golos Text',sans-serif;
    font-weight:800;
    font-size:12px;
    padding:6px 14px 6px 12px;
    border-radius:0 0 14px 0;
  }
  .promo__text{ color:#fff; margin-top:14px; max-width:62%; }
  .promo__text .kicker{ font-size:11.5px; font-weight:600; opacity:.85; }
  .promo__text h3{
    font-family:'Golos Text',sans-serif;
    font-weight:800;
    font-size:19px;
    line-height:1.15;
    margin:4px 0 0;
  }
  .promo__plaque{
    width:76px; height:76px;
    border-radius:50%;
    background:rgba(255,255,255,.22);
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
  }

  /* ---------- Category circles ---------- */
  .cat-scroll{
    display:flex;
    gap:16px;
    overflow-x:auto;
    padding:20px 20px 4px;
    scrollbar-width:none;
  }
  .cat-scroll::-webkit-scrollbar{display:none;}
  .cat-item{
    flex-shrink:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:7px;
    cursor:pointer;
    user-select:none;
  }
  .cat-item__circle{
    width:52px;height:52px;
    border-radius:50%;
    background:var(--surface);
    box-shadow:var(--shadow);
    display:flex;align-items:center;justify-content:center;
    font-family:'Golos Text',sans-serif;
    font-weight:700;
    font-size:17px;
    color:#fff;
    border:2px solid transparent;
    transition:border-color .15s ease, transform .15s ease;
  }
  .cat-item.active .cat-item__circle{ border-color:var(--ink); transform:scale(1.06); }
  .cat-item__label{ font-size:11.5px; font-weight:600; color:var(--ink-muted); }
  .cat-item.active .cat-item__label{ color:var(--ink); }

  /* ---------- Section title ---------- */
  .section-title{
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 20px 2px;
  }
  .section-title h2{
    font-family:'Golos Text',sans-serif;
    font-weight:800;
    font-size:17px;
    margin:0;
  }
  .section-title span{ font-size:12.5px; color:var(--orange-1); font-weight:600; }

  /* ---------- Product grid ---------- */
  .grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    padding:12px 20px 100px;
  }
  .card{
    background:var(--surface);
    border-radius:var(--radius);
    padding:14px;
    display:flex;
    flex-direction:column;
    gap:8px;
    box-shadow:var(--shadow);
    position:relative;
    cursor:pointer;
  }
  .card__plaque{
    width:100%;
    aspect-ratio:1.3/1;
    border-radius:14px;
    display:flex;align-items:center;justify-content:center;
    font-family:'Golos Text',sans-serif;
    font-weight:800;
    font-size:26px;
    color:#fff;
    position:relative;
  }
  .heart-btn{
    position:absolute; top:8px; right:8px;
    width:28px;height:28px;
    border-radius:50%;
    background:rgba(255,255,255,.85);
    display:flex;align-items:center;justify-content:center;
    z-index:2;
    border:none;
    cursor:pointer;
  }
  .card__name{
    font-family:'Golos Text',sans-serif;
    font-weight:700;
    font-size:14px;
    margin:2px 0 0;
    min-height:34px;
    line-height:1.25;
  }
  .card__meta{
    display:flex; align-items:center; gap:10px;
    font-size:11.5px; color:var(--ink-muted);
  }
  .card__meta b{ color:var(--ink); font-weight:700; }
  .card__bottom{
    display:flex; align-items:center; justify-content:space-between;
    margin-top:2px;
  }
  .card__price{ font-family:'Golos Text',sans-serif; font-weight:800; font-size:15px; }
  .add-btn{
    width:32px;height:32px; border-radius:50%; border:none;
    background:var(--orange-1); color:#fff;
    font-size:18px;
    display:flex;align-items:center;justify-content:center;
    cursor:pointer; box-shadow:0 6px 14px rgba(255,122,69,.35);
  }
  .stepper{
    display:flex; align-items:center; gap:7px;
    background:var(--orange-1);
    border-radius:999px; padding:4px 6px;
  }
  .stepper button{
    width:22px;height:22px;border-radius:50%;border:none;
    background:rgba(255,255,255,.25); color:#fff; font-size:14px;
    display:flex;align-items:center;justify-content:center;cursor:pointer;
  }
  .stepper span{ color:#fff; font-weight:700; font-size:12.5px; min-width:12px; text-align:center; }
  .empty-state{ grid-column:1/-1; text-align:center; padding:60px 20px; color:var(--ink-muted); font-size:14px; }

  /* ---------- Bottom nav ---------- */
  .bottom-nav{
    position:fixed; left:50%; bottom:0; transform:translateX(-50%);
    width:100%; max-width:420px;
    background:var(--surface);
    border-top:1px solid var(--line);
    display:flex;
    padding:10px 10px calc(10px + env(safe-area-inset-bottom));
    z-index:30;
  }
  .nav-item{
    flex:1; display:flex; flex-direction:column; align-items:center; gap:4px;
    color:var(--ink-muted); cursor:pointer; position:relative;
  }
  .nav-item.active{ color:var(--orange-1); }
  .nav-item__label{ font-size:10.5px; font-weight:600; }
  .nav-badge{
    position:absolute; top:-4px; right:22%;
    background:var(--heart); color:#fff;
    font-size:9.5px; font-weight:800;
    min-width:15px; height:15px; border-radius:8px;
    display:flex;align-items:center;justify-content:center;
    padding:0 3px;
  }

  /* ---------- Floating cart bar ---------- */
  .floating-cart{
    position:fixed; left:50%; bottom:calc(64px + env(safe-area-inset-bottom));
    transform:translateX(-50%) translateY(0);
    width:calc(100% - 32px); max-width:388px;
    background:var(--ink); color:#fff;
    border-radius:16px;
    padding:11px 14px;
    display:none;
    align-items:center; gap:12px;
    box-shadow:0 12px 26px rgba(0,0,0,.28);
    z-index:32;
    cursor:pointer;
    opacity:0; transition:opacity .2s ease, transform .2s ease;
  }
  .floating-cart.show{ display:flex; opacity:1; }
  .floating-cart.pulse{ animation:cartPulse .32s ease; }
  @keyframes cartPulse{
    0%{ transform:translateX(-50%) scale(1); }
    40%{ transform:translateX(-50%) scale(1.035); }
    100%{ transform:translateX(-50%) scale(1); }
  }
  .floating-cart__icon{
    position:relative;
    width:36px;height:36px;border-radius:11px;
    background:var(--orange-1);
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
  }
  .floating-cart__badge{
    position:absolute; top:-6px; right:-6px;
    background:var(--heart); color:#fff;
    font-size:9.5px; font-weight:800;
    min-width:16px; height:16px; border-radius:8px;
    display:flex;align-items:center;justify-content:center;
    padding:0 3px;
    border:2px solid var(--ink);
  }
  .floating-cart__mid{ flex:1; min-width:0; }
  .floating-cart__label{ font-size:11px; color:rgba(255,255,255,.6); }
  .floating-cart__total{ font-family:'Golos Text',sans-serif; font-weight:700; font-size:14.5px; }
  .floating-cart__go{
    display:flex; align-items:center; gap:4px;
    font-size:12.5px; font-weight:700; color:var(--orange-2);
    flex-shrink:0;
  }

  /* ---------- Product detail screen ---------- */
  .detail-hero{
    background:linear-gradient(135deg, var(--orange-2), var(--orange-1));
    padding:18px 20px 40px;
    position:relative;
  }
  .detail-hero__top{ display:flex; align-items:center; justify-content:space-between; }
  .round-btn{
    width:36px;height:36px;border-radius:50%;
    background:rgba(255,255,255,.28);
    display:flex;align-items:center;justify-content:center;
    border:none; cursor:pointer;
  }
  .detail-hero__plaque{
    width:150px;height:150px; border-radius:50%;
    background:rgba(255,255,255,.22);
    margin:22px auto 0;
    display:flex;align-items:center;justify-content:center;
    font-family:'Golos Text',sans-serif; font-weight:800; font-size:52px; color:#fff;
  }
  .detail-body{
    background:var(--surface);
    border-radius:26px 26px 0 0;
    margin-top:-24px;
    padding:22px 20px 100px;
    flex:1;
  }
  .detail-body__top{ display:flex; align-items:flex-start; justify-content:space-between; }
  .detail-body__name{ font-family:'Golos Text',sans-serif; font-weight:800; font-size:20px; max-width:70%; }
  .detail-stats{
    display:flex; justify-content:space-between;
    margin:18px 0; padding:16px 0;
    border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  }
  .detail-stat{ display:flex; flex-direction:column; gap:5px; align-items:center; flex:1; }
  .detail-stat__label{ font-size:11px; color:var(--ink-muted); }
  .detail-stat__value{ font-size:13px; font-weight:700; display:flex; align-items:center; gap:4px; }
  .detail-desc{ font-size:13.5px; line-height:1.55; color:var(--ink-muted); }
  .detail-footer{
    position:fixed; left:50%; bottom:0; transform:translateX(-50%);
    width:100%; max-width:420px;
    background:var(--surface);
    padding:14px 20px calc(16px + env(safe-area-inset-bottom));
    border-top:1px solid var(--line);
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    z-index:35;
  }
  .detail-price{ font-family:'Golos Text',sans-serif; font-weight:800; font-size:19px; }
  .detail-price span{ display:block; font-size:11px; font-weight:500; color:var(--ink-muted); }
  .cta-btn{
    flex:1; max-width:210px;
    background:var(--orange-1); color:#fff; border:none;
    border-radius:14px; padding:14px 18px;
    font-family:'Golos Text',sans-serif; font-weight:700; font-size:14px;
    display:flex; align-items:center; justify-content:center; gap:8px;
    cursor:pointer;
  }

  /* ---------- Cart screen ---------- */
  .cart-screen{ padding:20px 20px 100px; flex:1; }
  .cart-screen h2{ font-family:'Golos Text',sans-serif; font-weight:800; font-size:20px; margin:0 0 16px; }
  .line-item{
    display:flex; align-items:center; gap:12px;
    padding:12px; margin-bottom:10px;
    background:var(--surface); border-radius:16px; box-shadow:var(--shadow);
  }
  .line-item__plaque{
    width:44px;height:44px;border-radius:12px;
    display:flex;align-items:center;justify-content:center;
    font-family:'Golos Text',sans-serif;font-weight:700;color:#fff;font-size:15px;
    flex-shrink:0;
  }
  .line-item__mid{ flex:1; min-width:0; }
  .line-item__name{ font-size:13.5px; font-weight:700; font-family:'Golos Text',sans-serif; }
  .line-item__price{ font-size:12px; color:var(--ink-muted); margin-top:2px; }
  .summary-card{
    background:var(--surface); border-radius:18px; padding:16px; margin-top:16px;
    box-shadow:var(--shadow);
  }
  .summary-row{ display:flex; justify-content:space-between; font-size:13.5px; color:var(--ink-muted); padding:5px 0; }
  .summary-row.total{
    color:var(--ink); font-family:'Golos Text',sans-serif; font-weight:800; font-size:16px;
    padding-top:10px; margin-top:4px; border-top:1px solid var(--line);
  }
  .field-label{ font-size:12px; font-weight:600; color:var(--ink-muted); margin:16px 0 6px; display:block; }
  .field-input{
    width:100%; border:1px solid var(--line); background:var(--bg);
    border-radius:12px; padding:12px 14px; font-family:'Inter',sans-serif; font-size:14px; outline:none;
  }
  .field-input:focus{ border-color:var(--orange-1); }
  .checkout-btn{
    width:100%; margin-top:16px; padding:15px; border:none; border-radius:14px;
    background:var(--orange-1); color:#fff; font-family:'Golos Text',sans-serif; font-weight:700; font-size:15px;
    cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px;
  }
  .cart-empty{ text-align:center; padding:60px 20px; color:var(--ink-muted); }
  .cart-empty__ring{
    width:64px;height:64px;border-radius:50%; background:var(--orange-tint);
    margin:0 auto 14px; display:flex;align-items:center;justify-content:center;
  }
  .addr-row{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    background:var(--bg); border:1px solid var(--line); border-radius:12px;
    padding:12px 14px;
  }
  .addr-row__text{ font-size:13.5px; font-weight:600; line-height:1.4; }
  .addr-row__change{
    flex-shrink:0; background:none; border:none; cursor:pointer;
    font-family:'Golos Text',sans-serif; font-weight:700; font-size:12.5px; color:var(--orange-1);
  }
  .addr-geo-link{
    display:flex; align-items:center; gap:6px; margin-top:8px;
    background:none; border:none; cursor:pointer; padding:0;
    font-size:12px; font-weight:600; color:var(--orange-1);
  }

  /* ---------- Placeholder screens ---------- */
  .placeholder-screen{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:40px; text-align:center; }
  .placeholder-screen__ring{
    width:72px;height:72px;border-radius:50%; background:var(--orange-tint);
    display:flex;align-items:center;justify-content:center; margin-bottom:16px;
  }
  .placeholder-screen h3{ font-family:'Golos Text',sans-serif; font-weight:800; font-size:17px; margin:0 0 6px; }
  .placeholder-screen p{ font-size:13.5px; color:var(--ink-muted); max-width:260px; line-height:1.5; margin:0; }

  /* ---------- Toast ---------- */
  .toast{
    position:fixed; left:50%; top:26px; transform:translateX(-50%) translateY(-140%);
    max-width:380px; width:calc(100% - 40px);
    background:#241C1A; color:#fff; padding:14px 16px; border-radius:14px;
    display:flex; align-items:center; gap:10px; z-index:80; box-shadow:var(--shadow);
    transition:transform .3s cubic-bezier(.32,.72,0,1);
  }
  .toast.show{ transform:translateX(-50%) translateY(0); }
  .toast__title{ font-family:'Golos Text',sans-serif; font-weight:700; font-size:14px; }
  .toast__sub{ font-size:12px; opacity:.7; margin-top:1px; }

  /* ---------- Address bottom-sheet ---------- */
  .modal-overlay{
    position:fixed; inset:0;
    background:rgba(36,28,26,.5);
    display:flex; align-items:flex-end; justify-content:center;
    opacity:0; pointer-events:none;
    transition:opacity .25s ease;
    z-index:90;
  }
  .modal-overlay.show{ opacity:1; pointer-events:auto; }
  .address-sheet{
    width:100%; max-width:420px;
    background:var(--surface);
    border-radius:26px 26px 0 0;
    padding:10px 22px calc(26px + env(safe-area-inset-bottom));
    transform:translateY(100%);
    transition:transform .35s cubic-bezier(.32,.72,0,1);
    position:relative;
  }
  .modal-overlay.show .address-sheet{ transform:translateY(0); }
  .address-sheet__close{
    position:absolute; top:14px; right:14px;
    width:30px; height:30px; border-radius:50%;
    background:var(--orange-tint); color:var(--ink);
    border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    z-index:2;
  }
  .address-sheet__handle{
    width:38px; height:4px; border-radius:3px;
    background:var(--line); margin:6px auto 16px;
  }
  .address-sheet__icon{
    width:56px;height:56px;border-radius:50%;
    background:var(--orange-tint);
    display:flex;align-items:center;justify-content:center;
    margin-bottom:14px;
  }
  .address-sheet h3{
    font-family:'Golos Text',sans-serif; font-weight:800; font-size:18px; margin:0 0 6px;
  }
  .address-sheet p{ font-size:13px; color:var(--ink-muted); line-height:1.5; margin:0 0 18px; }
  .geo-btn{
    width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
    padding:14px; border-radius:14px; border:none;
    background:var(--orange-tint); color:var(--orange-dark);
    font-family:'Golos Text',sans-serif; font-weight:700; font-size:14px;
    cursor:pointer; transition:opacity .15s ease;
  }
  .geo-btn:active{ opacity:.7; }
  .geo-btn.loading svg{ animation:spin .8s linear infinite; }
  @keyframes spin{ to{ transform:rotate(360deg); } }
  .divider-or{
    display:flex; align-items:center; gap:10px;
    margin:18px 0 14px; font-size:11.5px; color:var(--ink-muted);
  }
  .divider-or::before, .divider-or::after{ content:''; flex:1; height:1px; background:var(--line); }
  .field-input.shake{ animation:shake .35s ease; border-color:#E0645C; }
  @keyframes shake{
    0%,100%{ transform:translateX(0); }
    25%{ transform:translateX(-6px); }
    75%{ transform:translateX(6px); }
  }
  .address-sheet .checkout-btn{ margin-top:18px; }
  .address-sheet .checkout-btn:disabled{ opacity:.5; cursor:not-allowed; }
