/* ================= CONVITE PRA INSTALAR O APP ================= */
.inst-fundo{position:fixed;inset:0;z-index:400;background:rgba(10,8,6,.6);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;padding:20px;animation:instFade .25s ease}
.inst-fundo.hidden{display:none}
.inst-card{width:100%;max-width:400px;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4);border:1px solid rgba(255,255,255,.32);color:#fff;border-radius:26px;padding:28px 22px 18px;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.35);animation:instSobe .35s cubic-bezier(.2,.9,.3,1.1)}
.inst-logo{width:84px;height:84px;border-radius:24px;object-fit:cover;margin:0 auto 14px;display:block;background:#fff;box-shadow:0 8px 22px rgba(0,0,0,.25)}
.inst-logo.hidden{display:none}
.inst-card h2{font-family:var(--font-display);font-size:22px;line-height:1.2;margin-bottom:16px;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.35)}
.inst-lista{list-style:none;text-align:left;display:grid;gap:11px;margin-bottom:18px;font-size:14px;line-height:1.45;color:rgba(255,255,255,.92);text-shadow:0 1px 6px rgba(0,0,0,.35)}
.inst-lista li{padding-left:28px;position:relative}
.inst-lista li::before{content:"✓";position:absolute;left:0;top:1px;width:19px;height:19px;border-radius:50%;background:var(--red);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;text-shadow:none}
.inst-lista b{color:#fff}
.inst-dica{background:rgba(0,0,0,.35);border-radius:12px;padding:12px;font-size:13px;line-height:1.45;margin-bottom:12px;text-align:left;color:#fff}
.inst-dica.hidden{display:none}
.inst-sim{width:100%;min-height:52px;border-radius:14px;background:var(--red)!important;color:#fff!important;font-size:16px;font-weight:800;box-shadow:0 8px 22px color-mix(in srgb, var(--red) 45%, transparent)}
.inst-nao{width:100%;min-height:44px;margin-top:6px;color:rgba(255,255,255,.8)!important;font-size:14px;font-weight:700}
body.inst-aberto{overflow:hidden}
@keyframes instFade{from{opacity:0}to{opacity:1}}
@keyframes instSobe{from{transform:translateY(24px) scale(.97);opacity:0}to{transform:none;opacity:1}}

/* ================= TOKENS ================= */
  :root{
--bg:#ffffff;
--surface:#f5f5f5;
--surface-2:#ebebeb;
--line:rgba(0,0,0,0.1);
--red:#d62828;
--red-glow:#ff4b3e;
--red-dim:#7a1717;
--text:#1a1814;
--muted:#555555;
--muted-2:#8a8a8a;
    --radius:14px;
    --font-display:'Archivo Black', sans-serif;
    --font-body:'Manrope', sans-serif;
    --font-mono:'Space Mono', monospace;
  }

*{box-sizing:border-box; margin:0; padding:0;}
body{
  opacity:0;
  transition:opacity 0.3s ease;
}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:var(--font-body);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
    padding-bottom:calc(100px + env(safe-area-inset-bottom));
  }
  ::selection{background:var(--red); color:#fff;}

  /* subtle ember noise texture on bg */
  body::before{
    content:'';
    position:fixed; inset:0;
    background:
      radial-gradient(ellipse 600px 400px at 15% -10%, color-mix(in srgb, var(--red) 14%, transparent), transparent 60%),
      radial-gradient(ellipse 500px 500px at 110% 20%, color-mix(in srgb, var(--red) 8%, transparent), transparent 60%);
    pointer-events:none;
    z-index:0;
  }

  a{color:inherit; text-decoration:none;}
  button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}
  img{display:block; max-width:100%;}

  /* ================= HEADER ================= */
header{
    position:relative;
    padding:28px 20px 20px;
    z-index:2;
    background:#000;
  }
  .brand-row{
    display:flex; align-items:center; gap:14px;
  }
  .brand-logo{
    width:52px; height:52px; border-radius:12px;
    object-fit:contain;
    background:linear-gradient(155deg, var(--surface-2), var(--surface));
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-display);
    font-size:20px;
    color:var(--red-glow);
    flex-shrink:0;
    overflow:hidden;
  }
  .brand-logo img{width:100%; height:100%; object-fit:cover;}
  .brand-text .eyebrow{
    font-family:var(--font-mono);
    font-size:11px;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--red-glow);
    display:flex; align-items:center; gap:6px;
  }
  .brand-text .eyebrow::before{
    content:'';
    width:6px; height:6px; border-radius:50%;
    background:var(--red-glow);
    box-shadow:0 0 8px 1px var(--red-glow);
    animation:pulse-dot 1.8s ease-in-out infinite;
  }
  @keyframes pulse-dot{
    0%,100%{opacity:1; transform:scale(1);}
    50%{opacity:.4; transform:scale(.7);}
  }
  .brand-text h1{
    font-family:var(--font-display);
    font-size:22px;
    letter-spacing:.01em;
    margin-top:2px;
  }

  .hero-title{
    font-family:var(--font-display);
    font-size:clamp(34px, 9vw, 52px);
    line-height:.95;
    letter-spacing:-.01em;
    margin-top:22px;
    max-width:11ch;
  }
  .hero-title .accent{color:var(--red-glow);}
  .hero-sub{
    color:var(--muted);
    font-size:14.5px;
    margin-top:20px;
    max-width:34ch;
    line-height:1.5;
  }
  .hero-sub strong{color:var(--text); font-weight:700;}

  /* AI hint bar - quiet, opt-in */
  .ai-hint{
    display:inline-flex; align-items:center; gap:8px;
    margin-top:16px;
    padding:8px 14px 8px 10px;
    background:var(--surface);
    border:1px dashed var(--line);
    border-radius:100px;
    font-size:12.5px;
    color:var(--muted);
    transition:border-color .25s ease, color .25s ease, background .25s ease;
  }
  .ai-hint:hover{
    border-color:var(--red-dim);
    color:var(--text);
    background:var(--surface-2);
  }
.ai-hint .spark{
    font-size:14px;
    filter:drop-shadow(0 0 4px color-mix(in srgb, var(--red-glow) 60%, transparent));
  }
  .ai-hint b{color:var(--red-glow); font-weight:700;}

  /* ================= BANNER + CARTÃO DA LOJA ================= */
  .banner-wrap{
    position:relative;
    width:100%;
    height:180px;
    overflow:hidden;
  }
  .banner-img{
    width:100%; height:100%;
    background:linear-gradient(135deg, var(--red-dim), var(--bg) 75%);
  }

  .store-card{
    position:relative;
    z-index:2;
    background:var(--surface);
    border:1px solid var(--line);
    color:var(--text);
    border-radius:18px;
    margin:-40px 14px 0;
    padding:20px 18px 14px;
    box-shadow:0 12px 28px rgba(0,0,0,.45);
  }
  .store-card-top{
    display:flex;
    align-items:flex-start;
    gap:12px;
  }
  .store-logo{
    width:56px; height:56px; border-radius:14px;
    background:var(--surface-2);
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-display);
    font-size:20px;
    color:var(--red-glow);
    flex-shrink:0;
    overflow:hidden;
    margin-top:-18px;
    box-shadow:0 4px 12px rgba(0,0,0,.2);
  }
  .store-logo img{width:100%; height:100%; object-fit:cover;}
  .store-info{flex:1; min-width:0;}
  .store-status{
    display:flex; align-items:center; gap:6px;
    font-size:12.5px; font-weight:700;
    color:#1a9c4a;
    margin-bottom:2px;
  }
  .store-status.closed{color:#c23b3b;}
  .status-dot{
    width:6px; height:6px; border-radius:50%;
    background:currentColor;
  }
  .store-info h1{
    font-family:var(--font-display);
    font-size:17px;
    color:var(--text);
    margin-bottom:2px;
  }
  .store-address{
    font-size:12px;
    color:#8a8a8a;
    line-height:1.3;
  }
  .store-meta-row{
    display:flex;
    align-items:center;
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid var(--line);
  }
  .store-meta{flex:1; text-align:center;}
  .store-meta-divider{width:1px; height:28px; background:var(--line);}
  .meta-label{
    display:block;
    font-size:10.5px;
    color:#9a9a9a;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:3px;
  }
  .meta-value{
    display:block;
    font-size:13px;
    font-weight:700;
    color:var(--text);
  }

  /* ================= BESTSELLERS (mais pedidos) ================= */
 .bestsellers{
    padding:24px 0 4px;
    position:relative; z-index:1;
  }
  .bs-heading{
    display:flex; align-items:center; gap:7px;
    padding:0 20px;
    margin-bottom:12px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:var(--muted);
  }
  .bs-heading .flame{
    font-size:12px;
    opacity:.8;
  }
  .bs-scroll{
    display:flex; gap:10px;
    overflow-x:auto;
    padding:2px 20px 10px;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
  }
  .bs-scroll::-webkit-scrollbar{display:none;}
  .bs-card{
    flex-shrink:0;
    width:112px;
    scroll-snap-align:start;
    opacity:0;
    transform:translateY(14px);
  }
  .bs-thumb{
    position:relative;
    width:112px; height:82px;
    border-radius:10px;
    background:var(--surface);
    border:1px solid var(--line);
    overflow:hidden;
    display:flex; align-items:center; justify-content:center;
    font-size:22px;
  }
  .bs-thumb img{width:100%; height:100%; object-fit:cover;}
  .bs-rank{display:none;}
  .bs-add{
    position:absolute; bottom:5px; right:5px;
    width:22px; height:22px; border-radius:7px;
    background:rgba(10,9,8,.75);
    backdrop-filter:blur(2px);
    color:var(--red-glow);
    font-size:14px;
    display:flex; align-items:center; justify-content:center;
    border:1px solid rgba(255,255,255,.08);
    transition:transform .15s ease, background .15s ease;
  }
  .bs-add:active{transform:scale(.85);}
  .bs-info{padding:8px 1px 0;}
  .bs-info h4{
    font-size:11.5px; font-weight:600;
    line-height:1.3;
    color:var(--text);
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin-bottom:3px;
  }
  .bs-info .bs-price{
    font-family:var(--font-mono);
    font-size:11px; font-weight:600;
    color:var(--muted);
  }

  /* ================= CATEGORY NAV ================= */
  .cat-nav{
    position:sticky; top:0; z-index:20;
    margin-top:16px;
    background:color-mix(in srgb, var(--bg) 92%, transparent);
backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
    padding:8px 0;
  }
  .cat-nav-in{
    display:flex; gap:8px;
    overflow-x:auto;
    scrollbar-width:none;
    padding:4px 20px;
  }
  .cat-nav-in::-webkit-scrollbar{display:none;}
  .cat-pill{
    flex-shrink:0;
    padding:9px 16px;
    border-radius:100px;
    background:var(--surface);
    border:1px solid var(--line);
    font-size:13px;
    font-weight:600;
    color:var(--muted);
    white-space:nowrap;
    transition:all .22s ease;
  }
  .cat-pill.active{
    background:var(--red);
    border-color:var(--red);
    color:#fff;
    box-shadow:0 4px 16px -4px rgba(214,40,40,.6);
  }

  /* ================= MENU ================= */
  main{position:relative; z-index:1; padding:8px 20px 20px;}
  .cat-section{margin-top:32px; scroll-margin-top:calc(var(--nav-h, 58px) + 8px);}
  .cat-heading{
    display:flex; align-items:baseline; gap:10px;
    margin-bottom:14px;
  }
  .cat-heading h2{
    font-family:var(--font-display);
    font-size:18px;
    text-transform:uppercase;
    letter-spacing:.02em;
  }
  .cat-heading .count{
    font-family:var(--font-mono);
    font-size:11px;
    color:var(--muted-2);
  }
  .cat-heading::after{
    content:'';
    flex:1;
    height:1px;
    background:linear-gradient(90deg, var(--line), transparent);
  }

  .item-grid{display:flex; flex-direction:column; gap:12px;}
  .item-card{
    display:flex; gap:14px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:12px;
    opacity:0;
    transform:translateY(18px);
    transition:border-color .25s ease, transform .2s ease;
    position:relative;
    overflow:hidden;
  }
   .item-card::before{
    content:'';
    position:absolute; inset:0;
    background:linear-gradient(100deg, transparent 40%, color-mix(in srgb, var(--red) 5%, transparent) 50%, transparent 60%);
    opacity:0;
    transition:opacity .3s ease;
  }
  .item-card:active{transform:scale(.985);}
  .item-thumb{
    width:76px; height:76px; border-radius:10px;
    background:var(--surface-2);
    flex-shrink:0;
    overflow:hidden;
    display:flex; align-items:center; justify-content:center;
    font-size:26px;
  }
  .item-thumb img{width:100%; height:100%; object-fit:cover;}
  .item-info{flex:1; min-width:0; display:flex; flex-direction:column;}
  .item-info h3{
    font-size:15px; font-weight:700;
    margin-bottom:3px;
  }
  .item-info p{
    font-size:12.5px;
    color:var(--muted);
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    flex:1;
  }
  .item-bottom{
    display:flex; align-items:center; justify-content:space-between;
    margin-top:8px;
  }
  .item-price{
    font-family:var(--font-mono);
    font-size:14.5px;
    font-weight:700;
    color:var(--red-glow);
  }
    .add-btn{
    width:32px; height:32px; border-radius:9px;
    background:var(--red);
    color:#fff;
    font-size:19px;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
    box-shadow:0 3px 10px -3px color-mix(in srgb, var(--red) 70%, transparent);
    transition:transform .15s ease, background .15s ease;
    position:relative;
  }

  .add-btn:hover{background:var(--red-glow);}
  .add-btn[hidden]{display:none;}
  .card-qty{
    display:flex; align-items:center; gap:4px; flex-shrink:0;
    padding:3px; border-radius:100px;
    border:1px solid var(--line); background:var(--surface);
    position:relative; z-index:2;
  }
  .card-qty button{
    width:28px; height:28px; border-radius:50%;
    border:1px solid var(--line); background:var(--bg);
    font-size:15px; font-weight:700; color:var(--text);
    display:flex; align-items:center; justify-content:center;
  }
  .card-qty button:active{ transform:scale(.9); }
  .card-qty span{ min-width:20px; text-align:center; font-weight:800; font-size:14px; color:var(--text); }
  .add-btn:active{transform:scale(.88);}

  .empty-state{
    text-align:center;
    padding:60px 20px;
    color:var(--muted);
    font-size:14px;
  }

  .error-state{
    text-align:center;
    padding:70px 24px;
    max-width:340px;
    margin:0 auto;
  }
  .error-state .error-icon{
    font-size:34px;
    margin-bottom:14px;
    filter:grayscale(1) opacity(.8);
  }
  .error-state h2{
    font-family:var(--font-display);
    font-size:16px;
    text-transform:uppercase;
    margin-bottom:8px;
    color:var(--text);
  }
  .error-state p{
    font-size:13px;
    color:var(--muted);
    line-height:1.55;
  }
  .error-retry-btn{
    margin:20px auto 0;
    max-width:200px;
    padding:12px 20px;
    background:var(--red);
    color:#fff;
    border-radius:10px;
    font-weight:700;
    font-size:13.5px;
    text-transform:uppercase;
    letter-spacing:.03em;
    transition:background .15s ease;
  }
  .error-retry-btn:hover{background:var(--red-glow);}

  /* ================= FOOTER ================= */
  .site-footer{
    position:relative; z-index:1;
    display:flex; align-items:center; justify-content:space-between;
    gap:12px;
    padding:28px 20px 10px;
    border-top:1px solid var(--line);
    margin-top:12px;
  }
  .footer-ig{
    width:30px; height:30px; border-radius:50%;
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    color:var(--muted-2);
    flex-shrink:0;
    transition:color .2s ease, border-color .2s ease, transform .15s ease;
  }
  .footer-ig:hover{color:var(--red-glow); border-color:var(--red-dim); transform:scale(1.06);}
  .site-footer strong{color:var(--muted); font-weight:700;}
  .site-footer p{
    font-size:10.5px;
    color:var(--muted-2);
    letter-spacing:.02em;
    line-height:1.4;
  }

  /* ================= AI BUBBLE (flutuante, arrastável) ================= */
  .ai-bubble{
    position:fixed;
    top:58%; right:10px;
    transform:translateY(-50%);
    z-index:60;
    width:42px; height:42px;
    border-radius:50%;
    background:var(--surface);
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    font-size:16px;
    box-shadow:0 6px 16px -4px rgba(0,0,0,.5);
    transition:border-color .2s ease, box-shadow .2s ease, left .25s cubic-bezier(.2,.9,.3,1.3), right .25s cubic-bezier(.2,.9,.3,1.3);
    touch-action:none;
    cursor:grab;
    user-select:none;
  }
  .ai-bubble:hover{border-color:var(--red-dim);}
  .ai-bubble.dragging{cursor:grabbing; box-shadow:0 10px 26px -4px rgba(0,0,0,.6); transition:none;}
 .ai-bubble::after{
    content:'';
    position:absolute; top:-2px; right:-2px;
    width:9px; height:9px; border-radius:50%;
    background:var(--red-glow);
    box-shadow:0 0 6px 1px color-mix(in srgb, var(--red-glow) 70%, transparent);
    animation:pulse-dot 2.2s ease-in-out infinite;
  }

  .ai-tooltip{
    position:fixed;
    z-index:59;
    width:196px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:12px;
    padding:12px 26px 12px 14px;
    box-shadow:0 14px 30px -8px rgba(0,0,0,.55);
    opacity:0;
    transform:scale(.94);
    pointer-events:none;
  }
  .ai-tooltip p{
    font-size:12.5px;
    color:var(--muted);
    line-height:1.42;
  }
  .ai-tooltip strong{color:var(--red-glow); font-weight:700;}
  .ai-tooltip-close{
    position:absolute; top:7px; right:7px;
    width:16px; height:16px;
    display:flex; align-items:center; justify-content:center;
    font-size:9px;
    color:var(--muted-2);
  }

  /* ================= FLY-TO-CART DOT ================= */
  .fly-dot{
    position:fixed;
    width:10px; height:10px; border-radius:50%;
    background:var(--red-glow);
    box-shadow:0 0 10px 2px color-mix(in srgb, var(--red-glow) 80%, transparent);
    z-index:200;
    pointer-events:none;
  }

  /* ================= FLOATING CART ================= */
  .cart-fab{
    position:fixed;
    bottom:calc(18px + env(safe-area-inset-bottom)); left:20px; right:20px;
    z-index:50;
    background:var(--red);
    border-radius:14px;
    padding:15px 18px;
    display:flex; align-items:center; justify-content:space-between;
  box-shadow:0 10px 30px -8px color-mix(in srgb, var(--red) 65%, transparent), 0 2px 8px rgba(0,0,0,.4);
    transform:translateY(140px);
    opacity:0;
    max-width:520px;
    margin:0 auto;
  }
  .cart-fab.visible{transform:translateY(0); opacity:1;}
  .cart-fab-left{display:flex; align-items:center; gap:10px;}
  .cart-badge{
    width:26px; height:26px; border-radius:8px;
    background:rgba(255,255,255,.2);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-mono);
    font-weight:700;
    font-size:13px;
  }
  .cart-fab-label{font-size:13.5px; font-weight:700; color:#fff;}
  .cart-fab-total{
    font-family:var(--font-mono);
    font-size:15px; font-weight:700; color:#fff;
  }

  /* ================= OVERLAY ================= */
  .overlay{
    position:fixed; inset:0;
    background:rgba(0,0,0,.6);
    backdrop-filter:blur(3px);
    z-index:90;
    opacity:0;
    pointer-events:none;
  }
  .overlay.open{pointer-events:auto;}

  /* ================= CART DRAWER (receipt style) ================= */
  .drawer{
    position:fixed;
    top:0; right:0; bottom:0;
    width:min(400px, 92vw);
    background:var(--surface);
    z-index:100;
    display:flex; flex-direction:column;
    transform:translateX(100%);
    box-shadow:-20px 0 60px rgba(0,0,0,.5);
  }
  .drawer-head{
    padding:22px 20px 16px;
    border-bottom:1px dashed var(--line);
    display:flex; align-items:center; justify-content:space-between;
  }
  .drawer-head h2{
    font-family:var(--font-display);
    font-size:17px;
    text-transform:uppercase;
  }
  .drawer-close{
    width:32px; height:32px; border-radius:8px;
    background:var(--surface);
    display:flex; align-items:center; justify-content:center;
    font-size:16px; color:var(--muted);
  }

  .receipt-strip{
    font-family:var(--font-mono);
    font-size:10.5px;
    color:var(--muted-2);
    letter-spacing:.05em;
    padding:10px 20px 0;
    display:flex; justify-content:space-between;
    text-transform:uppercase;
  }

  .drawer-body{
    flex:1; overflow-y:auto;
    padding:14px 20px;
    background-image: repeating-linear-gradient(transparent, transparent 39px, var(--line) 40px);
  }
  .receipt-item{
    display:flex; align-items:flex-start; gap:10px;
    padding:9px 0;
    font-family:var(--font-mono);
    font-size:12.5px;
    opacity:0;
  }
  .receipt-item .ri-qty{
    color:var(--red-glow); font-weight:700; flex-shrink:0; width:24px;
  }
  .receipt-item .ri-name{flex:1; color:var(--text);}
  .receipt-item .ri-price{color:var(--muted); flex-shrink:0;}
  .qty-ctrl{
    display:flex; align-items:center; gap:8px;
    margin-top:4px;
  }
  .qty-btn{
    width:20px; height:20px; border-radius:5px;
    background:var(--surface-2);
    border:1px solid var(--line);
    font-size:12px;
    display:flex; align-items:center; justify-content:center;
    color:var(--text);
  }

  .drawer-empty{
    text-align:center; padding:60px 20px;
    color:var(--muted-2);
    font-family:var(--font-mono);
    font-size:12px;
  }

  .drawer-foot{
    border-top:1px dashed var(--line);
    padding:16px 20px calc(22px + env(safe-area-inset-bottom));
  }
  .total-row{
    display:flex; justify-content:space-between; align-items:baseline;
    margin-bottom:14px;
  }
  .total-row .tot-label{
    font-family:var(--font-mono);
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.1em;
    color:var(--muted);
  }
  .total-row .tot-value{
    font-family:var(--font-mono);
    font-size:24px; font-weight:700;
    color:var(--red-glow);
  }
   .checkout-btn{
    width:100%;
    background:var(--red);
    color:#fff;
    padding:15px;
    border-radius:11px;
    font-weight:800;
    font-size:14.5px;
    text-transform:uppercase;
    letter-spacing:.04em;
    box-shadow:0 8px 22px -6px color-mix(in srgb, var(--red) 70%, transparent);
    transition:transform .15s ease, background .15s ease;
  }
  .checkout-btn:hover{background:var(--red-glow);}
  .checkout-btn:disabled{background:var(--surface-2); color:var(--muted-2); box-shadow:none; cursor:not-allowed;}

  /* ================= CHECKOUT SHEET ================= */
  .sheet{
    position:fixed; inset:0;
    z-index:110;
    background:var(--bg);
    overflow-y:auto;
    transform:translateY(100%);
    display:flex;
    flex-direction:column;
  }
  .sheet-inner{
    width:100%; max-width:480px;
    margin:0 auto;
    padding:0 20px calc(26px + env(safe-area-inset-bottom));
    flex:1;
    display:flex;
    flex-direction:column;
  }
  .sheet h2{
    font-family:var(--font-display);
    font-size:18px;
    text-transform:uppercase;
    margin-bottom:18px;
  }
  .sheet-topbar{
    position:sticky; top:0;
    background:var(--bg);
    z-index:5;
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 0 14px;
    border-bottom:1px solid var(--line);
    margin-bottom:18px;
  }
  .sheet-back{
    width:32px; height:32px; border-radius:9px;
    background:var(--surface);
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    font-size:15px; color:var(--muted);
    flex-shrink:0;
    transition:border-color .2s ease, color .2s ease;
  }
  .sheet-back:hover{ border-color:var(--red-dim); color:var(--text); }
  .step-indicator{display:flex; gap:6px;}
  .step-dot{
    width:22px; height:4px; border-radius:2px;
    background:var(--line);
    transition:background .3s ease;
  }
  .step-dot.active{background:var(--red);}
  .checkout-step h2{margin-bottom:16px;}
  .step-hint{
    font-size:12px; color:var(--muted-2);
    margin:-10px 0 16px;
    line-height:1.4;
  }
  .field{margin-bottom:14px;}
  .field label{
    display:block;
    font-size:11.5px; font-weight:700;
    text-transform:uppercase; letter-spacing:.06em;
    color:var(--muted);
    margin-bottom:6px;
  }
  .field input, .field textarea{
    width:100%;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:10px;
    padding:12px 14px;
    color:var(--text);
    font-family:var(--font-body);
    font-size:16px; /* >=16px evita o zoom automático do Safari/iOS ao focar */
    transition:border-color .2s ease;
  }
  .field input:focus, .field textarea:focus{
    outline:none;
    border-color:var(--red);
  }
  .field-row{display:flex; gap:10px;}
  .cep-info{font-size:12px; font-weight:700; color:var(--muted); margin-top:6px; min-height:0;}
  .cep-info:empty{display:none;}
  .cep-info.ok{color:#15803d;}
  .cep-info.erro{color:var(--red);}
  .field-row .field{flex:1;}

  .pay-options{display:flex; flex-direction:column; gap:8px;}
  .pay-opt{
    display:flex; align-items:center; gap:12px;
    padding:13px 14px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:10px;
    cursor:pointer;
    transition:border-color .2s ease, background .2s ease;
  }
   .pay-opt.selected{
    border-color:var(--red);
    background:linear-gradient(90deg, color-mix(in srgb, var(--red) 12%, transparent), transparent);
  }
  .pay-opt .radio{
    width:18px; height:18px; border-radius:50%;
    border:2px solid var(--line);
    flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
  }
  .pay-opt.selected .radio{border-color:var(--red);}
  .pay-opt.selected .radio::after{
    content:'';
    width:9px; height:9px; border-radius:50%;
    background:var(--red);
  }
  .pay-opt .pay-icon{font-size:18px;}
  .pay-opt .pay-label{font-size:13.5px; font-weight:600;}

  .troco-box{
    margin-top:12px;
    padding:14px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:10px;
    opacity:0;
    transform:translateY(-6px);
  }
  .troco-toggle{ display:flex; gap:8px; }
  .troco-opt{
    flex:1;
    padding:10px 12px;
    background:var(--bg);
    border:1px solid var(--line);
    border-radius:8px;
    font-size:12.5px; font-weight:600;
    color:var(--muted);
    transition:border-color .2s ease, background .2s ease, color .2s ease;
  }
  .troco-opt.selected{
    border-color:var(--red);
    background:linear-gradient(90deg, color-mix(in srgb, var(--red) 14%, transparent), transparent);
    color:var(--text);
  }

  .section-title{
    font-size:11.5px; font-weight:700;
    text-transform:uppercase; letter-spacing:.06em;
    color:var(--muted);
    margin:18px 0 10px;
  }

  /* ================= SUCCESS ================= */
  .success-view{
    text-align:center;
    padding:26px 10px 10px;
  }
  .success-badge{
    width:64px; height:64px; border-radius:50%;
    background:var(--red);
    display:flex; align-items:center; justify-content:center;
    font-size:28px;
    margin:0 auto 18px;
    box-shadow:0 0 0 8px color-mix(in srgb, var(--red) 14%, transparent);
  }
  .success-view h2{
    font-family:var(--font-display);
    font-size:20px;
    text-transform:uppercase;
    margin-bottom:8px;
  }
  .success-view p{color:var(--muted); font-size:13.5px; line-height:1.5; margin-bottom:22px;}
  .order-num{
    font-family:var(--font-mono);
    font-size:26px; font-weight:700;
    color:var(--red-glow);
    margin-bottom:24px;
  }

  /* ================= ITEM DETAIL (popup com foto ao clicar) ================= */
  .detail-backdrop{
    position:fixed; inset:0;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(3px);
    z-index:150;
    display:flex; align-items:center; justify-content:center;
    padding:20px;
    opacity:0;
  }
   .detail-panel{
    width:100%; max-width:440px;
    max-height:88vh;
    overflow-y:auto;
    background:var(--surface);
    border-radius:20px;
    box-shadow:0 30px 70px rgba(0,0,0,.55);
    transform:scale(.9);
  }
  .detail-photo-wrap{
    position:relative;
    width:100%; height:230px;
    overflow:hidden;
    background:var(--surface-2);
    flex-shrink:0;
  }
  .detail-photo-empty{
    display:flex; align-items:center; justify-content:center;
    font-size:44px;
    opacity:.5;
  }
  .detail-photo-track{
    display:flex;
    height:100%;
    transition:transform .3s ease;
  }
  .detail-photo-track img{
    min-width:100%; height:100%;
    object-fit:cover;
    flex-shrink:0;
  }
  .detail-photo-nav{
    position:absolute; top:50%; transform:translateY(-50%);
    width:32px; height:32px; border-radius:50%;
    background:rgba(0,0,0,.5);
    color:#fff;
    font-size:18px;
    display:flex; align-items:center; justify-content:center;
  }
  .detail-photo-nav.prev{ left:10px; }
  .detail-photo-nav.next{ right:10px; }
  .detail-photo-dots{
    position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
    display:flex; gap:6px;
  }
  .detail-dot{
    width:6px; height:6px; border-radius:50%;
    background:rgba(255,255,255,.4);
    cursor:pointer;
    transition:background .2s ease, transform .2s ease;
  }
  .detail-dot.active{ background:#fff; transform:scale(1.2); }
  .detail-close{
    position:absolute; top:10px; right:10px;
    width:30px; height:30px; border-radius:50%;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(2px);
    color:#fff;
    font-size:14px;
    display:flex; align-items:center; justify-content:center;
    z-index:2;
  }
  .detail-body{ padding:20px; }
  .detail-body h2{
    font-family:var(--font-display);
    font-size:20px;
    line-height:1.2;
    margin-bottom:8px;
  }
  .detail-cat{
    display:inline-block;
    font-size:11px; font-weight:700;
    text-transform:uppercase; letter-spacing:.04em;
    color:var(--muted);
    background:var(--surface);
    border:1px solid var(--line);
    padding:4px 10px;
    border-radius:100px;
    margin-bottom:12px;
  }
  .detail-desc{
    font-size:13.5px; color:var(--muted);
    line-height:1.55;
  }
  .detail-footer{
    display:flex; align-items:center; justify-content:space-between;
    gap:14px;
    margin-top:20px;
  }
  .detail-price{
    font-family:var(--font-mono);
    font-size:19px; font-weight:700;
    color:var(--red-glow);
    flex-shrink:0;
  }
  .detail-footer .checkout-btn{ flex:1; }

  .variation-options{
    display:flex; flex-direction:column; gap:8px;
    margin-top:16px;
  }
  .variation-opt{
    display:flex; align-items:center; justify-content:space-between;
    padding:13px 14px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:10px;
    transition:border-color .2s ease, background .2s ease;
    font-size:13.5px; font-weight:600;
  }
  .variation-opt.selected{
    border-color:var(--red);
    background:linear-gradient(90deg, color-mix(in srgb, var(--red) 12%, transparent), transparent);
  }
  .variation-opt-price{
    font-family:var(--font-mono);
    color:var(--red-glow);
    font-weight:700;
  }
  /* dois sabores */
  .sabores-box{ margin-top:16px; padding:12px; border-radius:12px; border:1px dashed var(--line); transition:border-color .2s ease; }
  .sabores-box[hidden]{ display:none; }
  .sabores-box.erro{ border-color:var(--red); }
  .sabores-titulo{ display:flex; justify-content:space-between; align-items:center; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:10px; }
  .sabores-titulo span{ font-family:var(--font-mono); color:var(--red-glow); }
  .sabores-lista{ display:flex; flex-direction:column; gap:6px; max-height:260px; overflow-y:auto; }
  .sabor-opt{
    display:flex; align-items:center; gap:10px; width:100%; text-align:left;
    padding:11px 12px; border-radius:10px;
    background:var(--surface); border:1px solid var(--line);
    font-size:13.5px; font-weight:600; color:var(--text);
    transition:border-color .2s ease, background .2s ease;
  }
  .sabor-opt .sabor-nome{ flex:1; }
  .sabor-check{ width:18px; height:18px; border-radius:6px; border:1.5px solid var(--line); flex-shrink:0; display:flex; align-items:center; justify-content:center; }
  .sabor-opt.on{ border-color:var(--red); background:linear-gradient(90deg, color-mix(in srgb, var(--red) 12%, transparent), transparent); }
  .sabor-opt.on .sabor-check{ background:var(--red); border-color:var(--red); }
  .sabor-opt.on .sabor-check::after{ content:"✓"; color:#fff; font-size:12px; font-weight:800; }
  .sabores-vazio{ font-size:13px; color:var(--muted); }

  /* ================= AI MODAL (stub) ================= */
  .ai-modal{
    position:fixed; left:50%; bottom:24px;
    transform:translate(-50%, 30px);
    width:min(380px, 92vw);
    height:min(520px, 72vh);
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:18px;
    z-index:120;
    opacity:0;
    pointer-events:none;
    box-shadow:0 20px 50px rgba(0,0,0,.55);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    transition:bottom .18s ease, height .18s ease;
  }
  .ai-modal-head{
    display:flex; align-items:center; gap:10px;
    padding:16px 46px 14px 16px;
    border-bottom:1px solid var(--line);
    flex-shrink:0;
  }
  .ai-avatar{
    width:34px; height:34px; border-radius:9px;
    background:linear-gradient(155deg, var(--red), var(--red-dim));
    display:flex; align-items:center; justify-content:center;
    font-size:16px;
    flex-shrink:0;
  }
  .ai-modal-head h3{font-size:14px;}
  .ai-modal-head span{font-size:11px; color:var(--muted-2); font-family:var(--font-mono);}
  .ai-modal-close{
    position:absolute; top:12px; right:12px;
    width:26px; height:26px; border-radius:7px;
    background:var(--surface);
    display:flex; align-items:center; justify-content:center;
    font-size:13px; color:var(--muted);
    flex-shrink:0;
  }

  .ai-chat-messages{
    flex:1;
    overflow-y:auto;
    padding:14px 16px;
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .ai-msg{
    max-width:82%;
    padding:9px 12px;
    border-radius:12px;
    font-size:13px;
    line-height:1.45;
    opacity:0;
  }
  .ai-msg-assistant{
    align-self:flex-start;
    background:var(--surface);
    border:1px solid var(--line);
    color:var(--text);
    border-bottom-left-radius:4px;
  }
  .ai-msg-user{
    align-self:flex-end;
    background:var(--red);
    color:#fff;
    border-bottom-right-radius:4px;
  }
  .ai-msg-typing{ display:flex; align-items:center; gap:4px; padding:12px 14px; }
  .ai-typing-dot{
    width:5px; height:5px; border-radius:50%;
    background:var(--muted);
    animation:typing-bounce 1.1s ease-in-out infinite;
  }
  .ai-typing-dot:nth-child(2){ animation-delay:.15s; }
  .ai-typing-dot:nth-child(3){ animation-delay:.3s; }
  @keyframes typing-bounce{
    0%,60%,100%{ transform:translateY(0); opacity:.5; }
    30%{ transform:translateY(-3px); opacity:1; }
  }

  .ai-suggested-items{
    align-self:flex-start;
    display:flex; flex-direction:column; gap:6px;
    max-width:88%;
    opacity:0;
  }
  .ai-suggested-item{
    display:flex; align-items:center; justify-content:space-between;
    gap:10px;
    padding:9px 12px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:10px;
    font-size:12.5px; font-weight:600;
    transition:border-color .2s ease, background .2s ease;
  }
  .ai-suggested-item:hover{ border-color:var(--red-dim); }
  .ai-suggested-item:disabled{ opacity:.55; }
  .ai-suggested-item .ai-item-price{
    font-family:var(--font-mono);
    color:var(--red-glow);
    font-weight:700;
    flex-shrink:0;
  }

  .ai-quick-replies{ align-self:flex-start; display:flex; flex-wrap:wrap; gap:6px; max-width:92%; }
  .ai-quick{
    padding:8px 14px; border-radius:100px;
    background:transparent; border:1px solid var(--red); color:var(--red-glow);
    font-size:12.5px; font-weight:700;
  }
  .ai-quick:active{ transform:scale(.96); }
  .ai-ir-cat{
    align-self:flex-start; max-width:92%; padding:11px 14px;
    border-radius:12px; background:var(--red); color:#fff;
    font-size:13px; font-weight:800; text-align:left;
  }
  /* balão da IA dentro do carrinho */
  .ai-cart-balao{
    margin:12px 16px 0; padding:12px;
    border-radius:14px; background:var(--surface);
    border:1px solid color-mix(in srgb, var(--red) 45%, var(--line));
    box-shadow:0 10px 26px -14px rgba(0,0,0,.45);
  }
  .ai-cart-balao-top{ display:flex; align-items:flex-start; gap:10px; }
  .ai-cart-balao-top .ai-avatar{ width:28px; height:28px; border-radius:8px; font-size:13px; }
  .ai-cart-balao-top p{ flex:1; font-size:13px; line-height:1.45; color:var(--text); }
  .ai-cart-balao-x{ font-size:12px; color:var(--muted); padding:2px 4px; }
  .ai-cart-balao-ops{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; padding-left:38px; }
  .ai-cart-balao-itens{ display:flex; flex-direction:column; gap:6px; margin-top:10px; padding-left:38px; max-height:240px; overflow-y:auto; }
  .ai-cart-balao .ai-ir-cat{ display:block; margin:10px 0 0 38px; }
  .ai-cart-balao-top p .ai-typing-dot{ display:inline-block; margin-right:3px; }
  .ai-cart-balao-ops button{
    padding:7px 14px; border-radius:100px;
    border:1px solid var(--red); color:var(--red-glow);
    font-size:12.5px; font-weight:700;
  }
  .ai-cart-balao-ops button:first-child{ background:var(--red); color:#fff; }
  @media (max-width:640px){
    .ai-modal{
      left:0; right:0; top:0; bottom:auto;
      width:100%; height:100dvh;
      border-radius:0; border:none;
      transform:translateY(30px);
      transition:none;
    }
    .ai-msg{ font-size:14px; }
    .ai-chat-input-row input{ font-size:16px; } /* 16px evita o zoom do iPhone ao tocar no campo */
  }
  .ai-chat-input-row{
    display:flex; align-items:center; gap:8px;
    padding:12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top:1px solid var(--line);
    flex-shrink:0;
  }
  .ai-chat-input-row input{
    flex:1;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:20px;
    padding:10px 16px;
    color:var(--text);
    font-family:var(--font-body);
    font-size:14px;
    outline:none;
    transition:border-color .2s ease;
  }
  .ai-chat-input-row input:focus{ border-color:var(--red); }
  .ai-chat-send{
    width:36px; height:36px; border-radius:50%;
    background:var(--red);
    color:#fff;
    font-size:15px;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
    transition:background .15s ease, transform .12s ease;
  }
  .ai-chat-send:hover{ background:var(--red-glow); }
  .ai-chat-send:active{ transform:scale(.9); }
  .ai-chat-send:disabled{ opacity:.4; }

  /* scrollbar for drawer/sheet/chat */
  .drawer-body::-webkit-scrollbar, .sheet::-webkit-scrollbar, .ai-chat-messages::-webkit-scrollbar{width:5px;}
  .drawer-body::-webkit-scrollbar-thumb, .sheet::-webkit-scrollbar-thumb, .ai-chat-messages::-webkit-scrollbar-thumb{background:var(--line); border-radius:3px;}

  /* ================= RESPONSIVO (tablet/desktop) =================
     O site é mobile-first (é assim que a maioria abre o link de
     delivery), mas em telas maiores centraliza o conteúdo numa
     coluna ao invés de esticar tudo. */
  @media (min-width:640px){
    header, main, .bestsellers{
      max-width:560px;
      margin-left:auto;
      margin-right:auto;
    }
    .cat-nav-in{
      justify-content:safe center;
    }
    .cat-nav-in > *{flex-shrink:0;}
    .drawer{ width:420px; }
    .ai-modal{ bottom:28px; }
  }

  @media (max-width:340px){
    .bs-card{width:98px;}
    .bs-thumb{width:98px; height:74px;}
  }

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
  }

  /* ================= TEMA CLARO: branco gelo com blur de fundo ================= */
  body.tema-gelo::before{
    background:
      radial-gradient(38vmax 38vmax at 6% 6%, color-mix(in srgb, var(--red) 20%, transparent), transparent 70%),
      radial-gradient(34vmax 34vmax at 102% 30%, rgba(120,150,190,.24), transparent 70%),
      radial-gradient(40vmax 40vmax at 14% 74%, color-mix(in srgb, var(--red-dim) 12%, transparent), transparent 70%),
      radial-gradient(32vmax 32vmax at 94% 98%, rgba(255,186,120,.20), transparent 70%);
  }
  body.tema-gelo .item-card,
  body.tema-gelo .ai-hint,
  body.tema-gelo .store-meta,
  body.tema-gelo .cat-pill:not(.active){
    background:rgba(255,255,255,.66);
    border-color:rgba(255,255,255,.9);
    box-shadow:0 8px 22px -16px rgba(30,42,64,.35);
  }

  body.tema-gelo .cat-nav{
    background:rgba(238,241,245,.7);
    backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%);
    border-bottom-color:rgba(30,42,64,.08);
  }

  /* ================= CARTÃO DA LOJA (logo redonda à esquerda, nome ao lado) ================= */
  .store-card{
    margin:-22px 20px 0;
    padding:0;
    background:none; border:none; border-radius:0; box-shadow:none;
    display:grid;
    grid-template-columns:auto 1fr;
    grid-template-rows:auto auto 1fr;
    column-gap:14px;
    text-align:left;
  }
  .store-card .store-logo{
    grid-row:1 / 4;
    width:90px; height:90px; border-radius:50%;
    margin:0;
    background:var(--surface);
    border:none;
    font-size:30px;
    box-shadow:0 10px 24px -10px rgba(0,0,0,.55);
  }
  .store-card h1{
    grid-column:2; grid-row:1; align-self:start;
    padding-top:30px;
    font-family:var(--font-display);
    font-size:22px; line-height:1.1;
    color:var(--text);
    margin:0;
  }
  .store-card .store-status{ grid-column:2; grid-row:2; justify-content:flex-start; margin:3px 0 0; }
  .store-card .store-address{
    grid-column:1 / -1;
    margin-top:14px;
    font-size:15px; font-weight:700; line-height:1.35;
    color:var(--text);
  }
  .store-card .store-address:empty{ display:none; }
  .store-card .store-meta-row{
    grid-column:1 / -1;
    flex-wrap:wrap; justify-content:flex-start; gap:8px;
    margin-top:12px; padding-top:0; border-top:none;
  }
  .store-card .store-meta{
    flex:none;
    display:inline-flex; align-items:center; gap:6px;
    padding:8px 13px; border-radius:100px;
    background:var(--surface); border:1px solid var(--line);
    font-size:12.5px;
  }
  .store-card .store-meta svg{ display:none; }
  .store-card .meta-label{
    display:inline; margin:0;
    font-size:12.5px; color:var(--muted);
    text-transform:none; letter-spacing:0;
  }
  .store-card .meta-label[hidden]{ display:none; }
  .store-card .meta-value{ display:inline; font-size:12.5px; }

  /* ================= CARRINHO: sobe de baixo pra cima, sem as linhas de "notinha" ================= */
  .drawer{
    top:auto; left:0; right:0; bottom:0;
    width:min(520px, 100%); margin:0 auto;
    max-height:85vh;
    border-radius:24px 24px 0 0;
    transform:translateY(110%);
    box-shadow:0 -10px 50px rgba(0,0,0,.35);
    overflow:hidden;
  }
  .drawer-handle{ width:40px; height:4px; border-radius:99px; background:var(--line); margin:10px auto 0; flex-shrink:0; cursor:pointer; }
  .drawer-head{ padding:12px 20px 14px; border-bottom:1px solid var(--line); }
  .drawer-head h2{ font-size:20px; text-transform:none; }
  .drawer-close{ border-radius:50%; border:1px solid var(--line); font-size:0; }
  .drawer-close::before{ content:"✕"; font-size:13px; }
  .receipt-strip{ display:none; }
  .drawer-body{ background-image:none; padding:6px 20px; }
  .receipt-item{
    align-items:center; gap:12px;
    padding:14px 0;
    border-bottom:1px solid var(--line);
    font-family:var(--font-body); font-size:14px;
  }
  .receipt-item:last-child{ border-bottom:none; }
  .receipt-item .ri-name{ font-weight:700; line-height:1.35; }
  .receipt-item .ri-price{ color:var(--text); font-weight:800; min-width:74px; text-align:right; }
  .receipt-item .qty-ctrl{
    margin:0; gap:2px; padding:3px;
    border:1px solid var(--line); border-radius:100px; background:var(--bg);
  }
  .receipt-item .qty-btn{ width:28px; height:28px; border-radius:50%; border:none; background:transparent; font-size:15px; font-weight:700; }
  .receipt-item .qty-btn:active{ background:var(--surface-2); }
  .receipt-item .qty-num{ min-width:18px; text-align:center; font-weight:800; font-size:13.5px; }
  .drawer-empty{ font-family:var(--font-body); font-size:13.5px; }
  .drawer-foot{ border-top:1px solid var(--line); }
  .total-row .tot-label{ font-family:var(--font-body); font-size:13px; font-weight:600; text-transform:none; letter-spacing:0; }
  .total-row .tot-value{ font-family:var(--font-display); font-size:24px; font-weight:400; color:var(--text); }

  /* ================= FOTOS MAIORES ================= */
  .item-thumb{ width:112px; height:112px; border-radius:12px; font-size:30px; }
  .bs-card{ width:136px; }
  .bs-thumb{ width:136px; height:100px; }
  .detail-photo-wrap{ height:min(300px, 42vh); }
  @media (max-width:360px){
    .item-thumb{ width:92px; height:92px; }
  }

  /* ================= PIX ONLINE ================= */
  .pix-box{text-align:center;}
  .pix-box h2{margin-bottom:6px;}
  .pix-valor{font-family:var(--font-mono); font-size:26px; font-weight:700; color:var(--red-glow);}
  .pix-qr{width:210px; height:210px; margin:14px auto; display:block; background:#fff; padding:10px; border-radius:12px;}
  .pix-timer{font-family:var(--font-mono); font-size:12px; color:var(--muted); margin:6px 0 14px;}
  .pix-code{width:100%; padding:11px 12px; border-radius:10px; border:1px dashed var(--line); background:var(--surface); color:var(--text); font-family:var(--font-mono); font-size:11px; word-break:break-all; text-align:left; max-height:64px; overflow:hidden;}
  .pix-status{margin-top:14px; font-size:13px; color:var(--muted); line-height:1.45;}
  .sheet-taxa{font-family:var(--font-mono); font-size:11px; color:var(--muted-2); margin:-8px 0 14px; text-align:right;}

  /* ================= MENU (três risquinhos) ================= */
  .menu-btn{
    position:fixed; top:calc(10px + env(safe-area-inset-top)); left:12px;
    z-index:61;
    width:40px; height:40px; border-radius:12px;
    background:color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
    border:1px solid var(--line);
    box-shadow:0 6px 16px -6px rgba(0,0,0,.45);
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
    transition:transform .15s ease, border-color .2s ease;
  }
  .menu-btn[hidden]{display:none;}
  .menu-btn:active{transform:scale(.92);}
  .menu-btn span{ display:block; width:18px; height:2px; border-radius:2px; background:var(--text); }
  .menu-btn span:nth-child(2){ width:13px; margin-right:5px; background:var(--red-glow); }
  .menu-alerta{
    display:none;
    position:absolute; top:-3px; right:-3px;
    width:10px; height:10px; border-radius:50%;
    background:var(--red-glow);
    border:2px solid var(--bg);
    animation:pulse-dot 1.8s ease-in-out infinite;
  }
  /* barra de categorias presa no topo: as categorias desviam dos três risquinhos e o Entrar some */
  body.com-menu.nav-presa .cat-nav-in{
    margin-left:60px; padding-left:10px;
    -webkit-mask-image:linear-gradient(to right, transparent, #000 12px);
    mask-image:linear-gradient(to right, transparent, #000 12px);
  }
  body.nav-presa .login-btn{ opacity:0 !important; visibility:hidden; pointer-events:none; }

  /* ================= BOTÃO ENTRAR / MINHA CONTA ================= */
  .login-btn{
    position:fixed; top:calc(10px + env(safe-area-inset-top)); right:12px;
    z-index:61;
    height:40px; padding:0 14px 0 11px; border-radius:12px;
    background:color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
    border:1px solid var(--line);
    box-shadow:0 6px 16px -6px rgba(0,0,0,.45);
    display:flex; align-items:center; gap:7px;
    font-size:13px; font-weight:800; color:var(--text);
    transition:transform .15s ease, border-color .2s ease, opacity .2s ease, visibility .2s ease;
  }
  .login-btn[hidden]{display:none;}
  .login-btn:active{transform:scale(.94);}
  .login-btn svg{ color:var(--red-glow); }
  .login-btn.logado{ width:40px; padding:0; justify-content:center; border-color:color-mix(in srgb, var(--red) 55%, var(--line)); }
  .login-avatar{
    width:30px; height:30px; border-radius:9px;
    background:linear-gradient(140deg, var(--red), var(--red-dim));
    color:#fff; font-family:var(--font-display); font-size:14px;
    display:flex; align-items:center; justify-content:center;
  }

  .login-panel{ max-width:420px; }
  .login-txt{ font-size:13.5px; color:var(--muted); line-height:1.5; margin:4px 0 16px; }
  .login-txt b{ color:var(--text); }
  .login-codigo{ font-family:var(--font-mono) !important; font-size:26px !important; letter-spacing:.5em; text-align:center; }
  .login-links{ display:flex; justify-content:space-between; gap:10px; margin-top:14px; }
  .login-links button{ font-size:12.5px; font-weight:700; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
  .login-links button:disabled{ text-decoration:none; color:var(--muted-2); font-family:var(--font-mono); font-weight:400; }
  .fid-entrar{
    position:relative; z-index:1;
    width:100%; margin-top:18px; padding:13px;
    border-radius:11px; background:#fff; color:var(--red);
    font-size:14px; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
    box-shadow:0 8px 20px -8px rgba(0,0,0,.45);
    transition:transform .15s ease;
  }
  .fid-entrar:active{ transform:scale(.97); }

  .side-menu{
    position:fixed; top:0; left:0; bottom:0;
    width:min(300px, 84vw);
    z-index:100;
    background:var(--surface);
    box-shadow:20px 0 60px rgba(0,0,0,.5);
    transform:translateX(-105%);
    display:flex; flex-direction:column;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .side-menu-head{
    display:flex; align-items:center; gap:12px;
    padding:calc(22px + env(safe-area-inset-top)) 18px 18px;
    border-bottom:1px dashed var(--line);
  }
  .side-menu-logo{
    width:44px; height:44px; border-radius:12px; overflow:hidden; flex-shrink:0;
    background:var(--surface-2); border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-display); font-size:18px; color:var(--red-glow);
  }
  .side-menu-logo img{ width:100%; height:100%; object-fit:cover; }
  .side-menu-nome{ flex:1; min-width:0; font-family:var(--font-display); font-size:16px; line-height:1.15; }
  .side-menu-nav{ display:flex; flex-direction:column; gap:6px; padding:16px 12px; flex:1; }
  .side-item{
    position:relative;
    display:flex; align-items:center; gap:14px;
    padding:13px 12px; border-radius:12px;
    text-align:left; color:var(--muted);
    border:1px solid transparent;
    transition:background .2s ease, color .2s ease, border-color .2s ease;
  }
  .side-item svg{ width:24px; height:24px; flex-shrink:0; }
  .side-item-txt{ display:flex; flex-direction:column; gap:2px; min-width:0; }
  .side-item-txt b{ font-size:15px; font-weight:800; color:var(--text); }
  .side-item-txt small{ font-family:var(--font-mono); font-size:11px; color:var(--muted-2); }
  .side-item:hover{ background:var(--surface-2); }
  .side-item.active{
    color:var(--red-glow);
    border-color:color-mix(in srgb, var(--red) 40%, transparent);
    background:linear-gradient(90deg, color-mix(in srgb, var(--red) 14%, transparent), transparent);
  }
  .side-item .menu-alerta{ position:static; margin-left:auto; border-color:var(--surface); }
  .side-menu-foot{
    padding:14px 18px 18px;
    font-family:var(--font-mono); font-size:10.5px; letter-spacing:.06em; text-transform:uppercase;
    color:var(--muted-2);
    border-top:1px dashed var(--line);
  }

  /* o que some quando a aba Fidelidade está aberta */
  #fidView{display:none;}
  body.aba-fid #fidView{display:block;}
  body.aba-fid #bestsellersSection,
  body.aba-fid #catNav,
  body.aba-fid #menuMain,
  body.aba-fid #cartFab,
  body.aba-fid .ai-bubble,
  body.aba-fid .ai-tooltip{display:none !important;}
  .fid-fab{ display:none; }
  /* chegou pelo link da fidelidade: mostra um esqueleto até ela carregar */
  body.fid-carregando #fidView::before,
  body.fid-carregando #fidView::after{
    content:""; display:block; margin:20px 20px 0; border-radius:20px;
    background:linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--line)), var(--surface));
    background-size:200% 100%; animation:fid-sk 1.2s linear infinite;
  }
  body.fid-carregando #fidView::before{ height:190px; }
  body.fid-carregando #fidView::after{ height:96px; }
  @keyframes fid-sk{ to{ background-position:-200% 0; } }
  body.aba-fid .fid-fab{ display:flex; }

  /* ================= FIDELIDADE ================= */
  .fid-view{ position:relative; z-index:1; padding:22px 20px 20px; }

  .fid-card{
    position:relative; overflow:hidden;
    border-radius:20px;
    padding:20px 20px 18px;
    color:#fff;
    background:
      radial-gradient(circle at 110% -20%, color-mix(in srgb, #fff 22%, transparent), transparent 45%),
      radial-gradient(circle at -10% 120%, color-mix(in srgb, #000 35%, transparent), transparent 55%),
      linear-gradient(140deg, var(--red), var(--red-dim));
    box-shadow:0 18px 40px -16px color-mix(in srgb, var(--red) 70%, transparent);
  }
  .fid-card::after{
    content:'';
    position:absolute; inset:0;
    background:repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.035) 22px 23px);
    pointer-events:none;
  }
  .fid-card-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; position:relative; z-index:1; }
  .fid-eyebrow{
    font-family:var(--font-mono);
    font-size:11px; letter-spacing:.14em; text-transform:uppercase;
    display:flex; align-items:center; gap:6px;
    opacity:.9;
  }
  .fid-eyebrow::before{
    content:''; width:6px; height:6px; border-radius:50%;
    background:#fff; box-shadow:0 0 8px 1px #fff;
    animation:pulse-dot 1.8s ease-in-out infinite;
  }
  .fid-card-logo{
    width:38px; height:38px; border-radius:10px; overflow:hidden;
    background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.25);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-display); font-size:16px; flex-shrink:0;
  }
  .fid-card-logo img{ width:100%; height:100%; object-fit:cover; }
  .fid-card-title{
    position:relative; z-index:1;
    font-family:var(--font-display);
    font-size:clamp(24px, 7vw, 30px); line-height:1.02;
    margin:18px 0 10px;
  }
  .fid-saldo{ position:relative; z-index:1; display:flex; align-items:baseline; gap:8px; margin:16px 0 12px; }
  .fid-saldo-num{ font-family:var(--font-mono); font-size:clamp(44px, 13vw, 58px); font-weight:700; line-height:1; letter-spacing:-.02em; }
  .fid-saldo-un{ font-family:var(--font-mono); font-size:13px; text-transform:uppercase; letter-spacing:.1em; opacity:.85; }
  .fid-bar{ position:relative; z-index:1; height:8px; border-radius:99px; background:rgba(0,0,0,.25); overflow:hidden; }
  .fid-bar i{ display:block; height:100%; border-radius:99px; background:#fff; box-shadow:0 0 12px rgba(255,255,255,.6); }
  .fid-prog-txt{ position:relative; z-index:1; font-size:13px; margin-top:10px; opacity:.95; line-height:1.4; }
  .fid-prog-txt:empty{ display:none; }
  .fid-regra{
    position:relative; z-index:1;
    font-size:12px; margin-top:14px; padding-top:12px;
    border-top:1px dashed rgba(255,255,255,.3);
    opacity:.9;
  }
  .fid-regra b{ font-weight:800; }

  .fid-selos{ position:relative; z-index:1; display:grid; grid-template-columns:repeat(5, 1fr); gap:10px; margin:4px 0 2px; }
  .fid-selos.compacto{ grid-template-columns:repeat(10, 1fr); gap:6px; }
  .fid-selo{
    aspect-ratio:1/1; border-radius:50%;
    border:2px dashed rgba(255,255,255,.45);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-mono); font-size:12px; font-weight:700;
    color:rgba(255,255,255,.55);
  }
  .fid-selos.compacto .fid-selo{ font-size:0; border-width:1.5px; }
  .fid-selo.on{
    border:2px solid #fff;
    background:#fff;
    color:var(--red);
    box-shadow:0 4px 12px -2px rgba(0,0,0,.35);
  }
  .fid-selos.compacto .fid-selo.on svg{ width:10px; height:10px; }

  .fid-passos{ position:relative; z-index:1; list-style:none; display:grid; gap:9px; margin:16px 0 4px; }
  .fid-passos li{ display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:600; }
  .fid-passos span{
    width:24px; height:24px; border-radius:7px; flex-shrink:0;
    background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-mono); font-size:12px; font-weight:700;
  }
  .fid-anon-nota{ position:relative; z-index:1; font-size:12px; margin-top:12px; opacity:.85; line-height:1.45; text-align:center; }

  .fid-subnav{ display:flex; gap:8px; margin:24px 0 16px; }
  .fid-heading{ margin:28px 0 14px; }
  .fid-heading h2{ font-family:var(--font-display); font-size:18px; text-transform:uppercase; letter-spacing:.02em; }

  .fid-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
  .fid-premio{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    overflow:hidden;
    display:flex; flex-direction:column;
    transition:border-color .25s ease, transform .2s ease;
  }
  .fid-premio.ok{ border-color:color-mix(in srgb, var(--red) 55%, var(--line)); }
  .fid-premio-foto{
    position:relative;
    aspect-ratio:4/3;
    background:var(--surface-2);
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
  }
  .fid-premio-foto img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
  .fid-premio:hover .fid-premio-foto img{ transform:scale(1.04); }
  .fid-premio-emoji{ font-size:38px; opacity:.6; }
  .fid-tag{
    position:absolute; top:8px; left:8px;
    font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.05em;
    color:#fff; background:var(--red);
    padding:4px 8px; border-radius:99px;
    box-shadow:0 4px 12px -3px color-mix(in srgb, var(--red) 70%, transparent);
  }
  .fid-premio-body{ padding:11px 12px 12px; display:flex; flex-direction:column; flex:1; }
  .fid-premio-body h3{ font-size:14px; font-weight:700; line-height:1.25; margin-bottom:3px; }
  .fid-premio-body p{
    font-size:12px; color:var(--muted); line-height:1.35;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .fid-premio-foot{ margin-top:auto; padding-top:10px; display:flex; flex-direction:column; align-items:stretch; gap:8px; }
  .fid-custo{ font-family:var(--font-mono); font-size:13px; font-weight:700; color:var(--red-glow); }
  .fid-add{
    width:100%;
    padding:9px 10px; border-radius:9px;
    background:var(--red); color:#fff;
    font-size:12.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
    box-shadow:0 6px 16px -6px color-mix(in srgb, var(--red) 70%, transparent);
    transition:background .15s ease, transform .15s ease;
  }
  .fid-add:hover{ background:var(--red-glow); }
  .fid-add:active{ transform:scale(.95); }
  .fid-falta{
    display:block; text-align:center;
    padding:8px 10px; border-radius:9px;
    border:1px dashed var(--line);
    font-family:var(--font-mono); font-size:11px; color:var(--muted-2);
  }
  .fid-qty{
    display:flex; align-items:center; justify-content:space-between;
    padding:4px; border-radius:9px;
    background:color-mix(in srgb, var(--red) 12%, transparent);
    border:1px solid var(--red);
  }
  .fid-qty .qty-btn{ width:30px; height:30px; border-radius:7px; font-size:15px; }
  .fid-qty .qty-btn:disabled{ opacity:.35; }
  .fid-qty span{ font-family:var(--font-mono); font-weight:700; font-size:14px; }

  .fid-resgates{ display:flex; flex-direction:column; gap:10px; }
  .fid-resgate{
    display:flex; align-items:center; gap:12px;
    padding:13px 14px;
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  }
  .fid-resgate-ic{
    width:38px; height:38px; border-radius:10px; flex-shrink:0;
    background:var(--surface-2);
    display:flex; align-items:center; justify-content:center; font-size:17px;
  }
  .fid-resgate-info{ flex:1; min-width:0; }
  .fid-resgate-info b{ display:block; font-size:13.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .fid-resgate-info span{ font-family:var(--font-mono); font-size:10.5px; color:var(--muted-2); }
  .fid-status{
    flex-shrink:0;
    font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
    padding:4px 9px; border-radius:99px;
    color:var(--red-glow);
    background:color-mix(in srgb, var(--red) 12%, transparent);
  }
  .fid-status.ok{ color:#1a9c4a; background:rgba(26,156,74,.12); }
  .fid-status.x{ color:var(--muted-2); background:var(--surface-2); }

  .fid-sair{
    display:block; margin:26px auto 0;
    font-size:12px; color:var(--muted-2);
    text-decoration:underline; text-underline-offset:3px;
  }

  .fid-sheet{ max-width:460px; }
  .fid-sheet-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
  .fid-sheet-head h2{ margin:0; font-family:var(--font-display); font-size:18px; text-transform:uppercase; }
  .fid-sheet-lista{ border-top:1px dashed var(--line); border-bottom:1px dashed var(--line); padding:6px 0; margin-bottom:12px; }
  .fid-sheet-total{ margin-bottom:4px; }
  .fid-sheet-saldo{ font-family:var(--font-mono); font-size:11px; color:var(--muted-2); text-align:right; }

  /* ================= AVISO (toast) ================= */
  .app-toast{
    position:fixed; left:50%; bottom:calc(100px + env(safe-area-inset-bottom));
    transform:translateX(-50%);
    z-index:300;
    max-width:calc(100vw - 32px);
    padding:12px 18px; border-radius:12px;
    background:var(--surface); color:var(--text);
    border:1px solid var(--line); border-left:3px solid #1a9c4a;
    font-size:13px; font-weight:700;
    box-shadow:0 14px 30px -8px rgba(0,0,0,.55);
    opacity:0; pointer-events:none;
  }
  .app-toast.erro{ border-left-color:var(--red-glow); }

  @media (min-width:640px){
    .fid-view{ max-width:560px; margin-left:auto; margin-right:auto; }
    .fid-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  }

/* ================= MINHA CONTA ================= */
.conta-menu{position:fixed;top:calc(58px + env(safe-area-inset-top));right:12px;z-index:320;width:min(280px,calc(100vw - 24px));background:var(--bg);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 40px rgba(0,0,0,.22);overflow:hidden;animation:contaMenuIn .18s ease}
.conta-menu-quem{padding:14px 16px;border-bottom:1px solid var(--line);display:grid;gap:2px}
.conta-menu-quem b{font-size:15px;font-weight:800;color:var(--text)}
.conta-menu-quem span{font-size:13px;color:var(--muted);font-family:var(--font-mono)}
.conta-menu-item{width:100%;display:flex;align-items:center;gap:10px;padding:13px 16px;font-size:14.5px;font-weight:700;color:var(--text);text-align:left;min-height:48px}
.conta-menu-item:hover{background:var(--surface)}
.conta-menu-item.sair{border-top:1px solid var(--line);color:var(--red)}
@keyframes contaMenuIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.conta-tela{position:fixed;inset:0;z-index:330;background:var(--bg);overflow-y:auto;animation:contaTelaIn .25s ease}
.conta-topo{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;background:var(--bg);border-bottom:1px solid var(--line)}
.conta-topo h2{font-family:var(--font-display);font-size:19px}
.conta-voltar{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--text)}
.conta-voltar:active{background:var(--surface)}
.conta-corpo{max-width:560px;margin:0 auto;padding:18px 16px calc(40px + env(safe-area-inset-bottom))}
.conta-sec{margin-bottom:26px}
.conta-sec h3{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.conta-btn{width:100%;min-height:50px;border-radius:14px;background:var(--red)!important;color:#fff!important;font-size:15px;font-weight:800;margin-top:4px}
.conta-btn.contorno{background:transparent!important;color:var(--red)!important;border:1.5px dashed color-mix(in srgb,var(--red) 55%,transparent)}
.conta-btn:disabled{opacity:.6}
.conta-ends{display:grid;gap:10px;margin-bottom:12px}
.conta-end{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.conta-end-txt{flex:1;display:grid;gap:3px;font-size:14px}
.conta-end-txt b{color:var(--text)}
.conta-end-txt span{font-size:12.5px;color:var(--muted)}
.conta-tag{justify-self:start;margin-top:4px;font-style:normal;font-size:11px;font-weight:800;color:#fff;background:var(--red);padding:3px 8px;border-radius:999px}
.conta-link{justify-self:start;margin-top:4px;font-size:12.5px;font-weight:700;color:var(--red);text-decoration:underline;text-underline-offset:3px}
.conta-lixo{width:40px;height:40px;flex-shrink:0;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.conta-lixo:hover{color:var(--red);background:var(--bg)}
.conta-vazio{font-size:13.5px;color:var(--muted);line-height:1.5}
.conta-form{padding:14px;border:1px solid var(--line);border-radius:14px;margin-bottom:12px}
@keyframes contaTelaIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
/* endereços salvos na etapa do pedido */
.end-salvos{display:grid;gap:10px;margin-bottom:16px}
.end-salvos.hidden,#endForm.hidden{display:none}
.end-op{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);text-align:left;min-height:56px}
.end-op.sel{border-color:var(--red);background:color-mix(in srgb,var(--red) 7%,var(--bg))}
.end-radio{width:20px;height:20px;flex-shrink:0;border-radius:50%;border:2px solid var(--muted-2);position:relative}
.end-op.sel .end-radio{border-color:var(--red)}
.end-op.sel .end-radio::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--red)}
.end-txt{display:grid;gap:3px;font-size:14px}
.end-txt b{color:var(--text)}
.end-txt span{font-size:12.5px;color:var(--muted)}
.end-add{width:100%;min-height:48px;border-radius:14px;border:1.5px dashed color-mix(in srgb,var(--red) 55%,transparent);color:var(--red);font-size:14px;font-weight:800}
.end-add.sel{background:color-mix(in srgb,var(--red) 7%,var(--bg))}


/* ================= 📅 PEDIDO AGENDADO (loja fechada) ================= */
.ag-box{display:flex; flex-direction:column; gap:6px; padding:14px; margin-bottom:12px; border-radius:var(--radius); background:var(--surface); border:1px solid var(--line);}
.ag-box b{font-size:15px; color:var(--text);}
.ag-box span, .ag-box small{font-size:13px; line-height:1.4; color:var(--muted);}
.ag-box label{margin-top:6px; font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--muted);}
.ag-box select{width:100%; min-height:46px; padding:10px 12px; border-radius:10px; border:1px solid var(--line); background:var(--bg); color:var(--text); font:inherit; font-size:15px;}


/* ================= CATEGORIAS COM FOTO (bolinha + nome embaixo) ================= */
.cat-nav.com-fotos{ padding:10px 0 8px; }
.cat-nav.com-fotos .cat-nav-in{ gap:8px; padding:6px 20px 2px; align-items:flex-start; }
.cat-nav.com-fotos .cat-pill{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  width:80px; padding:0; border:0; border-radius:0;
  background:none; box-shadow:none; white-space:normal; color:var(--muted);
}
.cat-nav.com-fotos .cat-foto{
  width:60px; height:60px; border-radius:50%; overflow:hidden; flex-shrink:0;
  display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line);
  transition:width .25s ease, height .25s ease, box-shadow .22s ease, transform .22s ease;
}
.cat-nav.com-fotos .cat-foto img{ width:100%; height:100%; object-fit:cover; display:block; }
.cat-nav.com-fotos .cat-foto b{ font-family:var(--font-display); font-size:22px; color:var(--text); }
.cat-nav.com-fotos .cat-nome{
  max-width:80px; font-size:11.5px; font-weight:700; line-height:1.2; text-align:center;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:break-word;
}
.cat-nav.com-fotos .cat-pill.active{ background:none; border:0; box-shadow:none; color:var(--red); }
.cat-nav.com-fotos .cat-pill.active .cat-foto{
  border-color:transparent; transform:scale(1.04);
  box-shadow:0 0 0 2px var(--bg), 0 0 0 4px var(--red), 0 8px 18px -8px rgba(214,40,40,.6);
}
body.tema-gelo .cat-nav.com-fotos .cat-pill:not(.active){ background:none; border:0; box-shadow:none; }
/* presa no topo: as bolinhas diminuem e o nome fica numa linha só */
body.nav-presa .cat-nav.com-fotos .cat-foto{ width:42px; height:42px; }
body.nav-presa .cat-nav.com-fotos .cat-nome{ -webkit-line-clamp:1; font-size:11px; }

/* data de nascimento: botão "Agora não" e nota */
.nasc-pular{ display:block; width:100%; margin-top:8px; padding:12px; border:0; background:none; color:var(--muted); font-size:14px; font-weight:700; cursor:pointer; }
.nasc-pular:hover{ color:var(--text); }
.nasc-nota{ display:block; margin-top:6px; font-size:12px; color:var(--muted); }


  /* ➕ adicionais (popup do item e carrinho) */
  .adc-box{ margin-top:16px; display:grid; gap:12px; }
  .adc-titulo{ font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
  .adc-grupo{ display:grid; gap:6px; }
  .adc-grupo-topo{ display:flex; justify-content:space-between; align-items:baseline; font-size:13.5px; color:var(--text); }
  .adc-grupo-topo small{ font-size:11.5px; color:var(--muted); }
  .adc-linha{ display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:9px 12px; border-radius:10px; background:var(--surface); border:1px solid var(--line); transition:border-color .2s ease, background .2s ease; }
  .adc-linha.on{ border-color:var(--red); background:linear-gradient(90deg, color-mix(in srgb, var(--red) 10%, transparent), transparent); }
  .adc-nome{ font-size:13.5px; font-weight:600; color:var(--text); }
  .adc-valor{ font-size:12.5px; color:var(--muted); white-space:nowrap; }
  .adc-qtd{ display:flex; align-items:center; gap:6px; }
  .adc-qtd b{ min-width:14px; text-align:center; font-size:13.5px; color:var(--text); }
  .adc-qtd button{ width:28px; height:28px; border-radius:50%; border:1px solid var(--line); background:var(--bg); color:var(--text); font-size:15px; font-weight:700; line-height:1; }
  .adc-qtd button:disabled{ opacity:.3; }
  .receipt-item{ flex-wrap:wrap; }
  .ri-extra{ flex-basis:100%; display:grid; gap:3px; }
  .ri-adc{ font-size:12.5px; color:var(--muted); padding-left:2px; }
  .ri-obs{ width:100%; margin-top:2px; padding:6px 2px; border:0; border-bottom:1px dashed var(--line); background:transparent; color:var(--text); font:inherit; font-size:12.5px; outline:none; }
  .ri-obs:focus{ border-bottom:1px solid var(--red); }
  .ri-obs::placeholder{ color:var(--muted-2); }



  /* ================= TOPO DA LOJA: card que entra na foto + etiquetas embaixo ================= */
  .banner-wrap{ height:150px; }
  .banner-img{ transition:filter .3s; }
  .banner-wrap.fechado .banner-img{ filter:grayscale(1) brightness(.85); }
  .loja-card{
    position:relative; z-index:2;
    margin:-40px 14px 0;
    display:flex; align-items:center; gap:13px;
    padding:13px 12px 13px 14px;
    background:var(--surface); border:1px solid var(--line); border-radius:18px;
    box-shadow:0 14px 30px -18px rgba(0,0,0,.45);
  }
  .loja-card .store-logo{
    width:66px; height:66px; border-radius:50%; margin:0; flex-shrink:0;
    font-size:24px; border:none; background:var(--surface-2);
    box-shadow:0 0 0 1px var(--line), 0 6px 14px -8px rgba(0,0,0,.4);
  }
  .loja-txt{ flex:1; min-width:0; }
  .loja-txt h1{ margin:0; font-family:var(--font-display); font-size:21px; line-height:1.15; color:var(--text); }
  .loja-txt .store-address{
    margin:4px 0 0; font-size:12.5px; font-weight:400; line-height:1.3; color:var(--muted);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .loja-txt .store-address:empty{ display:none; }
  .loja-pin{
    width:42px; height:42px; border-radius:50%; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    background:color-mix(in srgb, var(--red) 14%, transparent); color:var(--red-glow);
  }
  .loja-pin[hidden]{ display:none; }
  .loja-pin svg{ width:21px; height:21px; }
  .loja-pin:active{ transform:scale(.94); }
  .loja-chips{ display:flex; flex-wrap:wrap; gap:7px; margin:12px 14px 0; }
  .loja-chip{
    display:inline-flex; align-items:center; gap:5px;
    padding:6px 11px; border-radius:100px;
    font:600 12.5px var(--font-body);
    background:var(--surface); border:1px solid var(--line); color:var(--text);
  }
  .loja-chip[hidden]{ display:none; }
  .loja-chip svg{ width:14px; height:14px; color:var(--muted); flex-shrink:0; }
  .loja-chip.store-status{ margin:0; border-color:transparent; background:color-mix(in srgb, #1a9c4a 14%, transparent); color:#1a9c4a; }
  .loja-chip.store-status.closed{ background:color-mix(in srgb, #c23b3b 14%, transparent); color:#c23b3b; }
  .loja-chip.agendar{ background:var(--red); border-color:var(--red); color:#fff; cursor:pointer; }
  .loja-chip.agendar svg{ color:#fff; }
  .loja-chip:focus-visible, .loja-pin:focus-visible{ outline:2px solid var(--red-glow); outline-offset:2px; }
  body.tema-gelo .loja-card,
  body.tema-gelo .loja-chip:not(.store-status):not(.agendar){ background:rgba(255,255,255,.8); border-color:rgba(255,255,255,.95); }


  /* ================= TOPO DA LOJA v2: logo grande no centro, sem card ================= */
  .loja-card{
    margin:-58px 20px 0; padding:0;
    display:flex; flex-direction:column; align-items:center; gap:0;
    background:none; border:0; border-radius:0; box-shadow:none; text-align:center;
  }
  .loja-card .store-logo{
    width:112px; height:112px; font-size:34px;
    border:4px solid var(--bg);
    box-shadow:0 10px 24px -12px rgba(0,0,0,.55);
  }
  .loja-card h1{ margin:12px 0 0; font-family:var(--font-display); font-size:22px; line-height:1.15; color:var(--text); }
  .loja-end{ margin:6px 0 0; max-width:320px; font-size:13px; line-height:1.6; color:var(--muted); }
  .loja-end:has(.store-address:empty){ display:none; }
  .loja-end .store-address{ display:inline; margin:0; font-size:inherit; color:inherit; }
  .loja-pin{
    display:inline-flex; vertical-align:middle; margin-left:6px;
    width:26px; height:26px;
  }
  .loja-pin svg{ width:15px; height:15px; }
  .loja-chips{ justify-content:center; margin:14px 16px 0; }
  body.tema-gelo .loja-card{ background:none; border:0; }
  body.fundo-escuro .loja-card h1{ color:#f2ede6; }
  body.fundo-escuro .loja-end{ color:rgba(242,237,230,.62); }
  body:not(.fundo-escuro) .loja-card h1{ color:#1a1814; }
  body:not(.fundo-escuro) .loja-end{ color:#555; }

  /* ================= ENTREGA OU RETIRADA (checkout) ================= */
  .tipo-entrega{ display:flex; gap:8px; margin:0 0 16px; }
  .tipo-op{
    flex:1; padding:12px; border-radius:10px; cursor:pointer;
    background:var(--bg); border:1px solid var(--line); color:var(--muted);
    font:600 13.5px var(--font-body); transition:border-color .2s, background .2s, color .2s;
  }
  .tipo-op.selected{ border-color:var(--red); color:var(--text); background:linear-gradient(90deg, color-mix(in srgb, var(--red) 14%, transparent), transparent); }
  .retirada-box{ display:flex; flex-direction:column; gap:4px; padding:14px; margin:0 0 16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
  .retirada-box.hidden, #entregaCampos.hidden{ display:none; }
  .ret-label{ font-size:11.5px; font-weight:700; color:var(--muted); }
  .ret-end{ font-size:14px; color:var(--text); line-height:1.4; }
  .ret-mapa{ font-size:13px; font-weight:600; color:var(--red-glow); text-decoration:none; margin-top:4px; }
  .ret-mapa[hidden]{ display:none; }


