:root{--primary:#f06023;--muted:#6d6d6d;--success:#21ba45}
*, *::before, *::after{box-sizing:border-box}
body{background:#fafafa;font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif}
.hero{width:100%;height:260px;background-size:cover;background-position:center;position:relative}
.hero::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.2)}
.store-hero{max-width:980px;margin:0 auto;text-align:center;padding:0 8px}
.avatar-wrap{display:inline-block;position:relative;margin-top:-38px}
.store-avatar{width:92px;height:92px;border-radius:999px;border:4px solid #fff;object-fit:cover;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.online-dot{position:absolute;right:6px;bottom:6px;width:14px;height:14px;background:var(--success);border:2px solid #fff;border-radius:999px}
.online-dot.closed{background:#d4453f}
.store-name{font-weight:800;font-size:1.25rem}
.store-meta{color:#777;font-size:.95rem}
.store-address{color:#777}
.open-badge{display:inline-block;background:#d8f5e3;color:#0d7a2a;border:0;border-radius:999px;padding:.25rem .6rem;font-weight:600;font-size:.9rem}
.open-badge.closed{border:0}
.closed-badge{display:inline-block;background:#fde2e4;color:#7a1f1f;border:1px solid #f5c2c7;border-radius:999px;padding:.25rem .6rem;font-weight:600;font-size:.9rem}
.store-avatar.closed{filter:grayscale(100%)}
.tabs{max-width:980px;margin:1rem auto;display:flex;gap:.5rem;flex-wrap:wrap}
.tab{padding:.35rem .8rem;border-radius:999px;background:#fff;border:1px solid #eee;color:#333;text-decoration:none}
.tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.content{max-width:980px;margin:0 auto}
.layout{max-width:980px;margin:1rem auto;display:grid;grid-template-columns:1fr;gap:1rem;grid-template-areas:'main'}
.layout > main{grid-area:main}
.sidebar{background:#fff;border:1px solid #eee;border-radius:12px;padding:.75rem;position:sticky;top:12px;height:max-content;display:none;gap:.5rem;flex-wrap:wrap;margin-left:8px;margin-right:8px}
.sidebar .cat-link{display:inline-block;padding:.4rem .8rem;border-radius:999px;color:#333;text-decoration:none;border:1px solid #eee;transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .1s ease}
.sidebar .cat-link:hover{background:#f7f7f7}
.sidebar .cat-link:active{transform:scale(.98)}
.sidebar .cat-link.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.chips-bar{display:block;gap:.5rem;white-space:nowrap;padding:.5rem 8px;margin:0;background:transparent;border:0;border-radius:0}
.chips-bar{box-sizing:border-box}
.chips-bar-inner{display:flex;gap:.5rem;width:max-content}
.chips-bar .cat-link{flex:0 0 auto}
/* máscara de borda para conter os chips dentro do limite visual */
.chips-mask{position:relative;border-radius:12px;margin:0 8px;max-width:100%;width:calc(100% - 16px);padding:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-gutter:stable;box-sizing:border-box; background:#fff; border:1px solid #eee; white-space:nowrap}
.chips-mask.dragging{cursor:grabbing; user-select:none}
.chips-mask::-webkit-scrollbar{display:none}
.chips-mask::before,.chips-mask::after{content:"";position:absolute;top:0;bottom:0;width:20px;pointer-events:none;z-index:2}
.chips-mask::before{left:0;background:linear-gradient(to right, #fff 60%, rgba(255,255,255,0))}
.chips-mask::after{right:0;background:linear-gradient(to left, #fff 60%, rgba(255,255,255,0))}
.chips-mask.no-left::before{display:none}
.chips-mask.no-right::after{display:none}
.chips-bar .cat-link{display:inline-block;padding:.4rem .8rem;border-radius:999px;color:#333;text-decoration:none;border:1px solid #eee}
.search-bar{display:flex;gap:.5rem;margin-bottom:1rem;margin-left:8px;margin-right:8px}
.search-bar input{flex:1;border:0;border-radius:8px;padding:.45rem .9rem;outline:none;box-shadow:none;background:#fff}
.cats-search{display:flex;gap:.5rem;align-items:center;margin:0 8px;position:relative}
.cats-bar{margin:0 8px}
.cats-btn{background:#111;color:#fff;border:none;border-radius:8px;padding:.5rem .9rem;display:inline-flex;align-items:center;gap:.5rem}
.cats-btn i{font-size:1.1rem}
.cats-search .search-bar{margin:0}
.cats-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:20;margin:0;background:#fff;border:1px solid #eee;border-radius:12px;box-shadow:0 6px 16px rgba(0,0,0,.08);padding:.5rem;display:flex;flex-direction:column;gap:.5rem;min-width:220px}
.cat-item{display:block;width:100%;text-align:left;padding:.45rem .6rem;border:none;border-radius:8px;margin:0;background:transparent}
.cat-item:hover{background:#f7f7f7}
.banner-strip{display:flex;gap:0;overflow-x:auto;padding:.25rem 0;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}
.banner-item{flex:0 0 100%;scroll-snap-align:center}
.banner-item{scroll-snap-align:center;flex:0 0 100%}
.banner-dots{display:flex;justify-content:center;gap:6px;padding:4px 0}
.banner-dots .dot{width:6px;height:6px;border-radius:999px;background:#ddd}
.banner-dots .dot.active{background:#666}
.banner-strip{margin:0}
#bannersWrap{max-width:980px;margin:0 auto;padding:0 8px}
.banner-strip::-webkit-scrollbar{display:none;height:0}
.banner-item img{height:120px;border-radius:8px;display:block;width:100%;object-fit:cover}
@media (max-width: 768px){ .banner-item img{height:96px;width:100%} }
.section-title{font-weight:700;color:#333;margin:.5rem 0}
.category{margin:0 8px 8px 8px;background:#fff;border:1px solid #eee;border-radius:12px}
.category.active{}
.category-body{overflow:hidden;max-height:999px;opacity:1;transition:max-height .45s ease, opacity .45s ease}
.category.collapsed .category-body{max-height:0;opacity:0;pointer-events:none}
.category-header{display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:.4rem .5rem;border-radius:8px}
.category-header .section-title{margin:0}
.category-header:hover{background:#f7f7f7}
.product-card{background:#fff;border:1px solid #eee;border-radius:8px;padding:.75rem;display:flex;gap:.75rem;align-items:center}
.product-card{cursor:pointer}
.product-card:hover{background:#f9f9f9}
.prod-thumb{width:96px;height:72px;border-radius:10px;object-fit:cover;flex-shrink:0}
.product-card img.closed{filter:grayscale(100%);opacity:.85}
.product-title{font-weight:700;font-size:1rem;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-price{font-weight:800;color:var(--primary);font-size:.95rem}
.price-kg{color:var(--primary);font-weight:800;font-size:1.2rem}
.weight-line{display:flex;flex-direction:column;gap:.35rem;margin-top:.25rem}
.weight-badge{display:inline-block;border:1px solid var(--primary);color:var(--primary);border-radius:999px;padding:.1rem .45rem;font-size:.85rem}
.weight-add:disabled{pointer-events:none;opacity:.5}
.weight-add.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.product-info{display:flex;flex-direction:column;gap:.15rem}
.product-info .text-muted.small{font-size:.85rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-text{text-align:left}
.btn-green{--bs-btn-bg:#2ef76f;--bs-btn-border-color:#2ef76f;--bs-btn-hover-bg:#28e065;--bs-btn-hover-border-color:#28e065;color:#fff;background:#2ef76f!important;border-color:#2ef76f!important}
.btn-add-green{background:#2ef76f!important;border-color:#2ef76f!important;color:#fff!important}
.img-top{grid-column:1 / -1; text-align:center; margin:.35rem 0}
.card-right{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem}
.card-footer{grid-column:1 / -1}
.btn-green{min-height:40px;border-radius:10px;font-weight:700}
.add-btn{width:36px;height:36px;border-radius:999px;background:var(--primary);color:#fff;border:none}
.plus-fixed{width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
.add-btn:disabled{background:#bfbfbf;color:#fff;cursor:not-allowed}
.bag-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:16px;background:var(--success);color:#fff;border-radius:8px;padding:.6rem 1rem;display:flex;gap:1rem;align-items:center;justify-content:space-between;min-width:260px;box-shadow:0 8px 20px rgba(0,0,0,.18);cursor:pointer}
.bag-count{background:#fff;color:#333;border-radius:999px;padding:.2rem .5rem;font-weight:700}
.bag-left{position:relative;display:flex;align-items:center}
.bag-icon{width:26px;height:26px;border-radius:6px;background:#fff;color:var(--success);display:flex;align-items:center;justify-content:center}
.bag-icon i{font-size:14px}
.bag-left .bag-count{position:absolute;right:-8px;top:-6px;background:#2ef76f;color:#fff;border-radius:999px;padding:0 .35rem;line-height:18px;min-width:18px;text-align:center;font-size:.75rem;border:2px solid #fff}
.bag-center{flex:1;text-align:center;font-weight:600}
.bag-right{font-weight:700}
.offcanvas{max-width:420px}
.offcanvas-title{font-size:1rem}
.bag-thumb{width:32px;height:32px;border-radius:5px;object-fit:cover;flex-shrink:0}
.bag-item-row{display:grid;grid-template-columns:1fr auto;grid-template-areas:'info actions' 'price actions';align-items:center;gap:.25rem .5rem}
.bag-item-info{grid-area:info;display:flex;align-items:center;gap:.5rem}
.bag-item-actions{display:flex;align-items:center;gap:.5rem}
.bag-item-actions{grid-area:actions}
.bag-item-qty{min-width:24px;text-align:center;font-weight:700}
.bag-item-title{font-size:.88rem;font-weight:400;line-height:1.25}
.bag-item-price{grid-area:price;font-size:.88rem;color:#6c757d}
.bag-item-actions .btn-outline-secondary{border-color:var(--primary);color:var(--primary)}
.bag-item-actions .btn-outline-secondary:hover{background:var(--primary);border-color:var(--primary);color:#fff}
.bag-item-actions .btn-outline-secondary:active{background:var(--primary);color:#fff;border-color:var(--primary)}
.bag-item-actions .btn-outline-secondary:focus{box-shadow:0 0 0 .2rem rgba(240,96,35,.2)}
.bag-total{display:flex;align-items:center;gap:.35rem}
.bag-total-old{text-decoration:line-through;color:#6c757d}
.bag-total-new{font-weight:700}
/* Summary modal font tweaks */
#summaryModal .modal-title{font-size:1rem}
#summaryModal #summaryItems .fw-semibold{font-size:.88rem; font-weight:400 !important}
#summaryModal .summary-price{min-width:100px;text-align:right;white-space:nowrap;font-weight:700 !important;font-size:.9rem}
#summaryModal #summaryItems .text-muted.small{font-size:.8rem}
#summaryModal .border-top .d-flex span,
#summaryModal .border-top .d-flex strong{font-size:.9rem}
#summaryModal #pixNotice, #summaryModal #pixKeyWrap{font-size:.85rem}
.discount-hint{background:#fff;border:1px solid #eee;border-radius:8px;padding:.6rem .75rem;color:#333;margin-bottom:.75rem}
.discount-hint .hint-wrap{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem}
.discount-hint .hint-left{display:flex;align-items:center;gap:.5rem}
.discount-hint .hint-icon{width:28px;height:28px;border-radius:8px;background:rgba(240,96,35,.12);color:var(--primary);display:flex;align-items:center;justify-content:center}
.discount-hint .hint-icon i{font-size:16px}
.discount-hint .hint-text{line-height:1.2}
.discount-hint .hint-line{font-size:.85rem;color:#6c757d}
.discount-hint .hint-line strong{color:var(--primary)}
.discount-hint .hint-strong{font-weight:700;font-size:.87rem;color:#333}
.discount-hint .hint-info{border:none;background:transparent;border-radius:0;width:auto;height:auto;color:var(--primary);display:flex;align-items:center;justify-content:center;padding:0}
.discount-hint .hint-info i{font-size:14px}
.discount-hint .hint-bar{height:6px;background:#f1e3da;border-radius:999px;overflow:hidden;margin-top:.4rem}
.discount-hint .hint-progress{height:100%;background:var(--primary);width:0}
.discount-hint .hint-note{margin-top:.6rem;font-size:.75rem;color:#9aa0a6}
.discount-note{margin-top:.6rem;font-size:.75rem;color:#9aa0a6}
.discount-hint.success{background:#f2fff6;border-color:#c8efd6;color:#2f6b3a}
.discount-hint.success .hint-icon{background:rgba(33,150,83,.12);color:#229a53}
.discount-hint.success .hint-line{color:#6c757d}
.discount-hint.success .hint-line strong{color:#229a53}
.discount-hint.success .hint-strong{color:#229a53;font-weight:700}
.discount-hint.success .hint-info{color:#229a53}
.discount-hint.success .hint-bar{background:#dff3e6}
.discount-hint.success .hint-progress{background:#229a53}
.modal .form-label{font-weight:600}
.btn-primary{--bs-btn-bg:var(--primary);--bs-btn-border-color:var(--primary)}
.btn-orange{background:var(--primary);border-color:var(--primary);color:#fff}
.btn-outline-orange{border-color:var(--primary);color:var(--primary)}
.btn-outline-orange:hover{background:var(--primary);color:#fff}
.btn-orange.btn-sm{font-size:.85rem;padding:.25rem .5rem;border-radius:8px}
.offer-card{max-width:980px;margin:0 auto;background:#fff;border:1px solid #eee;border-radius:8px;padding:.5rem .75rem;color:#333}
.offer-icon{width:32px;height:32px;border-radius:8px;background:rgba(240,96,35,.15);color:var(--primary);display:flex;align-items:center;justify-content:center;font-weight:800}
.offer-title{color:var(--primary);font-size:.95rem}
.offer-sub{color:#7a7a7a;font-size:.85rem}
.offer-info{border:1px solid var(--primary);background:#fff;border-radius:999px;width:28px;height:28px;color:var(--primary)}
.discount-badge{display:inline-block;border:1px solid var(--primary);color:var(--primary);border-radius:999px;padding:.05rem .35rem;font-size:.7rem;line-height:1;margin-left:.35rem}
.weight-modal-product{display:flex;gap:.75rem;align-items:center;margin-bottom:.75rem}
.weight-modal-product img{width:56px;height:56px;border-radius:10px;object-fit:cover}
.options-list{gap:.5rem}
.opt-row{display:flex;justify-content:space-between;align-items:center;padding:.25rem .5rem;border-radius:6px}
.opt-row input{margin-right:.5rem}
.opt-price{font-weight:700}
.qty-group{display:flex;gap:.5rem;align-items:center}
.qty-btn{width:36px;height:36px;border-radius:8px;border-color:var(--primary)!important;color:var(--primary)!important}
.qty-btn:hover{background:var(--primary);color:#fff!important}
.opt-row.selected .opt-price{font-weight:800}
.text-success{color:#0d7a2a!important}
.weight-price{font-weight:700}
#wQty{ text-align:center }
@media (max-width: 768px){
  .hero{height:180px}
  .layout{grid-template-columns:1fr;grid-template-areas:'main'}
  .sidebar{display:none}
.chips-bar{display:flex}
.chips-bar .cat-link{border:1px solid #eee;border-radius:999px}
.sidebar .cat-link{display:inline-block;border:1px solid #eee;border-radius:999px}
.chips-bar .cat-link,.sidebar .cat-link{padding:.25rem .6rem; text-decoration:none; color:#333}
.chips-bar .cat-link.active,.sidebar .cat-link.active{border-color:var(--primary);background:rgba(240,96,35,.1);color:var(--primary)}
  .search-bar{margin:.75rem 8px}
  .product-card{padding:.6rem;grid-template-columns:1fr;margin:0 8px}
  .product-card img{width:96px;height:72px}
  .product-title{font-size:.95rem}
  #categoriesWrap .row.g-3{margin-top:0!important;margin-bottom:12px; --bs-gutter-y:8px}
  #searchResults{margin-top:0!important; --bs-gutter-y:8px}
  .bag-bar{width:calc(100% - 24px);bottom:12px}
.offcanvas{max-width:100%}
  .bag-item-title{font-size:.86rem}
}
@media (max-width: 576px){
  html, body{overflow-x:hidden}
  .store-hero{max-width:100%;margin:0 auto;padding:0 8px}
  .layout{max-width:100%;margin:1rem auto}
  #bannersWrap{max-width:100%;margin:0 8px !important;padding:0;width:calc(100% - 16px)}
  .offer-card{max-width:100%;margin:0 8px}
  .offer-card > .d-flex{flex-wrap:wrap;gap:.5rem}
  .discount-hint .hint-wrap{flex-wrap:wrap}
  .cats-search{margin:0 8px}
  .chips-mask,.chips-bar{display:none}
  .cats-panel{gap:.25rem;padding:.4rem}
  .cat-item{padding:.3rem .6rem}
}
  .search-bar{margin:.75rem 8px}
  .search-bar .search-wrap{display:flex;align-items:center;gap:.35rem;width:100%}
  #categoriesWrap{overflow-x:hidden}
  #categoriesWrap .row.g-3{margin-left:0!important;margin-right:0!important;margin-bottom:12px; --bs-gutter-x:8px; padding-left:8px; padding-right:8px}
  #categoriesWrap .product-card{margin:0}
  .discount-hint{margin:0 8px .75rem 8px}
  /* bordas laterais de 8px para todos os cards principais */
  .offer-card, #bannersWrap, .search-bar, .category, .discount-hint, .schedule-card{margin-left:8px !important; margin-right:8px !important}
  .offer-card, #bannersWrap, .search-bar, .category, .discount-hint, .schedule-card{width:calc(100% - 16px)}
  img{max-width:100%;height:auto}
}
.card-footer{width:100%;margin-top:.5rem}
.btn-wide{width:100%;border-radius:10px}
.prod-img.center{display:block;margin:0 auto}
/* Toast customization */
.toast-green{background:#2ef76f!important;border-color:#2ef76f!important;color:#fff!important}
.toast-center{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1080}
.toast-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:1070;display:none;pointer-events:none}
/* Micro animation on add */
.pulse-add{animation:addpulse .12s ease}
@keyframes addpulse{0%{transform:scale(1)}50%{transform:scale(1.04)}100%{transform:scale(1)}}
/* Search clear */
.search-wrap{position:relative;flex:1}
.search-wrap input{width:100%;padding-left:34px}
.search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:18px;color:#999}
.search-clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:transparent;border:none;font-size:18px;color:#999;display:none}
.search-wrap input:not(:placeholder-shown) ~ .search-clear{display:block}
#searchResults .cat-link{color:var(--primary);text-decoration:none}
#searchResults .cat-link:hover{text-decoration:none}

@keyframes pendingPulse {
  0% { background-color: rgba(240,96,35,0.12); }
  50% { background-color: rgba(240,96,35,0.28); }
  100% { background-color: rgba(240,96,35,0.12); }
}
.pending-blink { animation: pendingPulse 1s infinite; }

@keyframes pendingRowPulse {
  0% { background-color: #f27645; }
  50% { background-color: #f06023; }
  100% { background-color: #f27645; }
}
.pending-blink td { animation: pendingRowPulse 1.2s ease-in-out infinite; color:#fff }
.pending-blink td .btn { background:#fff; color:var(--primary)!important; border-color:#fff }
@media (min-width: 769px){
  .layout{grid-template-columns:1fr}
  .layout > .alert{grid-column:1 / -1; text-align:center}
  .sidebar{position:relative;justify-content:center;margin-bottom:1rem}
  .sidebar .cat-link{text-align:center}
  .search-bar{justify-content:center}
  .search-bar input{flex:1 1 100%;max-width:100%;text-align:center}
#categoriesWrap .row.g-3{justify-content:flex-start;margin-top:0!important;margin-bottom:12px; --bs-gutter-y:8px}
#searchResults{margin-top:0!important; --bs-gutter-y:8px; margin-left:8px; margin-right:8px}
  #searchResults{justify-content:center}
  .product-card .product-text{grid-column:1 / -1}
  .product-card .weight-line{align-items:center}
  .product-card .weight-line .weight-add{min-width:280px}
  .card-footer{display:flex;justify-content:center}
.btn-wide{width:auto;min-width:200px}
  .product-card{margin:0 8px}
}
.totem-wrap{min-height:100vh;position:relative;display:flex;align-items:center;justify-content:center}
.totem-hero{position:absolute;inset:0;background-size:cover;background-position:center}
.totem-hero::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.35)}
.totem-screen{position:relative;z-index:1;width:100%;max-width:460px;text-align:center;color:#fff;padding:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center}
.totem-avatar{width:92px;height:92px;border-radius:999px;border:4px solid #fff;object-fit:cover;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.totem-emoji{font-size:64px;line-height:1}
.totem-name{font-weight:800;font-size:1.25rem;margin-top:.5rem}
.totem-cta{margin-top:1rem;padding:.75rem 1.25rem;font-weight:700;border-radius:12px;min-width:220px}
.totem-sub{margin-top:.5rem;color:#f1f1f1}
.totem-title{font-weight:800;font-size:1.4rem;margin-bottom:1rem;color:#fff}
.totem-actions{display:flex;gap:.75rem;flex-direction:column;width:100%;max-width:320px}
.totem-action{padding:.9rem 1rem;border-radius:12px;font-weight:700;width:100%}
.totem-choice{position:fixed;inset:0;background:#fff;color:#333;z-index:2;padding:1.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:none;text-align:center}
.choice-logo{display:flex;flex-direction:column;align-items:center;gap:.5rem}
.choice-icon-top{color:var(--primary)}
.choice-brand{font-weight:800}
.choice-title{font-weight:800;font-size:1.4rem;margin:1rem 0;color:#333}
.choice-grid{display:grid;grid-template-columns:1fr;gap:.75rem;width:100%;max-width:520px;margin:0 auto}
.choice-card{background:#fff;border:1px solid #eee;border-radius:12px;padding:1rem;text-decoration:none;color:#333;display:flex;flex-direction:column;align-items:center;gap:.35rem;transition:box-shadow .2s ease, transform .06s ease}
.choice-card:hover{box-shadow:0 10px 22px rgba(0,0,0,.06)}
.choice-card:active{transform:scale(.98)}
.choice-card-icon{width:48px;height:48px;border-radius:12px;background:rgba(255,106,0,.12);color:var(--primary);display:flex;align-items:center;justify-content:center}
.choice-card-title{font-weight:700}
.choice-card-sub{color:#6d6d6d;font-size:.9rem}
@media(min-width:768px){ .choice-grid{grid-template-columns:1fr 1fr} }
.totem-menu{display:grid;grid-template-columns:280px 1fr;min-height:100vh;background:#fff}
.totem-side{background:#fff;border-right:1px solid #eee;padding:1rem;display:flex;flex-direction:column;gap:1rem}
.totem-brand{display:flex;flex-direction:column;align-items:center;gap:.5rem}
.totem-brand-avatar{width:72px;height:72px;border-radius:999px;border:4px solid #fff;object-fit:cover;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.totem-brand-name{font-weight:800}
.totem-cats{display:flex;flex-direction:column;gap:.35rem}
.totem-cat-link{display:block;padding:.6rem .8rem;border-radius:8px;border:1px solid #eee;color:#333;text-decoration:none}
.totem-cat-link:hover{background:#f7f7f7}
.totem-cat-link.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.totem-top{background:linear-gradient(135deg,#ff8f33,#ff6a00);color:#fff}
.totem-top-inner{max-width:980px;margin:0 auto;padding:1rem 8px}
.totem-top-title{font-weight:800}
.totem-body{max-width:980px;margin:1rem auto;padding:0 8px}
.totem-section{margin-bottom:1rem}
.totem-section-title{font-weight:800;margin:.5rem 0}
.totem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}
.totem-card{background:#fff;border:1px solid #eee;border-radius:12px;padding:.75rem;display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;min-height:240px}
.totem-thumb{width:120px;height:90px;border-radius:10px;object-fit:cover;display:block;margin:0 auto}
.totem-card-text{width:100%;min-height:72px}
.totem-card-title{font-weight:700;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.totem-card-desc{color:#6d6d6d;font-size:.9rem;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.totem-card-price{font-weight:800;color:var(--primary);text-align:left;width:100%;margin-top:auto}
.totem-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:12px;background:#fff;border:1px solid #eee;border-radius:12px;padding:.5rem .75rem;display:flex;gap:.75rem;align-items:center;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.totem-bar-total{font-weight:700}
@media(max-width:768px){ .totem-grid{grid-template-columns:repeat(2,1fr)} .totem-menu{grid-template-columns:1fr} .totem-side{display:none} }
.qty-inline{display:flex;align-items:center}
.qty-inline .qty-input{text-align:center}

@media (orientation: portrait){
  .totem-menu{grid-template-columns:1fr}
  .totem-top-inner{padding:1rem 8px}
  .totem-grid{grid-template-columns:repeat(2,1fr)}
  .totem-card{min-height:280px}
  .totem-thumb{width:140px;height:105px}
  .totem-top-title{font-size:1.2rem}
  .totem-cat-link{padding:.8rem 1rem;font-size:1rem}
  .totem-bar{width:calc(100% - 24px)}
  .totem-bar .btn{min-height:44px}
}
.weight-qty-title{margin-bottom:.25rem}
.card-footer.d-flex{gap:.5rem}
.view-values{color:#0d7a2a;text-decoration:none;font-weight:700;font-size:.9rem}
.view-values:hover{text-decoration:underline}
@media (max-width: 768px){ .view-values{font-size:.88rem} }
.modal-content{border-radius:12px}
#weightModal .modal-body{padding:1rem 1.25rem}
#weightModal .text-success{margin-bottom:.5rem}
#weightModal .options-list{gap:.6rem}
#weightModal .opt-row{display:flex;justify-content:flex-start;align-items:center;padding:.25rem 0}
#weightModal .opt-row span:first-of-type{flex:1}
#weightModal .opt-price{margin-left:auto;text-align:right;font-weight:700;font-size:.95rem}
#weightModal #weightProdDesc{font-size:.9rem;color:#6c757d}
#weightModal .opt-row.selected .opt-price{font-weight:800}
#weightModal .qty-group{gap:.5rem}
#weightModal .qty-btn{width:32px;height:32px;border-radius:8px;border-color:var(--primary)!important;color:var(--primary)!important;border-width:1.5px}
#weightModal .qty-btn:hover{background:var(--primary);color:#fff!important}
#weightModal #wQty{height:36px}
.layout main .alert{font-size:.9rem;text-align:center;margin:0 8px}
