:root{
  --green:#16a34a;--green-dark:#087a36;--lime:#dcfce7;--orange:#f97316;--ink:#172033;--muted:#667085;--line:#e7edf3;--bg:#f4f7f6;--card:#ffffff;--shadow:0 18px 45px rgba(15,23,42,.10);--soft-shadow:0 10px 26px rgba(15,23,42,.07);--radius:22px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:radial-gradient(circle at top left,#e9fff2 0,#f4f7f6 34%,#f7f8fb 100%);color:var(--ink)}a{color:inherit}.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.86);backdrop-filter:blur(18px);border-bottom:1px solid rgba(231,237,243,.9);padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:900;font-size:22px;color:var(--green-dark);letter-spacing:-.03em}.brand:before{content:'🛒';display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:linear-gradient(135deg,var(--green),#65d46e);box-shadow:0 10px 22px rgba(22,163,74,.24);font-size:20px}.topbar nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.topbar nav a{color:#314155;text-decoration:none;font-weight:700;padding:10px 14px;border-radius:999px;background:#fff;border:1px solid #edf1f5}.topbar nav a:hover{border-color:#b9eac8;color:var(--green-dark);box-shadow:var(--soft-shadow)}.container{max-width:1280px;margin:0 auto;padding:24px 16px 44px}.footer{text-align:center;padding:28px;color:#7b8794}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px}.card{background:rgba(255,255,255,.94);border:1px solid rgba(231,237,243,.85);border-radius:var(--radius);padding:20px;box-shadow:var(--soft-shadow)}.hero-slider{height:330px;border-radius:30px;overflow:hidden;position:relative;margin:2px 0 18px;background:#d7dde6;box-shadow:var(--shadow)}.hero-slider .slide{position:absolute;inset:0;opacity:0;transition:opacity .7s ease;text-decoration:none;color:white}.hero-slider .slide.active{opacity:1}.hero-slider img{width:100%;height:100%;object-fit:cover;filter:brightness(.76) saturate(1.08)}.hero-slider:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,60,32,.70),rgba(8,60,32,.10) 55%,rgba(0,0,0,.12));pointer-events:none}.hero-slider .slide span{position:absolute;z-index:2;left:34px;bottom:36px;max-width:620px;font-size:42px;line-height:1.02;font-weight:950;letter-spacing:-.05em;text-shadow:0 12px 35px rgba(0,0,0,.35)}.slider-dots{position:absolute;z-index:3;right:24px;bottom:24px;display:flex;gap:8px;background:rgba(255,255,255,.18);padding:8px;border-radius:999px;backdrop-filter:blur(10px)}.slider-dots button{width:10px;height:10px;border-radius:50%;border:0;background:rgba(255,255,255,.55);cursor:pointer}.slider-dots button.active{width:28px;background:#fff}.search-hero{display:grid;grid-template-columns:1fr minmax(360px,540px);align-items:center;gap:22px;margin:18px 0}.search-hero h1{margin:0 0 6px;font-size:34px;letter-spacing:-.04em}.search-hero p{margin:0}.smart-search{display:flex;gap:8px;align-items:center;width:100%;background:#fff;border:1px solid #dbe7df;border-radius:20px;padding:8px;box-shadow:0 18px 35px rgba(22,163,74,.10)}.smart-search:before{content:'🔎';font-size:20px;padding-left:10px}.smart-search input{border:0;outline:0;flex:1;padding:14px 8px;font-size:16px;background:transparent}.smart-search button{border:0;background:linear-gradient(135deg,var(--green),var(--green-dark));color:white;padding:14px 20px;font-weight:900;border-radius:15px;cursor:pointer;box-shadow:0 10px 20px rgba(22,163,74,.22)}.category-menu{display:flex;gap:14px;overflow-x:auto;margin:18px 0 24px;padding:3px 2px 12px;scrollbar-width:thin}.cat-card{min-width:118px;background:#fff;border-radius:22px;padding:16px 13px;text-align:center;text-decoration:none;color:#233044;box-shadow:var(--soft-shadow);border:1px solid #eaf0f5;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.cat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.cat-card.selected{border-color:#76d391;background:linear-gradient(180deg,#fff,#f0fff4)}.cat-card span,.cat-emoji{font-size:31px;display:block;margin-bottom:6px}.cat-card strong{display:block;font-size:13px;line-height:1.15}.cat-card img,.tiny-icon{width:36px;height:36px;object-fit:contain;margin-bottom:6px}.store-layout{display:grid;grid-template-columns:165px 1fr 165px;gap:18px;align-items:start}.ad-column{display:flex;flex-direction:column;gap:14px;position:sticky;top:86px}.side-banner,.wide-banner{display:block;background:#fff;border-radius:22px;overflow:hidden;text-decoration:none;color:#18202a;box-shadow:var(--soft-shadow);border:1px solid #eaf0f5;margin-bottom:14px}.side-banner img{width:100%;height:238px;object-fit:cover;display:block}.side-banner span{display:block;padding:12px;font-weight:900;font-size:13px}.wide-banner img{width:100%;max-height:175px;object-fit:cover;display:block}.products-grid{align-items:stretch}.product{position:relative;overflow:hidden;padding:14px;display:flex;flex-direction:column;transition:transform .15s ease, box-shadow .15s ease}.product:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.product img{width:100%;height:158px;object-fit:cover;border-radius:18px;background:#eef2f6}.product h3{font-size:17px;line-height:1.2;margin:10px 0 6px;min-height:41px}.product h3 a{text-decoration:none;color:#172033}.product-desc{height:39px;overflow:hidden;margin:0 0 6px}.pill{display:inline-flex;align-items:center;gap:5px;background:#eefbf2;color:#087a36;border:1px solid #c8f2d5;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;margin-top:10px}.price{font-size:22px;font-weight:950;color:var(--green-dark);letter-spacing:-.03em;margin:8px 0}.big-price{font-size:38px}.muted{color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:linear-gradient(135deg,var(--green),var(--green-dark));color:white;padding:12px 16px;border-radius:15px;text-decoration:none;cursor:pointer;font-weight:900;box-shadow:0 10px 20px rgba(22,163,74,.20)}.btn:hover{filter:brightness(.98);transform:translateY(-1px)}.btn.secondary{background:#344054;box-shadow:none}.btn.danger{background:#d92d20;box-shadow:none}.btn.light{background:#fff;color:var(--green-dark);border:1px solid #bfeeca;box-shadow:none}.input,select,textarea{width:100%;padding:13px 14px;border:1px solid #d9e2ea;border-radius:15px;background:white;font-size:15px;outline:0}textarea{resize:vertical}.input:focus,select:focus,textarea:focus{border-color:#74d58f;box-shadow:0 0 0 4px rgba(22,163,74,.10)}label{display:block;margin:12px 0 7px;font-weight:850;color:#2d3748}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.table{width:100%;border-collapse:separate;border-spacing:0;background:white;border-radius:20px;overflow:hidden;box-shadow:var(--soft-shadow)}.table th,.table td{padding:14px;border-bottom:1px solid #eef1f5;text-align:left}.table th{background:#f8fafb;font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:#536172}.alert{padding:14px 16px;border-radius:16px;background:#ecfdf3;color:#05603a;margin-bottom:16px;font-weight:700}.error{background:#fef3f2;color:#b42318}.buy-row{display:flex;gap:9px;align-items:end;margin-top:auto}.buy-row .qty{max-width:78px;text-align:center}.product-page{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center}.product-big{width:100%;height:455px;object-fit:cover;border-radius:24px;background:#eee;box-shadow:var(--soft-shadow)}.product-buy{max-width:280px}.banner-thumb{width:120px;height:54px;object-fit:cover;border-radius:10px}.searchbar{display:flex;gap:10px}.checkout-shell{display:grid;grid-template-columns:1fr 340px;gap:20px;align-items:start}.checkout-form h2{margin:10px 0 2px;font-size:24px;letter-spacing:-.03em}.form-section{border:1px solid #edf1f5;border-radius:22px;padding:18px;margin:16px 0;background:#fff}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0 16px}.choice-card{position:relative;display:block;margin:0;cursor:pointer}.choice-card input{position:absolute;opacity:0;pointer-events:none}.choice-ui{height:100%;border:2px solid #e3e9ef;background:#fff;border-radius:20px;padding:18px;display:flex;gap:13px;align-items:flex-start;transition:.15s ease;box-shadow:0 8px 20px rgba(15,23,42,.04)}.choice-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:15px;background:#eefbf2;font-size:24px}.choice-ui strong{display:block;font-size:16px;color:#1f2937}.choice-ui small{display:block;margin-top:4px;color:#667085;line-height:1.35}.choice-card input:checked + .choice-ui{border-color:var(--green);background:linear-gradient(180deg,#fff,#f0fff4);box-shadow:0 16px 30px rgba(22,163,74,.12)}.choice-card input:checked + .choice-ui:after{content:'✓';position:absolute;right:14px;top:14px;display:grid;place-items:center;width:26px;height:26px;border-radius:999px;background:var(--green);color:white;font-weight:900}.checkout-summary{position:sticky;top:90px}.summary-line{display:flex;justify-content:space-between;gap:14px;margin:10px 0}.admin-layout{display:grid;grid-template-columns:230px 1fr;gap:20px}.sidebar{background:white;padding:16px;border-radius:20px;height:max-content;box-shadow:var(--soft-shadow)}.sidebar a{display:block;color:#18202a;text-decoration:none;padding:11px;border-radius:12px;font-weight:750}.sidebar a:hover{background:#f1f9f4;color:var(--green-dark)}
@media(max-width:1050px){.store-layout{grid-template-columns:1fr}.ad-column{display:none}.search-hero{grid-template-columns:1fr}.hero-slider{height:260px}.checkout-shell{grid-template-columns:1fr}.checkout-summary{position:static}}
@media(max-width:720px){.container{padding:14px 12px 36px}.row,.admin-layout,.product-page,.choice-grid{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column;padding:12px 14px}.topbar nav a{padding:9px 11px;font-size:14px}.hero-slider{height:210px;border-radius:22px}.hero-slider .slide span{font-size:28px;left:22px;bottom:28px}.search-hero h1{font-size:28px}.smart-search{border-radius:18px}.smart-search button{padding:13px 14px}.searchbar{display:block}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product{padding:10px;border-radius:18px}.product img{height:118px;border-radius:14px}.product h3{font-size:14px;min-height:35px}.product-desc{display:none}.price{font-size:18px}.buy-row{display:grid;grid-template-columns:65px 1fr}.btn{padding:11px 12px}.product-big{height:310px}.table{font-size:13px}.table th,.table td{padding:10px}.side-banner img{height:180px}}
/* V4 - melhorias de layout e dashboard */
.brand.brand-image:before{display:none}.brand.brand-image img{max-height:48px;max-width:210px;object-fit:contain;display:block}.brand span{display:inline-block}.storefront-topbar{border-bottom:1px solid rgba(225,232,240,.8)}
.admin-body{background:#f5f7fb}.admin-content{min-width:0}.admin-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.admin-head h1{margin:0;font-size:32px;letter-spacing:-.04em}.admin-head p{margin:4px 0 0}.admin-card{padding:0;overflow:hidden}.admin-form{max-width:980px}.admin-form h2{font-size:22px;margin:4px 0 12px;letter-spacing:-.03em}.admin-product{display:flex;align-items:center;gap:12px}.admin-product img{width:52px;height:52px;border-radius:14px;object-fit:cover;background:#eef2f6}.status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}.status-badge.on{background:#ecfdf3;color:#067647}.status-badge.off{background:#f2f4f7;color:#667085}.upload-box{display:grid;grid-template-columns:180px 1fr;gap:18px;align-items:center;margin:18px 0;padding:16px;border:1px dashed #cfd9e4;border-radius:20px;background:#fbfcfe}.preview-img{width:170px;height:110px;border-radius:18px;object-fit:cover;background:#eef2f6}.preview-logo{max-width:170px;max-height:90px;object-fit:contain;background:#fff;border-radius:16px;padding:10px;border:1px solid #edf1f5}.preview-icon{width:78px;height:78px;object-fit:contain;border-radius:18px;background:#fff;border:1px solid #edf1f5;padding:8px}.switch-line{display:inline-flex;align-items:center;gap:8px;margin:0}.soft-hr{border:0;border-top:1px solid #edf1f5;margin:26px 0}.choice-ui{border-radius:24px}.choice-card input:checked + .choice-ui{transform:translateY(-1px)}.choice-card:nth-child(2) input:checked + .choice-ui{border-color:#f04438;background:linear-gradient(180deg,#fff,#fff5f4);box-shadow:0 16px 30px rgba(217,45,32,.10)}.choice-card:nth-child(2) input:checked + .choice-ui:after{background:#f04438}.choice-card:nth-child(2) .choice-icon{background:#fff1f0}.search-hero{background:linear-gradient(135deg,#ffffff 0%,#f2fff5 55%,#e8f8ff 100%);border:1px solid #dff5e8}.product{border-radius:24px}.topbar{backdrop-filter:blur(16px)}
@media(max-width:720px){.admin-head{align-items:flex-start;flex-direction:column}.upload-box{grid-template-columns:1fr}.brand.brand-image img{max-width:170px}.admin-layout{gap:12px}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:6px}.sidebar a{font-size:13px;padding:9px}.admin-head h1{font-size:26px}}

/* V5 - Home estilo supermercado online compacto */
.container{max-width:1160px;padding-top:16px;background:#fff;min-height:calc(100vh - 80px)}
body{background:#ffffff;color:#111827}.topbar{box-shadow:0 2px 18px rgba(15,23,42,.06)}
.market-slider{width:100%;aspect-ratio:4/1;min-height:150px;max-height:320px;border-radius:18px;overflow:hidden;position:relative;margin:0 0 18px;background:#eef2f7;border:1px solid #eef1f5}.market-slide{position:absolute;inset:0;opacity:0;transition:.6s ease;text-decoration:none;color:#fff}.market-slide.active{opacity:1}.market-slide img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}.market-slide:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.48),rgba(0,0,0,.08))}.market-slide strong{position:absolute;left:28px;bottom:24px;z-index:2;font-size:34px;line-height:1.04;letter-spacing:-.04em;max-width:520px}.market-search-panel{display:grid;grid-template-columns:1fr minmax(360px,520px);align-items:center;gap:20px;margin:0 0 16px;padding:18px 22px;border:1px solid #e9eef4;border-radius:18px;background:linear-gradient(135deg,#ffffff,#f6fff9)}.market-search-panel h1{margin:0 0 6px;font-size:28px;letter-spacing:-.04em}.market-search-panel p{margin:0;color:#667085}.market-search{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 14px;border:1px solid #dfe7ef;background:#fff;border-radius:999px;box-shadow:0 10px 25px rgba(15,23,42,.06)}.market-search input{border:0;outline:0;background:transparent;flex:1;min-width:0;padding:12px 8px;font-size:15px}.market-search button{border:0;border-radius:999px;background:#159947;color:#fff;font-weight:900;padding:12px 20px;cursor:pointer}.market-categories-wrap{margin:6px 0 20px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px;border-bottom:1px solid #e5e7eb;padding-bottom:8px}.section-title h2{margin:0;font-size:16px;letter-spacing:-.02em}.section-title a{font-size:12px;text-decoration:none;color:#2563eb;font-weight:800}.market-categories{display:flex;gap:20px;overflow-x:auto;overflow-y:hidden;padding:2px 4px 10px;scrollbar-width:none;-ms-overflow-style:none}.market-categories::-webkit-scrollbar,.product-rail::-webkit-scrollbar{display:none}.market-cat{flex:0 0 92px;text-align:center;text-decoration:none;color:#111827}.cat-circle{width:76px;height:76px;border-radius:999px;display:grid;place-items:center;margin:0 auto 7px;background:#1669b7;color:white;font-size:36px;border:3px solid #e7f0ff;box-shadow:0 6px 14px rgba(20,96,170,.18);overflow:hidden}.cat-circle img{width:100%;height:100%;object-fit:cover}.market-cat strong{display:block;font-size:12px;line-height:1.12;font-weight:700}.market-cat.selected .cat-circle{background:#16a34a;box-shadow:0 8px 18px rgba(22,163,74,.22)}.promo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.promo-grid-all{grid-template-columns:repeat(3,minmax(0,1fr))}.promo-card{display:block;min-height:90px;border-radius:14px;overflow:hidden;background:#f3f4f6;border:1px solid #e5e7eb;position:relative;text-decoration:none;color:#111827}.promo-card img{width:100%;height:120px;object-fit:cover;display:block}.promo-card span{position:absolute;left:10px;bottom:10px;background:rgba(255,255,255,.92);border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900}.product-section{margin:0 0 22px}.product-rail{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding:0 2px 8px}.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}.market-product-card{position:relative;flex:0 0 170px;min-height:282px;border:1px solid #d9e1ea;background:#fff;border-radius:4px;padding:10px;scroll-snap-align:start;box-shadow:0 2px 5px rgba(15,23,42,.04)}.market-product-card:hover{border-color:#b8c4d2;box-shadow:0 8px 20px rgba(15,23,42,.08)}.product-menu-dot{position:absolute;right:8px;top:7px;z-index:3;color:#94a3b8;text-decoration:none;font-size:14px}.market-product-image{height:130px;display:grid;place-items:center;margin:4px 0 6px;text-decoration:none}.market-product-image img{max-width:100%;max-height:128px;width:100%;height:128px;object-fit:contain;background:#fff}.offer-badge{display:inline-flex;background:#1d66c2;color:#fff;font-size:9px;font-weight:900;border-radius:3px;padding:3px 5px;margin-bottom:5px}.market-product-card h3{margin:2px 0 4px;min-height:34px;font-size:11px;line-height:1.25;font-weight:500}.market-product-card h3 a{text-decoration:none;color:#334155}.unit-line{margin:0 0 8px;color:#94a3b8;font-size:9px;min-height:12px}.card-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:auto}.compact-price{font-size:18px;letter-spacing:-.04em;color:#111827}.card-bottom small{display:block;color:#64748b;font-size:10px}.plus-btn{width:34px;height:34px;border:0;border-radius:999px;background:#e92c3a;color:#fff;font-size:24px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 6px 12px rgba(233,44,58,.22)}.plus-btn:hover{filter:brightness(.96);transform:translateY(-1px)}.store-layout{display:block}.ad-column{display:none}.category-menu{scrollbar-width:none}.category-menu::-webkit-scrollbar{display:none}.products-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.product{max-width:none}.wide-banner,.side-banner{display:none}
@media(max-width:900px){.market-search-panel{grid-template-columns:1fr}.market-slider{min-height:120px;max-height:220px}.market-slide strong{font-size:26px}.promo-grid,.promo-grid-all{grid-template-columns:1fr}.container{padding-left:10px;padding-right:10px}.market-categories{gap:14px}.market-cat{flex-basis:78px}.cat-circle{width:64px;height:64px;font-size:30px}.market-product-card{flex-basis:158px}.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.market-search{border-radius:18px}.market-search button{padding:11px 14px}.market-search-panel{padding:14px}.market-search-panel h1{font-size:23px}.market-slider{min-height:96px;max-height:165px;border-radius:14px}.market-slide strong{left:16px;bottom:16px;font-size:19px;max-width:76%}.product-rail{gap:10px}.market-product-card{flex-basis:145px;min-height:265px;padding:8px}.market-product-image,.market-product-image img{height:112px}.compact-price{font-size:16px}.plus-btn{width:32px;height:32px;font-size:22px}}


/* V6 - ajustes supermercado, cores, tags, impressão e whatsapp */
.btn,.smart-search button,.market-search button{background:var(--green)!important;box-shadow:0 8px 18px color-mix(in srgb,var(--green) 25%,transparent)}
.plus-btn,.offer-badge{background:var(--accent)!important}.tag-badge{display:inline-flex;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:9px;font-weight:900;border-radius:3px;padding:3px 5px;margin:0 2px 5px 0}.tag-badge.big,.offer-badge.big{font-size:12px;border-radius:999px;padding:6px 10px}.badge-line{min-height:22px;display:flex;flex-wrap:wrap;align-items:center}.product-tags{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.promo-grid-all .promo-card span{display:none}.whatsapp-btn{background:#25D366!important;color:#073b1d!important}.summary-box{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:14px;margin:14px 0}.big-total{font-size:30px;color:var(--green)}.qty-small{max-width:110px}.print-sheet{background:#fff}.print-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:3px solid #111827;padding-bottom:16px;margin-bottom:16px}.print-header h1{margin:0;font-size:34px}.print-header p{margin:4px 0 0;color:#667085}.print-total{font-size:32px;font-weight:950}.print-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.check-cell{font-size:24px;text-align:center}.print-table th,.print-table td{font-size:14px}.admin-head code{background:#f2f4f7;border-radius:8px;padding:4px 8px}.market-product-card{display:flex;flex-direction:column}.card-bottom{margin-top:auto}
@media print{body{background:#fff!important}.topbar,.sidebar,.no-print,.admin-topbar,.footer{display:none!important}.container,.admin-layout,.admin-content{max-width:none!important;margin:0!important;padding:0!important;display:block!important}.card,.print-sheet{box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important}.table{box-shadow:none!important;border:1px solid #111!important}.table th,.table td{border-bottom:1px solid #222!important;color:#000!important}.print-header{border-bottom:3px solid #000!important}.print-grid{grid-template-columns:repeat(2,1fr)!important}.print-table{page-break-inside:auto}.print-table tr{page-break-inside:avoid}}
@media(max-width:720px){.print-grid{grid-template-columns:1fr}.admin-head{gap:10px}.big-total{font-size:24px}.market-product-card{min-height:285px}}

/* V7 - personalizacao facil, promocao destacada e filtros */
.btn-style-pill .btn,
.btn-style-pill .market-search button,
.btn-style-pill .smart-search button,
.btn-style-pill .plus-btn{border-radius:999px!important}
.btn-style-rounded .btn,
.btn-style-rounded .market-search button,
.btn-style-rounded .smart-search button{border-radius:16px!important}
.btn-style-rounded .plus-btn{border-radius:14px!important}
.btn-style-square .btn,
.btn-style-square .market-search button,
.btn-style-square .smart-search button,
.btn-style-square .plus-btn{border-radius:4px!important;box-shadow:none!important}
.btn-style-soft .btn,
.btn-style-soft .market-search button,
.btn-style-soft .smart-search button{border-radius:14px!important;background:linear-gradient(180deg,var(--green),color-mix(in srgb,var(--green) 82%,#000))!important;box-shadow:0 12px 28px color-mix(in srgb,var(--green) 20%,transparent)!important}
.btn-style-soft .plus-btn{border-radius:12px!important;background:linear-gradient(180deg,var(--accent),color-mix(in srgb,var(--accent) 80%,#000))!important}
.button-style-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:8px 0 4px}.button-style-options label{margin:0;display:flex;align-items:center;gap:8px;border:1px solid #edf1f5;border-radius:16px;padding:10px;background:#fff}.sample-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;background:var(--green);color:#fff;font-size:12px;font-weight:900}.sample-pill{border-radius:999px}.sample-rounded{border-radius:14px}.sample-square{border-radius:4px}.sample-soft{border-radius:14px;background:linear-gradient(180deg,var(--green),color-mix(in srgb,var(--green) 82%,#000));box-shadow:0 8px 16px color-mix(in srgb,var(--green) 20%,transparent)}
.sort-select{max-width:150px;border:0;background:#f8fafc;border-left:1px solid #e5e7eb;border-radius:0;padding:10px 6px;color:#334155;font-weight:800;outline:0}.market-search .sort-select{height:42px}.market-product-card.is-promo{border-color:color-mix(in srgb,var(--accent) 55%,#fff);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 25%,transparent),0 0 24px color-mix(in srgb,var(--accent) 24%,transparent),0 10px 24px rgba(15,23,42,.08);overflow:hidden}.market-product-card.is-promo:before{content:'';position:absolute;inset:-40px;background:radial-gradient(circle at top,color-mix(in srgb,var(--accent) 28%,transparent),transparent 48%);pointer-events:none;z-index:0}.market-product-card.is-promo>*{position:relative;z-index:1}.promo-ribbon{position:absolute!important;top:0;left:0;right:0;z-index:4!important;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 78%,#111));color:#fff;text-transform:uppercase;letter-spacing:.04em;font-size:9px;font-weight:950;text-align:center;padding:5px 4px}.market-product-card.is-promo .market-product-image{margin-top:18px}.tag-badge{background:#f8fafc!important;color:#475467!important;border-color:#e4e7ec!important;font-weight:800!important}.status-badge.sale{background:#fff4e5;color:#b54708}.promo-admin-box{border-color:color-mix(in srgb,var(--accent) 28%,#edf1f5);background:linear-gradient(180deg,#fff,#fffaf6)}
@media(max-width:720px){.button-style-options{grid-template-columns:1fr 1fr}.market-search{flex-wrap:wrap;border-radius:18px}.market-search input{flex:1 1 100%}.sort-select{max-width:none;flex:1;border:1px solid #e5e7eb;border-radius:12px}.market-search button{flex:1}}


/* V8 - layout facil, header configuravel e seletores de cor */
.topbar{background:var(--header-bg)!important}
.color-field{display:grid;grid-template-columns:58px 1fr;gap:10px;align-items:center}.color-field input[type=color]{width:58px;height:48px;padding:4px;border:1px solid #d9e2ea;border-radius:14px;background:#fff;cursor:pointer}.color-field .color-text{height:48px;background:#f8fafc;color:#475467;font-weight:800}.layout-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0 18px}.layout-options div{border:1px solid #e5e7eb;border-radius:16px;background:#fff;padding:12px}.layout-options strong{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--green);color:#fff;margin-bottom:8px}.layout-options span{display:block;font-size:12px;font-weight:800;color:#475467;line-height:1.25}

/* 1 - layout supermercado: padrao */
.layout-supermarket .product-rail{display:flex}.layout-supermarket .market-categories-wrap{display:block}

/* 2 - menu lateral em lista */
.layout-sidebar .market-categories-wrap{float:left;width:235px;margin:0 22px 24px 0;position:sticky;top:86px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;box-shadow:0 8px 20px rgba(15,23,42,.05)}
.layout-sidebar .market-categories-wrap .section-title{margin:0 0 10px;padding-bottom:8px}.layout-sidebar .market-categories{display:flex;flex-direction:column;gap:6px;overflow:visible;padding:0}.layout-sidebar .market-cat{flex:none;display:flex;align-items:center;gap:10px;text-align:left;padding:9px;border-radius:12px}.layout-sidebar .market-cat:hover,.layout-sidebar .market-cat.selected{background:#f0fff4}.layout-sidebar .cat-circle{width:42px;height:42px;margin:0;font-size:22px;border-width:2px}.layout-sidebar .market-cat strong{font-size:13px}.layout-sidebar .product-section,.layout-sidebar .market-grid,.layout-sidebar .promo-grid,.layout-sidebar .market-slider,.layout-sidebar .market-search-panel{margin-left:260px}.layout-sidebar .product-rail{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));overflow:visible}.layout-sidebar .market-product-card{flex:auto}.layout-sidebar:after{content:'';display:block;clear:both}

/* 3 - grade ampla */
.layout-grid .market-categories{justify-content:flex-start}.layout-grid .product-rail{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));overflow:visible}.layout-grid .market-product-card{flex:auto;min-height:300px}.layout-grid .market-product-image,.layout-grid .market-product-image img{height:145px}.layout-grid .section-title a{display:none}

/* 4 - compacto */
.layout-compact .container{max-width:1160px}.layout-compact .market-search-panel{padding:12px 16px}.layout-compact .market-search-panel h1{font-size:22px}.layout-compact .cat-circle{width:58px;height:58px;font-size:27px}.layout-compact .market-cat{flex-basis:74px}.layout-compact .market-product-card{flex-basis:150px;min-height:246px;padding:8px}.layout-compact .market-product-image,.layout-compact .market-product-image img{height:104px}.layout-compact .compact-price{font-size:16px}.layout-compact .plus-btn{width:31px;height:31px;font-size:21px}.layout-compact .product-rail{gap:10px}.layout-compact .market-product-card h3{min-height:30px;font-size:10px}.layout-compact .unit-line{font-size:8px}.layout-compact .promo-ribbon{font-size:8px;padding:4px}

@media(max-width:900px){.layout-sidebar .market-categories-wrap{float:none;width:auto;position:static;margin:6px 0 20px}.layout-sidebar .market-categories{flex-direction:row;overflow-x:auto}.layout-sidebar .market-cat{flex:0 0 92px;display:block;text-align:center}.layout-sidebar .cat-circle{width:64px;height:64px;margin:0 auto 7px}.layout-sidebar .product-section,.layout-sidebar .market-grid,.layout-sidebar .promo-grid,.layout-sidebar .market-slider,.layout-sidebar .market-search-panel{margin-left:0}.layout-sidebar .product-rail{display:flex;overflow-x:auto}.layout-options{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.color-field{grid-template-columns:52px 1fr}.layout-options{grid-template-columns:1fr}.layout-grid .product-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-grid .market-product-card{min-height:270px}}

/* V9 - filtros por categoria, subcategorias e footer editavel */
.market-search .sort-select{display:none!important}
.category-filter-panel{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:20px 0;flex-wrap:wrap}.category-filter-panel h2{margin:0 0 4px}.subcategory-chips{display:flex;gap:8px;flex-wrap:wrap;flex:1 1 100%;margin-top:4px}.chip{display:inline-flex;align-items:center;padding:9px 14px;border-radius:999px;border:1px solid #dbe6ee;background:#fff;text-decoration:none;font-weight:800;color:#334155}.chip.active,.chip:hover{border-color:var(--green);background:#ecfdf3;color:var(--green-dark)}.category-sort-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}.category-sort-form label{font-weight:900}.category-sort-form select{height:42px;border:1px solid #dbe6ee;border-radius:14px;padding:0 12px;background:#fff;font-weight:800}.clear-filter{color:var(--green-dark);font-weight:800;text-decoration:none}.content-page{max-width:960px;margin:20px auto;line-height:1.7}.content-page h1{font-size:34px;margin-top:0}
.site-footer{background:#fff;margin-top:44px;padding:34px 20px 24px;border-top:1px solid #e5e7eb;color:#263244}.footer-columns{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:1.1fr 1fr 1fr 1.1fr;gap:44px}.footer-col{display:flex;flex-direction:column;gap:10px}.footer-col h3{font-size:18px;margin:0 0 6px;color:#111827}.footer-col a,.footer-col span,.footer-col p{font-size:15px;color:#4b5563;text-decoration:none;margin:0}.footer-col a:hover{color:var(--green-dark)}.footer-spaced{margin-top:30px!important}.app-badges{display:flex;gap:10px;flex-wrap:wrap}.app-badges img{height:42px;width:auto;object-fit:contain}.security-img{max-width:180px;height:auto;object-fit:contain}.security-fake{display:inline-flex;align-items:center;gap:8px;font-size:18px;color:var(--green-dark)}.social-icons{display:flex;gap:12px}.social-icons a{width:44px;height:44px;border-radius:10px;background:#e5e7eb;display:grid;place-items:center;font-size:25px;color:#1f2937}.payment-img{max-width:230px;max-height:50px;object-fit:contain;object-position:left}.developer-img{max-width:190px;max-height:60px;object-fit:contain;object-position:left;filter:grayscale(1);opacity:.8}.footer-legal{max-width:1280px;margin:34px auto 0;padding-top:26px;border-top:1px solid #e5e7eb;font-size:14px;line-height:1.45;color:#4b5563}.footer-bottom{max-width:1280px;margin:26px auto 0;padding-top:22px;border-top:1px solid #e5e7eb;font-size:14px;color:#4b5563;line-height:1.55}.floating-whatsapp{position:fixed;right:20px;bottom:22px;width:56px;height:56px;border-radius:50%;background:#1f5b96;color:#fff;text-decoration:none;display:grid;place-items:center;font-size:30px;box-shadow:0 12px 28px rgba(0,0,0,.22);z-index:50}.small-preview{max-height:70px;object-fit:contain}.soft-card{background:#f8fafc;box-shadow:none;border-style:dashed}
@media(max-width:900px){.footer-columns{grid-template-columns:1fr 1fr}.category-filter-panel{display:block}.category-sort-form{margin-top:14px}.site-footer{padding-bottom:90px}}
@media(max-width:560px){.footer-columns{grid-template-columns:1fr;gap:26px}.footer-legal,.footer-bottom{font-size:13px}.category-sort-form{align-items:stretch}.category-sort-form select{width:100%}}


/* V10 - LGPD, layouts revisados e dashboard responsivo */
.admin-card{overflow-x:auto}.admin-card .table{min-width:760px}.table td:last-child{white-space:normal}.table td:last-child .btn,.table td:last-child button.btn{padding:8px 10px;font-size:12px;min-height:34px;border-radius:10px;margin:2px;box-shadow:none}.admin-head{flex-wrap:wrap}.admin-head>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-head .btn{white-space:nowrap}.alert .btn{padding:8px 12px;font-size:13px;margin-left:8px}.button-style-options{grid-template-columns:repeat(2,minmax(0,1fr))}.button-style-options label{min-width:0;align-items:center}.sample-btn{width:100%;font-size:11px;padding:8px 10px}.admin-form .btn{max-width:max-content}.searchbar{align-items:center}.searchbar .btn{padding:11px 14px;white-space:nowrap}.cookie-consent{position:fixed;left:18px;right:18px;bottom:18px;z-index:1000;max-width:1180px;margin:0 auto;background:#fff;border:1px solid #dfe7ef;border-radius:18px;box-shadow:0 18px 50px rgba(15,23,42,.22);padding:16px;gap:16px;align-items:center;justify-content:space-between}.cookie-text{display:flex;flex-direction:column;gap:4px;color:#334155;line-height:1.35}.cookie-text strong{color:#111827;font-size:16px}.cookie-text span{font-size:14px}.cookie-text a{font-size:13px;font-weight:900;color:var(--green-dark);text-decoration:none}.cookie-accept{border:0;background:var(--green);color:#fff;font-weight:950;border-radius:14px;padding:12px 18px;cursor:pointer;white-space:nowrap}.site-footer{margin-bottom:0}

/* Layout 1: supermercado com trilhos horizontais */
.layout-supermarket .market-search-panel{background:linear-gradient(135deg,#ffffff 0%,#f3fff6 65%,#edf7ff 100%);border-radius:22px}.layout-supermarket .product-rail{display:flex;overflow-x:auto;padding-bottom:12px}.layout-supermarket .market-product-card{border-radius:8px}.layout-supermarket .market-categories{padding-bottom:12px}.layout-supermarket .section-title h2{font-size:18px}

/* Layout 2: departamentos à esquerda */
.layout-sidebar .container{max-width:1320px}.layout-sidebar .market-categories-wrap{float:none;width:auto;margin:0;position:sticky;top:86px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;box-shadow:0 8px 20px rgba(15,23,42,.05)}.layout-sidebar .market-page-shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start}.layout-sidebar .market-main{min-width:0}.layout-sidebar .market-categories{display:flex;flex-direction:column;gap:6px;overflow:visible;padding:0}.layout-sidebar .market-cat{flex:none;display:flex;align-items:center;gap:10px;text-align:left;padding:9px;border-radius:12px}.layout-sidebar .market-cat:hover,.layout-sidebar .market-cat.selected{background:#f0fff4}.layout-sidebar .cat-circle{width:42px;height:42px;margin:0;font-size:22px;border-width:2px}.layout-sidebar .market-cat strong{font-size:13px}.layout-sidebar .product-rail{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));overflow:visible}.layout-sidebar .market-product-card{flex:auto}.layout-sidebar .market-slider,.layout-sidebar .market-search-panel,.layout-sidebar .promo-grid,.layout-sidebar .product-section,.layout-sidebar .market-grid{margin-left:0!important}

/* Layout 3: vitrine em grade */
.layout-grid .container{max-width:1240px}.layout-grid .market-categories{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;overflow:visible}.layout-grid .market-cat{flex:auto;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:12px}.layout-grid .cat-circle{width:58px;height:58px;font-size:26px}.layout-grid .product-rail{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));overflow:visible}.layout-grid .market-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.layout-grid .market-product-card{flex:auto;min-height:310px;border-radius:16px}.layout-grid .market-product-image,.layout-grid .market-product-image img{height:150px}.layout-grid .section-title{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:12px 14px}.layout-grid .section-title a{display:inline-flex}

/* Layout 4: compacto e promocional */
.layout-compact .container{max-width:1120px}.layout-compact .market-slider{max-height:230px}.layout-compact .market-search-panel{padding:12px 16px;border-radius:14px}.layout-compact .market-search-panel h1{font-size:22px}.layout-compact .market-categories{gap:10px}.layout-compact .cat-circle{width:54px;height:54px;font-size:25px}.layout-compact .market-cat{flex-basis:70px}.layout-compact .product-section{margin-bottom:14px}.layout-compact .product-rail{gap:8px}.layout-compact .market-product-card{flex-basis:145px;min-height:236px;padding:8px;border-radius:8px}.layout-compact .market-product-image,.layout-compact .market-product-image img{height:100px}.layout-compact .compact-price{font-size:15px}.layout-compact .plus-btn{width:30px;height:30px;font-size:20px}.layout-compact .market-product-card h3{min-height:30px;font-size:10px}.layout-compact .unit-line{font-size:8px}.layout-compact .promo-ribbon{font-size:8px;padding:4px}.layout-compact .promo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

@media(max-width:900px){.layout-sidebar .market-page-shell{grid-template-columns:1fr}.layout-sidebar .market-categories-wrap{position:static}.layout-sidebar .market-categories{flex-direction:row;overflow-x:auto}.layout-sidebar .market-cat{flex:0 0 92px;display:block;text-align:center}.layout-sidebar .cat-circle{width:64px;height:64px;margin:0 auto 7px}.layout-sidebar .product-rail{display:flex;overflow-x:auto}.cookie-consent{align-items:flex-start;flex-direction:column}.cookie-accept{width:100%}.button-style-options{grid-template-columns:1fr 1fr}.admin-card .table{min-width:680px}}
@media(max-width:560px){.admin-head>div:last-child{justify-content:flex-start}.admin-head .btn{width:auto;padding:9px 11px;font-size:13px}.button-style-options{grid-template-columns:1fr}.market-product-card{flex-basis:148px}.layout-grid .market-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-grid .product-rail,.layout-grid .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-compact .promo-grid{grid-template-columns:1fr}.cookie-consent{left:10px;right:10px;bottom:10px;padding:14px}.cookie-text span{font-size:13px}}

/* V11 - dashboard organizado e layouts com mais personalidade/mobile first */
.admin-layout{grid-template-columns:270px minmax(0,1fr);align-items:start}.admin-sidebar{position:sticky;top:86px;max-height:calc(100vh - 110px);overflow:auto;padding:12px}.admin-home-link{background:#f8fafc;border:1px solid #eef2f7;margin-bottom:10px}.admin-menu-group{border:1px solid #edf1f5;border-radius:16px;background:#fff;margin:10px 0;overflow:hidden}.admin-menu-group summary{list-style:none;cursor:pointer;padding:12px 13px;font-weight:950;color:#172033;display:flex;align-items:center;justify-content:space-between}.admin-menu-group summary::-webkit-details-marker{display:none}.admin-menu-group summary:after{content:'▾';font-size:12px;color:#667085}.admin-menu-group:not([open]) summary:after{content:'▸'}.admin-menu-group a{border-radius:0!important;padding:10px 13px 10px 34px!important;font-size:14px;font-weight:800;border-top:1px solid #f1f5f9}.admin-menu-group a.active,.admin-home-link.active{background:linear-gradient(135deg,var(--green),var(--green-dark))!important;color:#fff!important}.admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.admin-head h1{margin:0 0 4px;letter-spacing:-.035em}.admin-head p{margin:0}.admin-head>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-head .btn,.admin-card .btn,.admin-form .btn{padding:9px 12px;font-size:13px;min-height:36px;border-radius:12px;box-shadow:none;white-space:nowrap}.admin-card .table td:last-child{min-width:150px}.admin-card .table td:last-child form{display:inline-flex!important}.admin-content{min-width:0}.admin-form .row{align-items:end}.table th,.table td{vertical-align:middle}.status-badge{white-space:nowrap}.admin-product{display:flex;align-items:center;gap:10px;min-width:230px}.admin-product img{width:46px;height:46px;object-fit:cover;border-radius:10px;background:#f1f5f9}

/* Loja: base mais mobile first */
.market-slider{aspect-ratio:4/1;height:auto;min-height:150px;max-height:390px;border-radius:22px;overflow:hidden}.market-slide img{width:100%;height:100%;object-fit:cover}.market-search-panel{gap:18px}.market-page-shell{min-width:0}.market-main{min-width:0}.product-rail,.market-categories{scrollbar-width:none}.product-rail::-webkit-scrollbar,.market-categories::-webkit-scrollbar{display:none}.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}.market-product-card{background:#fff;border:1px solid #e5e7eb;box-shadow:0 6px 16px rgba(15,23,42,.06);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.market-product-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,23,42,.11)}.market-product-image{background:#f8fafc}.section-title{gap:10px}.section-title h2{letter-spacing:-.02em}.section-title a{font-weight:950;color:#155eef;text-decoration:none}.plus-btn{background:linear-gradient(135deg,var(--accent),#b42318)!important;color:#fff!important;box-shadow:0 9px 18px rgba(185,28,28,.22)}

/* Layout 1 - Supermercado: carrossel classico, rapido e horizontal */
.layout-supermarket body,.layout-supermarket{background:#fff}.layout-supermarket .market-slider{border-radius:18px}.layout-supermarket .market-search-panel{background:#fff;border:1px solid #edf1f5;box-shadow:0 10px 30px rgba(15,23,42,.07);padding:16px 18px}.layout-supermarket .market-categories-wrap{margin-top:8px}.layout-supermarket .market-categories{display:flex;gap:16px;overflow-x:auto;padding:8px 0 14px}.layout-supermarket .market-cat{flex:0 0 96px;text-align:center}.layout-supermarket .cat-circle{border-radius:50%;background:#f3f6f8;border:3px solid #e5e7eb}.layout-supermarket .product-rail{display:flex;gap:12px;overflow-x:auto;padding:6px 2px 14px}.layout-supermarket .market-product-card{flex:0 0 160px;min-height:270px;border-radius:6px}.layout-supermarket .market-product-image,.layout-supermarket .market-product-image img{height:124px;border-radius:4px}.layout-supermarket .market-product-card h3{font-size:12px;min-height:34px}.layout-supermarket .compact-price{font-size:16px}.layout-supermarket .section-title{border-bottom:1px solid #e5e7eb;padding-bottom:9px;margin-top:18px}

/* Layout 2 - Departamentos: menu lateral desktop e menu em chips no mobile */
.layout-sidebar{background:linear-gradient(180deg,#f8fafc,#fff)}.layout-sidebar .market-page-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start}.layout-sidebar .market-categories-wrap{position:sticky!important;top:86px!important;background:#0f172a!important;color:#fff!important;border:0!important;border-radius:22px!important;padding:16px!important;box-shadow:0 22px 42px rgba(15,23,42,.18)!important}.layout-sidebar .market-categories-wrap .section-title{color:#fff}.layout-sidebar .market-categories-wrap .section-title h2{color:#fff}.layout-sidebar .market-categories{display:flex!important;flex-direction:column!important;gap:8px!important;overflow:visible!important}.layout-sidebar .market-cat{display:flex!important;align-items:center!important;gap:10px!important;text-align:left!important;flex:none!important;color:#e5e7eb!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:14px!important;padding:10px!important}.layout-sidebar .market-cat.selected,.layout-sidebar .market-cat:hover{background:#fff!important;color:#0f172a!important}.layout-sidebar .cat-circle{width:42px!important;height:42px!important;margin:0!important;background:#fff!important;color:#111827!important}.layout-sidebar .product-rail{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;gap:14px!important;overflow:visible!important}.layout-sidebar .market-product-card{flex:auto!important;border-radius:18px!important}.layout-sidebar .market-search-panel{background:#0f172a;color:#fff;border-radius:24px;padding:20px}.layout-sidebar .market-search button{background:var(--accent)}

/* Layout 3 - Vitrine: grade ampla, visual mais premium */
.layout-grid{background:linear-gradient(180deg,#f6fff9,#ffffff 35%)}.layout-grid .market-slider{border-radius:30px;box-shadow:0 24px 55px rgba(22,163,74,.16)}.layout-grid .market-search-panel{display:block;text-align:center;background:linear-gradient(135deg,#ecfdf3,#eff6ff);border:1px solid #dbeafe;border-radius:28px;padding:24px}.layout-grid .market-search{max-width:720px;margin:16px auto 0}.layout-grid .market-categories{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important;gap:12px!important;overflow:visible!important}.layout-grid .market-cat{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:14px;box-shadow:0 8px 22px rgba(15,23,42,.06)}.layout-grid .cat-circle{width:64px!important;height:64px!important}.layout-grid .product-rail,.layout-grid .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:16px!important;overflow:visible!important}.layout-grid .market-product-card{flex:auto!important;border-radius:22px!important;min-height:318px}.layout-grid .market-product-image,.layout-grid .market-product-image img{height:154px!important;border-radius:18px}.layout-grid .section-title{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:14px 16px;box-shadow:0 6px 18px rgba(15,23,42,.05)}

/* Layout 4 - Compacto ofertas: alta densidade e preco em destaque */
.layout-compact{background:#fffdf7}.layout-compact .market-slider{max-height:230px;border-radius:14px}.layout-compact .market-search-panel{background:#fffbeb;border:1px solid #fde68a;border-radius:16px;padding:14px}.layout-compact .market-search-panel h1{font-size:22px}.layout-compact .market-categories{gap:10px!important;overflow-x:auto!important;padding-bottom:10px}.layout-compact .market-cat{flex:0 0 78px!important}.layout-compact .cat-circle{width:56px!important;height:56px!important;background:#fff7ed;border-color:#fed7aa}.layout-compact .product-rail{display:flex!important;gap:9px!important;overflow-x:auto!important;padding-bottom:10px}.layout-compact .market-product-card{flex:0 0 142px!important;min-height:236px!important;padding:8px!important;border-radius:10px!important}.layout-compact .market-product-image,.layout-compact .market-product-image img{height:98px!important;border-radius:8px}.layout-compact .market-product-card h3{font-size:10.5px!important;min-height:30px!important}.layout-compact .compact-price{font-size:15px!important;color:#b42318!important}.layout-compact .plus-btn{width:30px!important;height:30px!important;font-size:20px!important}.layout-compact .section-title{background:#fff;border-left:5px solid var(--accent);padding:8px 10px;border-radius:8px;box-shadow:none}

@media(max-width:900px){
  .admin-layout{display:block}.admin-sidebar{position:static;max-height:none;margin-bottom:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.admin-home-link{grid-column:1/-1;margin:0}.admin-menu-group{margin:0}.admin-menu-group summary{padding:11px}.admin-menu-group a{padding:9px 11px 9px 22px!important;font-size:13px}.admin-head{display:block}.admin-head>div:last-child{justify-content:flex-start;margin-top:12px}.admin-head .btn{font-size:12px;padding:8px 10px}
  .topbar{position:sticky;align-items:center;flex-direction:row}.brand{font-size:18px}.brand:before{width:32px;height:32px;border-radius:11px}.topbar nav{gap:6px}.topbar nav a{font-size:12px;padding:8px 10px}
  .market-slider{aspect-ratio:4/1;min-height:92px;border-radius:14px}.market-search-panel{display:block;padding:14px;border-radius:18px}.market-search-panel h1{font-size:22px;line-height:1.08}.market-search-panel p{font-size:13px}.market-search{margin-top:12px}.market-search input{min-width:0}.market-search button{padding:10px 12px}.market-page-shell{display:block!important}.market-categories-wrap{position:static!important;margin:12px 0!important;width:auto!important;padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important;color:inherit!important}.market-categories-wrap .section-title{display:none}.market-categories{display:flex!important;flex-direction:row!important;overflow-x:auto!important;gap:10px!important;padding:6px 1px 12px!important}.market-cat{flex:0 0 76px!important;text-align:center!important;display:block!important;padding:6px!important;border-radius:14px!important}.market-cat strong{font-size:11px!important;line-height:1.1}.cat-circle{width:58px!important;height:58px!important;margin:0 auto 6px!important;font-size:24px!important}.product-section{margin:12px 0 18px}.section-title h2{font-size:18px}.product-rail{display:flex!important;gap:10px!important;overflow-x:auto!important;padding-bottom:12px}.market-product-card{flex:0 0 145px!important;min-height:254px!important;padding:8px!important;border-radius:10px!important}.market-product-image,.market-product-image img{height:104px!important;border-radius:8px!important}.market-product-card h3{font-size:11px!important;min-height:32px!important}.unit-line{font-size:9px!important}.compact-price{font-size:15px!important}.plus-btn{width:31px!important;height:31px!important}.promo-ribbon{font-size:8px!important;padding:4px!important}.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.market-grid .market-product-card{flex:auto!important;width:auto!important}.category-filter-panel{padding:14px!important;border-radius:16px}.subcategory-chips{overflow-x:auto;flex-wrap:nowrap}.chip{white-space:nowrap;padding:8px 11px;font-size:13px}.category-sort-form{width:100%;display:grid!important;grid-template-columns:1fr;gap:8px}.category-sort-form select{width:100%}
  .layout-sidebar .market-search-panel{background:#0f172a;color:#fff}.layout-grid .market-categories{grid-template-columns:repeat(4,minmax(0,1fr))!important}.layout-grid .market-cat{flex:auto!important}.layout-grid .product-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important;display:grid!important;overflow:visible!important}.layout-grid .market-product-card{flex:auto!important}.layout-compact .market-product-card{flex-basis:132px!important;min-height:222px!important}.footer-columns{grid-template-columns:1fr 1fr!important;gap:22px!important}
}
@media(max-width:560px){
  body{background:#fff}.container{padding:12px 10px 34px}.admin-sidebar{grid-template-columns:1fr}.admin-menu-group summary{font-size:14px}.admin-head h1{font-size:24px}.admin-head>div:last-child{display:grid!important;grid-template-columns:1fr 1fr;width:100%;gap:8px}.admin-head .btn{width:100%;justify-content:center}.table th,.table td{padding:10px}.admin-card .table{min-width:640px}.market-slider{min-height:78px}.market-search-panel h1{font-size:20px}.market-search{border-radius:14px}.market-search span{display:none}.market-search input{font-size:13px}.market-search button{font-size:12px}.market-product-card{flex-basis:138px!important}.layout-grid .market-categories{grid-template-columns:repeat(3,minmax(0,1fr))!important}.layout-grid .cat-circle{width:52px!important;height:52px!important}.layout-grid .product-rail,.layout-grid .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.layout-grid .market-product-card{min-height:250px!important}.layout-grid .market-product-image,.layout-grid .market-product-image img{height:108px!important}.layout-sidebar .market-categories{background:#0f172a;border-radius:16px;padding:8px!important}.layout-sidebar .market-cat{color:#fff!important;background:rgba(255,255,255,.08)!important}.layout-sidebar .market-cat.selected{background:#fff!important;color:#0f172a!important}.layout-compact .market-product-card{flex-basis:128px!important}.footer-columns{grid-template-columns:1fr!important}.cookie-consent{left:8px;right:8px}.checkout-shell,.row,.product-page{grid-template-columns:1fr!important}.product-big{height:280px}.choice-grid{grid-template-columns:1fr!important}
}

/* V12 - ajustes de filtros, menu do dashboard e mobile */
.category-filter-panel.card{display:flex!important;align-items:center!important;gap:14px!important;justify-content:flex-start!important;padding:18px 20px!important;margin:18px 0!important;min-height:0!important;box-shadow:0 8px 24px rgba(15,23,42,.05)!important}
.category-filter-title{flex:0 0 auto;min-width:130px}.category-filter-title h2{margin:0!important;font-size:24px!important;white-space:nowrap}.category-filter-panel .muted,.clear-filter{display:none!important}.subcategory-chips{display:flex!important;align-items:center!important;gap:8px!important;flex:1 1 auto!important;margin:0!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding:3px 2px 5px!important;scrollbar-width:none}.subcategory-chips::-webkit-scrollbar{display:none}.chip{white-space:nowrap!important;padding:8px 14px!important;font-size:14px!important;line-height:1!important}.category-sort-form{margin-left:auto!important;display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;width:auto!important}.category-sort-form label{font-size:13px!important;color:#64748b!important;text-transform:uppercase!important;letter-spacing:.04em!important}.category-sort-form select{height:40px!important;min-width:180px!important;border-radius:999px!important;background:#fff!important;font-size:14px!important;padding:0 34px 0 14px!important}
.admin-main-link{display:block;text-decoration:none;color:#334155;font-weight:900;padding:11px 12px;border-radius:13px;margin:4px 0}.admin-main-link:hover,.admin-main-link.active,.admin-home-link.active{background:#ecfdf3;color:var(--green-dark)}.admin-menu-group summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between}.admin-menu-group summary::-webkit-details-marker,.admin-submenu summary::-webkit-details-marker{display:none}.admin-menu-group summary:after,.admin-submenu summary:after{content:'›';transition:.2s;font-weight:950;color:#94a3b8}.admin-menu-group[open]>summary:after,.admin-submenu[open]>summary:after{transform:rotate(90deg)}.admin-menu-group a,.admin-submenu a{display:block;text-decoration:none}.admin-submenu{margin:4px 0 6px 14px;border-left:2px solid #e5e7eb;padding-left:8px}.admin-submenu summary{cursor:pointer;padding:8px 9px;border-radius:10px;font-size:13px;font-weight:900;color:#475467}.admin-submenu a{padding:8px 11px 8px 18px!important;font-size:13px!important;border-radius:10px}.admin-sidebar{overflow:auto}.alert{padding:12px 14px;border-radius:14px;margin:12px 0;font-weight:800}.alert.success{background:#ecfdf3;color:#047857;border:1px solid #bbf7d0}.form-card{display:grid;gap:10px}.payment-options .switch-line{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px}

/* personalidade extra para os 4 layouts */
.layout-supermarket .category-filter-panel{border-left:4px solid var(--green)}.layout-sidebar .category-filter-panel{background:#0f172a!important;color:#fff!important}.layout-sidebar .category-sort-form label{color:#cbd5e1!important}.layout-sidebar .chip{background:rgba(255,255,255,.08)!important;color:#fff!important;border-color:rgba(255,255,255,.15)!important}.layout-sidebar .chip.active{background:#fff!important;color:#0f172a!important}.layout-grid .category-filter-panel{background:linear-gradient(135deg,#fff,#f0fdf4)!important;border-radius:24px!important}.layout-compact .category-filter-panel{background:#fffbeb!important;border:1px solid #fde68a!important;border-radius:12px!important;padding:12px!important}.layout-compact .category-filter-title h2{font-size:20px!important}.layout-compact .chip{padding:7px 10px!important}.layout-compact .category-sort-form select{height:36px!important}

@media(max-width:760px){.category-filter-panel.card{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:14px!important}.category-filter-title h2{font-size:20px!important}.subcategory-chips{width:100%!important;order:2}.category-sort-form{order:3;margin-left:0!important;width:100%!important;display:grid!important;grid-template-columns:74px minmax(0,1fr)!important}.category-sort-form select{width:100%!important;min-width:0!important}.admin-topbar{position:sticky;top:0;z-index:20}.admin-layout{display:block!important}.admin-sidebar{display:block!important;position:static!important;max-height:none!important;margin-bottom:14px}.admin-menu-group,.admin-main-link,.admin-home-link{margin-bottom:8px}.admin-content{min-width:0!important}.admin-head{gap:10px}.admin-head>div:last-child{display:flex!important;flex-wrap:wrap!important}.admin-head .btn{width:auto!important;flex:1 1 auto;min-width:130px}}
@media(max-width:430px){.category-sort-form{grid-template-columns:1fr!important}.category-sort-form label{display:none}.category-filter-title h2{font-size:18px!important}.chip{font-size:13px!important;padding:8px 11px!important}.admin-head>div:last-child{display:grid!important;grid-template-columns:1fr!important}.admin-head .btn{width:100%!important}.market-product-card{flex-basis:136px!important}.market-grid{gap:8px!important}}

/* V13 - melhorias de permissoes, botao comprar, carrinho e checkout */
.admin-sidebar{font-size:14px;background:#fff;border:1px solid #edf1f5;box-shadow:0 10px 24px rgba(15,23,42,.06)}
.admin-home-link,.admin-main-link,.admin-menu-group summary,.admin-submenu summary{font-weight:650!important;color:#334155!important;letter-spacing:0!important}
.admin-menu-group a,.admin-submenu a{font-weight:500!important;color:#475569!important;padding:8px 10px 8px 22px!important}
.admin-menu-group{border:1px solid #eef2f7;border-radius:14px;margin:8px 0;background:#fbfdff;overflow:hidden}
.admin-menu-group summary{padding:10px 12px!important;background:#fff}
.admin-menu-group a.active,.admin-submenu a.active,.admin-main-link.active,.admin-home-link.active{background:#ecfdf3!important;color:var(--green-dark)!important;font-weight:700!important}
.actions-cell{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions-cell form{display:inline-flex}.actions-cell .btn{padding:8px 10px;font-size:12px}
.sample-buy{display:inline-flex;align-items:center;justify-content:center;min-width:86px;height:38px;border-radius:12px;background:var(--accent);color:#fff;font-weight:900;padding:0 12px;box-shadow:0 8px 18px rgba(233,44,58,.18)}.sample-buy.sample-icon{min-width:38px;width:38px;border-radius:14px;font-size:22px}
.plus-btn.buy-button-text,.plus-btn.buy-button-cart_text,.plus-btn.buy-button-add_text{width:auto!important;min-width:78px;height:36px!important;border-radius:12px!important;font-size:13px!important;padding:0 12px!important;line-height:1!important;white-space:nowrap}.plus-btn.buy-button-cart_text{min-width:104px}.plus-btn.buy-button-add_text{min-width:96px}.card-bottom{gap:8px}.card-bottom form{flex-shrink:0}
.qty-control{display:inline-flex;align-items:center;border:1px solid #d9e2ea;border-radius:12px;overflow:hidden;background:#fff}.qty-control button{width:34px;height:34px;border:0;background:#f8fafc;font-size:18px;font-weight:900;cursor:pointer}.qty-control input{width:54px;height:34px;border:0;border-left:1px solid #e5e7eb;border-right:1px solid #e5e7eb;text-align:center;font-weight:800}.cart-form .btn{margin:4px 4px 4px 0}.checkout-form small.muted{display:block;margin-top:6px}.checkout-form select#neighborhood{font-weight:700}.status-badge.sale{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}.status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;background:#f1f5f9;color:#475569}
@media(max-width:760px){.market-product-card{flex:0 0 46vw!important}.plus-btn.buy-button-text,.plus-btn.buy-button-cart_text,.plus-btn.buy-button-add_text{min-width:70px!important;font-size:11px!important;padding:0 8px!important}.cart-form .table{min-width:620px}.cart-form{overflow-x:auto}.qty-control button{width:30px}.qty-control input{width:42px}.admin-sidebar{font-size:13px}.admin-menu-group a,.admin-submenu a{padding:8px 9px 8px 18px!important}.actions-cell{display:grid;grid-template-columns:1fr}.actions-cell .btn{width:100%}}
@media(max-width:430px){.market-product-card{flex-basis:44vw!important}.plus-btn.buy-button-cart_text{min-width:82px!important}.plus-btn.buy-button-add_text{min-width:76px!important}.plus-btn.buy-button-text{min-width:68px!important}}

/* V14 - layouts como botoes, cores globais e header alinhado */
body{background:var(--site-bg,#f4f7f6)!important;color:var(--ink,#172033)!important}.card,.market-product-card,.admin-card,.admin-sidebar,.market-search-panel,.category-filter-panel,.promo-card{background:var(--card-bg,#fff)!important;color:var(--ink,#172033)!important}.topbar.storefront-topbar{background:var(--header-bg,#fff)!important;padding-left:clamp(18px,3vw,48px)!important;padding-right:clamp(18px,3vw,48px)!important}.storefront-topbar .brand{margin-left:clamp(4px,1vw,18px)!important}.brand span{display:inline-block}.brand-image img{max-height:48px;max-width:230px;object-fit:contain}.brand-image:before{display:none!important}
.btn,.market-search button,.checkout-form button[type=submit],.cart-form .btn,.admin-head .btn,.admin-form .btn,.actions-cell .btn:not(.danger),.button,.filter-submit{background:var(--primary,var(--green))!important;border-color:var(--primary,var(--green))!important;color:#fff!important}.btn:hover,.market-search button:hover{filter:brightness(.94)}.chip.active,.market-cat.selected,.status-badge.active{border-color:var(--category-color,var(--primary))!important;color:var(--category-color,var(--primary))!important;background:color-mix(in srgb,var(--category-color,var(--primary)) 10%,#fff)!important}.market-cat:hover,.chip:hover{border-color:var(--category-color,var(--primary))!important}.plus-btn,.sample-buy{background:var(--accent,#e92c3a)!important;color:#fff!important}.product-sale-card,.market-product-card.on-sale{box-shadow:0 0 0 1px color-mix(in srgb,var(--promo-glow,#e92c3a) 25%,transparent),0 18px 40px color-mix(in srgb,var(--promo-glow,#e92c3a) 22%,transparent)!important}.sale-ribbon,.promo-ribbon{background:linear-gradient(90deg,var(--promo-glow,#e92c3a),color-mix(in srgb,var(--promo-glow,#e92c3a) 76%,#ffb703))!important;color:#fff!important}
.layout-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:8px 0 22px}.layout-choice{position:relative;cursor:pointer}.layout-choice input{position:absolute;opacity:0;pointer-events:none}.layout-choice span{display:block;min-height:112px;border:1px solid #dbe5ee;border-radius:18px;background:#fff;padding:16px;transition:.18s;box-shadow:0 6px 18px rgba(15,23,42,.04)}.layout-choice b{display:block;font-size:15px;margin-bottom:8px;color:#172033}.layout-choice small{display:block;color:#64748b;line-height:1.35;font-weight:500}.layout-choice input:checked+span{border-color:var(--primary,var(--green));box-shadow:0 0 0 3px color-mix(in srgb,var(--primary,var(--green)) 14%,transparent),0 12px 28px rgba(15,23,42,.08)}.layout-choice input:checked+span:before{content:'✓';display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:var(--primary,var(--green));color:#fff;font-weight:900;margin-bottom:10px}.layout-options{display:none!important}
/* revisao dos 4 layouts */
.layout-supermarket .market-page-shell{display:block}.layout-supermarket .market-categories{display:flex;overflow-x:auto;gap:14px;padding-bottom:10px;scrollbar-width:none}.layout-supermarket .market-categories::-webkit-scrollbar{display:none}.layout-supermarket .product-rail{display:flex;overflow-x:auto;gap:14px;scroll-snap-type:x proximity}.layout-supermarket .market-product-card{scroll-snap-align:start}.layout-supermarket .section-title h2:before{content:'🛒 ';font-size:.9em}
.layout-sidebar .market-page-shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start}.layout-sidebar .market-categories-wrap{position:sticky;top:92px;background:var(--card-bg,#fff);border:1px solid #e5edf4;border-radius:20px;padding:14px;box-shadow:0 14px 32px rgba(15,23,42,.08)}.layout-sidebar .market-categories{display:grid;grid-template-columns:1fr;gap:8px;overflow:visible}.layout-sidebar .market-cat{display:flex!important;align-items:center!important;gap:10px!important;min-height:52px!important;padding:10px!important;border-radius:14px!important;background:#f8fafc!important;color:var(--ink)!important}.layout-sidebar .cat-circle{width:36px!important;height:36px!important;min-width:36px!important}.layout-sidebar .market-cat strong{font-size:14px!important}.layout-sidebar .product-rail,.layout-sidebar .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(175px,1fr))!important;gap:14px!important;overflow:visible!important}.layout-sidebar .market-product-card{width:auto!important;flex-basis:auto!important}
.layout-grid .market-categories{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important;gap:14px!important;overflow:visible!important}.layout-grid .product-rail,.layout-grid .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:18px!important;overflow:visible!important}.layout-grid .market-product-card{width:auto!important;flex-basis:auto!important;border-radius:20px!important}.layout-grid .market-product-image{height:180px!important}.layout-grid .section-title{border-bottom:2px solid color-mix(in srgb,var(--category-color,var(--primary)) 16%,#e5e7eb);padding-bottom:8px}
.layout-compact .container{max-width:1180px}.layout-compact .market-search-panel{padding:18px!important;border-radius:14px!important}.layout-compact .market-categories{display:flex!important;gap:8px!important;overflow-x:auto!important;scrollbar-width:none}.layout-compact .market-categories::-webkit-scrollbar{display:none}.layout-compact .market-cat{min-width:auto!important;flex:0 0 auto!important;padding:8px 10px!important;border-radius:999px!important;display:flex!important;align-items:center!important;gap:8px!important}.layout-compact .cat-circle{width:30px!important;height:30px!important;min-width:30px!important;font-size:16px!important}.layout-compact .product-rail,.layout-compact .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important;gap:10px!important;overflow:visible!important}.layout-compact .market-product-card{width:auto!important;flex-basis:auto!important;min-height:220px!important;border-radius:14px!important}.layout-compact .market-product-image{height:112px!important}.layout-compact .market-product-card h3{font-size:13px!important}.layout-compact .price{font-size:18px!important}.layout-compact .section-title h2:before{content:'⚡ ';}
@media(max-width:900px){.layout-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-sidebar .market-page-shell{display:block}.layout-sidebar .market-categories-wrap{position:static;margin-bottom:16px}.layout-sidebar .market-categories{display:flex!important;overflow-x:auto!important}.layout-sidebar .market-cat{min-width:128px!important;display:grid!important;text-align:center!important}.layout-sidebar .cat-circle{margin:auto}.storefront-topbar .brand{margin-left:0!important}}
@media(max-width:560px){.layout-choice-grid{grid-template-columns:1fr}.topbar.storefront-topbar{padding:10px 12px!important}.storefront-topbar .brand{font-size:18px}.brand:before{width:34px;height:34px}.storefront-topbar nav{gap:6px}.storefront-topbar nav a{font-size:12px;padding:8px 9px}.layout-grid .product-rail,.layout-grid .market-grid,.layout-sidebar .product-rail,.layout-sidebar .market-grid,.layout-compact .product-rail,.layout-compact .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.layout-supermarket .market-product-card{flex:0 0 44vw!important}.layout-grid .market-product-image,.layout-sidebar .market-product-image,.layout-compact .market-product-image{height:110px!important}.market-product-card{min-width:0!important}.brand-image img{max-height:38px;max-width:150px}}


/* V14.1 - padronizacao dos layouts, cores editaveis e cards seguros */
:root{
  --safe-card-radius:16px;
  --safe-card-border:#e3eaf1;
}
.topbar.storefront-topbar{
  padding-left:clamp(22px,4vw,64px)!important;
  padding-right:clamp(14px,3vw,48px)!important;
}
.storefront-topbar .brand{
  margin-left:clamp(8px,1.8vw,28px)!important;
}
.layout-choice b::before{font-weight:900;color:var(--primary,var(--green));}
.layout-choice-grid .layout-choice:nth-child(1) b,
.layout-choice-grid .layout-choice:nth-child(2) b,
.layout-choice-grid .layout-choice:nth-child(3) b,
.layout-choice-grid .layout-choice:nth-child(4) b{font-size:17px!important;}

/* Todas as cores principais saem do dashboard */
.market-categories-wrap{background:transparent!important;}
.market-cat{color:var(--ink,#172033)!important;}
.market-cat .cat-circle{
  background:var(--category-color,var(--primary,#159947))!important;
  color:#fff!important;
  border-color:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 18%,#fff)!important;
  box-shadow:0 8px 18px color-mix(in srgb,var(--category-color,var(--primary,#159947)) 22%,transparent)!important;
}
.market-cat.selected .cat-circle,
.market-cat:hover .cat-circle{
  background:linear-gradient(135deg,var(--category-color,var(--primary,#159947)),color-mix(in srgb,var(--category-color,var(--primary,#159947)) 68%,#000))!important;
}
.layout-sidebar .market-categories-wrap{
  background:var(--card-bg,#fff)!important;
  border-color:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 16%,#e5edf4)!important;
}
.layout-sidebar .market-cat{
  background:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 7%,#fff)!important;
  border:1px solid color-mix(in srgb,var(--category-color,var(--primary,#159947)) 12%,#e5edf4)!important;
}
.layout-sidebar .market-cat.selected,
.layout-sidebar .market-cat:hover{
  background:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 15%,#fff)!important;
  border-color:var(--category-color,var(--primary,#159947))!important;
}
.layout-sidebar .cat-circle{background:var(--category-color,var(--primary,#159947))!important;}
.layout-sidebar .category-filter-panel{
  background:linear-gradient(135deg,color-mix(in srgb,var(--category-color,var(--primary,#159947)) 14%,#fff),var(--card-bg,#fff))!important;
  color:var(--ink,#172033)!important;
  border-color:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 20%,#e5edf4)!important;
}
.layout-sidebar .category-sort-form label{color:var(--ink,#172033)!important;}
.layout-sidebar .chip{
  background:#fff!important;
  color:var(--ink,#172033)!important;
  border-color:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 18%,#e5edf4)!important;
}
.layout-sidebar .chip.active{
  background:var(--category-color,var(--primary,#159947))!important;
  color:#fff!important;
}

/* Card de produto: nunca cortar preco/botao, imagem ou texto */
.market-product-card{
  overflow:visible!important;
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  height:auto!important;
  border-radius:var(--safe-card-radius)!important;
  border:1px solid var(--safe-card-border)!important;
  padding:12px!important;
  isolation:isolate;
}
.market-product-card.is-promo{
  overflow:visible!important;
  padding-top:38px!important;
  border-color:color-mix(in srgb,var(--promo-glow,var(--accent,#e92c3a)) 55%,#fff)!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--promo-glow,var(--accent,#e92c3a)) 24%,transparent),0 18px 42px color-mix(in srgb,var(--promo-glow,var(--accent,#e92c3a)) 18%,transparent)!important;
}
.market-product-card.is-promo:before{
  inset:-18px!important;
  border-radius:inherit!important;
  background:radial-gradient(circle at top,color-mix(in srgb,var(--promo-glow,var(--accent,#e92c3a)) 24%,transparent),transparent 62%)!important;
}
.promo-ribbon{
  min-height:28px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:var(--safe-card-radius) var(--safe-card-radius) 0 0!important;
  padding:6px 8px!important;
  line-height:1.1!important;
  white-space:normal!important;
}
.market-product-card.is-promo .market-product-image{margin-top:0!important;}
.product-menu-dot{top:10px!important;right:10px!important;}
.market-product-card.is-promo .product-menu-dot{top:34px!important;}
.market-product-image{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/0.78!important;
  min-height:118px!important;
  max-height:190px!important;
  border-radius:12px!important;
  background:#f3f6f9!important;
  overflow:hidden!important;
  margin:0 0 9px!important;
}
.market-product-image img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  padding:6px!important;
  background:#fff!important;
}
.market-product-card h3{
  min-height:34px!important;
  max-height:none!important;
  margin:6px 0 4px!important;
  font-size:clamp(12px,1.05vw,14px)!important;
  line-height:1.25!important;
  font-weight:700!important;
  overflow-wrap:anywhere!important;
}
.unit-line{min-height:16px!important;margin:0 0 8px!important;font-size:11px!important;}
.card-bottom{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:8px!important;
  width:100%!important;
  margin-top:auto!important;
}
.compact-price{
  display:block!important;
  white-space:nowrap!important;
  font-size:clamp(17px,1.4vw,21px)!important;
  line-height:1.05!important;
}
.card-bottom small{white-space:nowrap!important;}
.card-bottom form{min-width:max-content!important;}
.plus-btn{flex-shrink:0!important;white-space:nowrap!important;}
.plus-btn.buy-button-text,
.plus-btn.buy-button-cart_text,
.plus-btn.buy-button-add_text{
  width:auto!important;
  min-width:92px!important;
  max-width:100%!important;
  height:38px!important;
  padding:0 13px!important;
}
.plus-btn.buy-button-cart_text{min-width:118px!important;}
.plus-btn.buy-button-add_text{min-width:106px!important;}
.badge-line{min-height:20px!important;}
.tag-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* Larguras seguras por layout */
.layout-supermarket .market-product-card{flex:0 0 clamp(164px,15vw,205px)!important;}
.layout-sidebar .product-rail,.layout-sidebar .market-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;}
.layout-grid .product-rail,.layout-grid .market-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr))!important;}
.layout-compact .product-rail,.layout-compact .market-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))!important;}
.layout-compact .market-product-card{padding:10px!important;}
.layout-compact .market-product-image{min-height:105px!important;aspect-ratio:1/0.72!important;}
.layout-compact .plus-btn.buy-button-text,
.layout-compact .plus-btn.buy-button-cart_text,
.layout-compact .plus-btn.buy-button-add_text{min-width:76px!important;font-size:12px!important;padding:0 9px!important;}
.layout-compact .plus-btn.buy-button-cart_text{min-width:98px!important;}

@media(max-width:900px){
  .topbar.storefront-topbar{padding-left:16px!important;padding-right:16px!important;}
  .storefront-topbar .brand{margin-left:0!important;}
  .layout-sidebar .market-categories-wrap{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;}
  .layout-sidebar .market-cat{min-width:112px!important;}
}
@media(max-width:640px){
  .market-grid,
  .layout-grid .market-grid,
  .layout-sidebar .market-grid,
  .layout-compact .market-grid,
  .layout-grid .product-rail,
  .layout-sidebar .product-rail,
  .layout-compact .product-rail{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .layout-supermarket .market-product-card{flex:0 0 calc(50vw - 22px)!important;}
  .market-product-card{padding:9px!important;border-radius:14px!important;}
  .market-product-card.is-promo{padding-top:34px!important;}
  .promo-ribbon{font-size:8px!important;min-height:25px!important;}
  .market-product-image{min-height:96px!important;aspect-ratio:1/0.78!important;}
  .market-product-card h3{font-size:12px!important;min-height:32px!important;}
  .compact-price{font-size:16px!important;}
  .card-bottom{grid-template-columns:1fr!important;align-items:stretch!important;}
  .card-bottom form{width:100%!important;min-width:0!important;}
  .plus-btn{width:100%!important;height:34px!important;border-radius:12px!important;font-size:18px!important;}
  .plus-btn.buy-button-text,
  .plus-btn.buy-button-cart_text,
  .plus-btn.buy-button-add_text{width:100%!important;min-width:0!important;height:34px!important;font-size:12px!important;}
}
@media(max-width:380px){
  .market-product-card{padding:8px!important;}
  .market-product-image{min-height:86px!important;}
  .market-product-card h3{font-size:11px!important;}
  .compact-price{font-size:15px!important;}
}

/* V15 - Novo card de produtos responsivo inspirado no modelo visual aprovado */
.market-product-card.new-product-card{
  --card-radius:22px;
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  height:auto!important;
  min-height:0!important;
  padding:14px!important;
  border-radius:var(--card-radius)!important;
  border:1px solid color-mix(in srgb,var(--category-color,var(--primary,#159947)) 16%,#e5e7eb)!important;
  background:var(--card-bg,#fff)!important;
  box-shadow:0 10px 26px rgba(15,23,42,.06)!important;
  overflow:visible!important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.market-product-card.new-product-card:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 45%,#e5e7eb)!important;
  box-shadow:0 18px 42px rgba(15,23,42,.10)!important;
}
.market-product-card.new-product-card.is-promo{
  padding-top:42px!important;
  border-color:color-mix(in srgb,var(--promo-glow,var(--accent,#e92c3a)) 52%,#ffffff)!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--promo-glow,var(--accent,#e92c3a)) 28%,transparent),0 0 38px color-mix(in srgb,var(--promo-glow,var(--accent,#e92c3a)) 22%,transparent),0 18px 42px rgba(15,23,42,.08)!important;
}
.market-product-card.new-product-card.is-promo:before{
  content:'';
  position:absolute;
  inset:-14px;
  border-radius:28px;
  background:radial-gradient(circle at top,color-mix(in srgb,var(--promo-glow,var(--accent,#e92c3a)) 25%,transparent),transparent 62%);
  z-index:-1;
  pointer-events:none;
}
.new-product-card .promo-ribbon{
  position:absolute!important;
  top:-1px!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%);
  width:min(86%,280px)!important;
  min-height:32px!important;
  height:32px!important;
  padding:7px 14px!important;
  border-radius:0 0 12px 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:11px!important;
  line-height:1!important;
  white-space:nowrap!important;
  color:#fff!important;
  background:linear-gradient(90deg,var(--promo-glow,var(--accent,#e92c3a)),color-mix(in srgb,var(--promo-glow,var(--accent,#e92c3a)) 72%,#111))!important;
  box-shadow:0 10px 20px color-mix(in srgb,var(--promo-glow,var(--accent,#e92c3a)) 18%,transparent)!important;
}
.new-card-media{position:relative;min-height:0;margin:0 0 12px;}
.new-card-tags{position:absolute;left:0;top:0;z-index:3;display:flex;flex-wrap:wrap;gap:6px;max-width:calc(100% - 80px);}
.new-tag-badge{
  display:inline-flex!important;
  align-items:center;
  max-width:100%;
  min-height:28px;
  padding:6px 12px!important;
  border:0!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 12%,#fff)!important;
  color:var(--category-color,var(--primary,#159947))!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.new-card-actions{position:absolute;right:0;top:0;z-index:4;display:grid;gap:8px;}
.new-card-icon{
  width:36px;height:36px;
  border:1px solid #edf1f5;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--ink,#172033);
  display:grid;
  place-items:center;
  text-decoration:none;
  font-size:17px;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(15,23,42,.10);
}
.new-card-icon:hover{filter:brightness(.98);transform:translateY(-1px);}
.new-product-card .market-product-image.new-product-image{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:1/0.86!important;
  margin:10px 0 0!important;
  padding:20px 12px 8px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fff,#f8fafc)!important;
  overflow:hidden!important;
  text-decoration:none!important;
}
.new-product-card .market-product-image.new-product-image img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  padding:0!important;
  background:transparent!important;
  mix-blend-mode:multiply;
}
.new-card-info{display:flex;flex-direction:column;min-width:0;}
.new-card-title{margin:0 0 5px!important;min-height:0!important;max-height:none!important;font-size:clamp(15px,1.1vw,19px)!important;line-height:1.18!important;font-weight:850!important;letter-spacing:-.02em!important;}
.new-card-title a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-decoration:none!important;color:var(--ink,#172033)!important;}
.new-unit-line{margin:0 0 10px!important;min-height:18px!important;color:#667085!important;font-size:13px!important;line-height:1.35!important;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.new-price-line{display:flex;align-items:center;gap:8px;min-height:24px;margin:0 0 2px;}
.new-discount-badge{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:6px;background:var(--promo-glow,var(--accent,#e92c3a));color:#fff;font-size:12px;font-weight:900;}
.new-old-price{color:#98a2b3;font-size:13px;text-decoration:line-through;font-weight:700;}
.new-current-price{display:flex;align-items:flex-end;gap:6px;margin:0 0 14px;color:var(--category-color,var(--primary,#159947));}
.new-current-price span{font-size:clamp(24px,2.2vw,34px);line-height:.98;font-weight:950;letter-spacing:-.055em;white-space:nowrap;}
.new-current-price small{color:#667085;font-size:14px;font-weight:800;margin-bottom:3px;white-space:nowrap;}
.new-card-buy-form{display:grid;grid-template-columns:minmax(96px,.85fr) minmax(118px,1.15fr);gap:10px;align-items:center;margin-top:auto!important;}
.new-card-stepper{height:44px;border:1px solid #d9e2ec;border-radius:14px;display:grid;grid-template-columns:38px 1fr 38px;align-items:center;background:#fff;overflow:hidden;box-shadow:0 4px 12px rgba(15,23,42,.04);}
.new-card-qty-btn{height:100%;border:0;background:#fff;color:var(--ink,#172033);font-size:22px;font-weight:900;cursor:pointer;line-height:1;}
.new-card-qty-btn:hover{background:#f8fafc;}
.new-card-qty-value{text-align:center;font-size:15px;font-weight:850;color:var(--ink,#172033);}
.new-product-card .new-buy-btn.plus-btn{
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  padding:0 14px!important;
  border:0!important;
  border-radius:14px!important;
  background:var(--accent,#e92c3a)!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
  box-shadow:0 10px 20px color-mix(in srgb,var(--accent,#e92c3a) 22%,transparent)!important;
}
.new-product-card .new-buy-btn.plus-btn:hover{filter:brightness(.95);transform:translateY(-1px);}

/* Larguras novas por layout para o card não quebrar */
.layout-supermarket .market-product-card.new-product-card{flex:0 0 clamp(220px,18vw,290px)!important;}
.layout-sidebar .product-rail,.layout-sidebar .market-grid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr))!important;}
.layout-grid .product-rail,.layout-grid .market-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))!important;}
.layout-compact .product-rail,.layout-compact .market-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;}
.layout-compact .new-product-card .market-product-image.new-product-image{aspect-ratio:1/0.72!important;padding-top:14px!important;}
.layout-compact .new-card-title{font-size:14px!important;}
.layout-compact .new-current-price span{font-size:23px!important;}
.layout-compact .new-card-buy-form{grid-template-columns:1fr;gap:8px;}

@media(max-width:900px){
  .layout-supermarket .market-product-card.new-product-card{flex:0 0 260px!important;}
  .layout-sidebar .product-rail,.layout-sidebar .market-grid,.layout-grid .product-rail,.layout-grid .market-grid,.layout-compact .product-rail,.layout-compact .market-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;}
}
@media(max-width:640px){
  .market-grid,.layout-grid .market-grid,.layout-sidebar .market-grid,.layout-compact .market-grid,.layout-grid .product-rail,.layout-sidebar .product-rail,.layout-compact .product-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  .layout-supermarket .market-product-card.new-product-card{flex:0 0 calc(50vw - 22px)!important;}
  .market-product-card.new-product-card{--card-radius:17px;padding:10px!important;border-radius:17px!important;}
  .market-product-card.new-product-card.is-promo{padding-top:36px!important;}
  .new-product-card .promo-ribbon{height:28px!important;min-height:28px!important;width:86%!important;font-size:8.5px!important;padding:6px 8px!important;}
  .new-card-actions{gap:6px;}
  .new-card-icon{width:30px;height:30px;font-size:14px;box-shadow:0 5px 14px rgba(15,23,42,.08);}
  .new-tag-badge{min-height:24px;padding:5px 9px!important;font-size:10px!important;}
  .new-product-card .market-product-image.new-product-image{aspect-ratio:1/0.96!important;padding:24px 6px 4px!important;margin-top:4px!important;border-radius:14px!important;}
  .new-card-title{font-size:14px!important;line-height:1.16!important;}
  .new-unit-line{font-size:11px!important;margin-bottom:8px!important;}
  .new-price-line{min-height:20px;margin-bottom:0;}
  .new-discount-badge{height:20px;font-size:10px;padding:0 6px;}
  .new-old-price{font-size:11px;}
  .new-current-price{margin-bottom:10px;}
  .new-current-price span{font-size:22px!important;}
  .new-current-price small{font-size:11px;margin-bottom:2px;}
  .new-card-buy-form{grid-template-columns:1fr;gap:7px;}
  .new-card-stepper{height:36px;border-radius:12px;grid-template-columns:34px 1fr 34px;}
  .new-card-qty-btn{font-size:19px;}
  .new-card-qty-value{font-size:13px;}
  .new-product-card .new-buy-btn.plus-btn{height:38px!important;border-radius:12px!important;font-size:13px!important;padding:0 8px!important;}
}
@media(max-width:390px){
  .market-grid,.layout-grid .market-grid,.layout-sidebar .market-grid,.layout-compact .market-grid{gap:9px!important;}
  .layout-supermarket .market-product-card.new-product-card{flex-basis:calc(50vw - 18px)!important;}
  .market-product-card.new-product-card{padding:8px!important;}
  .new-product-card .market-product-image.new-product-image{aspect-ratio:1/0.9!important;padding-left:4px!important;padding-right:4px!important;}
  .new-card-title{font-size:13px!important;}
  .new-current-price span{font-size:20px!important;}
  .new-product-card .new-buy-btn.plus-btn{font-size:12px!important;}
}

/* V16 - correcoes de cores globais, carrossel de categorias e cards responsivos */
:root{
  --buy-color:var(--accent,#e92c3a);
  --button-color:var(--primary,var(--green,#159947));
}
body{background:var(--site-bg,#f4f7f6)!important;color:var(--ink,#172033)!important;}
.topbar.storefront-topbar{background:var(--header-bg,#fff)!important;}
.storefront-topbar .brand{padding-left:clamp(6px,1vw,18px)!important;color:var(--primary,#159947)!important;}
.brand:before{background:linear-gradient(135deg,var(--primary,#159947),color-mix(in srgb,var(--primary,#159947) 70%,#ffffff))!important;}
.card,.market-search-panel,.category-filter-panel,.promo-card,.market-product-card.new-product-card{background:var(--card-bg,#fff)!important;color:var(--ink,#172033)!important;}
.btn,.market-search button,.smart-search button,.checkout-form button[type=submit],.cart-form .btn,.admin-form .btn,.admin-head .btn:not(.danger),.filter-submit,.cookie-accept,.topbar nav a:hover{background:var(--button-color)!important;border-color:var(--button-color)!important;color:#fff!important;}
.topbar nav a{color:var(--ink,#172033)!important;}
.chip.active,.chip:hover,.status-badge.active{border-color:var(--category-color,var(--primary,#159947))!important;background:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 12%,#fff)!important;color:var(--category-color,var(--primary,#159947))!important;}
.new-product-card .new-buy-btn.plus-btn,.plus-btn,.sample-buy{background:var(--buy-color)!important;color:#fff!important;box-shadow:0 10px 20px color-mix(in srgb,var(--buy-color) 22%,transparent)!important;}
.new-product-card .new-current-price,.new-product-card .new-current-price span,.new-current-price{color:var(--primary,#159947)!important;}
.new-product-card .new-current-price small{color:#667085!important;}
.new-product-card .new-discount-badge{background:var(--buy-color)!important;color:#fff!important;}
.new-product-card .promo-ribbon,.promo-ribbon{background:linear-gradient(90deg,var(--promo-glow,var(--buy-color)),color-mix(in srgb,var(--promo-glow,var(--buy-color)) 70%,#111))!important;color:#fff!important;}
.new-product-card.is-promo{border-color:color-mix(in srgb,var(--promo-glow,var(--buy-color)) 52%,#fff)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--promo-glow,var(--buy-color)) 28%,transparent),0 0 38px color-mix(in srgb,var(--promo-glow,var(--buy-color)) 22%,transparent),0 18px 42px rgba(15,23,42,.08)!important;}
.new-tag-badge{background:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 12%,#fff)!important;color:var(--category-color,var(--primary,#159947))!important;}

/* Carrossel acessivel de categorias */
.category-carousel{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:8px;width:100%;}
.category-carousel .market-categories{min-width:0;overflow-x:auto!important;overflow-y:hidden!important;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;padding:6px 2px 12px!important;}
.category-carousel .market-categories::-webkit-scrollbar{display:none;}
.cat-nav{display:grid;place-items:center;width:38px;height:38px;border:1px solid color-mix(in srgb,var(--category-color,var(--primary,#159947)) 28%,#dce6ef);border-radius:999px;background:var(--card-bg,#fff);color:var(--category-color,var(--primary,#159947));font-size:28px;line-height:1;cursor:pointer;box-shadow:0 8px 18px rgba(15,23,42,.08);transition:.15s ease;}
.cat-nav:hover{background:var(--category-color,var(--primary,#159947));color:#fff;transform:translateY(-1px);}
.cat-nav:disabled{opacity:.28;cursor:not-allowed;transform:none;background:var(--card-bg,#fff);color:#98a2b3;}
.category-carousel:not(.has-scroll){grid-template-columns:0 minmax(0,1fr) 0;gap:0;}
.category-carousel:not(.has-scroll) .cat-nav{display:none;}
.market-cat{border:1px solid transparent;border-radius:18px;transition:.16s ease;}
.market-cat.selected,.market-cat:hover{border-color:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 28%,#fff)!important;background:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 8%,#fff)!important;}
.market-cat .cat-circle{background:var(--category-color,var(--primary,#159947))!important;color:#fff!important;}
.market-cat.selected .cat-circle,.market-cat:hover .cat-circle{background:linear-gradient(135deg,var(--category-color,var(--primary,#159947)),color-mix(in srgb,var(--category-color,var(--primary,#159947)) 65%,#000))!important;}

/* Layout 01: supermercado com trilhos horizontais */
.layout-supermarket .market-categories{display:flex!important;gap:14px!important;}
.layout-supermarket .market-cat{flex:0 0 98px!important;}
.layout-supermarket .product-rail{display:flex!important;overflow-x:auto!important;overflow-y:visible!important;scroll-snap-type:x proximity;padding:4px 2px 18px!important;}
.layout-supermarket .market-product-card.new-product-card{flex:0 0 clamp(236px,19vw,292px)!important;scroll-snap-align:start;}

/* Layout 02: departamentos em lista lateral, com scroll vertical quando houver muitas categorias */
.layout-sidebar .market-page-shell{display:grid!important;grid-template-columns:minmax(220px,260px) minmax(0,1fr)!important;gap:22px!important;align-items:start!important;}
.layout-sidebar .category-carousel{display:block!important;}
.layout-sidebar .cat-nav{display:none!important;}
.layout-sidebar .market-categories-wrap{position:sticky!important;top:92px!important;max-height:calc(100vh - 112px)!important;overflow-y:auto!important;background:var(--card-bg,#fff)!important;border:1px solid color-mix(in srgb,var(--category-color,var(--primary,#159947)) 16%,#e5edf4)!important;border-radius:22px!important;padding:14px!important;}
.layout-sidebar .market-categories{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;overflow:visible!important;padding:0!important;}
.layout-sidebar .market-cat{display:flex!important;align-items:center!important;gap:10px!important;flex:none!important;text-align:left!important;min-height:54px!important;padding:9px!important;background:color-mix(in srgb,var(--category-color,var(--primary,#159947)) 5%,#fff)!important;}
.layout-sidebar .cat-circle{width:38px!important;height:38px!important;min-width:38px!important;margin:0!important;font-size:20px!important;}
.layout-sidebar .market-cat strong{font-size:13px!important;line-height:1.2!important;}
.layout-sidebar .market-main{min-width:0!important;}
.layout-sidebar .product-rail,.layout-sidebar .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(244px,1fr))!important;gap:16px!important;overflow:visible!important;}
.layout-sidebar .market-product-card.new-product-card{width:auto!important;flex-basis:auto!important;}

/* Layout 03: grade visual, mas categorias tambem acessiveis por carrossel */
.layout-grid .category-carousel{display:grid!important;}
.layout-grid .market-categories{display:flex!important;gap:12px!important;overflow-x:auto!important;}
.layout-grid .market-cat{flex:0 0 108px!important;}
.layout-grid .product-rail,.layout-grid .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))!important;gap:18px!important;overflow:visible!important;}
.layout-grid .market-product-card.new-product-card{width:auto!important;flex-basis:auto!important;}

/* Layout 04: compacto mobile-first */
.layout-compact .market-categories{display:flex!important;gap:8px!important;overflow-x:auto!important;}
.layout-compact .market-cat{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:8px!important;padding:8px 12px!important;border-radius:999px!important;}
.layout-compact .cat-circle{width:32px!important;height:32px!important;min-width:32px!important;margin:0!important;font-size:16px!important;}
.layout-compact .product-rail,.layout-compact .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(218px,1fr))!important;gap:12px!important;overflow:visible!important;}
.layout-compact .market-product-card.new-product-card{width:auto!important;flex-basis:auto!important;}

/* Card seguro: informacoes visiveis e sem corte */
.market-product-card.new-product-card{overflow:visible!important;min-width:0!important;min-height:0!important;height:auto!important;}
.new-card-info{min-width:0!important;}
.new-card-title a{color:var(--ink,#172033)!important;}
.new-current-price{min-width:0!important;overflow:visible!important;white-space:normal!important;}
.new-current-price span{white-space:nowrap!important;}
.new-card-buy-form{min-width:0!important;}
.new-card-stepper{min-width:0!important;}
.new-product-card .market-product-image.new-product-image{min-height:145px!important;max-height:250px!important;}

@media(max-width:900px){
  .category-carousel{grid-template-columns:34px minmax(0,1fr) 34px;gap:6px;}
  .cat-nav{width:32px;height:32px;font-size:22px;}
  .layout-sidebar .market-page-shell{display:block!important;}
  .layout-sidebar .market-categories-wrap{position:static!important;max-height:none!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;}
  .layout-sidebar .category-carousel{display:grid!important;}
  .layout-sidebar .cat-nav{display:grid!important;}
  .layout-sidebar .market-categories{display:flex!important;gap:12px!important;overflow-x:auto!important;padding:6px 2px 12px!important;}
  .layout-sidebar .market-cat{flex:0 0 102px!important;display:block!important;text-align:center!important;min-height:auto!important;padding:8px!important;background:var(--card-bg,#fff)!important;}
  .layout-sidebar .cat-circle{width:58px!important;height:58px!important;margin:0 auto 6px!important;font-size:28px!important;}
  .layout-sidebar .product-rail,.layout-sidebar .market-grid,.layout-grid .product-rail,.layout-grid .market-grid,.layout-compact .product-rail,.layout-compact .market-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;}
}
@media(max-width:640px){
  .category-carousel{grid-template-columns:30px minmax(0,1fr) 30px;gap:4px;}
  .cat-nav{width:28px;height:28px;font-size:20px;}
  .market-cat{flex-basis:84px!important;}
  .cat-circle{width:58px!important;height:58px!important;font-size:28px!important;}
  .layout-supermarket .market-product-card.new-product-card{flex:0 0 calc(50vw - 24px)!important;}
  .layout-grid .product-rail,.layout-grid .market-grid,.layout-sidebar .product-rail,.layout-sidebar .market-grid,.layout-compact .product-rail,.layout-compact .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .new-product-card .market-product-image.new-product-image{min-height:112px!important;max-height:160px!important;}
  .new-current-price span{font-size:20px!important;}
  .new-card-buy-form{grid-template-columns:1fr!important;gap:7px!important;}
  .new-product-card .new-buy-btn.plus-btn{width:100%!important;}
}
@media(max-width:380px){
  .layout-supermarket .market-product-card.new-product-card{flex-basis:calc(50vw - 18px)!important;}
  .new-product-card .market-product-image.new-product-image{min-height:96px!important;}
}

/* V16.1 - Mantem o usuario na secao de produtos apos filtros/categorias */
#produtos {
  scroll-margin-top: 110px;
}
@media (max-width: 768px) {
  #produtos { scroll-margin-top: 82px; }
}
/* V17 - busca de imagens por EAN */
.grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.product-thumb{width:54px;height:54px;object-fit:contain;border:1px solid #e5edf4;border-radius:12px;background:#fff;margin-right:8px;vertical-align:middle}
@media(max-width:800px){.grid.two{grid-template-columns:1fr}.product-thumb{width:46px;height:46px}}

/* V17.2 - Correcao definitiva dos cards: sem sobrepor, sem cortar e responsivo */
:root{
  --product-card-min-desktop: 238px;
  --product-card-min-tablet: 210px;
}

.product-section,
.market-main,
.market-grid,
.product-rail{
  min-width:0!important;
  position:relative!important;
}

/* O trilho do Layout 01 continua como carrossel, mas com largura e altura seguras */
.layout-supermarket .product-rail{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:16px!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  padding:6px 4px 22px!important;
  scroll-snap-type:x proximity!important;
}
.layout-supermarket .product-rail > .market-product-card.new-product-card{
  flex:0 0 clamp(238px, 20vw, 296px)!important;
  width:clamp(238px, 20vw, 296px)!important;
  max-width:none!important;
  scroll-snap-align:start!important;
}

/* Nos layouts de grade, os cards sempre ficam lado a lado sem empilhar por cima */
.layout-sidebar .product-rail,
.layout-sidebar .market-grid,
.layout-grid .product-rail,
.layout-grid .market-grid,
.layout-compact .product-rail,
.layout-compact .market-grid,
.market-grid{
  display:grid!important;
  align-items:stretch!important;
  grid-auto-flow:row!important;
  overflow:visible!important;
}
.layout-sidebar .product-rail,
.layout-sidebar .market-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%, 244px),1fr))!important;
  gap:16px!important;
}
.layout-grid .product-rail,
.layout-grid .market-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%, 252px),1fr))!important;
  gap:18px!important;
}
.layout-compact .product-rail,
.layout-compact .market-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%, 212px),1fr))!important;
  gap:12px!important;
}
.market-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%, 238px),1fr))!important;
  gap:16px!important;
}

.product-rail > .market-product-card.new-product-card,
.market-grid > .market-product-card.new-product-card{
  position:relative!important;
  inset:auto!important;
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  z-index:1!important;
  transform:none;
}
.product-rail > .market-product-card.new-product-card:hover,
.market-grid > .market-product-card.new-product-card:hover{
  z-index:3!important;
}

/* Conteudo interno sempre em fluxo normal */
.new-product-card .new-card-media,
.new-product-card .new-card-info,
.new-product-card .new-card-buy-form{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
}
.new-product-card .new-card-info{
  flex:1 1 auto!important;
}
.new-product-card .new-card-buy-form{
  margin-top:auto!important;
}
.new-product-card .market-product-image.new-product-image{
  width:100%!important;
  aspect-ratio: 1 / .82!important;
  min-height:138px!important;
  max-height:220px!important;
  overflow:hidden!important;
}
.new-product-card .market-product-image.new-product-image img{
  display:block!important;
  object-fit:contain!important;
}
.new-card-title a{
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
.new-current-price,
.new-current-price span,
.new-current-price small{
  color:var(--primary,#159947)!important;
}
.new-current-price{
  flex-wrap:wrap!important;
  row-gap:2px!important;
}

/* A faixa de promocao fica dentro do card e nao invade cards vizinhos */
.market-product-card.new-product-card.is-promo{
  padding-top:42px!important;
  margin-top:0!important;
}
.new-product-card .promo-ribbon{
  max-width:calc(100% - 28px)!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

@media(max-width:900px){
  .layout-supermarket .product-rail > .market-product-card.new-product-card{
    flex-basis:246px!important;
    width:246px!important;
  }
  .layout-sidebar .product-rail,
  .layout-sidebar .market-grid,
  .layout-grid .product-rail,
  .layout-grid .market-grid,
  .layout-compact .product-rail,
  .layout-compact .market-grid,
  .market-grid{
    grid-template-columns:repeat(auto-fit,minmax(min(100%, var(--product-card-min-tablet)),1fr))!important;
  }
}

@media(max-width:640px){
  .layout-supermarket .product-rail{
    gap:10px!important;
    padding-bottom:18px!important;
  }
  .layout-supermarket .product-rail > .market-product-card.new-product-card{
    flex:0 0 calc(50vw - 24px)!important;
    width:calc(50vw - 24px)!important;
  }
  .layout-sidebar .product-rail,
  .layout-sidebar .market-grid,
  .layout-grid .product-rail,
  .layout-grid .market-grid,
  .layout-compact .product-rail,
  .layout-compact .market-grid,
  .market-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .product-rail > .market-product-card.new-product-card,
  .market-grid > .market-product-card.new-product-card{
    min-height:0!important;
    padding:9px!important;
    border-radius:16px!important;
  }
  .market-product-card.new-product-card.is-promo{
    padding-top:35px!important;
  }
  .new-product-card .promo-ribbon{
    height:27px!important;
    min-height:27px!important;
    font-size:8px!important;
    letter-spacing:.02em!important;
  }
  .new-product-card .market-product-image.new-product-image{
    aspect-ratio: 1 / .95!important;
    min-height:104px!important;
    max-height:145px!important;
    padding:18px 6px 4px!important;
  }
  .new-card-title{
    font-size:13px!important;
    min-height:32px!important;
  }
  .new-unit-line{
    font-size:11px!important;
    min-height:16px!important;
  }
  .new-current-price span{
    font-size:20px!important;
    letter-spacing:-.04em!important;
  }
  .new-current-price small{
    font-size:11px!important;
  }
  .new-card-buy-form{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .new-card-stepper,
  .new-product-card .new-buy-btn.plus-btn{
    height:36px!important;
  }
}

@media(max-width:380px){
  .layout-supermarket .product-rail > .market-product-card.new-product-card{
    flex-basis:calc(50vw - 18px)!important;
    width:calc(50vw - 18px)!important;
  }
  .layout-sidebar .product-rail,
  .layout-sidebar .market-grid,
  .layout-grid .product-rail,
  .layout-grid .market-grid,
  .layout-compact .product-rail,
  .layout-compact .market-grid,
  .market-grid{
    gap:8px!important;
  }
  .new-current-price span{font-size:18px!important;}
  .new-product-card .market-product-image.new-product-image{min-height:92px!important;}
}


/* =====================================================================
   V18 - Loja com visual de supermercado online, cards responsivos e
   layouts revisados. Mantem as cores configuradas no dashboard.
   ===================================================================== */
:root{
  --brand: var(--primary, var(--green, #159947));
  --brand-2: color-mix(in srgb, var(--brand) 82%, #000 18%);
  --accent-2: var(--accent, #e92c3a);
  --surface: var(--card-bg, #ffffff);
  --surface-soft: color-mix(in srgb, var(--brand) 7%, #ffffff 93%);
  --site: var(--site-bg, #f6f8f7);
  --text-main: var(--ink, #172033);
  --text-soft: color-mix(in srgb, var(--text-main) 60%, #ffffff 40%);
  --cat: var(--category-color, var(--brand));
  --promo: var(--promo-glow, var(--accent-2));
  --v18-shadow: 0 14px 32px rgba(15,23,42,.09);
  --v18-soft-shadow: 0 8px 22px rgba(15,23,42,.07);
}

html{scroll-padding-top:126px}
body{
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--brand) 10%, transparent) 0, transparent 330px),
    linear-gradient(180deg, color-mix(in srgb, var(--site) 88%, #fff 12%), var(--site)) !important;
  color:var(--text-main) !important;
}
.container{max-width:1380px !important;padding:18px 22px 46px !important}

/* Header inspirado em supermercado online */
.storefront-header{position:sticky;top:0;z-index:60;background:var(--header-bg);box-shadow:0 8px 25px rgba(15,23,42,.08)}
.store-info-strip{background:color-mix(in srgb,var(--brand) 11%,#fff);border-bottom:1px solid color-mix(in srgb,var(--brand) 18%,#fff)}
.store-info-inner{max-width:1380px;margin:0 auto;padding:7px 22px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:color-mix(in srgb,var(--brand) 70%,#111);font-size:13px;font-weight:700}
.store-info-inner a{text-decoration:none;color:inherit}
.topbar.storefront-topbar{
  position:relative!important;top:auto!important;z-index:1!important;
  background:var(--header-bg)!important;backdrop-filter:none!important;
  padding:14px 22px!important;border:0!important;box-shadow:none!important;
  max-width:1380px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:22px
}
.storefront-topbar .brand{margin-left:12px;min-width:190px;color:var(--brand-2)!important}
.storefront-topbar .brand:before{background:linear-gradient(135deg,var(--brand),color-mix(in srgb,var(--brand) 68%,#fff));box-shadow:0 12px 22px color-mix(in srgb,var(--brand) 24%,transparent)!important}
.storefront-topbar .brand-image img{max-height:52px;max-width:190px;object-fit:contain}
.storefront-topbar .main-nav{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:1}
.storefront-topbar .main-nav a{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;
  padding:10px 15px!important;border-radius:999px!important;text-decoration:none!important;
  background:#fff!important;color:var(--text-main)!important;border:1px solid color-mix(in srgb,var(--brand) 13%,#e5e7eb)!important;
  box-shadow:0 3px 10px rgba(15,23,42,.04);font-weight:750!important;white-space:nowrap
}
.storefront-topbar .main-nav a:hover{border-color:var(--brand)!important;color:var(--brand-2)!important;transform:translateY(-1px)}
.storefront-topbar .main-nav .login-link{background:var(--brand)!important;color:#fff!important;border-color:var(--brand)!important}
.storefront-topbar .main-nav .cart-link strong{min-width:22px;height:22px;border-radius:999px;background:var(--accent-2);color:#fff;display:inline-grid;place-items:center;font-size:12px}

/* Busca / hero */
.market-search-panel{
  background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 14%,#fff),#fff)!important;
  border:1px solid color-mix(in srgb,var(--brand) 13%,#fff)!important;border-radius:28px!important;
  box-shadow:var(--v18-soft-shadow)!important;padding:20px!important;display:grid!important;
  grid-template-columns:1fr minmax(360px,620px)!important;gap:18px!important;align-items:center!important;margin:16px 0!important
}
.market-search-panel h1{font-size:clamp(24px,3vw,38px)!important;letter-spacing:-.04em!important;margin:0 0 6px!important}
.market-search-panel p{margin:0!important;color:var(--text-soft)!important}
.market-search{background:#fff!important;border:1px solid color-mix(in srgb,var(--brand) 18%,#e5e7eb)!important;border-radius:999px!important;box-shadow:0 12px 25px rgba(15,23,42,.06)!important;padding:7px!important;display:flex!important;align-items:center!important;gap:8px!important}
.market-search input{min-width:0!important;border:0!important;outline:0!important;flex:1!important;padding:13px 8px!important;font-size:15px!important;background:transparent!important}
.market-search button,.btn,.smart-search button{background:var(--brand)!important;color:#fff!important;border-color:var(--brand)!important}
.market-search span{padding-left:10px}

/* Slider */
.market-slider{aspect-ratio:4/1!important;height:auto!important;min-height:170px!important;max-height:350px!important;border-radius:26px!important;overflow:hidden!important;box-shadow:var(--v18-shadow)!important;background:#e5e7eb!important;margin-top:12px!important}
.market-slide img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.market-slide strong{font-size:clamp(20px,3vw,40px)!important;left:28px!important;bottom:28px!important}

/* Categorias */
.market-categories-wrap{
  background:rgba(255,255,255,.72)!important;border:1px solid rgba(231,237,243,.85)!important;
  border-radius:24px!important;padding:16px!important;box-shadow:var(--v18-soft-shadow)!important;margin-bottom:18px!important
}
.category-carousel{position:relative!important}
.market-categories{
  display:flex!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x proximity!important;padding:4px 42px 8px!important;scrollbar-width:none!important
}
.market-categories::-webkit-scrollbar,.product-rail::-webkit-scrollbar{display:none!important}
.market-cat{
  flex:0 0 112px!important;min-width:112px!important;text-align:center!important;text-decoration:none!important;
  color:var(--text-main)!important;border:1px solid color-mix(in srgb,var(--cat) 12%,#e5e7eb)!important;
  background:#fff!important;border-radius:20px!important;padding:12px 10px!important;box-shadow:0 6px 18px rgba(15,23,42,.05)!important;
  scroll-snap-align:start!important;transition:.18s ease!important
}
.market-cat:hover{transform:translateY(-2px);border-color:var(--cat)!important;box-shadow:var(--v18-soft-shadow)!important}
.market-cat.selected{background:linear-gradient(180deg,color-mix(in srgb,var(--cat) 12%,#fff),#fff)!important;border-color:var(--cat)!important}
.cat-circle{
  width:58px!important;height:58px!important;margin:0 auto 8px!important;border-radius:18px!important;
  display:grid!important;place-items:center!important;background:color-mix(in srgb,var(--cat) 12%,#fff)!important;color:var(--cat)!important;font-size:28px!important
}
.market-cat.selected .cat-circle{background:var(--cat)!important;color:#fff!important}
.cat-circle img{width:38px!important;height:38px!important;object-fit:contain!important}
.market-cat strong{font-size:12px!important;line-height:1.15!important;font-weight:800!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.cat-nav{
  position:absolute!important;top:50%!important;transform:translateY(-50%)!important;z-index:2!important;
  width:36px!important;height:36px!important;border-radius:999px!important;border:1px solid color-mix(in srgb,var(--cat) 24%,#e5e7eb)!important;
  background:#fff!important;color:var(--cat)!important;font-size:26px!important;box-shadow:var(--v18-soft-shadow)!important;cursor:pointer!important
}
.cat-nav-prev{left:0!important}.cat-nav-next{right:0!important}.cat-nav:disabled{opacity:.35!important;cursor:not-allowed!important}

/* Subcategorias e filtros */
.category-filter-panel{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;margin-bottom:18px!important}
.subcategory-chips{display:flex!important;gap:8px!important;overflow-x:auto!important;scrollbar-width:none!important;padding:3px 0!important}
.subcategory-chips::-webkit-scrollbar{display:none!important}
.chip{white-space:nowrap!important;border-radius:999px!important;border:1px solid color-mix(in srgb,var(--cat) 18%,#e5e7eb)!important;background:#fff!important;color:var(--text-main)!important;text-decoration:none!important;padding:9px 13px!important;font-weight:800!important}
.chip.active{background:var(--cat)!important;color:#fff!important}
.category-sort-form{display:flex!important;align-items:center!important;gap:8px!important;margin-left:auto!important}
.category-sort-form select{border-radius:999px!important;border:1px solid color-mix(in srgb,var(--brand) 20%,#e5e7eb)!important;padding:10px 14px!important;background:#fff!important;color:var(--text-main)!important;font-weight:800!important}

/* Cards de produtos - base segura e responsiva */
.product-section{margin:0 0 28px!important}
.section-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:6px 0 14px!important}
.section-title h2{font-size:clamp(20px,2vw,28px)!important;letter-spacing:-.03em!important;margin:0!important}
.section-title a{color:var(--brand)!important;text-decoration:none!important;font-weight:850!important}
.product-rail{
  display:flex!important;gap:16px!important;overflow-x:auto!important;overflow-y:visible!important;
  scroll-snap-type:x proximity!important;padding:4px 2px 16px!important;align-items:stretch!important
}
.market-grid,.products-grid{
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(218px,1fr))!important;gap:18px!important;align-items:stretch!important
}
.supermarket-product-card,.market-product-card{
  width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;height:auto!important;
  display:flex!important;flex-direction:column!important;position:relative!important;overflow:visible!important;
  background:var(--surface)!important;color:var(--text-main)!important;border:1px solid color-mix(in srgb,var(--brand) 8%,#e7edf3)!important;
  border-radius:24px!important;padding:12px!important;box-shadow:0 8px 24px rgba(15,23,42,.07)!important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease!important
}
.product-rail .supermarket-product-card,.product-rail .market-product-card{flex:0 0 230px!important;scroll-snap-align:start!important}
.supermarket-product-card:hover{transform:translateY(-3px)!important;box-shadow:0 18px 38px rgba(15,23,42,.12)!important;border-color:color-mix(in srgb,var(--brand) 26%,#e7edf3)!important}
.supermarket-product-card.is-promo{
  border-color:color-mix(in srgb,var(--promo) 40%,#fff)!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--promo) 20%,transparent),0 16px 40px color-mix(in srgb,var(--promo) 18%,transparent)!important
}
.promo-ribbon{
  position:absolute!important;left:12px!important;right:12px!important;top:-12px!important;z-index:4!important;
  background:linear-gradient(135deg,var(--promo),color-mix(in srgb,var(--promo) 70%,#000))!important;color:#fff!important;
  border-radius:999px!important;padding:7px 10px!important;text-transform:uppercase!important;text-align:center!important;
  font-size:10px!important;font-weight:950!important;letter-spacing:.04em!important;box-shadow:0 10px 20px color-mix(in srgb,var(--promo) 25%,transparent)!important
}
.product-media-wrap{
  position:relative!important;background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--brand) 5%,#fff))!important;
  border-radius:18px!important;min-height:154px!important;padding:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important
}
.product-card-top{position:absolute!important;left:8px!important;right:8px!important;top:8px!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;z-index:3!important;pointer-events:none!important}
.product-tag-stack{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;max-width:70%!important}
.product-tag,.discount-chip{
  display:inline-flex!important;align-items:center!important;max-width:100%!important;border-radius:999px!important;
  padding:5px 8px!important;font-size:10px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
.product-tag{background:#fff!important;color:var(--brand-2)!important;border:1px solid color-mix(in srgb,var(--brand) 16%,#e5e7eb)!important}
.discount-chip{background:var(--accent-2)!important;color:#fff!important;border:0!important}
.quick-view-link{
  pointer-events:auto!important;width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border-radius:999px!important;
  background:rgba(255,255,255,.92)!important;color:var(--text-main)!important;text-decoration:none!important;border:1px solid #edf2f7!important;box-shadow:0 6px 14px rgba(15,23,42,.08)!important
}
.product-photo,.market-product-image{
  width:100%!important;height:142px!important;display:grid!important;place-items:center!important;margin:0!important;text-decoration:none!important
}
.product-photo img,.market-product-image img{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;
  background:transparent!important;display:block!important
}
.product-content{display:flex!important;flex-direction:column!important;gap:6px!important;padding:11px 3px 0!important;min-height:126px!important}
.product-title,.market-product-card h3{
  margin:0!important;min-height:40px!important;font-size:15px!important;line-height:1.3!important;font-weight:850!important;letter-spacing:-.015em!important
}
.product-title a,.market-product-card h3 a{color:var(--text-main)!important;text-decoration:none!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.product-subtitle,.unit-line{
  margin:0!important;min-height:30px!important;color:var(--text-soft)!important;font-size:12px!important;line-height:1.25!important;
  display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important
}
.price-box{margin-top:auto!important;display:flex!important;align-items:flex-end!important;gap:5px!important;flex-wrap:wrap!important}
.old-price{color:#9ca3af!important;text-decoration:line-through!important;font-size:12px!important;font-weight:700!important}
.current-price,.compact-price,.product-price,.card-price,.price-current{
  color:var(--brand-2)!important;font-size:24px!important;line-height:1!important;font-weight:950!important;letter-spacing:-.05em!important
}
.price-box small{color:var(--text-soft)!important;font-size:12px!important;font-weight:800!important;padding-bottom:1px!important}
.product-buy-row,.new-card-buy-form{
  margin-top:auto!important;display:grid!important;grid-template-columns:86px 1fr!important;gap:9px!important;align-items:center!important
}
.qty-stepper,.new-card-stepper{
  height:40px!important;border:1px solid color-mix(in srgb,var(--brand) 16%,#e5e7eb)!important;border-radius:999px!important;background:#fff!important;
  display:grid!important;grid-template-columns:28px 1fr 28px!important;align-items:center!important;overflow:hidden!important
}
.new-card-qty-btn{
  border:0!important;background:transparent!important;color:var(--brand-2)!important;font-size:18px!important;font-weight:950!important;cursor:pointer!important;height:100%!important
}
.new-card-qty-value{text-align:center!important;color:var(--text-main)!important;font-weight:900!important;font-size:14px!important}
.product-buy-button,.new-buy-btn,.plus-btn{
  width:100%!important;height:40px!important;border:0!important;border-radius:999px!important;background:var(--accent-2)!important;color:#fff!important;
  font-size:14px!important;font-weight:950!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  padding:0 12px!important;white-space:nowrap!important;box-shadow:0 10px 20px color-mix(in srgb,var(--accent-2) 22%,transparent)!important;cursor:pointer!important
}

/* Layout 01 - carrosséis bonitos */
.layout-supermarket .product-section{
  background:rgba(255,255,255,.55)!important;border:1px solid rgba(231,237,243,.72)!important;border-radius:26px!important;padding:16px!important;box-shadow:0 10px 28px rgba(15,23,42,.05)!important
}

/* Layout 02 - departamentos laterais */
.layout-sidebar .market-page-shell{display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;gap:20px!important;align-items:start!important}
.layout-sidebar .market-categories-wrap{position:sticky!important;top:120px!important;max-height:calc(100vh - 140px)!important;overflow:auto!important}
.layout-sidebar .category-carousel{position:static!important}
.layout-sidebar .cat-nav{display:none!important}
.layout-sidebar .market-categories{display:flex!important;flex-direction:column!important;overflow:visible!important;padding:0!important;gap:8px!important}
.layout-sidebar .market-cat{width:100%!important;min-width:0!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;text-align:left!important;gap:10px!important;padding:10px!important;border-radius:16px!important}
.layout-sidebar .cat-circle{width:42px!important;height:42px!important;margin:0!important;border-radius:13px!important;font-size:22px!important;flex:0 0 auto!important}
.layout-sidebar .market-cat strong{font-size:13px!important;-webkit-line-clamp:1!important}
.layout-sidebar .product-rail{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:16px!important;overflow:visible!important}
.layout-sidebar .product-rail .supermarket-product-card{flex:initial!important}

/* Layout 03 - vitrine em grade */
.layout-grid .product-rail{
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:18px!important;overflow:visible!important
}
.layout-grid .product-rail .supermarket-product-card{flex:initial!important}
.layout-grid .product-section{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.layout-grid .product-media-wrap{min-height:178px!important}
.layout-grid .product-photo{height:164px!important}

/* Layout 04 - compacto e rápido */
.layout-compact .market-search-panel{grid-template-columns:1fr!important}
.layout-compact .product-rail,.layout-compact .market-grid{
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:12px!important;overflow:visible!important
}
.layout-compact .product-rail .supermarket-product-card{flex:initial!important}
.layout-compact .supermarket-product-card{border-radius:18px!important;padding:9px!important}
.layout-compact .promo-ribbon{font-size:9px!important;top:-9px!important;left:9px!important;right:9px!important}
.layout-compact .product-media-wrap{min-height:120px!important;border-radius:14px!important}
.layout-compact .product-photo{height:112px!important}
.layout-compact .product-content{min-height:110px!important;padding-top:8px!important}
.layout-compact .product-title{font-size:13px!important;min-height:34px!important}
.layout-compact .product-subtitle{font-size:11px!important;min-height:24px!important}
.layout-compact .current-price{font-size:20px!important}
.layout-compact .product-buy-row{grid-template-columns:1fr!important}
.layout-compact .qty-stepper{height:36px!important}
.layout-compact .product-buy-button{height:38px!important}

/* Responsivo */
@media(max-width:980px){
  .container{padding:14px 12px 36px!important}
  .store-info-inner{padding:7px 12px;overflow-x:auto;justify-content:flex-start;white-space:nowrap;scrollbar-width:none}
  .store-info-inner::-webkit-scrollbar{display:none}
  .topbar.storefront-topbar{padding:12px!important;gap:12px!important;flex-wrap:wrap}
  .storefront-topbar .brand{margin-left:0;min-width:0;flex:1;font-size:19px!important}
  .storefront-topbar .main-nav{width:100%;justify-content:space-between;gap:7px}
  .storefront-topbar .main-nav a{flex:1;padding:9px 8px!important;font-size:13px!important;min-height:39px}
  .market-search-panel{grid-template-columns:1fr!important;border-radius:22px!important;padding:16px!important}
  .market-slider{min-height:120px!important;border-radius:18px!important}
  .layout-sidebar .market-page-shell{display:block!important}
  .layout-sidebar .market-categories-wrap{position:relative!important;top:auto!important;max-height:none!important;overflow:visible!important}
  .layout-sidebar .market-categories{flex-direction:row!important;overflow-x:auto!important;padding:4px 42px 8px!important}
  .layout-sidebar .market-cat{flex:0 0 112px!important;display:block!important;text-align:center!important}
  .layout-sidebar .cat-circle{width:58px!important;height:58px!important;margin:0 auto 8px!important}
  .layout-sidebar .cat-nav{display:block!important}
}
@media(max-width:640px){
  html{scroll-padding-top:140px}
  .container{padding-left:10px!important;padding-right:10px!important}
  .storefront-topbar .brand:before{width:34px!important;height:34px!important;border-radius:12px!important}
  .storefront-topbar .main-nav a:nth-child(1),.storefront-topbar .main-nav a:nth-child(2){display:none!important}
  .market-search{border-radius:18px!important;align-items:stretch!important}
  .market-search input{font-size:14px!important;padding:12px 4px!important}
  .market-search button{padding:0 13px!important;border-radius:14px!important}
  .market-categories-wrap{padding:12px!important;border-radius:20px!important}
  .market-cat{flex-basis:92px!important;min-width:92px!important;padding:10px 8px!important}
  .cat-circle{width:52px!important;height:52px!important;font-size:25px!important;border-radius:16px!important}
  .market-grid,.products-grid,.layout-grid .product-rail,.layout-sidebar .product-rail,.layout-compact .product-rail,.layout-compact .market-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important
  }
  .product-rail{gap:10px!important}
  .product-rail .supermarket-product-card{flex-basis:calc((100vw - 34px)/2)!important}
  .supermarket-product-card{padding:8px!important;border-radius:18px!important}
  .promo-ribbon{top:-8px!important;left:8px!important;right:8px!important;font-size:8px!important;padding:6px 8px!important}
  .product-media-wrap{min-height:118px!important;border-radius:14px!important;padding:8px!important}
  .product-photo,.market-product-image{height:106px!important}
  .quick-view-link{width:28px!important;height:28px!important;font-size:13px!important}
  .product-tag,.discount-chip{font-size:8px!important;padding:4px 6px!important}
  .product-content{padding-top:8px!important;min-height:112px!important;gap:5px!important}
  .product-title,.market-product-card h3{font-size:12.5px!important;min-height:33px!important;line-height:1.32!important}
  .product-subtitle,.unit-line{font-size:10.5px!important;min-height:26px!important}
  .current-price,.compact-price{font-size:19px!important}
  .price-box small{font-size:10px!important}
  .product-buy-row{grid-template-columns:1fr!important;gap:7px!important}
  .qty-stepper{height:34px!important;grid-template-columns:28px 1fr 28px!important}
  .product-buy-button{height:36px!important;font-size:12px!important}
  .category-filter-panel{display:block!important}
  .category-sort-form{margin-top:10px!important;margin-left:0!important}
  .category-sort-form select{width:100%!important}
}
@media(max-width:390px){
  .market-grid,.products-grid,.layout-grid .product-rail,.layout-sidebar .product-rail,.layout-compact .product-rail,.layout-compact .market-grid{
    grid-template-columns:1fr!important
  }
  .product-rail .supermarket-product-card{flex-basis:82vw!important}
}

/* V18.1 - correção do carrossel de departamentos/categorias */
.category-carousel{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 44px!important;
  align-items:center!important;
  gap:10px!important;
  position:relative!important;
  width:100%!important;
}
.category-carousel .cat-nav{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  z-index:3!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
}
.category-carousel .market-categories{
  min-width:0!important;
  width:100%!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:12px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:6px 2px 10px!important;
  scroll-behavior:smooth!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.category-carousel .market-categories::-webkit-scrollbar{display:none!important;}
.category-carousel .market-cat{
  flex:0 0 112px!important;
  min-width:112px!important;
  max-width:112px!important;
  box-sizing:border-box!important;
}
.category-carousel:not(.has-scroll){
  grid-template-columns:0 minmax(0,1fr) 0!important;
  gap:0!important;
}
.category-carousel:not(.has-scroll) .cat-nav{display:none!important;}
.category-carousel:not(.has-scroll) .market-categories{justify-content:flex-start!important;}

/* Layout 02: lateral no desktop, carrossel limpo no mobile */
.layout-sidebar .category-carousel{
  display:block!important;
}
.layout-sidebar .category-carousel .cat-nav{display:none!important;}
.layout-sidebar .category-carousel .market-categories{
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:visible!important;
}
.layout-sidebar .category-carousel .market-cat{
  max-width:none!important;
  width:100%!important;
  min-width:0!important;
  flex:0 0 auto!important;
}

.home-departments .section-title h2::after{
  content:' escolha os departamentos que aparecem aqui no dashboard';
  display:inline-block;
  margin-left:8px;
  color:var(--text-soft,#667085);
  font-size:12px;
  font-weight:600;
  letter-spacing:0;
}

@media(max-width:980px){
  .layout-sidebar .category-carousel{
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) 38px!important;
    gap:8px!important;
  }
  .layout-sidebar .category-carousel .cat-nav{display:grid!important;}
  .layout-sidebar .category-carousel .market-categories{
    display:flex!important;
    flex-direction:row!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:5px 2px 10px!important;
  }
  .layout-sidebar .category-carousel .market-cat{
    flex:0 0 104px!important;
    min-width:104px!important;
    max-width:104px!important;
    width:auto!important;
  }
  .home-departments .section-title h2::after{display:none;}
}
@media(max-width:640px){
  .category-carousel{grid-template-columns:32px minmax(0,1fr) 32px!important;gap:6px!important;}
  .category-carousel .cat-nav{width:30px!important;height:30px!important;min-width:30px!important;font-size:20px!important;}
  .category-carousel .market-cat{flex-basis:92px!important;min-width:92px!important;max-width:92px!important;}
}

/* V18.2 - configurações de categorias da home */
.home-cat-settings-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.responsive-table{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.home-cat-settings-table td,
.home-cat-settings-table th{
  vertical-align:middle;
}
.cat-admin-mini{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
}
.cat-admin-mini img{
  width:38px;
  height:38px;
  object-fit:cover;
  border-radius:12px;
  background:#f3f7f4;
}
.cat-admin-mini b{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eef8f1;
  font-size:20px;
}
.cat-admin-mini strong{
  display:block;
  font-weight:700;
}
.cat-admin-mini small{
  display:block;
  color:#7b8794;
  margin-top:2px;
}
.toggle-mini{
  display:inline-flex;
  align-items:center;
  cursor:pointer;
}
.toggle-mini input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.toggle-mini span{
  width:48px;
  height:28px;
  border-radius:999px;
  background:#d7e0e8;
  display:inline-block;
  position:relative;
  transition:.2s ease;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
}
.toggle-mini span:after{
  content:"";
  width:22px;
  height:22px;
  position:absolute;
  top:3px;
  left:3px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.16);
  transition:.2s ease;
}
.toggle-mini input:checked + span{
  background:var(--green, #159947);
}
.toggle-mini input:checked + span:after{
  transform:translateX(20px);
}
.input.input-small{
  max-width:120px;
  padding:10px 12px;
}
.alert{
  padding:14px 16px;
  border-radius:14px;
  margin:0 0 16px;
  font-weight:600;
}
.alert.success{background:#e9f9ef;color:#087331;border:1px solid #bfeacb;}
.alert.warning{background:#fff8e6;color:#805b00;border:1px solid #f5d98b;}
@media(max-width: 720px){
  .home-cat-settings-head{align-items:stretch;flex-direction:column;}
  .home-cat-settings-head .btn{width:100%;justify-content:center;}
  .cat-admin-mini{min-width:180px;}
  .input.input-small{max-width:96px;}
}

/* V18.5 - ajustes da tela Configurações da home */
.home-cat-settings-table .home-hidden-row { opacity: .72; background: #fbfcfd; }
.home-cat-settings-table .home-state.off { background: #f1f5f9; color: #64748b; }
.home-cat-settings-table .home-state.on { background: #e8fff0; color: #0f8f3d; }
.home-cat-settings-head { gap: 16px; }
@media (max-width: 720px) {
  .home-cat-settings-head { flex-direction: column; align-items: stretch; }
  .home-cat-settings-head .btn { width: 100%; }
  .home-cat-settings-table th,
  .home-cat-settings-table td { white-space: nowrap; }
}

/* V18.6 - Botao robusto de visibilidade da categoria na home */
.home-toggle-btn{
  width:58px;
  height:34px;
  border:0;
  border-radius:999px;
  padding:3px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  transition:.18s ease;
  box-shadow:0 6px 18px rgba(15,23,42,.12);
}
.home-toggle-btn span{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#fff;
  display:block;
  transition:.18s ease;
  box-shadow:0 2px 8px rgba(15,23,42,.16);
}
.home-toggle-btn.is-on{background:var(--primary-color,#0f8f3d); justify-content:flex-end;}
.home-toggle-btn.is-off{background:#cbd5e1; justify-content:flex-start;}
.home-hidden-row{opacity:.72;background:#f8fafc;}

/* V18.8 - Cards tipo supermercado, 3 visíveis por seção e responsivo */
.clean-product-section{
  margin:0 0 34px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.clean-section-title,
.product-section .section-title.clean-section-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0 0 18px!important;
  padding:0!important;
  border:0!important;
}
.clean-section-title h2{
  margin:0!important;
  font-size:clamp(22px,2.3vw,32px)!important;
  line-height:1.1!important;
  font-weight:650!important;
  letter-spacing:-.03em!important;
  color:var(--text-main,#1f2937)!important;
}
.section-actions{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex:0 0 auto!important;
}
.section-actions a{
  color:var(--brand,#07833f)!important;
  text-decoration:underline!important;
  font-weight:800!important;
  font-size:15px!important;
}
.rail-arrow{
  width:42px!important;
  height:42px!important;
  border:0!important;
  border-radius:999px!important;
  display:inline-grid!important;
  place-items:center!important;
  font-size:30px!important;
  line-height:1!important;
  cursor:pointer!important;
  color:#fff!important;
  background:var(--brand,#07833f)!important;
  box-shadow:0 8px 18px rgba(15,23,42,.12)!important;
}
.rail-arrow:disabled{
  opacity:.35!important;
  cursor:default!important;
  background:#e5e7eb!important;
  color:#94a3b8!important;
  box-shadow:none!important;
}
.clean-product-rail,
.product-rail.clean-product-rail{
  --cards-visible:3;
  --card-gap:24px;
  display:flex!important;
  gap:var(--card-gap)!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  scroll-snap-type:x mandatory!important;
  scroll-behavior:smooth!important;
  padding:4px 4px 12px!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.clean-product-rail::-webkit-scrollbar{display:none!important;}
.clean-product-rail > .clean-market-card,
.clean-product-rail > .market-product-card,
.product-rail.clean-product-rail > .supermarket-product-card{
  flex:0 0 calc((100% - (var(--card-gap) * (var(--cards-visible) - 1))) / var(--cards-visible))!important;
  max-width:calc((100% - (var(--card-gap) * (var(--cards-visible) - 1))) / var(--cards-visible))!important;
  scroll-snap-align:start!important;
}
.market-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;
}
.clean-market-card,
.market-product-card.clean-market-card,
.supermarket-product-card.clean-market-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  width:100%!important;
  height:auto!important;
  min-height:430px!important;
  padding:18px!important;
  border-radius:8px!important;
  border:1px solid #e5e7eb!important;
  background:var(--card-bg,#fff)!important;
  box-shadow:0 2px 9px rgba(15,23,42,.08)!important;
  overflow:hidden!important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease!important;
}
.clean-market-card:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 14px 30px rgba(15,23,42,.12)!important;
  border-color:color-mix(in srgb,var(--brand,#07833f) 28%,#e5e7eb)!important;
}
.clean-market-card.is-promo{
  border-color:color-mix(in srgb,var(--promotion-glow,var(--accent,#0a9f45)) 40%,#e5e7eb)!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--promotion-glow,var(--accent,#0a9f45)) 18%,transparent),0 8px 22px rgba(15,23,42,.10)!important;
}
.clean-card-menu{
  position:absolute!important;
  top:12px!important;
  right:13px!important;
  z-index:3!important;
  width:26px!important;
  height:26px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  color:#94a3b8!important;
  background:#fff!important;
  text-decoration:none!important;
  box-shadow:0 3px 10px rgba(15,23,42,.08)!important;
  font-size:13px!important;
}
.clean-card-image{
  width:100%!important;
  height:190px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:8px!important;
  margin:0 0 16px!important;
  background:#fff!important;
  text-decoration:none!important;
}
.clean-card-image img{
  display:block!important;
  max-width:100%!important;
  max-height:176px!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:center!important;
}
.clean-card-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
}
.clean-card-title,
.market-product-card .clean-card-title,
.product-title.clean-card-title{
  min-height:44px!important;
  margin:0 0 10px!important;
  font-size:18px!important;
  line-height:1.18!important;
  font-weight:500!important;
  color:var(--text-main,#333)!important;
  letter-spacing:-.02em!important;
}
.clean-card-title a{
  color:inherit!important;
  text-decoration:none!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.clean-card-badges{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  min-height:28px!important;
  margin:0 0 12px!important;
}
.clean-card-badges .tag-badge,
.clean-card-badges .discount-chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:4px!important;
  padding:4px 7px!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:800!important;
  background:#fff!important;
}
.clean-card-badges .tag-badge{
  color:var(--brand,#07833f)!important;
  border:1px solid var(--brand,#07833f)!important;
}
.clean-card-badges .discount-chip{
  color:#f04438!important;
  border:1px solid #f04438!important;
}
.clean-card-desc{
  margin:0 0 14px!important;
  min-height:31px!important;
  font-size:12px!important;
  line-height:1.3!important;
  color:#6b7280!important;
}
.clean-card-price{
  margin-top:auto!important;
  margin-bottom:10px!important;
}
.clean-card-price .old-price{
  display:block!important;
  margin:0 0 3px!important;
  color:#4b5563!important;
  font-size:14px!important;
  text-decoration:line-through!important;
  font-weight:500!important;
}
.clean-card-price .current-price,
.current-price,
.product-price,
.price-current{
  color:var(--brand,#07833f)!important;
  font-size:25px!important;
  line-height:1.05!important;
  font-weight:900!important;
  letter-spacing:-.04em!important;
}
.clean-card-price small{
  color:#4b5563!important;
  font-size:13px!important;
  font-weight:600!important;
}
.clean-card-buy{
  margin-top:auto!important;
  width:100%!important;
  display:block!important;
}
.clean-card-buy .new-buy-btn,
.clean-card-buy .product-buy-button,
.clean-card-buy button{
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  border:0!important;
  border-radius:5px!important;
  background:var(--brand,#07833f)!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.01em!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
.clean-card-buy .new-buy-btn:hover{filter:brightness(.96)!important;transform:none!important;}
.layout-supermarket .clean-product-rail,
.layout-sidebar .clean-product-rail,
.layout-grid .clean-product-rail,
.layout-compact .clean-product-rail{
  display:flex!important;
  grid-template-columns:none!important;
  overflow-x:auto!important;
}
.layout-supermarket .product-section,
.layout-sidebar .product-section,
.layout-grid .product-section,
.layout-compact .product-section{
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
@media(max-width:1000px){
  .clean-product-rail{--cards-visible:2;--card-gap:14px;}
  .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
  .clean-market-card{min-height:390px!important;padding:14px!important;}
  .clean-card-image{height:160px!important;}
  .clean-card-image img{max-height:148px!important;}
}
@media(max-width:560px){
  .clean-section-title{align-items:flex-start!important;}
  .clean-section-title h2{font-size:22px!important;}
  .section-actions{gap:8px!important;}
  .section-actions a{font-size:13px!important;}
  .rail-arrow{width:34px!important;height:34px!important;font-size:24px!important;}
  .clean-product-rail{--cards-visible:2;--card-gap:10px;padding:2px 2px 10px!important;}
  .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .clean-market-card{min-height:300px!important;padding:9px!important;border-radius:7px!important;}
  .clean-card-menu{top:8px!important;right:8px!important;width:22px!important;height:22px!important;font-size:11px!important;}
  .clean-card-image{height:112px!important;margin-bottom:10px!important;padding:4px!important;}
  .clean-card-image img{max-height:104px!important;}
  .clean-card-title{font-size:12.5px!important;min-height:32px!important;line-height:1.25!important;margin-bottom:7px!important;}
  .clean-card-badges{min-height:22px!important;gap:4px!important;margin-bottom:8px!important;}
  .clean-card-badges .tag-badge,.clean-card-badges .discount-chip{font-size:10px!important;padding:3px 5px!important;}
  .clean-card-desc{display:none!important;}
  .clean-card-price .old-price{font-size:11px!important;}
  .clean-card-price .current-price,.current-price,.product-price,.price-current{font-size:19px!important;}
  .clean-card-price small{font-size:10px!important;}
  .clean-card-buy .new-buy-btn,.clean-card-buy .product-buy-button,.clean-card-buy button{height:36px!important;min-height:36px!important;font-size:12px!important;}
}

/* V19 - camada final: 4 modelos de supermercado online, cards e botoes estabilizados */
:root{
  --store-brand:var(--primary,var(--green,#159947));
  --store-accent:var(--accent,#e92c3a);
  --store-bg:var(--site-bg,#f4f7f6);
  --store-card:var(--card-bg,#fff);
  --store-text:var(--ink,#172033);
  --store-muted:color-mix(in srgb,var(--store-text) 58%,#fff 42%);
  --store-border:color-mix(in srgb,var(--store-brand) 12%,#e5e7eb);
  --store-shadow:0 14px 36px rgba(15,23,42,.10);
  --store-soft-shadow:0 8px 22px rgba(15,23,42,.07);
}
body{
  background:radial-gradient(circle at 8% 0,color-mix(in srgb,var(--store-brand) 11%,transparent),transparent 360px),linear-gradient(180deg,#fff,var(--store-bg))!important;
  color:var(--store-text)!important;
}
.container{max-width:1360px!important;padding:18px clamp(10px,2vw,24px) 46px!important;}
.storefront-header{background:var(--header-bg,#fff)!important;box-shadow:0 8px 28px rgba(15,23,42,.08)!important;}
.store-info-strip{background:linear-gradient(90deg,color-mix(in srgb,var(--store-brand) 13%,#fff),color-mix(in srgb,var(--store-accent) 8%,#fff))!important;}
.storefront-topbar .main-nav a{transition:.16s ease!important;}
.storefront-topbar .main-nav a:hover{transform:translateY(-1px)!important;}
.storefront-topbar .main-nav .cart-link{background:var(--store-accent)!important;color:#fff!important;border-color:var(--store-accent)!important;}
.storefront-topbar .main-nav .login-link{background:var(--store-brand)!important;color:#fff!important;border-color:var(--store-brand)!important;}
.market-search-panel{background:linear-gradient(135deg,color-mix(in srgb,var(--store-brand) 14%,#fff),color-mix(in srgb,var(--store-accent) 6%,#fff))!important;border:1px solid var(--store-border)!important;border-radius:30px!important;box-shadow:var(--store-soft-shadow)!important;}
.market-search button,.btn,.smart-search button,.cookie-accept{background:var(--store-brand)!important;border-color:var(--store-brand)!important;color:#fff!important;}
.market-slider,.promo-card{border-radius:26px!important;box-shadow:var(--store-shadow)!important;border:1px solid rgba(255,255,255,.72)!important;}
.market-categories-wrap{background:rgba(255,255,255,.82)!important;border:1px solid rgba(231,237,243,.88)!important;border-radius:26px!important;box-shadow:var(--store-soft-shadow)!important;}
.market-cat{background:var(--store-card)!important;border:1px solid color-mix(in srgb,var(--category-color,var(--store-brand)) 14%,#e5e7eb)!important;border-radius:20px!important;box-shadow:0 6px 18px rgba(15,23,42,.05)!important;color:var(--store-text)!important;}
.market-cat:hover,.market-cat.selected{border-color:var(--category-color,var(--store-brand))!important;transform:translateY(-2px)!important;}
.cat-circle{background:color-mix(in srgb,var(--category-color,var(--store-brand)) 12%,#fff)!important;color:var(--category-color,var(--store-brand))!important;border:0!important;box-shadow:none!important;}
.market-cat.selected .cat-circle{background:var(--category-color,var(--store-brand))!important;color:#fff!important;}

/* Estrutura consistente do produto */
.product-rail.clean-product-rail{display:flex!important;gap:20px!important;overflow-x:auto!important;overflow-y:visible!important;scroll-snap-type:x mandatory!important;scroll-behavior:smooth!important;padding:8px 4px 18px!important;}
.market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(238px,1fr))!important;gap:20px!important;align-items:stretch!important;}
.clean-market-card,.market-product-card.clean-market-card,.supermarket-product-card.clean-market-card{
  width:100%!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:430px!important;
  display:flex!important;flex-direction:column!important;position:relative!important;overflow:visible!important;
  padding:14px!important;border-radius:24px!important;background:var(--store-card)!important;color:var(--store-text)!important;
  border:1px solid color-mix(in srgb,var(--store-brand) 10%,#e6edf4)!important;box-shadow:0 10px 28px rgba(15,23,42,.08)!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}
.product-rail.clean-product-rail > .clean-market-card{flex:0 0 248px!important;max-width:248px!important;scroll-snap-align:start!important;}
.clean-market-card:hover{transform:translateY(-3px)!important;box-shadow:0 20px 42px rgba(15,23,42,.13)!important;border-color:color-mix(in srgb,var(--store-brand) 26%,#e6edf4)!important;}
.clean-market-card.is-promo{border-color:color-mix(in srgb,var(--promo-glow,var(--store-accent)) 38%,#fff)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--promo-glow,var(--store-accent)) 18%,transparent),0 16px 42px color-mix(in srgb,var(--promo-glow,var(--store-accent)) 16%,transparent)!important;}
.promo-ribbon{position:absolute!important;left:14px!important;right:14px!important;top:-11px!important;z-index:5!important;border-radius:999px!important;background:linear-gradient(135deg,var(--promo-glow,var(--store-accent)),color-mix(in srgb,var(--promo-glow,var(--store-accent)) 70%,#111))!important;color:#fff!important;padding:7px 10px!important;text-align:center!important;font-size:10px!important;font-weight:950!important;letter-spacing:.04em!important;text-transform:uppercase!important;box-shadow:0 10px 20px color-mix(in srgb,var(--promo-glow,var(--store-accent)) 24%,transparent)!important;}
.product-media-wrap,.clean-card-media{position:relative!important;margin:0 0 12px!important;min-height:176px!important;border-radius:20px!important;background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--store-brand) 5%,#fff))!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:12px!important;overflow:hidden!important;}
.product-card-top{position:absolute!important;left:10px!important;right:10px!important;top:10px!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:8px!important;z-index:3!important;pointer-events:none!important;}
.product-tag-stack{display:flex!important;flex-direction:column!important;gap:5px!important;align-items:flex-start!important;max-width:calc(100% - 40px)!important;}
.product-tag,.discount-chip{display:inline-flex!important;max-width:100%!important;align-items:center!important;border-radius:999px!important;padding:5px 8px!important;font-size:10px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.product-tag{background:#fff!important;color:var(--store-brand)!important;border:1px solid color-mix(in srgb,var(--store-brand) 16%,#e5e7eb)!important;}
.discount-chip{background:var(--store-accent)!important;color:#fff!important;border:0!important;}
.quick-view-link,.clean-card-menu{pointer-events:auto!important;width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border-radius:999px!important;background:rgba(255,255,255,.95)!important;color:var(--store-text)!important;text-decoration:none!important;border:1px solid #edf2f7!important;box-shadow:0 6px 14px rgba(15,23,42,.08)!important;font-size:15px!important;}
.product-photo,.clean-card-image,.market-product-image{width:100%!important;height:150px!important;margin:0!important;display:grid!important;place-items:center!important;text-decoration:none!important;background:transparent!important;}
.product-photo img,.clean-card-image img,.market-product-image img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;background:transparent!important;mix-blend-mode:multiply;}
.product-content,.clean-card-body{display:flex!important;flex-direction:column!important;gap:7px!important;flex:1 1 auto!important;min-height:146px!important;padding:2px 2px 0!important;}
.product-title,.clean-card-title,.market-product-card h3{margin:0!important;min-height:42px!important;font-size:15px!important;line-height:1.3!important;font-weight:850!important;letter-spacing:-.015em!important;color:var(--store-text)!important;}
.product-title a,.clean-card-title a,.market-product-card h3 a{color:inherit!important;text-decoration:none!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
.product-subtitle,.clean-card-desc{margin:0!important;min-height:36px!important;color:var(--store-muted)!important;font-size:12px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
.price-box,.clean-card-price{margin-top:auto!important;margin-bottom:10px!important;display:flex!important;align-items:flex-end!important;gap:5px!important;flex-wrap:wrap!important;}
.old-price{color:#9ca3af!important;text-decoration:line-through!important;font-size:12px!important;font-weight:700!important;}
.current-price,.compact-price,.product-price,.price-current{color:var(--store-brand)!important;font-size:25px!important;line-height:1!important;font-weight:950!important;letter-spacing:-.05em!important;}
.price-box small{color:var(--store-muted)!important;font-size:12px!important;font-weight:800!important;padding-bottom:1px!important;}
.product-buy-row,.clean-card-buy,.new-card-buy-form{margin-top:auto!important;width:100%!important;display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;}
.qty-stepper,.new-card-stepper{height:42px!important;border:1px solid color-mix(in srgb,var(--store-brand) 16%,#e5e7eb)!important;border-radius:999px!important;background:#fff!important;display:grid!important;grid-template-columns:28px 1fr 28px!important;align-items:center!important;overflow:hidden!important;box-shadow:none!important;}
.new-card-qty-btn{height:100%!important;border:0!important;background:transparent!important;color:var(--store-brand)!important;font-size:18px!important;font-weight:950!important;cursor:pointer!important;line-height:1!important;padding:0!important;}
.new-card-qty-value{text-align:center!important;color:var(--store-text)!important;font-weight:900!important;font-size:14px!important;}
.product-buy-button,.new-buy-btn,.clean-card-buy button,.plus-btn{width:100%!important;height:42px!important;min-height:42px!important;border:0!important;border-radius:999px!important;background:var(--store-accent)!important;color:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:14px!important;font-weight:950!important;line-height:1!important;text-transform:uppercase!important;letter-spacing:.01em!important;padding:0 12px!important;white-space:nowrap!important;box-shadow:0 10px 20px color-mix(in srgb,var(--store-accent) 22%,transparent)!important;cursor:pointer!important;}
.product-buy-button:hover,.new-buy-btn:hover{filter:brightness(.96)!important;transform:translateY(-1px)!important;}

/* 4 modelos padrao */
.layout-supermarket .clean-product-section{background:rgba(255,255,255,.64)!important;border:1px solid rgba(231,237,243,.78)!important;border-radius:28px!important;padding:18px!important;box-shadow:0 10px 28px rgba(15,23,42,.05)!important;margin-bottom:26px!important;}
.layout-supermarket .product-rail.clean-product-rail > .clean-market-card{flex-basis:260px!important;max-width:260px!important;}
.layout-sidebar .market-page-shell{display:grid!important;grid-template-columns:270px minmax(0,1fr)!important;gap:22px!important;align-items:start!important;}
.layout-sidebar .market-categories-wrap{position:sticky!important;top:116px!important;max-height:calc(100vh - 136px)!important;overflow:auto!important;padding:14px!important;}
.layout-sidebar .category-carousel{display:block!important;}
.layout-sidebar .category-carousel .cat-nav{display:none!important;}
.layout-sidebar .category-carousel .market-categories{display:flex!important;flex-direction:column!important;gap:9px!important;overflow:visible!important;padding:0!important;}
.layout-sidebar .category-carousel .market-cat{width:100%!important;max-width:none!important;min-width:0!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;text-align:left!important;gap:10px!important;padding:10px!important;}
.layout-sidebar .cat-circle{width:42px!important;height:42px!important;margin:0!important;border-radius:14px!important;font-size:22px!important;flex:0 0 auto!important;}
.layout-sidebar .clean-product-rail{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(225px,1fr))!important;gap:18px!important;overflow:visible!important;}
.layout-sidebar .clean-product-rail > .clean-market-card{flex:initial!important;max-width:none!important;}
.layout-grid .clean-product-section{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;}
.layout-grid .clean-product-rail{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(245px,1fr))!important;gap:20px!important;overflow:visible!important;}
.layout-grid .clean-product-rail > .clean-market-card{flex:initial!important;max-width:none!important;}
.layout-grid .product-media-wrap{min-height:192px!important;}
.layout-grid .product-photo{height:166px!important;}
.layout-compact .market-search-panel{grid-template-columns:1fr!important;padding:16px!important;border-radius:22px!important;}
.layout-compact .clean-product-rail,.layout-compact .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:13px!important;overflow:visible!important;}
.layout-compact .clean-product-rail > .clean-market-card{flex:initial!important;max-width:none!important;}
.layout-compact .clean-market-card{min-height:350px!important;border-radius:18px!important;padding:10px!important;}
.layout-compact .product-media-wrap{min-height:126px!important;border-radius:15px!important;}
.layout-compact .product-photo{height:112px!important;}
.layout-compact .product-content{min-height:122px!important;gap:5px!important;}
.layout-compact .product-title{font-size:13px!important;min-height:34px!important;}
.layout-compact .product-subtitle{font-size:11px!important;min-height:28px!important;}
.layout-compact .current-price{font-size:21px!important;}
.layout-compact .product-buy-row{grid-template-columns:1fr!important;}
.layout-compact .qty-stepper{height:36px!important;}
.layout-compact .product-buy-button{height:38px!important;min-height:38px!important;}

@media(max-width:980px){
  .layout-sidebar .market-page-shell{display:block!important;}
  .layout-sidebar .market-categories-wrap{position:relative!important;top:auto!important;max-height:none!important;overflow:visible!important;}
  .layout-sidebar .category-carousel{display:grid!important;grid-template-columns:38px minmax(0,1fr) 38px!important;gap:8px!important;}
  .layout-sidebar .category-carousel .cat-nav{display:grid!important;}
  .layout-sidebar .category-carousel .market-categories{display:flex!important;flex-direction:row!important;overflow-x:auto!important;padding:5px 2px 10px!important;}
  .layout-sidebar .category-carousel .market-cat{flex:0 0 104px!important;min-width:104px!important;max-width:104px!important;display:block!important;text-align:center!important;}
  .layout-sidebar .cat-circle{width:56px!important;height:56px!important;margin:0 auto 8px!important;}
  .layout-grid .clean-product-rail,.layout-sidebar .clean-product-rail,.layout-compact .clean-product-rail,.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
  .product-rail.clean-product-rail > .clean-market-card{flex-basis:calc((100vw - 54px)/2)!important;max-width:calc((100vw - 54px)/2)!important;}
}
@media(max-width:640px){
  .store-info-inner{justify-content:flex-start!important;overflow-x:auto!important;white-space:nowrap!important;}
  .storefront-topbar .main-nav a:nth-child(1),.storefront-topbar .main-nav a:nth-child(2){display:none!important;}
  .market-search-panel h1{font-size:23px!important;}
  .market-search{border-radius:18px!important;}
  .market-search button{border-radius:14px!important;padding:0 13px!important;}
  .section-actions{gap:7px!important;}
  .section-actions a{font-size:13px!important;}
  .rail-arrow{width:34px!important;height:34px!important;font-size:24px!important;}
  .layout-supermarket .clean-product-section{padding:12px!important;border-radius:22px!important;}
  .clean-product-rail{gap:10px!important;}
  .market-grid,.layout-grid .clean-product-rail,.layout-sidebar .clean-product-rail,.layout-compact .clean-product-rail,.layout-compact .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .product-rail.clean-product-rail > .clean-market-card{flex-basis:calc((100vw - 34px)/2)!important;max-width:calc((100vw - 34px)/2)!important;}
  .clean-market-card{min-height:324px!important;padding:8px!important;border-radius:18px!important;}
  .promo-ribbon{top:-8px!important;left:8px!important;right:8px!important;font-size:8px!important;padding:6px 8px!important;}
  .product-media-wrap{min-height:118px!important;border-radius:14px!important;padding:8px!important;margin-bottom:8px!important;}
  .product-photo,.clean-card-image,.market-product-image{height:104px!important;}
  .quick-view-link{width:28px!important;height:28px!important;font-size:13px!important;}
  .product-tag,.discount-chip{font-size:8px!important;padding:4px 6px!important;}
  .product-content{min-height:116px!important;gap:5px!important;}
  .product-title{font-size:12.5px!important;min-height:33px!important;line-height:1.32!important;}
  .product-subtitle{font-size:10.5px!important;min-height:27px!important;}
  .current-price{font-size:19px!important;}
  .price-box small{font-size:10px!important;}
  .product-buy-row{grid-template-columns:1fr!important;gap:7px!important;}
  .qty-stepper{height:34px!important;}
  .product-buy-button{height:36px!important;min-height:36px!important;font-size:12px!important;}
}
@media(max-width:390px){
  .market-grid,.layout-grid .clean-product-rail,.layout-sidebar .clean-product-rail,.layout-compact .clean-product-rail,.layout-compact .market-grid{grid-template-columns:1fr!important;}
  .product-rail.clean-product-rail > .clean-market-card{flex-basis:82vw!important;max-width:82vw!important;}
  .clean-market-card{min-height:350px!important;}
}


/* ===== Slider principal sem texto sobreposto ===== */
.market-slider{
  aspect-ratio:5 / 1 !important;
  width:100% !important;
  height:auto !important;
  min-height:160px !important;
  max-height:none !important;
  border-radius:24px !important;
  overflow:hidden !important;
  position:relative !important;
  background:#ffffff !important;
}
.market-slide{
  position:absolute !important;
  inset:0 !important;
  display:block !important;
  background:#ffffff !important;
  text-decoration:none !important;
}
.market-slide::after{
  content:none !important;
  display:none !important;
}
.market-slide strong{
  display:none !important;
}
.market-slide img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:#ffffff !important;
}
.slider-dots{
  bottom:14px !important;
  right:14px !important;
}

@media (max-width: 900px){
  .market-slider{
    min-height:120px !important;
    border-radius:18px !important;
  }
}

@media (max-width: 560px){
  .market-slider{
    min-height:76px !important;
    border-radius:14px !important;
  }
  .slider-dots{
    bottom:10px !important;
    right:10px !important;
    padding:6px !important;
  }
}


/* ===== Ajustes finais: somente Layout 01 e banners sem laterais ===== */
.single-layout-choice{grid-template-columns:1fr!important;max-width:520px;}
.single-layout-choice .layout-choice{cursor:default!important;}
.single-layout-choice .layout-choice.active{border-color:var(--green,#159947)!important;background:linear-gradient(180deg,#fff,#f0fff4)!important;}

/* Oculta qualquer banner lateral legado que exista no banco ou no CSS antigo */
.ad-column,.side-banner,.left-sidebar,.right-sidebar,[data-banner-position="left_sidebar"],[data-banner-position="right_sidebar"]{display:none!important;}

/* Banner do meio da home: ocupar a largura toda da pagina/conteudo */
.home-middle-banners{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:16px!important;
  width:100%!important;
  margin:18px 0 24px!important;
}
.home-middle-banners .promo-card{
  width:100%!important;
  min-height:0!important;
  border-radius:22px!important;
  overflow:hidden!important;
  display:block!important;
  box-shadow:var(--store-shadow,0 18px 42px rgba(15,23,42,.10))!important;
}
.home-middle-banners .promo-card img{
  width:100%!important;
  height:auto!important;
  min-height:120px!important;
  max-height:360px!important;
  object-fit:cover!important;
  display:block!important;
}
.home-middle-banners .promo-card span{display:none!important;}

@media(max-width:560px){
  .home-middle-banners .promo-card{border-radius:14px!important;}
  .home-middle-banners .promo-card img{min-height:82px!important;max-height:210px!important;}
}


/* V20 - cor configuravel da fonte dos botoes */
:root{
  --button-text-color:var(--button-text,#ffffff);
}
.btn,
.btn:visited,
.btn:hover,
.btn:active,
.btn:focus,
button.btn,
button.btn:hover,
button.btn:active,
.market-search button,
.market-search button:hover,
.market-search button:active,
.smart-search button,
.smart-search button:hover,
.smart-search button:active,
.filter-submit,
.filter-submit:hover,
.filter-submit:active,
.cookie-accept,
.cookie-accept:hover,
.cookie-accept:active,
.checkout-form button[type=submit],
.cart-form .btn,
.admin-form .btn,
.admin-head .btn:not(.danger),
.storefront-topbar .main-nav a:hover,
.storefront-topbar .main-nav a:active,
.storefront-topbar .main-nav a:focus,
.storefront-topbar .main-nav .login-link,
.storefront-topbar .main-nav .login-link:hover,
.storefront-topbar .main-nav .login-link:active,
.storefront-topbar .main-nav .cart-link,
.storefront-topbar .main-nav .cart-link:hover,
.storefront-topbar .main-nav .cart-link:active{
  color:var(--button-text-color)!important;
}
.product-buy-button,
.product-buy-button:hover,
.product-buy-button:active,
.new-buy-btn,
.new-buy-btn:hover,
.new-buy-btn:active,
.clean-card-buy button,
.clean-card-buy button:hover,
.clean-card-buy button:active,
.plus-btn,
.plus-btn:hover,
.plus-btn:active,
.sample-buy,
.sample-btn{
  color:var(--button-text-color)!important;
}
.storefront-topbar .main-nav a:hover * ,
.storefront-topbar .main-nav a:active * ,
.storefront-topbar .main-nav .login-link * ,
.storefront-topbar .main-nav .cart-link *{
  color:var(--button-text-color)!important;
}


/* ===== V6 FIX: aplicar formato/modelo dos botoes na loja real ===== */
:root{--button-text-color:var(--button-text,#ffffff)}
.btn,
.market-search button,
.smart-search button,
.checkout-form button[type=submit],
.cart-form .btn,
.admin-form .btn,
.admin-head .btn:not(.danger),
.product-buy-button,
.new-buy-btn,
.clean-card-buy button,
.plus-btn,
.sample-buy,
.sample-btn{
  color:var(--button-text-color,#ffffff)!important;
}
.btn *,
.market-search button *,
.smart-search button *,
.product-buy-button *,
.new-buy-btn *,
.clean-card-buy button *,
.plus-btn *{
  color:var(--button-text-color,#ffffff)!important;
}
.btn:hover,
.btn:active,
.btn:focus,
.market-search button:hover,
.market-search button:active,
.product-buy-button:hover,
.product-buy-button:active,
.product-buy-button:focus,
.new-buy-btn:hover,
.new-buy-btn:active,
.new-buy-btn:focus,
.clean-card-buy button:hover,
.clean-card-buy button:active,
.plus-btn:hover,
.plus-btn:active{
  color:var(--button-text-color,#ffffff)!important;
}

/* Formato global dos botoes */
body.btn-style-pill .btn,
body.btn-style-pill .market-search button,
body.btn-style-pill .smart-search button,
body.btn-style-pill .product-buy-button,
body.btn-style-pill .new-buy-btn,
body.btn-style-pill .clean-card-buy button,
body.btn-style-pill .plus-btn{border-radius:999px!important;}
body.btn-style-rounded .btn,
body.btn-style-rounded .market-search button,
body.btn-style-rounded .smart-search button,
body.btn-style-rounded .product-buy-button,
body.btn-style-rounded .new-buy-btn,
body.btn-style-rounded .clean-card-buy button,
body.btn-style-rounded .plus-btn{border-radius:16px!important;}
body.btn-style-square .btn,
body.btn-style-square .market-search button,
body.btn-style-square .smart-search button,
body.btn-style-square .product-buy-button,
body.btn-style-square .new-buy-btn,
body.btn-style-square .clean-card-buy button,
body.btn-style-square .plus-btn{border-radius:4px!important;box-shadow:none!important;}
body.btn-style-soft .btn,
body.btn-style-soft .market-search button,
body.btn-style-soft .smart-search button,
body.btn-style-soft .product-buy-button,
body.btn-style-soft .new-buy-btn,
body.btn-style-soft .clean-card-buy button,
body.btn-style-soft .plus-btn{
  border-radius:14px!important;
  background:linear-gradient(180deg,var(--brand,var(--green)),color-mix(in srgb,var(--brand,var(--green)) 82%,#000))!important;
  box-shadow:0 12px 28px color-mix(in srgb,var(--brand,var(--green)) 20%,transparent)!important;
}

/* Modelo do botao de comprar */
body.buy-btn-icon .product-buy-row,
body.buy-btn-icon .new-card-buy-form{grid-template-columns:86px 48px!important;}
body.buy-btn-icon .product-buy-button,
body.buy-btn-icon .new-buy-btn,
body.buy-btn-icon .clean-card-buy button{
  width:48px!important;min-width:48px!important;max-width:48px!important;padding:0!important;font-size:24px!important;text-transform:none!important;
}
body.buy-btn-text .product-buy-button,
body.buy-btn-text .new-buy-btn,
body.buy-btn-text .clean-card-buy button,
body.buy-btn-cart_text .product-buy-button,
body.buy-btn-cart_text .new-buy-btn,
body.buy-btn-cart_text .clean-card-buy button,
body.buy-btn-add_text .product-buy-button,
body.buy-btn-add_text .new-buy-btn,
body.buy-btn-add_text .clean-card-buy button{
  width:100%!important;min-width:0!important;max-width:none!important;padding:0 12px!important;font-size:14px!important;
}
body.buy-btn-text .product-buy-button,
body.buy-btn-text .new-buy-btn,
body.buy-btn-text .clean-card-buy button{text-transform:uppercase!important;}
body.buy-btn-cart_text .product-buy-button,
body.buy-btn-cart_text .new-buy-btn,
body.buy-btn-cart_text .clean-card-buy button{text-transform:none!important;}
body.buy-btn-add_text .product-buy-button,
body.buy-btn-add_text .new-buy-btn,
body.buy-btn-add_text .clean-card-buy button{text-transform:none!important;}

/* Preview do painel usando as cores escolhidas */
.sample-buy,
.sample-btn{color:var(--button-text-color,#ffffff)!important;}


/* ===== Carrinho AJAX e pagamentos no rodapé ===== */
.cart-float-toast{
  position:fixed;right:22px;bottom:92px;z-index:9999;display:flex;align-items:center;gap:10px;
  max-width:min(360px,calc(100vw - 32px));padding:14px 16px;border-radius:18px;background:#111827;color:#fff;
  box-shadow:0 18px 45px rgba(15,23,42,.26);transform:translateY(16px);opacity:0;pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;font-weight:850;
}
.cart-float-toast.show{opacity:1;transform:translateY(0)}
.cart-float-toast strong{width:28px;height:28px;border-radius:999px;display:inline-grid;place-items:center;background:var(--green);color:var(--button-text-color,#fff);font-size:18px;flex:0 0 auto}
.cart-float-toast span{line-height:1.25}
.new-buy-btn.is-loading,.btn.is-loading{opacity:.72;cursor:wait}
.footer-payment-methods{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 8px}
.footer-payment-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e5e7eb;background:#fff;border-radius:999px;padding:7px 10px;font-size:13px!important;font-weight:850!important;color:#334155!important;line-height:1.1}
.footer-payment-chip span{font-size:15px!important;color:inherit!important}
.payment-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.payment-switch{display:flex!important;align-items:center!important;gap:10px!important}
.payment-switch-icon{font-size:22px;display:inline-grid;place-items:center;width:28px}
@media(max-width:700px){.payment-admin-grid{grid-template-columns:1fr}.cart-float-toast{left:12px;right:12px;bottom:82px}}


/* ===== V8 ajustes finais admin, pagamento e card qty ===== */
.payment-img{display:none!important;}

/* Evita sobreposicao do seletor de quantidade com o botao de comprar */
.product-buy-row,
.clean-card-buy,
.new-card-buy-form{
  display:grid!important;
  grid-template-columns:minmax(116px,1fr) minmax(92px,auto)!important;
  gap:10px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
}
.qty-stepper,
.new-card-stepper{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:42px!important;
  display:grid!important;
  grid-template-columns:36px minmax(28px,1fr) 36px!important;
  align-items:center!important;
  overflow:hidden!important;
  border-radius:999px!important;
  position:relative!important;
  z-index:1!important;
}
.new-card-qty-btn{
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  height:42px!important;
  display:inline-grid!important;
  place-items:center!important;
  padding:0!important;
  font-size:20px!important;
  line-height:1!important;
  position:relative!important;
  z-index:2!important;
}
.new-card-qty-value{
  display:block!important;
  min-width:28px!important;
  padding:0 2px!important;
  text-align:center!important;
  position:relative!important;
  z-index:1!important;
}
.product-buy-button,
.new-buy-btn,
.clean-card-buy button{
  position:relative!important;
  z-index:2!important;
  min-width:0!important;
  overflow:hidden!important;
}
body.buy-btn-icon .product-buy-row,
body.buy-btn-icon .new-card-buy-form,
body.buy-btn-icon .clean-card-buy{
  grid-template-columns:minmax(112px,1fr) 46px!important;
  gap:10px!important;
}
body.buy-btn-icon .product-buy-button,
body.buy-btn-icon .new-buy-btn,
body.buy-btn-icon .clean-card-buy button{
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:42px!important;
  padding:0!important;
  font-size:22px!important;
  flex:0 0 46px!important;
}
@media(max-width:560px){
  .product-buy-row,
  .clean-card-buy,
  .new-card-buy-form,
  body.buy-btn-icon .product-buy-row,
  body.buy-btn-icon .new-card-buy-form,
  body.buy-btn-icon .clean-card-buy{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  body.buy-btn-icon .product-buy-button,
  body.buy-btn-icon .new-buy-btn,
  body.buy-btn-icon .clean-card-buy button{
    width:100%!important;
    max-width:none!important;
  }
}


/* ===== Login admin moderno ===== */
.admin-login-page{
  min-height:100vh!important;
  margin:0!important;
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb,var(--login-brand,#15770e) 22%, transparent), transparent 30%),
    radial-gradient(circle at 92% 8%, color-mix(in srgb,var(--login-accent,#4bbd00) 18%, transparent), transparent 28%),
    linear-gradient(135deg,#f4fff7 0%,#ffffff 45%,#eef7f1 100%)!important;
  color:#101828!important;
}
.admin-login-shell{
  min-height:100vh!important;
  display:grid!important;
  place-items:center!important;
  padding:28px!important;
}
.admin-login-card{
  width:min(100%,1040px)!important;
  min-height:620px!important;
  display:grid!important;
  grid-template-columns:minmax(320px,.95fr) minmax(360px,1.05fr)!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(215,228,219,.9)!important;
  border-radius:34px!important;
  box-shadow:0 34px 95px rgba(15,23,42,.16)!important;
  backdrop-filter:blur(16px)!important;
}
.admin-login-hero{
  position:relative!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  padding:34px!important;
  color:#fff!important;
  background:
    linear-gradient(145deg,color-mix(in srgb,var(--login-brand,#15770e) 96%,#062d13),color-mix(in srgb,var(--login-accent,#4bbd00) 72%,#02330f))!important;
}
.admin-login-hero:before{
  content:''!important;
  position:absolute!important;
  inset:auto -80px -120px auto!important;
  width:310px!important;
  height:310px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.16)!important;
}
.admin-login-hero:after{
  content:'🛒'!important;
  position:absolute!important;
  right:30px!important;
  bottom:18px!important;
  font-size:170px!important;
  line-height:1!important;
  opacity:.10!important;
  transform:rotate(-10deg)!important;
}
.admin-login-hero-glow{
  position:absolute!important;
  inset:0!important;
  background:
    radial-gradient(circle at 25% 20%,rgba(255,255,255,.25),transparent 32%),
    linear-gradient(180deg,rgba(255,255,255,.16),transparent 45%)!important;
  pointer-events:none!important;
}
.admin-login-logo-wrap{
  position:relative!important;
  z-index:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:flex-start!important;
  max-width:240px!important;
  min-height:76px!important;
  padding:12px 16px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 18px 45px rgba(0,0,0,.18)!important;
}
.admin-login-logo-img{
  display:block!important;
  max-width:200px!important;
  max-height:70px!important;
  object-fit:contain!important;
}
.admin-login-logo-text{
  color:var(--login-brand,#15770e)!important;
  font-size:22px!important;
  line-height:1.05!important;
  font-weight:950!important;
  letter-spacing:-.04em!important;
}
.admin-login-hero-copy{
  position:relative!important;
  z-index:1!important;
  margin:44px 0!important;
}
.admin-login-hero-copy span{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.17)!important;
  border:1px solid rgba(255,255,255,.25)!important;
  font-size:13px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
.admin-login-hero-copy h1{
  margin:18px 0 12px!important;
  color:#fff!important;
  font-size:clamp(34px,4vw,52px)!important;
  line-height:.96!important;
  letter-spacing:-.065em!important;
}
.admin-login-hero-copy p{
  max-width:390px!important;
  margin:0!important;
  color:rgba(255,255,255,.86)!important;
  font-size:16px!important;
  line-height:1.55!important;
  font-weight:650!important;
}
.admin-login-benefits{
  position:relative!important;
  z-index:1!important;
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.admin-login-benefits span{
  padding:10px 12px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.14)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:900!important;
}
.admin-login-form-panel{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  padding:48px!important;
  background:linear-gradient(180deg,#fff,#fbfefc)!important;
}
.admin-login-title small{
  display:inline-flex!important;
  margin-bottom:11px!important;
  padding:7px 11px!important;
  border-radius:999px!important;
  color:var(--login-brand,#15770e)!important;
  background:color-mix(in srgb,var(--login-brand,#15770e) 10%,#fff)!important;
  font-weight:950!important;
  font-size:12px!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
.admin-login-title h2{
  margin:0 0 8px!important;
  color:#101828!important;
  font-size:42px!important;
  line-height:1!important;
  letter-spacing:-.06em!important;
}
.admin-login-title p{
  margin:0 0 28px!important;
  color:#667085!important;
  font-weight:700!important;
}
.login-hidden-field{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.admin-login-form label{
  display:block!important;
  margin:16px 0 8px!important;
  color:#1d2939!important;
  font-weight:950!important;
}
.admin-login-input-wrap{
  display:flex!important;
  align-items:center!important;
  min-height:58px!important;
  background:#f8fafc!important;
  border:1px solid #dbe4ed!important;
  border-radius:20px!important;
  transition:.16s ease!important;
}
.admin-login-input-wrap:focus-within{
  background:#fff!important;
  border-color:var(--login-brand,#15770e)!important;
  box-shadow:0 0 0 5px color-mix(in srgb,var(--login-brand,#15770e) 13%,transparent)!important;
}
.admin-login-input-wrap span{
  width:52px!important;
  text-align:center!important;
  font-size:18px!important;
  filter:saturate(.9)!important;
}
.admin-login-input-wrap .input{
  min-height:56px!important;
  flex:1!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  padding:0 18px 0 0!important;
  font-size:16px!important;
  color:#101828!important;
}
.admin-login-input-wrap .input:focus{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.admin-login-submit{
  width:100%!important;
  min-height:58px!important;
  margin-top:24px!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,var(--login-brand,#15770e),var(--login-accent,#4bbd00))!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:950!important;
  box-shadow:0 18px 38px color-mix(in srgb,var(--login-brand,#15770e) 26%,transparent)!important;
}
.admin-login-submit:hover{
  transform:translateY(-1px)!important;
  filter:brightness(1.03)!important;
}
@media(max-width:820px){
  .admin-login-shell{padding:16px!important;}
  .admin-login-card{grid-template-columns:1fr!important;min-height:auto!important;border-radius:28px!important;}
  .admin-login-hero{padding:26px!important;min-height:310px!important;}
  .admin-login-form-panel{padding:28px!important;}
  .admin-login-title h2{font-size:34px!important;}
}
@media(max-width:520px){
  .admin-login-hero{min-height:260px!important;padding:22px!important;}
  .admin-login-logo-wrap{min-height:62px!important;max-width:210px!important;}
  .admin-login-logo-img{max-width:175px!important;max-height:56px!important;}
  .admin-login-hero-copy{margin:28px 0!important;}
  .admin-login-hero-copy h1{font-size:32px!important;}
  .admin-login-hero-copy p{font-size:14px!important;}
  .admin-login-form-panel{padding:22px!important;}
  .admin-login-title h2{font-size:30px!important;}
}


/* ===== V11 - Departamentos, ofertas, topo editável e área do cliente ===== */
.store-info-strip{background:color-mix(in srgb,var(--green) 10%,#fff)!important;border-bottom:1px solid color-mix(in srgb,var(--green) 16%,#d9e7df)!important;color:var(--green)!important;font-weight:950!important;font-size:13px!important}
.store-info-inner{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:center;padding:8px 16px;text-align:center}
.top-info-item{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;white-space:nowrap;color:inherit;text-decoration:none}
.top-info-item .si{font-size:15px}
.page-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin:22px 0!important;padding:28px!important;border-radius:30px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--green) 12%,#fff),#fff)!important;border:1px solid color-mix(in srgb,var(--green) 14%,#e5e7eb)!important;box-shadow:0 18px 45px rgba(15,23,42,.07)!important}
.page-hero h1{margin:8px 0 6px!important;font-size:clamp(30px,4vw,48px)!important;line-height:1!important;letter-spacing:-.06em!important;color:var(--ink)!important}
.page-hero p{margin:0!important;color:#667085!important;font-weight:650!important;max-width:680px!important}
.eyebrow{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:7px 12px!important;border-radius:999px!important;background:color-mix(in srgb,var(--green) 10%,#fff)!important;color:var(--green)!important;font-weight:950!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.05em!important}
.departments-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;gap:18px!important;margin:18px 0 34px!important}
.department-card{position:relative!important;display:flex!important;align-items:center!important;gap:16px!important;padding:20px!important;min-height:134px!important;border-radius:28px!important;background:var(--card-bg,#fff)!important;border:1px solid color-mix(in srgb,var(--green) 13%,#e5e7eb)!important;box-shadow:0 12px 30px rgba(15,23,42,.06)!important;text-decoration:none!important;color:var(--ink)!important;overflow:hidden!important;transition:.18s ease!important}
.department-card:before{content:''!important;position:absolute!important;inset:auto -40px -50px auto!important;width:130px!important;height:130px!important;border-radius:999px!important;background:color-mix(in srgb,var(--green) 8%,transparent)!important}
.department-card:hover{transform:translateY(-3px)!important;box-shadow:0 22px 46px rgba(15,23,42,.11)!important;border-color:color-mix(in srgb,var(--green) 45%,#e5e7eb)!important}
.department-icon{position:relative!important;z-index:1!important;display:grid!important;place-items:center!important;flex:0 0 76px!important;width:76px!important;height:76px!important;border-radius:24px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--green) 18%,#fff),#fff)!important;border:1px solid color-mix(in srgb,var(--green) 20%,#e5e7eb)!important;font-size:36px!important;box-shadow:0 10px 22px rgba(15,23,42,.06)!important;overflow:hidden!important}
.department-icon img{width:100%!important;height:100%!important;object-fit:cover!important}
.department-card h2{position:relative!important;z-index:1!important;margin:0 0 6px!important;font-size:21px!important;letter-spacing:-.035em!important;color:var(--ink)!important}
.department-card p{position:relative!important;z-index:1!important;margin:0!important;color:#667085!important;font-size:13px!important;line-height:1.35!important}
.department-arrow{position:relative!important;z-index:1!important;margin-left:auto!important;font-size:34px!important;color:var(--green)!important;font-weight:900!important}
.offers-grid{margin-bottom:34px!important}
.customer-login-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 420px!important;gap:22px!important;align-items:stretch!important;margin:28px 0 44px!important}
.customer-login-card,.customer-login-side,.customer-panel{background:var(--card-bg,#fff)!important;border:1px solid rgba(226,232,240,.92)!important;border-radius:32px!important;box-shadow:0 20px 50px rgba(15,23,42,.08)!important}
.customer-login-card{padding:34px!important}
.customer-login-card h1{margin:10px 0 8px!important;font-size:clamp(34px,4vw,52px)!important;line-height:1!important;letter-spacing:-.065em!important;color:var(--ink)!important}
.customer-login-card p{margin:0 0 22px!important;color:#667085!important;font-weight:650!important;line-height:1.5!important}
.customer-login-card .btn{width:100%;margin-top:18px;min-height:54px}
.customer-login-actions{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:18px;font-size:14px;font-weight:800}
.customer-login-actions a{color:var(--green);text-decoration:none}
.customer-login-side{padding:24px!important;background:linear-gradient(145deg,color-mix(in srgb,var(--green) 88%,#02320f),color-mix(in srgb,var(--green) 55%,#0f172a))!important;color:#fff!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:14px!important;overflow:hidden!important;position:relative!important}
.customer-login-side:after{content:'🧺'!important;position:absolute!important;right:-22px!important;bottom:-34px!important;font-size:150px!important;opacity:.10!important;transform:rotate(-12deg)!important}
.customer-benefit{position:relative!important;z-index:1!important;display:grid!important;grid-template-columns:48px 1fr!important;gap:4px 12px!important;align-items:center!important;padding:14px!important;border-radius:20px!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.18)!important}
.customer-benefit .si{grid-row:span 2;width:48px;height:48px;border-radius:16px;background:rgba(255,255,255,.16);font-size:22px}
.customer-benefit strong{font-size:16px;color:#fff}.customer-benefit span{font-size:13px;color:rgba(255,255,255,.78)}
.customer-dashboard{display:grid!important;grid-template-columns:1fr 1fr!important;gap:20px!important;margin-bottom:40px!important}
.customer-panel{padding:24px!important;overflow:hidden!important}.customer-panel h2{margin:0 0 14px!important;font-size:24px!important;letter-spacing:-.04em!important}
.customer-orders{display:flex;flex-direction:column;gap:10px}.customer-order-row{display:grid;grid-template-columns:1fr auto auto auto;gap:12px;align-items:center;padding:12px;border:1px solid #edf1f5;border-radius:16px;background:#f8fafc;font-size:14px}.customer-order-row b{color:var(--green)}
.customer-lists{display:grid;gap:10px;margin-top:16px}.customer-list-card{padding:14px;border:1px solid #edf1f5;border-radius:18px;background:#f8fafc}.customer-list-card p{margin:8px 0;color:#667085;line-height:1.4}.customer-list-card .btn{padding:8px 12px;font-size:13px}
.admin-soft-sep{border:0;border-top:1px solid #edf1f5;margin:26px 0}.admin-section-subtitle{font-size:22px!important;margin:0 0 6px!important;letter-spacing:-.03em!important}
@media(max-width:900px){.store-info-inner{grid-template-columns:1fr;gap:4px}.page-hero{display:block!important}.page-hero .btn{margin-top:16px}.customer-login-shell,.customer-dashboard{grid-template-columns:1fr!important}.customer-login-side{min-height:280px}.customer-order-row{grid-template-columns:1fr 1fr}.departments-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important}}
@media(max-width:560px){.page-hero{padding:20px!important;border-radius:22px!important}.department-card{padding:16px!important;border-radius:22px!important}.department-icon{width:62px!important;height:62px!important;flex-basis:62px!important;font-size:30px!important}.customer-login-card,.customer-login-side,.customer-panel{border-radius:22px!important;padding:20px!important}.customer-order-row{grid-template-columns:1fr!important;gap:5px}.customer-login-actions{display:grid}}

/* Controle de estoque no cadastro de produtos - atualização 2026-07 */
.stock-admin-box{border:2px solid color-mix(in srgb,var(--green) 32%,#dbe7df)!important;background:linear-gradient(180deg,#f7fff9,#fff)!important}
.stock-admin-box h2{margin:0 0 4px;color:var(--green-dark)}
.stock-help{min-height:48px;padding:12px 14px;border:1px dashed #b9d9c2;border-radius:15px;background:#fff;color:#536172;line-height:1.45}

/* Conta do cliente e confirmação de pedido */
.customer-auth-box{margin-top:18px;padding:16px;border:1px solid #d9e2ec;border-radius:14px;background:#f8fafc}
.customer-auth-box .alert{margin:0 0 14px}
.customer-order-card{border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;margin-bottom:12px;background:#fff}
.customer-order-card summary{cursor:pointer;list-style:none;padding:14px}
.customer-order-card summary::-webkit-details-marker{display:none}
.customer-order-detail{padding:0 14px 16px;border-top:1px solid #eef1f4}
.customer-order-detail .table{margin-top:10px}
.order-updated{background:#f0fdf4}
.actions-cell{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.actions-cell form{margin:0}
@media(max-width:760px){.customer-order-row{display:grid!important;grid-template-columns:1fr auto;gap:8px}.customer-order-detail .table{font-size:13px}}

.highlighted-order{outline:2px solid var(--primary,#1f7a4d);outline-offset:2px;}


/* Feedback visual ao adicionar produtos sem sair da página */
#cartLink.cart-added-pulse{animation:cartAddedPulse .65s ease}
#cartCountBadge{transition:transform .2s ease}
#cartLink.cart-added-pulse #cartCountBadge{transform:scale(1.28)}
@keyframes cartAddedPulse{
  0%{transform:scale(1)}
  35%{transform:scale(1.08)}
  100%{transform:scale(1)}
}


/* Carrinho: ações principais com hierarquia visual */
.cart-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:18px}
.cart-actions .cart-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:52px!important;padding:13px 20px!important;text-decoration:none!important;font-weight:900!important;border:0!important;box-shadow:0 10px 24px rgba(15,23,42,.12)!important}
.cart-actions .cart-btn-icon{width:21px;height:21px;display:inline-flex;flex:0 0 21px}
.cart-actions .cart-btn-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cart-actions .cart-btn-clear{background:#dc2626!important;border-color:#dc2626!important;color:#fff!important}
.cart-actions .cart-btn-continue{background:#111827!important;border-color:#111827!important;color:#fff!important}
.cart-actions .cart-btn-checkout{background:#16a34a!important;border-color:#16a34a!important;color:#fff!important;min-width:230px!important;transform:scale(1.03)}
.cart-actions .cart-btn:hover{filter:brightness(.92)!important;transform:translateY(-1px)}
.cart-actions .cart-btn-checkout:hover{transform:scale(1.03) translateY(-1px)}
#delivery_slot_hint{display:block;margin-top:7px;line-height:1.35}
@media(max-width:700px){.cart-actions{display:grid;grid-template-columns:1fr;width:100%}.cart-actions .cart-btn{width:100%!important}.cart-actions .cart-btn-checkout{order:-1;transform:none}.cart-actions .cart-btn-checkout:hover{transform:translateY(-1px)}}


/* Detalhes do produto e desconto percentual */
.product-detail-card{position:relative;display:grid;grid-template-columns:minmax(280px,42%) 1fr;gap:28px;align-items:start;overflow:visible}
.product-close{all:unset;position:absolute!important;top:14px!important;right:14px!important;z-index:50!important;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important;border:0!important;border-radius:999px!important;background:#fff!important;color:#172033!important;font-size:28px!important;font-weight:800!important;line-height:1!important;cursor:pointer!important;box-shadow:0 8px 24px rgba(15,23,42,.16)!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.product-close:hover{transform:scale(1.05)}
.product-image-shell{width:100%;min-width:0;border-radius:18px;background:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center}
.product-big{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;object-position:center}
.product-detail-content{min-width:0;padding:12px 52px 12px 0}
.product-detail-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:18px 0}
.detail-old-price{font-size:15px!important}.detail-price-prefix{font-weight:700;color:#64748b}.product-buy{display:grid;grid-template-columns:minmax(90px,130px) minmax(180px,1fr);gap:12px;align-items:end}.product-buy label{grid-column:1/-1}.product-buy .btn{width:100%}
@media(max-width:760px){.product-detail-card{grid-template-columns:1fr;gap:16px;padding:14px}.product-image-shell{min-height:220px;max-height:48vh}.product-big{max-height:48vh}.product-detail-content{padding:0 4px 8px}.product-close{top:10px;right:10px}.product-buy{grid-template-columns:96px 1fr}.big-price{font-size:28px!important}}
@media(max-width:430px){.product-buy{grid-template-columns:1fr}.product-buy label{grid-column:auto}.product-image-shell{min-height:190px}.product-close{width:38px;height:38px;font-size:27px}}

/* ===== Ajuste final de responsividade: banners inteiros e topo compacto ===== */
.storefront-header{position:sticky;top:0;z-index:60}
.topbar.storefront-topbar{padding-top:9px!important;padding-bottom:9px!important;min-height:62px!important}
.storefront-topbar .brand-image img{max-height:42px!important;width:auto!important}
.storefront-topbar .main-nav a{min-height:38px!important;padding:8px 12px!important}
.store-info-inner{padding-top:5px!important;padding-bottom:5px!important}

/* Os banners principais usados no projeto possuem proporcao 1920x384 (5:1). */
.market-slider{
  width:100%!important;
  aspect-ratio:5 / 1!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  background:#f3f4f6!important;
}
.market-slide,.market-slide img{width:100%!important;height:100%!important}
.market-slide img{object-fit:contain!important;object-position:center!important;background:#f3f4f6!important}

/* Banners promocionais nao devem ser recortados em nenhuma tela. */
.promo-card{min-height:0!important;background:#f3f4f6!important}
.promo-card img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
}

@media(max-width:980px){
  .store-info-inner{display:flex!important;padding:4px 12px!important;font-size:11px!important;gap:18px!important}
  .topbar.storefront-topbar{flex-wrap:nowrap!important;padding:8px 12px!important;gap:8px!important;min-height:56px!important}
  .storefront-topbar .brand{flex:1 1 auto!important;min-width:0!important;margin:0!important;font-size:17px!important;overflow:hidden!important}
  .storefront-topbar .brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .storefront-topbar .brand-image img{max-width:160px!important;max-height:38px!important}
  .storefront-topbar .main-nav{width:auto!important;flex:0 0 auto!important;justify-content:flex-end!important;gap:6px!important}
  .storefront-topbar .main-nav a{flex:0 0 auto!important;min-height:38px!important}
  .market-slider{aspect-ratio:5 / 1!important;min-height:0!important;border-radius:14px!important}
}

@media(max-width:640px){
  html{scroll-padding-top:72px!important}
  .store-info-strip{display:none!important}
  .topbar.storefront-topbar{padding:7px 10px!important;min-height:52px!important;box-shadow:0 3px 12px rgba(15,23,42,.06)!important}
  .storefront-topbar .brand{font-size:15px!important}
  .storefront-topbar .brand:before{width:32px!important;height:32px!important;min-width:32px!important;font-size:16px!important}
  .storefront-topbar .brand-image img{max-width:132px!important;max-height:34px!important}
  .storefront-topbar .main-nav a:nth-child(1),
  .storefront-topbar .main-nav a:nth-child(2){display:none!important}
  .storefront-topbar .main-nav a{
    width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
    padding:0!important;border-radius:12px!important;font-size:0!important;gap:0!important;
  }
  .storefront-topbar .main-nav a .si{font-size:18px!important}
  .storefront-topbar .main-nav .cart-link:before{content:'🧺';font-size:18px!important;line-height:1}
  .storefront-topbar .main-nav .cart-link strong{position:absolute!important;margin:0!important;transform:translate(13px,-13px);min-width:18px!important;height:18px!important;font-size:10px!important}
  .storefront-topbar .main-nav .cart-link{position:relative!important}
  .market-slider{aspect-ratio:5 / 1!important;min-height:0!important;margin-bottom:10px!important;border-radius:10px!important}
  .slider-dots{right:8px!important;bottom:6px!important;padding:4px!important;gap:4px!important}
  .slider-dots button{width:6px!important;height:6px!important}
  .slider-dots button.active{width:16px!important}
  .market-search-panel{margin-top:8px!important;padding:12px!important}
  .market-search-panel h1{font-size:18px!important}
  .market-search-panel p{font-size:12px!important}
  .promo-grid,.promo-grid-all{gap:8px!important;margin:8px 0!important}
  .promo-card{border-radius:10px!important}
}


/* Correcoes integradas v5 */
.product-media-wrap,.clean-card-media,.product-image-shell{background:#fff!important;box-shadow:0 8px 22px rgba(15,23,42,.08)!important}
.product-photo img,.clean-card-image img,.market-product-image img,.product-big{object-fit:contain!important;background:#fff!important;mix-blend-mode:normal!important}
.admin-product-search{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:10px;align-items:center;margin-bottom:12px}.admin-product-search .input{margin:0}.table-responsive{overflow-x:auto}
.favorite-product-btn{position:absolute;top:10px;right:50px;z-index:8;width:36px;height:36px;border:1px solid #e5e7eb;border-radius:50%;background:#fff;font-size:23px;line-height:1;color:#64748b;cursor:pointer;box-shadow:0 6px 16px rgba(15,23,42,.10)}.favorite-product-btn.active{color:#dc2626}
.product-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:18px}.product-modal.open{display:flex}.product-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.68);backdrop-filter:blur(4px)}.product-modal-dialog{position:relative;z-index:1;width:min(1040px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;padding:18px;box-shadow:0 30px 80px rgba(0,0,0,.28)}.product-modal-close{position:sticky;top:0;float:right;z-index:20;width:42px;height:42px;border:0;border-radius:50%;background:#fff;font-size:28px;box-shadow:0 8px 20px rgba(15,23,42,.18);cursor:pointer}.modal-open{overflow:hidden}.modal-loading{padding:60px;text-align:center;font-weight:800}.product-modal .product-detail-card{box-shadow:none!important;border:0!important;margin:0!important}
@media(max-width:640px){.storefront-topbar{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}.storefront-topbar .brand{flex:none!important;justify-content:center!important;width:100%!important}.storefront-topbar .main-nav{width:100%!important;justify-content:center!important}.storefront-topbar .main-nav a{width:auto!important;min-width:42px!important;padding:0 10px!important}.storefront-topbar .main-nav .logged-user{max-width:130px!important}.admin-product-search{grid-template-columns:1fr}.product-modal{padding:8px}.product-modal-dialog{padding:10px;border-radius:16px;max-height:96vh}.market-slider{aspect-ratio:auto!important;height:auto!important}.market-slide{position:relative!important;display:none!important}.market-slide.active{display:block!important}.market-slide img{height:auto!important;max-height:none!important}.promo-card img,.wide-banner img{height:auto!important;max-height:none!important;object-fit:contain!important}}
/* Painel do cliente e listas funcionais - v6 */
.product-card-actions{position:absolute;top:10px;right:48px;z-index:9;display:flex;gap:7px}
.product-card-actions .favorite-product-btn,.product-card-actions .shopping-list-product-btn{position:static!important;width:36px;height:36px;border:1px solid #e5e7eb;border-radius:50%;background:#fff;font-size:21px;line-height:1;color:#64748b;cursor:pointer;box-shadow:0 6px 16px rgba(15,23,42,.10);display:grid;place-items:center}
.product-card-actions .favorite-product-btn.active{color:#dc2626;background:#fff1f2;border-color:#fecdd3}
.product-card-actions .shopping-list-product-btn.active{color:var(--green);background:#ecfdf3;border-color:#bbf7d0}
.customer-account-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start;margin:24px 0 42px}
.customer-sidebar{position:sticky;top:18px;padding:18px!important}
.customer-profile-mini{padding:10px 8px 18px;border-bottom:1px solid #e9eef3;margin-bottom:10px}.customer-profile-mini strong{display:block;font-size:18px}.customer-profile-mini span{font-size:13px;color:#64748b}
.customer-menu{display:grid;gap:6px}.customer-menu a{display:flex;align-items:center;gap:10px;padding:12px 13px;border-radius:13px;text-decoration:none;color:#334155;font-weight:800}.customer-menu a:hover,.customer-menu a.active{background:color-mix(in srgb,var(--green) 12%,#fff);color:var(--green)}
.customer-content{min-width:0}.customer-section{scroll-margin-top:20px;margin-bottom:20px}.customer-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.customer-section-head h2{margin:0!important}.customer-section-head p{margin:4px 0 0;color:#64748b}
.customer-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}.customer-product-item{border:1px solid #e7edf2;border-radius:18px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:10px}.customer-product-item img{width:100%;height:130px;object-fit:contain;background:#fff;border-radius:14px;box-shadow:0 8px 22px rgba(15,23,42,.08)}.customer-product-item h3{font-size:15px;line-height:1.3;margin:0;min-height:39px}.customer-product-item .price{font-weight:900;color:var(--green)}.customer-product-actions{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:auto}.customer-product-actions .btn{padding:9px 10px;font-size:12px}.customer-product-actions .icon-btn{width:40px;padding:0}
.customer-list-block{border:1px solid #e7edf2;border-radius:20px;background:#f8fafc;padding:16px;margin-top:14px}.customer-list-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.customer-list-title h3{margin:0}.customer-list-title small{color:#64748b}.customer-empty{padding:30px;text-align:center;border:1px dashed #cbd5e1;border-radius:18px;color:#64748b;background:#f8fafc}.customer-bulk-actions{display:flex;gap:8px;flex-wrap:wrap}.btn.secondary{background:#0f172a;color:#fff}.btn.small{padding:9px 12px;font-size:13px}.customer-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.customer-stat{padding:18px;border-radius:20px;background:#fff;border:1px solid #e7edf2;box-shadow:0 10px 26px rgba(15,23,42,.05)}.customer-stat strong{display:block;font-size:27px}.customer-stat span{color:#64748b;font-size:13px;font-weight:700}
@media(max-width:900px){.customer-account-layout{grid-template-columns:1fr}.customer-sidebar{position:static}.customer-menu{grid-template-columns:repeat(3,1fr)}.customer-menu a{justify-content:center;text-align:center}.customer-profile-mini{text-align:center}.customer-stats{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.customer-menu{grid-template-columns:1fr 1fr}.customer-stats{grid-template-columns:1fr}.customer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.customer-product-item{padding:9px}.customer-product-item img{height:105px}.product-card-actions{right:44px;gap:4px}.product-card-actions .favorite-product-btn,.product-card-actions .shopping-list-product-btn{width:32px;height:32px;font-size:18px}}

/* Navegacao real do painel do cliente e acoes somente no popup - v7 */
.customer-dashboard-home{padding:24px!important}
.customer-dashboard-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.customer-dashboard-links a{display:grid;grid-template-columns:46px 1fr;column-gap:13px;align-items:center;padding:18px;border:1px solid #e5eaf0;border-radius:18px;background:#fff;color:#1e293b;text-decoration:none;box-shadow:0 8px 24px rgba(15,23,42,.05);transition:.2s ease}
.customer-dashboard-links a:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--green) 35%,#e5eaf0);box-shadow:0 14px 30px rgba(15,23,42,.09)}
.customer-dashboard-links i{grid-row:1/3;width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:color-mix(in srgb,var(--green) 12%,#fff);color:var(--green);font-size:20px}
.customer-dashboard-links strong{font-size:16px}.customer-dashboard-links span{font-size:13px;color:#64748b;margin-top:3px}
.product-popup-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.product-popup-actions .favorite-product-btn,.product-popup-actions .shopping-list-product-btn{position:static!important;width:auto!important;height:44px!important;padding:0 16px!important;border:1px solid #dce3ea!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;color:#334155!important;font-size:14px!important;font-weight:800!important;display:inline-flex!important;align-items:center!important;gap:8px!important;cursor:pointer}
.product-popup-actions .favorite-product-btn.active{color:#be123c!important;background:#fff1f2!important;border-color:#fecdd3!important}
.product-popup-actions .shopping-list-product-btn.active{color:var(--green)!important;background:#ecfdf3!important;border-color:#bbf7d0!important}
.product-popup-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:640px){.customer-dashboard-links{grid-template-columns:1fr}.customer-dashboard-home{padding:16px!important}.product-popup-actions{display:grid;grid-template-columns:1fr}.product-popup-actions .favorite-product-btn,.product-popup-actions .shopping-list-product-btn{justify-content:center!important;width:100%!important}}
.customer-login-modal{position:fixed;inset:0;background:rgba(15,23,42,.58);display:none;align-items:center;justify-content:center;padding:20px;z-index:99999}.customer-login-modal.open{display:flex}.customer-login-modal-card{position:relative;width:min(460px,100%);background:#fff;border-radius:20px;padding:28px;box-shadow:0 25px 70px rgba(15,23,42,.25)}.customer-login-modal-card h2{margin:0 0 8px}.customer-login-modal-card p{color:#64748b;line-height:1.55}.customer-login-modal-card .modal-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:30px;cursor:pointer;color:#64748b}.customer-login-modal-card .btn{width:100%;margin-top:14px}.customer-login-modal-card .recover-link{display:inline-block;margin-top:16px;font-weight:700}.customer-auth-box{margin-top:14px}

/* Gestão de pedidos v9 */
.order-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.order-summary-card{padding:18px 20px;border:1px solid #e5ebf1;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05)}.order-summary-card span{display:block;color:#64748b;font-weight:700;font-size:13px}.order-summary-card strong{display:block;margin-top:5px;font-size:28px;color:#0f172a}.order-list-card{padding:18px!important}.order-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 220px;gap:12px;margin-bottom:16px}.order-toolbar .input,.order-toolbar select{margin:0}.order-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.order-admin-card{border:1px solid #e5ebf1;border-radius:20px;background:#fff;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.045);transition:.2s}.order-admin-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,23,42,.08)}.order-admin-card.order-updated{border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.12)}.order-admin-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.order-number{font-size:12px;font-weight:900;letter-spacing:.08em;color:#64748b}.order-admin-top h3{margin:5px 0 2px;font-size:19px}.order-admin-top small{color:#64748b}.order-status{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900;background:#eef2f7;color:#334155;white-space:nowrap}.status-recebido{background:#eff6ff;color:#1d4ed8}.status-separando{background:#fff7ed;color:#c2410c}.status-pedido-alterado{background:#fef3c7;color:#92400e}.status-saiu-para-entrega{background:#f3e8ff;color:#7e22ce}.status-entregue{background:#ecfdf5;color:#047857}.status-cancelado{background:#fef2f2;color:#b91c1c}.order-admin-meta{display:grid;grid-template-columns:1.5fr .55fr .8fr;gap:10px;margin:16px 0;padding:13px;background:#f8fafc;border-radius:14px}.order-admin-meta small{display:block;color:#64748b;font-size:11px;font-weight:700}.order-admin-meta strong{display:block;margin-top:3px;font-size:13px}.order-admin-actions,.admin-head-actions{display:flex;gap:8px;flex-wrap:wrap}.order-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #edf1f5}.status-inline-form{display:flex;gap:8px;flex:1}.status-inline-form select{min-width:0;flex:1}.back-link{display:inline-block;margin-bottom:8px;color:#64748b;text-decoration:none;font-weight:800}.order-view-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}.order-document{padding:26px!important}.order-side-panel{display:grid;gap:16px;position:sticky;top:18px}.order-side-panel .card{padding:20px!important}.full{width:100%;justify-content:center;margin-top:10px}.whatsapp-callout{background:#effcf4!important;border-color:#bbf7d0!important}.order-note{padding:14px 16px;border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;margin:16px 0}.order-note p{margin:5px 0 0}.order-change-history{margin-top:18px}.change-line{display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,2fr) auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f5}.change-line:last-child{border-bottom:0}.change-line span{color:#475569}.change-line small{font-weight:800;color:#64748b}.change-removed strong{color:#b91c1c}.change-added strong{color:#047857}.change-quantity strong{color:#92400e}.separation-page{max-width:1500px;margin:0 auto;padding:24px}.separation-total{text-align:right}.separation-total small{display:block;color:#64748b}.separation-total strong{display:block;font-size:30px;margin:2px 0 8px}.separation-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:20px;align-items:start}.separation-items{display:grid;gap:12px}.separation-item-card{display:grid;grid-template-columns:92px minmax(0,1fr) 190px 220px;gap:14px;align-items:center;padding:14px;border:1px solid #e5ebf1;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.045)}.separation-item-card>img{width:92px;height:92px;object-fit:contain;background:#fff;border-radius:14px;box-shadow:0 6px 18px rgba(15,23,42,.08)}.separation-item-info h3{font-size:15px;margin:0 0 5px}.separation-item-info span{display:block;color:#64748b;font-size:13px}.separation-item-info strong{display:block;margin-top:7px;color:var(--green);font-size:18px}.qty-control label{display:block;font-size:12px;font-weight:800;margin-bottom:5px}.qty-control>div{display:grid;grid-template-columns:38px 1fr 38px}.qty-control>div button,.qty-control>div input{height:38px;border:1px solid #dbe3ea;text-align:center;background:#fff}.qty-control>div button:first-child{border-radius:10px 0 0 10px}.qty-control>div button:last-child{border-radius:0 10px 10px 0}.qty-control .btn{margin-top:7px;width:100%}.remove-item-form{display:grid;gap:7px}.separation-sidebar{display:grid;gap:16px;position:sticky;top:16px}.product-picker{padding:18px!important}.product-picker-results{max-height:430px;overflow:auto;margin-top:10px;display:grid;gap:8px}.product-picker-row{display:grid;grid-template-columns:48px minmax(0,1fr) 58px auto;gap:8px;align-items:center;padding:8px;border:1px solid #e7edf2;border-radius:13px}.product-picker-row img{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:9px}.product-picker-row strong{display:block;font-size:12px;line-height:1.25}.product-picker-row small{display:block;color:#64748b;font-size:10px;margin-top:3px}.product-picker-row input{width:58px}.status-action-form+.status-action-form{margin-top:8px}.warning-btn{background:#d97706!important;color:#fff!important}.alert.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.customer-order-changes{margin-top:15px;padding:14px;border:1px solid #fde68a;border-radius:14px;background:#fffbeb}.customer-order-changes h4{margin:0 0 8px}
@media(max-width:1100px){.order-admin-grid{grid-template-columns:1fr}.order-view-layout,.separation-layout{grid-template-columns:1fr}.order-side-panel,.separation-sidebar{position:static}.separation-item-card{grid-template-columns:80px minmax(0,1fr) 180px}.remove-item-form{grid-column:2/4}}
@media(max-width:720px){.order-summary-grid{grid-template-columns:1fr 1fr}.order-toolbar{grid-template-columns:1fr}.order-admin-meta{grid-template-columns:1fr 1fr}.order-admin-meta>div:first-child{grid-column:1/3}.order-card-footer,.status-inline-form{align-items:stretch;flex-direction:column}.separation-page{padding:12px}.separation-item-card{grid-template-columns:72px minmax(0,1fr)}.separation-item-card>img{width:72px;height:72px}.qty-control,.remove-item-form{grid-column:1/3}.product-picker-row{grid-template-columns:42px minmax(0,1fr) 52px}.product-picker-row .btn{grid-column:2/4}.change-line{grid-template-columns:1fr}.order-document{padding:16px!important}}
@media print{.admin-topbar,.admin-sidebar,.no-print,.topbar,footer,.footer,.cookie-banner{display:none!important}.admin-layout,.container,.admin-content,.order-view-layout{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}.print-sheet,.order-document{box-shadow:none!important;border:0!important;padding:0!important;margin:0!important}.print-table{font-size:12px}.order-change-history{page-break-inside:avoid}body{background:#fff!important}}

/* Fluxo natural de status do pedido */
.status-flow-card .current-status-box{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;margin:14px 0 18px;border:1px solid #dfe7e3;border-radius:14px;background:#f7faf8}
.status-flow-card .current-status-box span{font-size:.82rem;color:#667085}
.status-flow-card .current-status-box strong{font-size:1rem;text-align:right}
.status-flow-card .next-status-label{margin:0 0 8px;font-size:.82rem;font-weight:700;color:#667085;text-transform:uppercase;letter-spacing:.04em}
.status-primary-action{min-height:48px}
.cancel-order-details{margin-top:14px;border-top:1px solid #e7ece9;padding-top:12px}
.cancel-order-details summary{cursor:pointer;color:#b42318;font-weight:700;list-style:none;text-align:center}
.cancel-order-details summary::-webkit-details-marker{display:none}
.cancel-order-form{margin-top:14px;display:grid;gap:10px}
.btn.danger{background:#d92d20;color:#fff;border-color:#d92d20}
.btn.danger:hover{background:#b42318;border-color:#b42318}
.btn.whatsapp{background:#25d366;color:#fff;border-color:#25d366}
.btn.whatsapp:hover{background:#1fb857;border-color:#1fb857}
.whatsapp-resend-card{border-color:#ccebd8;background:#f4fff8}

/* v10.3 - visualização limpa do pedido */
.order-view-readonly .order-document{min-width:0}
.order-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}
.order-info-box,.order-address-box{padding:16px 18px;border:1px solid #e6ebf1;border-radius:16px;background:#fff}
.order-info-box span,.order-address-box span{display:block;margin-bottom:6px;color:#6b778c;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.order-info-box strong,.order-address-box strong{display:block;color:#13213a;font-size:16px}
.order-info-box p,.order-address-box p{margin:6px 0 0;color:#667085;line-height:1.5}
.order-address-box{margin-bottom:18px}
.order-view-actions-card .btn+.btn{margin-top:10px}
.status-summary-card .current-status-box{margin-bottom:12px}
@media (max-width:760px){.order-info-grid{grid-template-columns:1fr}.order-view-layout.order-view-readonly{display:block}.order-view-readonly .order-side-panel{margin-top:18px}}

/* v10.4 - ação principal e correção exclusiva do admin master */
.separation-main-action-card{border:2px solid var(--green)!important;background:linear-gradient(145deg,#f1fff6,#fff)!important;box-shadow:0 16px 38px rgba(21,153,71,.18)!important}
.action-eyebrow{display:inline-flex;padding:5px 9px;border-radius:999px;background:#dcfce7;color:#087536;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.action-eyebrow.master{background:#fff4d6;color:#92400e}
.separation-main-action-card h2{margin:10px 0 5px;font-size:24px}
.separation-highlight-btn{min-height:60px!important;margin-top:16px!important;background:var(--green)!important;color:#fff!important;border:0!important;font-size:17px!important;font-weight:900!important;box-shadow:0 12px 24px rgba(21,153,71,.28)!important;transition:transform .18s ease,box-shadow .18s ease!important}
.separation-highlight-btn:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(21,153,71,.34)!important}
.master-status-card{border-color:#f3d38a!important;background:#fffdf7!important}
.master-status-form{display:grid;gap:10px;margin-top:14px}
.master-status-form select,.master-status-form textarea{width:100%;border:1px solid #d9e1e8;border-radius:12px;background:#fff;padding:12px 13px;font:inherit}
.master-status-form textarea{resize:vertical;min-height:86px}
.master-status-btn{background:#9a6700!important;color:#fff!important;border-color:#9a6700!important}
.master-status-btn:hover{background:#7a5100!important;border-color:#7a5100!important}

/* Modal de confirmação do sistema */
.system-confirm-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:20px}
.system-confirm-modal.is-open{display:flex}
.system-confirm-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.system-confirm-dialog{position:relative;width:min(430px,100%);background:#fff;border-radius:22px;padding:26px;box-shadow:0 24px 70px rgba(15,23,42,.28);animation:systemModalIn .18s ease-out}
.system-confirm-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#fff4df;color:#c77700;font-size:26px;margin-bottom:16px}
.system-confirm-dialog h3{margin:0 0 8px;font-size:1.35rem;color:#14213d}
.system-confirm-dialog p{margin:0;color:#667085;line-height:1.55}
.system-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}
.system-confirm-actions .btn{min-height:46px;justify-content:center}
.system-confirm-cancel{background:#eef2f6!important;color:#24324a!important;border:1px solid #dce3eb!important}
.system-confirm-submit{background:var(--green,#159947)!important;color:#fff!important}
.system-notice-dialog .system-confirm-icon{background:#eaf8ef;color:#159947}
.system-notice-dialog .system-confirm-actions{grid-template-columns:1fr}
@keyframes systemModalIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:520px){.system-confirm-dialog{padding:22px;border-radius:18px}.system-confirm-actions{grid-template-columns:1fr}.system-confirm-cancel{order:2}}


/* v10.8 - fluxo de separacao e cabecalhos do painel */
.separation-admin-top{position:sticky;top:0;z-index:80;border-bottom:1px solid #e8edf2;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.separation-admin-top .brand{font-weight:950;color:#0f172a;text-decoration:none}
.separation-admin-top nav{display:flex;align-items:center;gap:8px}
.separation-admin-main{max-width:1560px;padding-top:20px}
.separation-operator-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.separation-operator-bar>div{padding:14px 16px;background:#fff;border:1px solid #e5ebf1;border-radius:16px;box-shadow:0 7px 20px rgba(15,23,42,.04)}
.separation-operator-bar span{display:block;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.05em;color:#64748b}
.separation-operator-bar strong{display:block;margin-top:5px;color:#0f172a}
.separation-complete-box{display:grid;gap:8px;text-align:center;padding:18px!important}
.separation-complete-box strong{font-size:18px}.separation-complete-box span{color:#64748b}
.order-page-top{margin:0 0 18px;background:#fff;border:1px solid #e5ebf1;border-radius:20px;padding:16px 20px;box-shadow:0 8px 24px rgba(15,23,42,.045)}
.order-page-back{display:inline-flex;margin-bottom:12px;color:#475569;text-decoration:none;font-weight:850;font-size:13px}
.order-page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.order-page-title span{font-size:11px;font-weight:900;letter-spacing:.08em;color:#64748b}
.order-page-title h1{margin:3px 0 0;font-size:28px;line-height:1.1;color:#0f172a}
.order-page-top-status{text-align:right}.order-page-top-status small{display:block;color:#64748b;font-weight:750}.order-page-top-status strong{display:block;margin-top:4px;font-size:16px;color:#0f172a}
.order-info-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.separator-info-box{background:#f0fdf4!important;border-color:#bbf7d0!important}
.change-print-table{margin-top:10px}.change-print-table th,.change-print-table td{text-align:left;vertical-align:top}.change-print-table td:nth-child(2){font-weight:800}
@media(max-width:1100px){.order-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.separator-info-box{grid-column:1/-1}}
@media(max-width:720px){.separation-admin-top{position:static}.separation-admin-top nav{gap:4px}.separation-admin-top nav a{font-size:12px;padding:8px}.separation-operator-bar{grid-template-columns:1fr}.order-page-title{align-items:flex-start;flex-direction:column}.order-page-top-status{text-align:left}.order-info-grid{grid-template-columns:1fr!important}.separator-info-box{grid-column:auto}}
@media print{.order-page-top{display:none!important}.change-print-table{width:100%!important;border-collapse:collapse!important}.change-print-table th,.change-print-table td{border:1px solid #222!important;padding:7px!important;font-size:11px!important}.separator-info-box{background:#fff!important;border:1px solid #222!important}.print-change-section h3{margin:16px 0 8px!important}}

/* v10.9 - resumo do pedido em linhas horizontais */
.order-info-grid{
  display:block!important;
  margin:22px 0!important;
  border:1px solid #e5ebf1;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.order-info-grid .order-info-box{
  display:grid;
  grid-template-columns:minmax(150px,210px) minmax(0,1fr);
  column-gap:22px;
  row-gap:4px;
  align-items:start;
  padding:15px 18px;
  border:0;
  border-radius:0;
  border-bottom:1px solid #e8edf2;
  background:#fff!important;
}
.order-info-grid .order-info-box:last-child{border-bottom:0}
.order-info-grid .order-info-box>span{
  grid-column:1;
  grid-row:1 / span 2;
  margin:2px 0 0;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.order-info-grid .order-info-box>strong{
  grid-column:2;
  margin:0;
  color:#0f172a;
  font-size:15px;
  line-height:1.35;
}
.order-info-grid .order-info-box>p{
  grid-column:2;
  margin:0;
  color:#64748b;
  line-height:1.45;
}
.order-info-grid .separator-info-box{
  box-shadow:inset 4px 0 0 #22c55e;
}
@media(max-width:640px){
  .order-info-grid .order-info-box{
    grid-template-columns:1fr;
    gap:5px;
    padding:14px 16px;
  }
  .order-info-grid .order-info-box>span,
  .order-info-grid .order-info-box>strong,
  .order-info-grid .order-info-box>p{
    grid-column:1;
    grid-row:auto;
  }
}
@media print{
  .order-info-grid{border:1px solid #222!important;border-radius:0!important}
  .order-info-grid .order-info-box{grid-template-columns:145px 1fr!important;padding:8px 10px!important;border-bottom:1px solid #222!important;box-shadow:none!important}
  .order-info-grid .order-info-box:last-child{border-bottom:0!important}
}

/* v10.11 - impressão do pedido com boxes modernos */
@media print{
  body{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important;background:#fff!important}
  .print-sheet.order-document{padding:12mm!important;background:#fff!important}
  .print-header{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:18px!important;padding-bottom:14px!important;margin-bottom:16px!important;border-bottom:2px solid #0f172a!important}
  .print-header h1{font-size:28px!important;line-height:1.1!important;margin:6px 0 0!important;color:#0f172a!important}
  .print-header p{margin:6px 0 0!important;color:#64748b!important;font-size:11px!important}
  .order-number{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:6px 12px!important;border-radius:999px!important;background:#eef2ff!important;border:1px solid #c7d2fe!important;color:#1e3a8a!important;font-size:10px!important;font-weight:900!important;letter-spacing:.08em!important}
  .print-total{display:inline-block!important;padding:10px 14px!important;border-radius:16px!important;background:#f0fdf4!important;border:1px solid #bbf7d0!important;color:#166534!important;font-size:24px!important;font-weight:950!important}
  .order-status{display:inline-flex!important;margin-bottom:10px!important;padding:6px 12px!important;border-radius:999px!important;background:#f8fafc!important;border:1px solid #dbe5ef!important;color:#0f172a!important;font-size:10px!important;font-weight:900!important;letter-spacing:.06em!important;text-transform:uppercase!important}

  .order-info-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important;margin:18px 0!important}
  .order-info-grid .order-info-box{display:block!important;padding:12px 14px!important;border:1px solid #dbe5ef!important;border-radius:16px!important;background:#f8fafc!important;box-shadow:none!important}
  .order-info-grid .order-info-box:last-child{border-bottom:1px solid #dbe5ef!important}
  .order-info-grid .separator-info-box{background:#f0fdf4!important;border-color:#bbf7d0!important;box-shadow:none!important}
  .order-info-grid .order-info-box>span{display:block!important;margin:0 0 6px!important;color:#64748b!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.08em!important}
  .order-info-grid .order-info-box>strong{display:block!important;margin:0!important;color:#0f172a!important;font-size:14px!important;line-height:1.35!important}
  .order-info-grid .order-info-box>p{display:block!important;margin:6px 0 0!important;color:#475569!important;font-size:11px!important;line-height:1.45!important}

  .order-address-box,.order-note{padding:12px 14px!important;border:1px solid #dbe5ef!important;border-radius:16px!important;background:#fff!important;box-shadow:none!important;margin-bottom:14px!important}
  .order-address-box span,.order-note strong{display:block!important;margin:0 0 6px!important;color:#64748b!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.08em!important}
  .order-address-box strong{display:block!important;margin:0!important;color:#0f172a!important;font-size:14px!important;line-height:1.4!important}
  .order-address-box p,.order-note p{margin:6px 0 0!important;color:#475569!important;line-height:1.5!important}

  .print-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid #dbe5ef!important;border-radius:16px!important;overflow:hidden!important;background:#fff!important;box-shadow:none!important;margin-top:0!important}
  .print-table thead th{background:#f8fafc!important;color:#0f172a!important;font-weight:900!important;font-size:11px!important;border-bottom:1px solid #dbe5ef!important}
  .print-table th,.print-table td{padding:10px 12px!important;border-bottom:1px solid #e5e7eb!important;color:#0f172a!important;font-size:11px!important;vertical-align:top!important}
  .print-table tbody tr:last-child td{border-bottom:1px solid #e5e7eb!important}
  .print-table tfoot th{background:#f8fafc!important;font-weight:900!important;border-top:0!important}
  .print-table tfoot tr:last-child th{background:#f0fdf4!important;color:#166534!important;font-size:12px!important}

  .print-change-section{margin-top:14px!important;padding:12px 14px!important;border:1px solid #dbe5ef!important;border-radius:16px!important;background:#fff!important;page-break-inside:avoid!important}
  .print-change-section h3{margin:0 0 10px!important;color:#0f172a!important;font-size:15px!important;line-height:1.2!important}
  .change-print-table{margin-top:0!important;border:0!important;border-radius:12px!important;overflow:hidden!important}
  .change-print-table th,.change-print-table td{text-align:left!important;vertical-align:top!important}

  .table,.card,.print-sheet{box-shadow:none!important}
}

/* v10.12 - clientes e perfil administrativo */
.customer-list-page,.customer-profile-page{max-width:1320px;margin:0 auto}.admin-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}.admin-page-kicker{display:block;margin-bottom:5px;color:var(--green);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.11em}.admin-page-heading h1,.customer-profile-hero h1{margin:0;color:#0f172a;font-size:34px;line-height:1.05}.admin-page-heading p,.customer-profile-hero p{margin:8px 0 0;color:#64748b}.customer-total-badge{display:flex;align-items:center;gap:10px;padding:10px 15px;border:1px solid #dbe5ef;border-radius:16px;background:#fff}.customer-total-badge strong{font-size:22px;color:#0f172a}.customer-total-badge span{max-width:70px;color:#64748b;font-size:11px;line-height:1.2}.customer-search-card{display:flex;align-items:center;gap:10px;padding:12px;margin-bottom:18px;border:1px solid #e2e8f0;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.05)}.customer-search-field{position:relative;flex:1}.customer-search-field input{width:100%;height:48px;padding:0 16px 0 45px;border:1px solid #dbe5ef;border-radius:14px;background:#f8fafc;font:inherit;outline:none}.customer-search-field input:focus{border-color:var(--green);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 13%,transparent)}.customer-search-icon{position:absolute;left:17px;top:50%;transform:translateY(-50%);font-size:23px;color:#64748b}.customer-search-button{height:48px;padding-inline:24px}.customer-list-card{overflow:hidden;border:1px solid #e2e8f0;border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.05)}.customer-list-head,.customer-list-row{display:grid;grid-template-columns:minmax(260px,1fr) minmax(190px,.6fr) 220px;align-items:center;gap:20px}.customer-list-head{padding:13px 20px;background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.customer-list-action-label{text-align:right}.customer-list-row{padding:15px 20px;border-bottom:1px solid #edf1f5;transition:.18s ease}.customer-list-row:last-child{border-bottom:0}.customer-list-row:hover{background:#fbfefc}.customer-list-name{display:flex;align-items:center;gap:12px;min-width:0}.customer-avatar,.customer-profile-avatar{display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:linear-gradient(145deg,#dcfce7,#bbf7d0);color:#166534;font-weight:950}.customer-avatar{width:42px;height:42px}.customer-list-name strong{display:block;color:#0f172a;font-size:15px}.customer-list-name small{display:block;margin-top:3px;color:#94a3b8}.customer-list-phone span{display:none}.customer-list-phone strong{color:#334155}.customer-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.customer-profile-button{min-width:120px}.customer-icon-danger{width:38px;height:38px;border:1px solid #fecaca;border-radius:12px;background:#fff;color:#dc2626;font-size:21px;cursor:pointer}.customer-empty-state,.customer-profile-empty{padding:44px 20px;text-align:center;border:1px dashed #cbd5e1;border-radius:20px;background:#f8fafc;color:#64748b}.customer-empty-state div{font-size:34px}.customer-empty-state h2{margin:10px 0 5px;color:#0f172a}.customer-empty-state p{margin:0}.customer-profile-back{display:inline-flex;margin-bottom:16px;color:#475569;font-size:13px;font-weight:850;text-decoration:none}.customer-profile-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid #e2e8f0;border-radius:24px;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.05)}.customer-profile-identity{display:flex;align-items:center;gap:16px}.customer-profile-avatar{width:62px;height:62px;font-size:25px}.customer-profile-contact-actions{display:flex;gap:10px;flex-wrap:wrap}.customer-profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.customer-profile-stats>div{padding:17px 18px;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.customer-profile-stats span{display:block;color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.customer-profile-stats strong{display:block;margin-top:7px;color:#0f172a;font-size:23px}.customer-profile-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,.8fr);gap:16px;align-items:start}.customer-profile-sidebar{display:grid;gap:16px}.customer-profile-section{border:1px solid #e2e8f0;border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.04);overflow:hidden}.customer-profile-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 20px;border-bottom:1px solid #edf1f5}.customer-profile-section-head span{display:block;color:#64748b;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.customer-profile-section-head h2{margin:4px 0 0;color:#0f172a;font-size:19px}.customer-profile-section-head>strong{display:grid;place-items:center;min-width:34px;height:34px;padding:0 10px;border-radius:12px;background:#f1f5f9;color:#334155}.customer-order-list{display:grid}.customer-order-row{display:grid;grid-template-columns:80px 1fr 1fr 110px 140px 120px;align-items:center;gap:12px;padding:15px 20px;border-bottom:1px solid #edf1f5}.customer-order-row:last-child{border-bottom:0}.customer-order-row>div>span{display:block;margin-bottom:4px;color:#94a3b8;font-size:10px;font-weight:850;text-transform:uppercase}.customer-order-row strong{color:#0f172a;font-size:13px}.customer-order-row small{display:block;margin-top:3px;color:#64748b}.customer-order-id strong{font-size:17px}.customer-order-status{display:inline-flex;padding:6px 9px;border-radius:999px;background:#f1f5f9;font-size:11px!important}.customer-order-open{padding:9px 12px;font-size:12px}.customer-data-list{margin:0}.customer-data-list>div{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:13px 18px;border-bottom:1px solid #edf1f5}.customer-data-list>div:last-child{border-bottom:0}.customer-data-list dt{color:#64748b;font-size:12px;font-weight:800}.customer-data-list dd{margin:0;color:#0f172a;font-size:13px;font-weight:700;text-align:right;word-break:break-word}.customer-address-list{display:grid;padding:12px}.customer-address-item{padding:13px 14px;border:1px solid #e5e7eb;border-radius:15px;background:#f8fafc}.customer-address-item+.customer-address-item{margin-top:9px}.customer-address-title{display:flex;justify-content:space-between;gap:10px}.customer-address-title strong{color:#0f172a;font-size:13px}.customer-address-title span{padding:4px 7px;border-radius:999px;background:#dcfce7;color:#166534;font-size:9px;font-weight:900;text-transform:uppercase}.customer-address-item p{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.4}.customer-address-item small{display:block;margin-top:5px;color:#94a3b8}
@media(max-width:1100px){.customer-profile-layout{grid-template-columns:1fr}.customer-profile-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-order-row{grid-template-columns:70px 1fr 1fr 100px 120px}.customer-order-open{grid-column:1/-1;justify-self:start}.customer-list-head,.customer-list-row{grid-template-columns:minmax(220px,1fr) 180px 180px}}
@media(max-width:720px){.admin-page-heading,.customer-profile-hero{align-items:flex-start;flex-direction:column}.customer-search-card{align-items:stretch;flex-direction:column}.customer-search-button{width:100%}.customer-list-head{display:none}.customer-list-row{grid-template-columns:1fr;padding:16px}.customer-list-phone{display:flex;justify-content:space-between;padding:11px 0;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}.customer-list-phone span{display:block;color:#64748b;font-size:11px;font-weight:850;text-transform:uppercase}.customer-list-actions{justify-content:stretch}.customer-profile-button{flex:1}.customer-profile-contact-actions{width:100%}.customer-profile-contact-actions .btn{flex:1}.customer-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-profile-sidebar{grid-template-columns:1fr}.customer-order-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.customer-order-open{grid-column:1/-1;width:100%}.customer-data-list>div{grid-template-columns:1fr}.customer-data-list dd{text-align:left}.customer-profile-hero h1,.admin-page-heading h1{font-size:29px}}


/* Escalabilidade do catálogo */
.catalog-pagination,.admin-pagination{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin:24px 0}
.catalog-pagination a{display:inline-flex;padding:10px 16px;border:1px solid #dfe6e1;border-radius:10px;background:#fff;text-decoration:none;font-weight:700;color:inherit}
.catalog-pagination span,.admin-pagination span{font-weight:700;color:#52605a}
.admin-product-search{display:grid;grid-template-columns:minmax(220px,1fr) 180px 180px auto auto;gap:10px;align-items:center}
.admin-product-search select{min-height:44px;border:1px solid #dfe6e1;border-radius:10px;padding:0 10px;background:#fff}
@media(max-width:850px){.admin-product-search{grid-template-columns:1fr 1fr}.admin-product-search .input{grid-column:1/-1}}

/* ========================================================================== 
   V21 - Configurador "Loja e aparencia" + cinco layouts reais
   ========================================================================== */
.appearance-admin-head{align-items:flex-end;margin-bottom:20px}
.appearance-head-actions{display:flex;gap:10px;align-items:center}
.appearance-form{display:block}
.appearance-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,410px);gap:22px;align-items:start}
.appearance-main-column{display:grid;gap:18px;min-width:0}
.appearance-side-column{display:grid;gap:16px;position:sticky;top:92px}
.appearance-section{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:24px;box-shadow:0 12px 34px rgba(15,23,42,.055)}
.appearance-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid #edf1f5}
.appearance-section-head>div{display:flex;align-items:center;gap:11px}
.appearance-section-head h2{margin:0;color:#0f172a;font-size:22px;letter-spacing:-.025em}
.appearance-section-head p{max-width:460px;margin:2px 0 0;color:#64748b;font-size:13px;line-height:1.5;text-align:right}
.section-step{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,var(--green) 12%,#fff);color:var(--green-dark);font-size:11px;font-weight:950;letter-spacing:.05em}
.appearance-layout-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.appearance-layout-choice{position:relative;display:block;margin:0;cursor:pointer}
.appearance-layout-choice input{position:absolute;opacity:0;pointer-events:none}
.appearance-layout-choice-card{position:relative;display:flex;min-height:100%;flex-direction:column;padding:15px;border:2px solid #e7edf3;border-radius:20px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.appearance-layout-choice:hover .appearance-layout-choice-card{transform:translateY(-2px);border-color:#cbd5e1;box-shadow:0 12px 26px rgba(15,23,42,.08)}
.appearance-layout-choice input:checked+.appearance-layout-choice-card{border-color:var(--green);box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 10%,transparent),0 14px 32px rgba(15,23,42,.09)}
.appearance-layout-choice input:checked+.appearance-layout-choice-card:after{content:'✓';position:absolute;right:12px;top:12px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--green);color:#fff;font-weight:950;font-size:13px;box-shadow:0 6px 14px color-mix(in srgb,var(--green) 26%,transparent)}
.layout-card-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:28px}
.layout-card-topline strong{color:#0f172a;font-size:15px}
.layout-card-topline em{padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:9px;font-style:normal;font-weight:900;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.layout-description{display:block;margin-top:12px;color:#475569;font-size:12px;line-height:1.45}
.appearance-layout-choice-card>small{display:block;margin-top:auto;padding-top:9px;color:#94a3b8;font-size:10px;line-height:1.35}
.layout-miniature{display:block;position:relative;height:118px;margin-top:13px;padding:8px;border-radius:14px;background:#f8fafc;border:1px solid #e5e7eb;overflow:hidden}
.layout-miniature span,.layout-miniature i{display:block}
.lm-header{height:10px;border-radius:4px;background:#cbd5e1}
.lm-banner{height:25px;margin-top:6px;border-radius:5px;background:linear-gradient(90deg,color-mix(in srgb,var(--green) 78%,#fff),color-mix(in srgb,var(--green) 24%,#fff))}
.lm-shell{display:grid;gap:6px;margin-top:7px}
.lm-categories,.lm-products{display:flex;gap:4px}
.lm-categories i{width:18px;height:15px;border-radius:4px;background:#dbe5e1}
.lm-products i{flex:1;height:34px;border-radius:5px;background:#fff;border:1px solid #dfe6ec;box-shadow:inset 0 -8px 0 #eef2f6}
.layout-miniature-sidebar .lm-shell{grid-template-columns:28px 1fr}
.layout-miniature-sidebar .lm-categories{flex-direction:column;padding:3px;border-radius:5px;background:#1e293b}
.layout-miniature-sidebar .lm-categories i{width:100%;height:5px;background:#94a3b8}
.layout-miniature-sidebar .lm-products{display:grid;grid-template-columns:repeat(3,1fr)}
.layout-miniature-grid .lm-categories{display:grid;grid-template-columns:repeat(4,1fr)}
.layout-miniature-grid .lm-categories i{width:auto;height:18px;border-radius:5px;background:#fff;border:1px solid #dfe6ec}
.layout-miniature-grid .lm-products{display:grid;grid-template-columns:repeat(4,1fr)}
.layout-miniature-compact{background:#fffaf0}
.layout-miniature-compact .lm-banner{height:18px;background:linear-gradient(90deg,#f4c430,#f79009)}
.layout-miniature-compact .lm-categories{gap:2px}
.layout-miniature-compact .lm-products{display:grid;grid-template-columns:repeat(5,1fr);gap:3px}
.layout-miniature-compact .lm-products i{height:40px;box-shadow:inset 0 -10px 0 #fee2e2}
.layout-miniature-premium{background:#f7f4ef;padding:10px}
.layout-miniature-premium .lm-header{height:8px;background:#6d1f3c}
.layout-miniature-premium .lm-banner{height:32px;border-radius:2px;background:linear-gradient(110deg,#c59b5f,#f0e1ca)}
.layout-miniature-premium .lm-categories i{border-radius:50%;background:#e8ded1}
.layout-miniature-premium .lm-products{gap:7px}
.layout-miniature-premium .lm-products i{height:30px;border:0;border-radius:2px;box-shadow:inset 0 -5px 0 #f2ece4}
.appearance-layout-choice:last-child:nth-child(odd){grid-column:1/-1}
.appearance-layout-choice:last-child:nth-child(odd) .appearance-layout-choice-card{display:grid;grid-template-columns:minmax(200px,.7fr) minmax(260px,1.3fr);column-gap:18px;align-items:center}
.appearance-layout-choice:last-child:nth-child(odd) .layout-card-topline,.appearance-layout-choice:last-child:nth-child(odd) .layout-description,.appearance-layout-choice:last-child:nth-child(odd) .appearance-layout-choice-card>small{grid-column:1}
.appearance-layout-choice:last-child:nth-child(odd) .layout-miniature{grid-column:2;grid-row:1/5;margin-top:0;height:130px}
.appearance-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.appearance-span-2{grid-column:1/-1}
.field-block label,.appearance-color-card label{margin-top:0}
.field-block small{display:block;margin-top:6px;color:#94a3b8;font-size:11px;line-height:1.4}
.brand-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.brand-upload-card{display:grid;grid-template-columns:108px minmax(0,1fr);gap:15px;align-items:center;padding:15px;border:1px dashed #cbd5e1;border-radius:19px;background:#f8fafc}
.brand-upload-preview{display:grid;place-items:center;width:108px;height:90px;border-radius:15px;background:#fff;border:1px solid #e2e8f0;color:#94a3b8;font-weight:950;overflow:hidden}
.brand-upload-preview img{max-width:92%;max-height:78px;object-fit:contain}
.favicon-upload-card{grid-template-columns:82px minmax(0,1fr)}
.favicon-upload-preview{width:82px;height:82px}
.favicon-upload-preview img{width:58px;height:58px;object-fit:contain}
.brand-upload-card strong{display:block;color:#0f172a;font-size:14px}
.brand-upload-card p{margin:5px 0 10px;color:#64748b;font-size:11px;line-height:1.4}
.file-button{display:inline-flex;margin:0 0 9px;padding:8px 11px;border-radius:10px;background:#fff;border:1px solid #dbe3eb;color:#334155;font-size:11px;font-weight:900;cursor:pointer}
.file-button:hover{border-color:var(--green);color:var(--green-dark)}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.compact-input{height:37px;padding:8px 10px;font-size:11px;border-radius:10px}
.palette-presets{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:17px}
.palette-presets button{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dbe3eb;border-radius:999px;background:#fff;color:#475569;font-size:11px;font-weight:850;cursor:pointer}
.palette-presets button:hover{border-color:#94a3b8;background:#f8fafc}
.palette-presets i{width:14px;height:14px;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 3px color-mix(in srgb,var(--swatch) 15%,#fff)}
.appearance-color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.appearance-color-card{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:82px;padding:13px 14px;border:1px solid #e5eaf0;border-radius:17px;background:#fbfcfd}
.appearance-color-card label{margin-bottom:4px;color:#1e293b;font-size:13px}
.appearance-color-card small{display:block;max-width:210px;color:#94a3b8;font-size:10px;line-height:1.35}
.appearance-color-inputs{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.appearance-color-inputs input[type=color]{width:44px;height:44px;padding:3px;border:1px solid #d6dee7;border-radius:12px;background:#fff;cursor:pointer}
.color-code-input{width:88px!important;height:40px!important;padding:8px 9px!important;border-radius:10px!important;background:#fff!important;font-size:11px!important;font-weight:850!important;text-transform:uppercase}
.appearance-subtitle{margin:2px 0 11px;color:#334155;font-size:13px;text-transform:uppercase;letter-spacing:.055em}
.appearance-subtitle:not(:first-of-type){margin-top:22px}
.appearance-option-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.appearance-option{position:relative;display:block;margin:0;cursor:pointer}
.appearance-option input{position:absolute;opacity:0;pointer-events:none}
.appearance-option>span{display:flex;min-height:126px;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:12px;border:2px solid #e7edf3;border-radius:16px;background:#fff;transition:.16s ease}
.appearance-option:hover>span{border-color:#cbd5e1;transform:translateY(-1px)}
.appearance-option input:checked+span{border-color:var(--green);background:color-mix(in srgb,var(--green) 5%,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 9%,transparent)}
.appearance-option strong{color:#1e293b;font-size:12px}
.appearance-option small{color:#94a3b8;font-size:10px;line-height:1.3}
.button-shape-sample,.buy-style-sample{display:inline-flex;align-items:center;justify-content:center;min-width:80px;min-height:34px;padding:7px 12px;background:var(--green);color:#fff!important;font-size:11px;font-weight:950}
.shape-pill{border-radius:999px}.shape-rounded{border-radius:11px}.shape-square{border-radius:3px}.shape-soft{border-radius:11px;background:linear-gradient(180deg,var(--green),color-mix(in srgb,var(--green) 78%,#000));box-shadow:0 7px 14px color-mix(in srgb,var(--green) 20%,transparent)}
.buy-option>span{min-height:93px;align-items:center;text-align:center}
.buy-style-sample{background:var(--accent);border-radius:10px}
.appearance-preview-card,.appearance-shortcuts-card{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:17px;box-shadow:0 14px 38px rgba(15,23,42,.07)}
.preview-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.preview-card-head span{display:block;color:#94a3b8;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.09em}
.preview-card-head strong{display:block;margin-top:3px;color:#0f172a;font-size:15px}
.preview-live-dot{width:10px;height:10px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 5px #dcfce7}
.preview-tip{margin:11px 2px 13px;color:#94a3b8;font-size:10px;line-height:1.45}
.appearance-save-button{width:100%;min-height:47px}
.appearance-shortcuts-card>span{display:block;margin-bottom:10px;color:#94a3b8;font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}
.appearance-shortcuts-card a{display:block;padding:11px 12px;border-radius:13px;text-decoration:none;border:1px solid transparent}
.appearance-shortcuts-card a:hover{background:#f8fafc;border-color:#e5e7eb}
.appearance-shortcuts-card b{display:block;color:#1e293b;font-size:12px}
.appearance-shortcuts-card small{display:block;margin-top:3px;color:#94a3b8;font-size:10px;line-height:1.35}

/* Previa compacta do ecommerce */
.store-live-preview{--preview-primary:#159947;--preview-secondary:#e92c3a;--preview-button-text:#fff;--preview-header:#fff;--preview-bg:#f4f7f6;--preview-card:#fff;--preview-text:#172033;--preview-category:#159947;--preview-promo:#e92c3a;overflow:hidden;border:1px solid #dce4eb;border-radius:18px;background:var(--preview-bg);color:var(--preview-text);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
.preview-info-strip{padding:5px 9px;background:var(--preview-primary);color:var(--preview-button-text);font-size:7px;font-weight:800;text-align:center}
.preview-store-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;background:var(--preview-header);border-bottom:1px solid rgba(148,163,184,.18)}
.preview-store-brand{min-width:0;color:var(--preview-primary);font-size:11px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-store-brand img{display:block;max-width:92px;max-height:20px;object-fit:contain;object-position:left center}
.preview-cart{position:relative;padding:5px 7px;border-radius:8px;background:color-mix(in srgb,var(--preview-primary) 9%,#fff);font-size:9px}
.preview-cart b{display:inline-grid;place-items:center;min-width:13px;height:13px;border-radius:999px;background:var(--preview-secondary);color:var(--preview-button-text);font-size:6px}
.preview-search{display:flex;align-items:center;gap:5px;margin:8px;padding:5px 5px 5px 9px;border-radius:9px;background:#fff;border:1px solid rgba(148,163,184,.35);color:#94a3b8;font-size:6.5px}
.preview-search button{margin-left:auto;padding:5px 7px;border:0;border-radius:6px;background:var(--preview-primary);color:var(--preview-button-text);font-size:6px;font-weight:900}
.preview-banner{display:flex;align-items:flex-end;height:63px;margin:0 8px 8px;padding:9px;border-radius:10px;background:linear-gradient(120deg,color-mix(in srgb,var(--preview-primary) 90%,#000),color-mix(in srgb,var(--preview-primary) 25%,#fff));color:#fff;font-size:10px;font-weight:950}
.preview-content-shell{display:block;padding:0 8px 10px}
.preview-category-list{display:flex;gap:5px;margin-bottom:8px;overflow:hidden}
.preview-category-list span{display:flex;flex:0 0 52px;align-items:center;gap:3px;padding:5px;border-radius:8px;background:var(--preview-card);border:1px solid color-mix(in srgb,var(--preview-category) 16%,#e5e7eb);font-size:9px}
.preview-category-list small{font-size:5.5px;font-weight:850}
.preview-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.preview-product{position:relative;display:flex;min-width:0;min-height:102px;flex-direction:column;padding:5px;border-radius:8px;background:var(--preview-card);border:1px solid rgba(148,163,184,.22)}
.preview-product-promo{box-shadow:0 0 0 1px color-mix(in srgb,var(--preview-promo) 34%,transparent),0 4px 13px color-mix(in srgb,var(--preview-promo) 13%,transparent)}
.preview-product-image{height:39px;margin-bottom:4px;border-radius:5px;background:linear-gradient(135deg,#f1f5f9,#dfe8ee)}
.preview-product small{display:block;min-height:17px;color:var(--preview-text);font-size:5.8px;line-height:1.15}
.preview-product strong{display:block;margin-top:2px;color:var(--preview-primary);font-size:8px}
.preview-buy-button{width:100%;min-height:16px;margin-top:auto;padding:3px;border:0;border-radius:5px;background:var(--preview-secondary);color:var(--preview-button-text);font-size:5.5px;font-weight:900;white-space:nowrap;overflow:hidden}
.store-live-preview[data-button-style="pill"] .preview-buy-button{border-radius:999px}
.store-live-preview[data-button-style="rounded"] .preview-buy-button{border-radius:6px}
.store-live-preview[data-button-style="square"] .preview-buy-button{border-radius:1px}
.store-live-preview[data-button-style="soft"] .preview-buy-button{border-radius:6px;background:linear-gradient(180deg,var(--preview-secondary),color-mix(in srgb,var(--preview-secondary) 76%,#000));box-shadow:0 3px 7px color-mix(in srgb,var(--preview-secondary) 22%,transparent)}
.store-live-preview[data-layout="sidebar"] .preview-content-shell{display:grid;grid-template-columns:58px 1fr;gap:6px}
.store-live-preview[data-layout="sidebar"] .preview-category-list{flex-direction:column;margin:0;padding:5px;border-radius:8px;background:#172033}
.store-live-preview[data-layout="sidebar"] .preview-category-list span{flex:0 0 auto;width:auto;padding:4px;border:0;background:rgba(255,255,255,.09);color:#fff}
.store-live-preview[data-layout="sidebar"] .preview-category-list span:nth-child(n+4){display:none}
.store-live-preview[data-layout="sidebar"] .preview-products{grid-template-columns:repeat(2,minmax(0,1fr))}
.store-live-preview[data-layout="grid"] .preview-category-list{display:grid;grid-template-columns:repeat(4,1fr)}
.store-live-preview[data-layout="grid"] .preview-category-list span{width:auto;justify-content:center;flex-direction:column}
.store-live-preview[data-layout="grid"] .preview-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.store-live-preview[data-layout="grid"] .preview-product:last-child{display:none}
.store-live-preview[data-layout="grid"] .preview-product{min-height:118px;border-radius:11px}
.store-live-preview[data-layout="grid"] .preview-product-image{height:48px}
.store-live-preview[data-layout="compact"] .preview-banner{height:42px;border-radius:5px;background:linear-gradient(90deg,var(--preview-secondary),var(--preview-primary))}
.store-live-preview[data-layout="compact"] .preview-category-list span{flex-basis:45px;border-radius:5px}
.store-live-preview[data-layout="compact"] .preview-products{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
.store-live-preview[data-layout="compact"] .preview-product{min-height:93px;padding:4px;border-radius:4px}
.store-live-preview[data-layout="compact"] .preview-product-image{height:32px;border-radius:3px}
.store-live-preview[data-layout="compact"] .preview-product strong{color:var(--preview-secondary);font-size:8.5px}
.store-live-preview[data-layout="premium"]{border-radius:8px;background:color-mix(in srgb,var(--preview-bg) 94%,#f6efe7)}
.store-live-preview[data-layout="premium"] .preview-info-strip{background:#2c2522;letter-spacing:.08em}
.store-live-preview[data-layout="premium"] .preview-store-header{padding:12px;background:var(--preview-header)}
.store-live-preview[data-layout="premium"] .preview-banner{height:78px;border-radius:2px;background:linear-gradient(115deg,color-mix(in srgb,var(--preview-primary) 90%,#251b18),color-mix(in srgb,var(--preview-secondary) 45%,#f7eee4));font-family:Georgia,serif;font-size:12px}
.store-live-preview[data-layout="premium"] .preview-category-list{justify-content:center;gap:9px}
.store-live-preview[data-layout="premium"] .preview-category-list span{flex:0 0 45px;flex-direction:column;border:0;background:transparent;text-align:center}
.store-live-preview[data-layout="premium"] .preview-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.store-live-preview[data-layout="premium"] .preview-product:last-child{display:none}
.store-live-preview[data-layout="premium"] .preview-product{min-height:128px;padding:7px;border:0;border-radius:2px;box-shadow:0 5px 14px rgba(47,37,31,.07)}
.store-live-preview[data-layout="premium"] .preview-product-image{height:55px;border-radius:1px;background:linear-gradient(135deg,#f3ede7,#e4d9cf)}
.store-live-preview[data-layout="premium"] .preview-product strong{color:var(--preview-text)}

/* Cinco layouts da loja: regras finais com maior especificidade */
body.layout-supermarket{background:var(--site-bg,#f4f7f6)!important}
body.layout-supermarket .market-page-shell{display:block!important}
body.layout-supermarket .market-categories{display:flex!important;gap:14px!important;overflow-x:auto!important}
body.layout-supermarket .clean-product-section{padding:18px!important;border-radius:24px!important;background:color-mix(in srgb,var(--card-bg,#fff) 88%,transparent)!important;border:1px solid color-mix(in srgb,var(--category-color,var(--green)) 10%,#e5e7eb)!important}
body.layout-supermarket .clean-product-rail{display:flex!important;gap:14px!important;overflow-x:auto!important}
body.layout-supermarket .clean-product-rail>.clean-market-card{flex:0 0 clamp(220px,19vw,270px)!important;max-width:270px!important}

body.layout-sidebar{background:var(--site-bg,#f8fafc)!important}
body.layout-sidebar .market-page-shell{display:grid!important;grid-template-columns:270px minmax(0,1fr)!important;gap:22px!important;align-items:start!important}
body.layout-sidebar .market-categories-wrap{position:sticky!important;top:116px!important;max-height:calc(100vh - 136px)!important;overflow:auto!important;padding:15px!important;border:0!important;border-radius:20px!important;background:color-mix(in srgb,var(--category-color,var(--green)) 70%,#0f172a)!important;color:#fff!important;box-shadow:0 18px 42px rgba(15,23,42,.18)!important}
body.layout-sidebar .category-carousel{display:block!important}
body.layout-sidebar .category-carousel .cat-nav{display:none!important}
body.layout-sidebar .category-carousel .market-categories{display:flex!important;flex-direction:column!important;gap:8px!important;overflow:visible!important;padding:0!important}
body.layout-sidebar .category-carousel .market-cat{display:flex!important;width:100%!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;align-items:center!important;gap:10px!important;padding:9px!important;border-radius:13px!important;background:rgba(255,255,255,.07)!important;color:#fff!important;text-align:left!important}
body.layout-sidebar .category-carousel .market-cat.selected,body.layout-sidebar .category-carousel .market-cat:hover{background:#fff!important;color:#111827!important}
body.layout-sidebar .cat-circle{width:40px!important;height:40px!important;margin:0!important;border-radius:11px!important;background:#fff!important}
body.layout-sidebar .clean-product-section{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.layout-sidebar .clean-product-rail,body.layout-sidebar .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:16px!important;overflow:visible!important}
body.layout-sidebar .clean-product-rail>.clean-market-card{max-width:none!important;flex:initial!important}

body.layout-grid{background:var(--site-bg,#f7fbf8)!important}
body.layout-grid .market-search-panel{padding:26px!important;border-radius:28px!important;text-align:center!important;background:linear-gradient(135deg,color-mix(in srgb,var(--primary,var(--green)) 10%,#fff),color-mix(in srgb,var(--accent) 6%,#fff))!important}
body.layout-grid .market-search{max-width:760px!important;margin:16px auto 0!important}
body.layout-grid .market-categories{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(112px,1fr))!important;gap:12px!important;overflow:visible!important}
body.layout-grid .market-cat{padding:13px!important;border-radius:19px!important;background:var(--card-bg,#fff)!important;border:1px solid color-mix(in srgb,var(--category-color,var(--green)) 12%,#e5e7eb)!important;box-shadow:0 8px 22px rgba(15,23,42,.055)!important}
body.layout-grid .clean-product-section{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.layout-grid .clean-product-rail,body.layout-grid .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(235px,1fr))!important;gap:19px!important;overflow:visible!important}
body.layout-grid .clean-product-rail>.clean-market-card{max-width:none!important;flex:initial!important}
body.layout-grid .clean-market-card{border-radius:23px!important}
body.layout-grid .product-media-wrap{min-height:188px!important}
body.layout-grid .product-photo{height:170px!important}

body.layout-compact{background:var(--site-bg,#fffdf6)!important}
body.layout-compact .container{max-width:1400px!important}
body.layout-compact .market-slider{border-radius:12px!important}
body.layout-compact .market-search-panel{padding:14px 16px!important;border-radius:13px!important;background:color-mix(in srgb,var(--secondary-color,var(--accent)) 7%,#fff)!important;border:1px solid color-mix(in srgb,var(--secondary-color,var(--accent)) 20%,#e5e7eb)!important}
body.layout-compact .market-categories{gap:8px!important;overflow-x:auto!important}
body.layout-compact .market-cat{flex:0 0 76px!important;padding:6px!important}
body.layout-compact .cat-circle{width:52px!important;height:52px!important;border-radius:13px!important}
body.layout-compact .clean-product-section{padding:11px!important;margin-bottom:15px!important;border-radius:14px!important;background:var(--card-bg,#fff)!important;border:1px solid #ece7dc!important;box-shadow:none!important}
body.layout-compact .clean-section-title{padding:8px 9px!important;border-left:5px solid var(--accent)!important;border-radius:8px!important;background:#fff!important}
body.layout-compact .clean-product-rail,body.layout-compact .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(165px,1fr))!important;gap:9px!important;overflow:visible!important}
body.layout-compact .clean-product-rail>.clean-market-card{max-width:none!important;flex:initial!important}
body.layout-compact .clean-market-card{min-height:322px!important;padding:8px!important;border-radius:10px!important;box-shadow:0 3px 10px rgba(15,23,42,.045)!important}
body.layout-compact .product-media-wrap{min-height:115px!important;border-radius:8px!important}
body.layout-compact .product-photo{height:105px!important}
body.layout-compact .product-content{min-height:113px!important;padding-top:7px!important}
body.layout-compact .product-title{min-height:32px!important;font-size:12px!important}
body.layout-compact .product-subtitle{min-height:24px!important;font-size:10px!important}
body.layout-compact .current-price{font-size:21px!important;color:var(--accent)!important}
body.layout-compact .product-buy-row{grid-template-columns:1fr!important;gap:5px!important}
body.layout-compact .qty-stepper{height:32px!important}
body.layout-compact .product-buy-button{height:35px!important;min-height:35px!important}

body.layout-premium{background:var(--site-bg,#f7f4ef)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.layout-premium .store-info-strip{background:#28211f!important}
body.layout-premium .storefront-topbar{padding-block:18px!important;border-bottom:1px solid color-mix(in srgb,var(--primary,var(--green)) 10%,#e7e1da)!important;box-shadow:none!important}
body.layout-premium .brand{font-family:Georgia,"Times New Roman",serif!important;font-size:26px!important;letter-spacing:-.02em!important}
body.layout-premium .brand:before{border-radius:50%!important;background:var(--primary,var(--green))!important;box-shadow:none!important}
body.layout-premium .container{max-width:1380px!important;padding-top:30px!important}
body.layout-premium .market-slider{border-radius:4px!important;box-shadow:0 22px 52px rgba(47,37,31,.13)!important}
body.layout-premium .market-search-panel{display:grid!important;grid-template-columns:minmax(260px,.72fr) minmax(420px,1.28fr)!important;align-items:center!important;padding:25px 28px!important;border:0!important;border-radius:4px!important;background:var(--card-bg,#fff)!important;box-shadow:0 10px 30px rgba(47,37,31,.06)!important}
body.layout-premium .market-search-panel h1{font-family:Georgia,"Times New Roman",serif!important;font-size:31px!important;font-weight:600!important}
body.layout-premium .market-search{border-radius:2px!important;box-shadow:none!important}
body.layout-premium .market-search button{border-radius:1px!important;text-transform:uppercase!important;letter-spacing:.055em!important}
body.layout-premium .market-categories-wrap{margin-top:25px!important}
body.layout-premium .market-categories{display:flex!important;justify-content:center!important;gap:20px!important;overflow-x:auto!important;padding-block:10px 18px!important}
body.layout-premium .market-cat{flex:0 0 104px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.layout-premium .cat-circle{width:76px!important;height:76px!important;border-radius:50%!important;border:1px solid color-mix(in srgb,var(--category-color,var(--green)) 20%,#d8d0c8)!important;background:color-mix(in srgb,var(--category-color,var(--green)) 5%,#f5f0eb)!important}
body.layout-premium .market-cat strong{font-family:Georgia,"Times New Roman",serif!important;font-size:13px!important;font-weight:600!important}
body.layout-premium .clean-product-section{padding:0!important;margin:38px 0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.layout-premium .clean-section-title{padding:0 0 14px!important;border-bottom:1px solid color-mix(in srgb,var(--primary,var(--green)) 20%,#ded7d0)!important;background:transparent!important;border-radius:0!important}
body.layout-premium .clean-section-title h2{font-family:Georgia,"Times New Roman",serif!important;font-size:27px!important;font-weight:500!important;letter-spacing:-.02em!important}
body.layout-premium .clean-product-rail,body.layout-premium .market-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(235px,1fr))!important;gap:22px!important;overflow:visible!important}
body.layout-premium .clean-product-rail>.clean-market-card{max-width:none!important;flex:initial!important}
body.layout-premium .clean-market-card{min-height:420px!important;padding:13px!important;border:0!important;border-radius:3px!important;background:var(--card-bg,#fff)!important;box-shadow:0 10px 30px rgba(47,37,31,.065)!important}
body.layout-premium .product-media-wrap{min-height:195px!important;border-radius:2px!important;box-shadow:none!important;background:#f7f4ef!important}
body.layout-premium .product-photo{height:180px!important}
body.layout-premium .product-title{font-family:Georgia,"Times New Roman",serif!important;font-size:16px!important;font-weight:600!important}
body.layout-premium .current-price{color:var(--text-color,var(--ink))!important;font-family:Georgia,"Times New Roman",serif!important;font-size:25px!important}
body.layout-premium .product-buy-row{grid-template-columns:1fr!important}
body.layout-premium .qty-stepper{border-radius:2px!important}
body.layout-premium .product-buy-button{border-radius:1px!important;text-transform:uppercase!important;letter-spacing:.045em!important}
body.layout-premium .promo-ribbon{left:13px!important;right:auto!important;top:13px!important;padding:6px 9px!important;background:var(--accent)!important;border-radius:1px!important}

@media(max-width:1180px){
  .appearance-workspace{grid-template-columns:minmax(0,1fr) 340px}
  .appearance-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .brand-upload-grid{grid-template-columns:1fr}
}
@media(max-width:980px){
  .appearance-workspace{grid-template-columns:1fr}
  .appearance-side-column{position:static;grid-template-columns:minmax(0,1fr) minmax(250px,.6fr)}
  body.layout-premium .market-search-panel{grid-template-columns:1fr!important}
}
@media(max-width:760px){
  .appearance-section{padding:18px;border-radius:20px}
  .appearance-section-head{display:block}
  .appearance-section-head>div{margin-bottom:8px}
  .appearance-section-head p{text-align:left}
  .appearance-layout-choice-grid,.appearance-field-grid,.appearance-color-grid{grid-template-columns:1fr}
  .appearance-span-2{grid-column:auto}
  .appearance-layout-choice:last-child:nth-child(odd){grid-column:auto}
  .appearance-layout-choice:last-child:nth-child(odd) .appearance-layout-choice-card{display:flex}
  .appearance-layout-choice:last-child:nth-child(odd) .layout-card-topline,.appearance-layout-choice:last-child:nth-child(odd) .layout-description,.appearance-layout-choice:last-child:nth-child(odd) .appearance-layout-choice-card>small,.appearance-layout-choice:last-child:nth-child(odd) .layout-miniature{grid-column:auto;grid-row:auto}
  .appearance-layout-choice:last-child:nth-child(odd) .layout-miniature{height:118px;margin-top:13px}
  .appearance-side-column{grid-template-columns:1fr}
  body.layout-sidebar .market-page-shell{display:block!important}
  body.layout-sidebar .market-categories-wrap{position:relative!important;top:auto!important;max-height:none!important;overflow:visible!important;background:transparent!important;padding:0!important;box-shadow:none!important}
  body.layout-sidebar .category-carousel{display:grid!important;grid-template-columns:38px minmax(0,1fr) 38px!important;gap:8px!important}
  body.layout-sidebar .category-carousel .cat-nav{display:grid!important}
  body.layout-sidebar .category-carousel .market-categories{display:flex!important;flex-direction:row!important;overflow-x:auto!important}
  body.layout-sidebar .category-carousel .market-cat{flex:0 0 102px!important;display:block!important;text-align:center!important;background:var(--card-bg,#fff)!important;color:var(--ink)!important}
  body.layout-sidebar .cat-circle{width:56px!important;height:56px!important;margin:0 auto 7px!important}
  body.layout-premium .clean-product-rail,body.layout-grid .clean-product-rail,body.layout-sidebar .clean-product-rail,body.layout-compact .clean-product-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}
  body.layout-premium .clean-market-card{min-height:360px!important}
}
@media(max-width:520px){
  .appearance-admin-head{align-items:stretch}
  .appearance-head-actions,.appearance-head-actions .btn{width:100%}
  .brand-upload-card{grid-template-columns:1fr;text-align:center}
  .brand-upload-preview{margin:auto}
  .favicon-upload-card{grid-template-columns:1fr}
  .appearance-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .appearance-option>span{min-height:112px;padding:10px}
  .appearance-color-card{align-items:flex-start;flex-direction:column}
  .appearance-color-inputs{width:100%}
  .color-code-input{flex:1;width:auto!important}
  .preview-products{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.layout-supermarket .clean-product-rail>.clean-market-card{flex-basis:calc(50vw - 20px)!important}
  body.layout-premium .clean-product-rail,body.layout-grid .clean-product-rail,body.layout-sidebar .clean-product-rail,body.layout-compact .clean-product-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.layout-premium .clean-market-card,body.layout-grid .clean-market-card{min-height:340px!important}
}

/* V21.1 - posicionamento robusto do carrossel quando as setas ficam ocultas */
.category-carousel>.cat-nav-prev{grid-column:1!important;grid-row:1!important}
.category-carousel>.market-categories{grid-column:2!important;grid-row:1!important}
.category-carousel>.cat-nav-next{grid-column:3!important;grid-row:1!important}
body.layout-premium .store-info-strip,body.layout-premium .store-info-strip *{color:#ffffff!important}

/* ========================================================================== 
   V22 - Cinco arquiteturas de home realmente diferentes
   ========================================================================== */
.header-search{
  display:none;align-items:center;gap:10px;min-width:280px;max-width:620px;flex:1;
  height:46px;padding:5px 6px 5px 15px;border:1px solid color-mix(in srgb,var(--store-brand) 18%,#dbe3ea);
  border-radius:999px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.06)
}
.header-search i{color:var(--store-brand);font-size:16px}
.header-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--store-text);font:inherit;font-size:14px}
.header-search button{height:36px;padding:0 16px;border:0;border-radius:999px;background:var(--store-brand);color:#fff;font-weight:900;cursor:pointer}
.hero-eyebrow{display:block;margin-bottom:7px;color:var(--store-brand);font-size:11px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.home-composition{display:grid;gap:18px;margin:12px 0 22px;align-items:stretch}
.home-composition .home-slot{min-width:0;margin:0!important}
.home-composition .market-slider{width:100%;height:100%;max-height:none!important}
.home-composition .promo-grid{margin:0!important}
.home-composition .promo-card{min-height:0!important}
.home-composition .promo-card img{width:100%;height:100%;min-height:118px;object-fit:cover}
.market-page-shell{min-width:0}

/* 1. Classico horizontal: banner, busca, campanhas, categorias e vitrines */
body.layout-supermarket .header-search{display:none!important}
body.layout-supermarket .home-composition{
  grid-template-columns:1fr;
  grid-template-areas:"slider" "search" "promos" "middle"
}
body.layout-supermarket .home-slot-slider{grid-area:slider;aspect-ratio:4/1!important;min-height:210px!important}
body.layout-supermarket .home-slot-search{grid-area:search}
body.layout-supermarket .home-slot-promos{grid-area:promos;grid-template-columns:repeat(2,minmax(0,1fr))}
body.layout-supermarket .home-slot-middle{grid-area:middle;grid-template-columns:repeat(3,minmax(0,1fr))}
body.layout-supermarket .market-page-shell{display:block!important}
body.layout-supermarket .home-departments{margin-top:2px!important}

/* 2. Catalogo lateral: busca no topo e hero assimetrico */
body.layout-sidebar .header-search{display:flex!important}
body.layout-sidebar .storefront-topbar{display:grid!important;grid-template-columns:auto minmax(280px,1fr) auto!important;gap:18px!important}
body.layout-sidebar .storefront-topbar .brand{min-width:175px!important}
body.layout-sidebar .storefront-topbar .main-nav{width:auto!important}
body.layout-sidebar .home-composition{
  grid-template-columns:minmax(260px,330px) minmax(0,1fr);
  grid-template-areas:"search slider" "promos slider" "middle middle";
  align-items:stretch
}
body.layout-sidebar .home-slot-search{grid-area:search;display:flex!important;flex-direction:column!important;justify-content:center!important;padding:26px!important;border-radius:22px!important;background:linear-gradient(160deg,color-mix(in srgb,var(--store-brand) 17%,#fff),#fff)!important}
body.layout-sidebar .home-slot-search .market-search{display:none!important}
body.layout-sidebar .home-slot-search h1{font-size:30px!important}
body.layout-sidebar .home-slot-slider{grid-area:slider;aspect-ratio:auto!important;min-height:430px!important;border-radius:22px!important}
body.layout-sidebar .home-slot-promos{grid-area:promos;grid-template-columns:1fr!important}
body.layout-sidebar .home-slot-promos .promo-card:nth-child(n+2){display:none}
body.layout-sidebar .home-slot-promos .promo-card img{min-height:170px}
body.layout-sidebar .home-slot-middle{grid-area:middle;grid-template-columns:repeat(3,minmax(0,1fr))}
body.layout-sidebar .market-page-shell{margin-top:26px!important;grid-template-columns:280px minmax(0,1fr)!important}
body.layout-sidebar .market-categories-wrap{top:132px!important}

/* 3. Vitrine dividida: banner grande a esquerda e campanhas a direita */
body.layout-grid .storefront-topbar{display:flex!important;flex-wrap:wrap!important}
body.layout-grid .header-search{display:flex!important;order:3;flex:1 0 100%;max-width:none;margin-top:2px}
body.layout-grid .storefront-topbar .brand{order:1}
body.layout-grid .storefront-topbar .main-nav{order:2}
body.layout-grid .home-composition{
  grid-template-columns:minmax(0,1.75fr) minmax(280px,.75fr);
  grid-template-rows:auto auto;
  grid-template-areas:"slider promos" "slider search" "middle middle";
  align-items:stretch
}
body.layout-grid .home-slot-slider{grid-area:slider;aspect-ratio:auto!important;min-height:470px!important;border-radius:28px!important}
body.layout-grid .home-slot-promos{grid-area:promos;display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:1fr;gap:14px!important}
body.layout-grid .home-slot-promos .promo-card img{min-height:145px}
body.layout-grid .home-slot-search{grid-area:search;display:flex!important;flex-direction:column!important;justify-content:center!important;padding:22px!important;text-align:left!important}
body.layout-grid .home-slot-search .market-search{display:none!important}
body.layout-grid .home-slot-search h1{font-size:26px!important}
body.layout-grid .home-slot-middle{grid-area:middle;grid-template-columns:repeat(3,minmax(0,1fr))}
body.layout-grid .home-departments{margin-top:28px!important;padding:22px!important}
body.layout-grid .market-categories{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important}

/* 4. Atacarejo: campanhas primeiro, cabecalho forte e alta densidade */
body.layout-compact .store-info-strip{display:none!important}
body.layout-compact .storefront-header{background:var(--store-brand)!important}
body.layout-compact .storefront-topbar{display:grid!important;grid-template-columns:auto minmax(260px,1fr) auto!important;background:var(--store-brand)!important;padding-block:11px!important}
body.layout-compact .storefront-topbar .brand{color:#fff!important;min-width:160px!important}
body.layout-compact .storefront-topbar .brand:before{background:#fff!important;box-shadow:none!important}
body.layout-compact .header-search{display:flex!important;border:0!important;box-shadow:none!important}
body.layout-compact .storefront-topbar .main-nav a{min-width:42px!important;border-color:rgba(255,255,255,.2)!important;background:rgba(255,255,255,.12)!important;color:#fff!important;box-shadow:none!important}
body.layout-compact .storefront-topbar .main-nav a:nth-child(1),body.layout-compact .storefront-topbar .main-nav a:nth-child(2){display:none!important}
body.layout-compact .storefront-topbar .main-nav .cart-link{background:var(--store-accent)!important}
body.layout-compact .home-composition{
  grid-template-columns:minmax(0,1.55fr) minmax(260px,.55fr);
  grid-template-areas:"promos promos" "slider search" "middle middle";
  gap:12px
}
body.layout-compact .home-slot-promos{grid-area:promos;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
body.layout-compact .home-slot-promos .promo-card{border-radius:8px!important;box-shadow:none!important}
body.layout-compact .home-slot-promos .promo-card img{min-height:88px;max-height:108px}
body.layout-compact .home-slot-slider{grid-area:slider;aspect-ratio:auto!important;min-height:270px!important;border-radius:10px!important;box-shadow:none!important}
body.layout-compact .home-slot-search{grid-area:search;display:flex!important;flex-direction:column!important;justify-content:center!important;padding:18px!important;border-radius:10px!important;background:linear-gradient(145deg,var(--store-accent),color-mix(in srgb,var(--store-accent) 68%,#7c2d12))!important;color:#fff!important}
body.layout-compact .home-slot-search .hero-eyebrow,body.layout-compact .home-slot-search p{color:rgba(255,255,255,.78)!important}
body.layout-compact .home-slot-search h1{font-size:25px!important;color:#fff!important}
body.layout-compact .home-slot-search .market-search{display:none!important}
body.layout-compact .home-slot-middle{grid-area:middle;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
body.layout-compact .home-departments{padding:10px!important;border-radius:10px!important;box-shadow:none!important}
body.layout-compact .home-departments .section-title{display:none!important}

/* 5. Editorial premium: busca flutuante sobre o hero e mosaico abaixo */
body.layout-premium .storefront-header{display:flex!important;flex-direction:column!important;position:relative!important}
body.layout-premium .storefront-topbar{order:1;display:grid!important;grid-template-columns:1fr auto 1fr!important;width:100%!important}
body.layout-premium .storefront-topbar .brand{grid-column:2;justify-self:center;margin:0!important;min-width:0!important}
body.layout-premium .storefront-topbar .main-nav{grid-column:3;justify-self:end;width:auto!important}
body.layout-premium .storefront-topbar .main-nav a:first-child,body.layout-premium .storefront-topbar .main-nav a:nth-child(2){background:transparent!important;border:0!important;box-shadow:none!important}
body.layout-premium .store-info-strip{order:2;background:#28211f!important}
body.layout-premium .header-search{display:none!important}
body.layout-premium .home-composition{
  position:relative;display:grid;
  grid-template-columns:1fr;
  grid-template-areas:"slider" "promos" "middle";
  gap:28px;margin-top:20px
}
body.layout-premium .home-slot-slider{grid-area:slider;aspect-ratio:3.15/1!important;min-height:380px!important;border-radius:2px!important}
body.layout-premium .home-slot-search{position:absolute!important;z-index:8;left:7%;right:7%;bottom:auto;top:285px;margin:0!important;display:grid!important;grid-template-columns:minmax(240px,.8fr) minmax(380px,1.2fr)!important;padding:22px 24px!important;border-radius:2px!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(14px);box-shadow:0 22px 55px rgba(47,37,31,.18)!important}
body.layout-premium .home-slot-search h1{font-size:27px!important}
body.layout-premium .home-slot-promos{grid-area:promos;margin-top:48px!important;display:grid!important;grid-template-columns:1.45fr .75fr .75fr!important;grid-template-rows:repeat(2,150px);gap:16px!important}
body.layout-premium .home-slot-promos .promo-card:first-child{grid-row:1/3}
body.layout-premium .home-slot-promos .promo-card img{min-height:100%;height:100%}
body.layout-premium .home-slot-middle{grid-area:middle;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px!important}
body.layout-premium .home-slot-middle .promo-card:nth-child(2){transform:translateY(20px)}
body.layout-premium .home-departments{margin:48px 0 18px!important;background:transparent!important;border-width:1px 0!important;border-radius:0!important;box-shadow:none!important}

/* Miniaturas do seletor com topologias diferentes */
.layout-miniature .lm-search{height:7px;margin-top:5px;border-radius:4px;background:#fff;border:1px solid #dce4eb}
.layout-miniature .lm-stage{display:grid;gap:4px;margin-top:5px;height:78px}
.layout-miniature .lm-banner{height:auto;margin:0}
.layout-miniature .lm-promos{display:grid;grid-template-columns:repeat(2,1fr);gap:3px}
.layout-miniature .lm-promos i{min-height:9px;border-radius:3px;background:#dfe8ed}
.layout-miniature .lm-categories,.layout-miniature .lm-products{min-width:0}
.layout-miniature-supermarket .lm-stage{grid-template-rows:22px 10px 13px 1fr}
.layout-miniature-sidebar .lm-stage{grid-template-columns:25px 1fr;grid-template-areas:"cats banner" "cats promos" "cats products";grid-template-rows:25px 12px 1fr}
.layout-miniature-sidebar .lm-categories{grid-area:cats;display:flex;flex-direction:column;padding:3px;border-radius:4px;background:#1e293b}
.layout-miniature-sidebar .lm-banner{grid-area:banner}
.layout-miniature-sidebar .lm-promos{grid-area:promos}
.layout-miniature-sidebar .lm-products{grid-area:products;display:grid;grid-template-columns:repeat(3,1fr)}
.layout-miniature-grid .lm-stage{grid-template-columns:1.4fr .6fr;grid-template-areas:"banner promos" "banner promos" "cats cats" "products products";grid-template-rows:18px 14px 14px 1fr}
.layout-miniature-grid .lm-banner{grid-area:banner}
.layout-miniature-grid .lm-promos{grid-area:promos;grid-template-columns:1fr;grid-template-rows:1fr 1fr}
.layout-miniature-grid .lm-categories{grid-area:cats}
.layout-miniature-grid .lm-products{grid-area:products}
.layout-miniature-compact .lm-stage{grid-template-rows:11px 18px 11px 1fr}
.layout-miniature-compact .lm-promos{grid-row:1;grid-template-columns:repeat(4,1fr)}
.layout-miniature-compact .lm-banner{grid-row:2}
.layout-miniature-compact .lm-categories{grid-row:3}
.layout-miniature-compact .lm-products{grid-row:4}
.layout-miniature-premium .lm-stage{position:relative;grid-template-rows:30px 15px 11px 1fr}
.layout-miniature-premium .lm-search{position:absolute;z-index:2;left:20px;right:20px;top:39px;height:9px;box-shadow:0 3px 7px rgba(15,23,42,.12)}
.layout-miniature-premium .lm-banner{grid-row:1}
.layout-miniature-premium .lm-promos{grid-row:2;grid-template-columns:1.4fr .6fr .6fr}

/* Preview estrutural real do configurador */
.preview-main-stage{display:grid;gap:6px;padding:0 8px 10px;grid-template-areas:"banner" "promos" "cats" "products"}
.preview-banner{grid-area:banner;margin:0!important}
.preview-promo-row{grid-area:promos;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.preview-promo-row i{display:flex;align-items:center;justify-content:center;min-height:25px;padding:4px;border-radius:6px;background:color-mix(in srgb,var(--preview-secondary) 10%,#fff);border:1px solid color-mix(in srgb,var(--preview-secondary) 20%,#fff);color:var(--preview-text);font-size:5.5px;font-style:normal;font-weight:900;text-align:center}
.preview-category-list{grid-area:cats;margin:0!important}
.preview-products{grid-area:products}
.store-live-preview[data-layout="sidebar"] .preview-main-stage{grid-template-columns:58px minmax(0,1fr);grid-template-areas:"cats banner" "cats promos" "cats products"}
.store-live-preview[data-layout="sidebar"] .preview-category-list{grid-area:cats;flex-direction:column;padding:5px;border-radius:8px;background:#172033}
.store-live-preview[data-layout="sidebar"] .preview-category-list span{flex:0 0 auto;width:auto;padding:4px;border:0;background:rgba(255,255,255,.09);color:#fff}
.store-live-preview[data-layout="sidebar"] .preview-banner{min-height:74px;height:auto}
.store-live-preview[data-layout="sidebar"] .preview-products{grid-template-columns:repeat(2,minmax(0,1fr))}
.store-live-preview[data-layout="grid"] .preview-main-stage{grid-template-columns:1.55fr .65fr;grid-template-areas:"banner promos" "banner promos" "cats cats" "products products"}
.store-live-preview[data-layout="grid"] .preview-banner{height:auto;min-height:105px}
.store-live-preview[data-layout="grid"] .preview-promo-row{grid-template-columns:1fr;grid-template-rows:1fr 1fr}
.store-live-preview[data-layout="grid"] .preview-category-list{display:grid;grid-template-columns:repeat(4,1fr)}
.store-live-preview[data-layout="grid"] .preview-category-list span{width:auto;justify-content:center;flex-direction:column}
.store-live-preview[data-layout="compact"] .preview-main-stage{grid-template-areas:"promos" "banner" "cats" "products";gap:3px}
.store-live-preview[data-layout="compact"] .preview-promo-row{grid-template-columns:repeat(4,1fr)}
.store-live-preview[data-layout="compact"] .preview-promo-row i{min-height:18px;border-radius:3px;font-size:4.7px}
.store-live-preview[data-layout="compact"] .preview-banner{height:40px}
.store-live-preview[data-layout="compact"] .preview-category-list span{flex-basis:45px;border-radius:5px}
.store-live-preview[data-layout="premium"]{position:relative}
.store-live-preview[data-layout="premium"] .preview-search{position:absolute;z-index:4;left:27px;right:27px;top:103px;margin:0;box-shadow:0 7px 16px rgba(47,37,31,.16)}
.store-live-preview[data-layout="premium"] .preview-main-stage{padding-top:0;grid-template-areas:"banner" "promos" "cats" "products";gap:9px}
.store-live-preview[data-layout="premium"] .preview-banner{height:88px;padding-bottom:14px}
.store-live-preview[data-layout="premium"] .preview-promo-row{grid-template-columns:1.4fr .6fr .6fr}
.store-live-preview[data-layout="premium"] .preview-promo-row i{border-radius:1px;background:#f3ece5;border-color:#e5d8cc}

@media(max-width:980px){
  .storefront-topbar,.layout-sidebar .storefront-topbar,.layout-compact .storefront-topbar,.layout-premium .storefront-topbar{display:flex!important;flex-wrap:wrap!important;grid-template-columns:none!important}
  .storefront-topbar .brand,.layout-premium .storefront-topbar .brand{order:1;grid-column:auto!important;justify-self:auto!important;flex:1!important}
  .storefront-topbar .main-nav,.layout-premium .storefront-topbar .main-nav{order:2;grid-column:auto!important;justify-self:auto!important}
  .header-search{order:3;display:flex!important;flex:1 0 100%;max-width:none;margin-top:4px}
  body.layout-premium .header-search{display:none!important}
  .home-composition,body.layout-sidebar .home-composition,body.layout-grid .home-composition,body.layout-compact .home-composition,body.layout-premium .home-composition{display:flex!important;flex-direction:column!important;gap:13px!important}
  .home-slot-slider,body.layout-sidebar .home-slot-slider,body.layout-grid .home-slot-slider,body.layout-compact .home-slot-slider,body.layout-premium .home-slot-slider{order:1;min-height:0!important;aspect-ratio:3/1!important}
  .home-slot-search,body.layout-sidebar .home-slot-search,body.layout-grid .home-slot-search,body.layout-compact .home-slot-search,body.layout-premium .home-slot-search{order:2;position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:1fr!important;padding:17px!important}
  body.layout-sidebar .home-slot-search .market-search,body.layout-grid .home-slot-search .market-search,body.layout-compact .home-slot-search .market-search{display:flex!important}
  .home-slot-promos{order:3!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:0!important}
  .home-slot-middle{order:4!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.layout-premium .home-slot-promos{margin-top:0!important;grid-template-rows:none!important}
  body.layout-premium .home-slot-promos .promo-card:first-child{grid-row:auto!important}
  body.layout-premium .home-slot-middle .promo-card:nth-child(2){transform:none!important}
  body.layout-sidebar .market-page-shell{display:block!important}
}
@media(max-width:640px){
  .header-search{height:42px;padding-left:11px}
  .header-search button{height:32px;padding:0 11px;font-size:12px}
  .home-slot-slider,body.layout-sidebar .home-slot-slider,body.layout-grid .home-slot-slider,body.layout-compact .home-slot-slider,body.layout-premium .home-slot-slider{aspect-ratio:auto!important;min-height:120px!important}
  .home-slot-promos,.home-slot-middle{grid-template-columns:1fr!important}
  .home-composition .promo-card img{height:auto!important;min-height:0!important;object-fit:contain!important}
  body.layout-compact .storefront-topbar .main-nav a{padding-inline:9px!important}
  body.layout-premium .store-info-strip{order:1}
}

/* Ajustes de contingencia quando alguma posicao de banner estiver vazia */
body.layout-sidebar .home-composition:not(:has(.home-slot-slider)){
  grid-template-areas:"search promos" "middle middle"
}
body.layout-sidebar .home-composition:not(:has(.home-slot-promos)){
  grid-template-areas:"search slider" "middle slider"
}
body.layout-grid .home-composition:not(:has(.home-slot-slider)){
  grid-template-columns:1fr 1fr;grid-template-areas:"search promos" "middle middle"
}
body.layout-grid .home-composition:not(:has(.home-slot-promos)){
  grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);grid-template-areas:"slider search" "slider search" "middle middle"
}
body.layout-compact .home-composition:not(:has(.home-slot-slider)){
  grid-template-columns:1fr;grid-template-areas:"promos" "search" "middle"
}
body.layout-premium .home-composition:not(:has(.home-slot-slider)) .home-slot-search{
  position:relative!important;inset:auto!important;grid-area:auto!important
}
body.layout-premium .home-composition:not(:has(.home-slot-slider)) .home-slot-promos{margin-top:0!important}

/* A previa tambem evidencia a mudanca de cabecalho */
.store-live-preview[data-layout="sidebar"] .preview-search{
  margin:-35px 46px 9px 92px;position:relative;z-index:3
}
.store-live-preview[data-layout="grid"] .preview-search{
  margin:5px 8px 8px;border-radius:5px
}
.store-live-preview[data-layout="compact"] .preview-info-strip{display:none}
.store-live-preview[data-layout="compact"] .preview-store-header{background:var(--preview-primary);color:#fff;padding-bottom:12px}
.store-live-preview[data-layout="compact"] .preview-search{
  margin:-36px 48px 9px 84px;position:relative;z-index:3;border:0
}

/* ========================================================================== 
   V23 - Cor editavel do topo da loja + modo claro/escuro do painel admin
   ========================================================================== */

/* Loja: as cores escolhidas passam a valer em todos os cinco layouts. */
.store-info-strip{
  background:var(--top-strip-bg,#eaf8ef)!important;
  color:var(--top-strip-contrast,#111827)!important;
  border-bottom-color:color-mix(in srgb,var(--top-strip-contrast,#111827) 16%,transparent)!important
}
.store-info-strip a,.store-info-strip span,.store-info-strip i,.store-info-strip *{color:inherit!important}
.topbar.storefront-topbar,.storefront-header{background:var(--header-bg,#fff)!important}
.storefront-topbar .brand{color:var(--header-contrast,#111827)!important}
.storefront-topbar .main-nav>a:not(.cart-link):not(.login-link){
  color:var(--header-contrast,#111827)!important;
  background:color-mix(in srgb,var(--header-contrast,#111827) 8%,transparent)!important;
  border-color:color-mix(in srgb,var(--header-contrast,#111827) 18%,transparent)!important
}
body.layout-compact .storefront-header,
body.layout-compact .storefront-topbar{background:var(--header-bg,#fff)!important}
body.layout-compact .storefront-topbar .brand{color:var(--header-contrast,#111827)!important}
body.layout-compact .storefront-topbar .main-nav>a:not(.cart-link):not(.login-link){
  color:var(--header-contrast,#111827)!important;
  background:color-mix(in srgb,var(--header-contrast,#111827) 9%,transparent)!important;
  border-color:color-mix(in srgb,var(--header-contrast,#111827) 22%,transparent)!important
}
body.layout-premium .store-info-strip{background:var(--top-strip-bg,#28211f)!important;color:var(--top-strip-contrast,#fff)!important}
body.layout-premium .store-info-strip *{background:transparent!important;color:inherit!important}
.store-live-preview{--preview-top-strip:#eaf8ef}
.preview-info-strip{background:var(--preview-top-strip)!important;color:var(--preview-top-strip-contrast,#111827)!important}
.store-live-preview[data-layout="premium"] .preview-info-strip{background:var(--preview-top-strip)!important;color:var(--preview-top-strip-contrast,#111827)!important}
.store-live-preview[data-layout="compact"] .preview-store-header{background:var(--preview-header)!important;color:var(--preview-header-contrast,#111827)!important}

/* Seletor de tema do painel. */
.admin-topbar{background:#ffffff!important;border-bottom-color:#e5e7eb!important}
.admin-theme-selector{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:4px 5px 4px 11px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#475569}
.admin-theme-selector-label{font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.admin-theme-selector select{width:auto!important;min-width:112px;height:34px;padding:0 30px 0 11px;border:0;border-radius:999px;background:#fff;color:#172033;font-size:13px;font-weight:850;box-shadow:0 1px 2px rgba(15,23,42,.06);cursor:pointer}

/* Tema escuro administrativo. A loja e sua previa continuam usando as cores configuradas. */
html[data-admin-theme="dark"]{color-scheme:dark}
html[data-admin-theme="dark"] body.admin-body{
  --ink:#e5e7eb;--muted:#94a3b8;--line:#263449;--bg:#070d19;--card:#111827;
  --shadow:0 18px 48px rgba(0,0,0,.34);--soft-shadow:0 10px 28px rgba(0,0,0,.25);
  background:radial-gradient(circle at top left,#10223a 0,#09111f 34%,#070d19 100%)!important;
  color:#e5e7eb!important
}
html[data-admin-theme="dark"] body.admin-body .admin-topbar{
  background:rgba(10,18,32,.94)!important;border-bottom-color:#263449!important;box-shadow:0 8px 30px rgba(0,0,0,.2)
}
html[data-admin-theme="dark"] body.admin-body .admin-topbar .brand{color:#f8fafc!important}
html[data-admin-theme="dark"] body.admin-body .admin-topbar nav>a{background:#111c2e!important;border-color:#2a3a50!important;color:#dbe7f5!important}
html[data-admin-theme="dark"] body.admin-body .admin-topbar nav>a:hover{border-color:var(--green)!important;color:#fff!important}
html[data-admin-theme="dark"] body.admin-body .admin-theme-selector{background:#0d1727!important;border-color:#2a3a50!important;color:#9fb0c5!important}
html[data-admin-theme="dark"] body.admin-body .admin-theme-selector select{background:#162235!important;color:#f8fafc!important;box-shadow:none!important}

html[data-admin-theme="dark"] body.admin-body .card,
html[data-admin-theme="dark"] body.admin-body .admin-card,
html[data-admin-theme="dark"] body.admin-body .admin-sidebar,
html[data-admin-theme="dark"] body.admin-body .sidebar,
html[data-admin-theme="dark"] body.admin-body .admin-menu-group,
html[data-admin-theme="dark"] body.admin-body .form-section,
html[data-admin-theme="dark"] body.admin-body .form-card,
html[data-admin-theme="dark"] body.admin-body .soft-card,
html[data-admin-theme="dark"] body.admin-body .dashboard-card,
html[data-admin-theme="dark"] body.admin-body .master-status-card,
html[data-admin-theme="dark"] body.admin-body .status-summary-card,
html[data-admin-theme="dark"] body.admin-body .order-admin-card,
html[data-admin-theme="dark"] body.admin-body .order-summary-card,
html[data-admin-theme="dark"] body.admin-body .order-side-panel,
html[data-admin-theme="dark"] body.admin-body .order-view-actions-card,
html[data-admin-theme="dark"] body.admin-body .customer-data-card,
html[data-admin-theme="dark"] body.admin-body .customer-address-card,
html[data-admin-theme="dark"] body.admin-body .customer-profile-section,
html[data-admin-theme="dark"] body.admin-body .customer-list-card,
html[data-admin-theme="dark"] body.admin-body .customer-search-card,
html[data-admin-theme="dark"] body.admin-body .customer-total-badge,
html[data-admin-theme="dark"] body.admin-body .appearance-section,
html[data-admin-theme="dark"] body.admin-body .appearance-preview-card,
html[data-admin-theme="dark"] body.admin-body .appearance-shortcuts-card,
html[data-admin-theme="dark"] body.admin-body .brand-upload-card,
html[data-admin-theme="dark"] body.admin-body .appearance-color-card,
html[data-admin-theme="dark"] body.admin-body .appearance-layout-choice-card,
html[data-admin-theme="dark"] body.admin-body .appearance-option>span,
html[data-admin-theme="dark"] body.admin-body .upload-box,
html[data-admin-theme="dark"] body.admin-body .payment-options .switch-line,
html[data-admin-theme="dark"] body.admin-body .system-popup-card{
  background:#111827!important;border-color:#263449!important;color:#e5e7eb!important;box-shadow:var(--soft-shadow)!important
}
html[data-admin-theme="dark"] body.admin-body .admin-menu-group summary,
html[data-admin-theme="dark"] body.admin-body .admin-menu-group a,
html[data-admin-theme="dark"] body.admin-body .admin-home-link,
html[data-admin-theme="dark"] body.admin-body .admin-main-link{color:#cbd5e1!important;border-color:#202d40!important}
html[data-admin-theme="dark"] body.admin-body .admin-menu-group summary:hover,
html[data-admin-theme="dark"] body.admin-body .admin-menu-group a:hover,
html[data-admin-theme="dark"] body.admin-body .admin-home-link:hover,
html[data-admin-theme="dark"] body.admin-body .admin-main-link:hover{background:#172337!important;color:#fff!important}
html[data-admin-theme="dark"] body.admin-body .admin-menu-group a.active,
html[data-admin-theme="dark"] body.admin-body .admin-home-link.active,
html[data-admin-theme="dark"] body.admin-body .admin-main-link.active{background:var(--green)!important;color:#fff!important}

html[data-admin-theme="dark"] body.admin-body h1,
html[data-admin-theme="dark"] body.admin-body h2,
html[data-admin-theme="dark"] body.admin-body h3,
html[data-admin-theme="dark"] body.admin-body h4,
html[data-admin-theme="dark"] body.admin-body strong,
html[data-admin-theme="dark"] body.admin-body label,
html[data-admin-theme="dark"] body.admin-body .admin-page-heading h1,
html[data-admin-theme="dark"] body.admin-body .customer-profile-hero h1,
html[data-admin-theme="dark"] body.admin-body .layout-card-topline strong,
html[data-admin-theme="dark"] body.admin-body .brand-upload-card strong,
html[data-admin-theme="dark"] body.admin-body .appearance-shortcuts-card b{color:#f1f5f9!important}
html[data-admin-theme="dark"] body.admin-body .muted,
html[data-admin-theme="dark"] body.admin-body small,
html[data-admin-theme="dark"] body.admin-body p,
html[data-admin-theme="dark"] body.admin-body .layout-description,
html[data-admin-theme="dark"] body.admin-body .admin-page-heading p,
html[data-admin-theme="dark"] body.admin-body .customer-profile-hero p{color:#94a3b8!important}

html[data-admin-theme="dark"] body.admin-body .input,
html[data-admin-theme="dark"] body.admin-body input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),
html[data-admin-theme="dark"] body.admin-body select,
html[data-admin-theme="dark"] body.admin-body textarea{
  background:#0b1423!important;border-color:#314158!important;color:#edf2f7!important
}
html[data-admin-theme="dark"] body.admin-body input::placeholder,
html[data-admin-theme="dark"] body.admin-body textarea::placeholder{color:#64748b!important}
html[data-admin-theme="dark"] body.admin-body .input:focus,
html[data-admin-theme="dark"] body.admin-body input:focus,
html[data-admin-theme="dark"] body.admin-body select:focus,
html[data-admin-theme="dark"] body.admin-body textarea:focus{border-color:var(--green)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 18%,transparent)!important}

html[data-admin-theme="dark"] body.admin-body .table,
html[data-admin-theme="dark"] body.admin-body .dashboard-table,
html[data-admin-theme="dark"] body.admin-body .home-cat-settings-table{background:#111827!important;color:#e5e7eb!important;box-shadow:var(--soft-shadow)!important}
html[data-admin-theme="dark"] body.admin-body .table th,
html[data-admin-theme="dark"] body.admin-body .dashboard-table th,
html[data-admin-theme="dark"] body.admin-body .home-cat-settings-table th,
html[data-admin-theme="dark"] body.admin-body .customer-list-head{background:#0c1626!important;color:#9fb0c5!important;border-color:#263449!important}
html[data-admin-theme="dark"] body.admin-body .table td,
html[data-admin-theme="dark"] body.admin-body .table th,
html[data-admin-theme="dark"] body.admin-body .dashboard-table td,
html[data-admin-theme="dark"] body.admin-body .dashboard-table th,
html[data-admin-theme="dark"] body.admin-body .customer-list-row,
html[data-admin-theme="dark"] body.admin-body .customer-order-row{border-color:#263449!important;color:#dbe4ee!important}
html[data-admin-theme="dark"] body.admin-body .table tbody tr:hover,
html[data-admin-theme="dark"] body.admin-body .customer-list-row:hover,
html[data-admin-theme="dark"] body.admin-body .customer-order-row:hover{background:#141f31!important}

html[data-admin-theme="dark"] body.admin-body .btn.light{background:#172337!important;border-color:#32445d!important;color:#e5e7eb!important}
html[data-admin-theme="dark"] body.admin-body .alert.success{background:#0c2a20!important;color:#86efac!important;border-color:#14532d!important}
html[data-admin-theme="dark"] body.admin-body .alert.error,
html[data-admin-theme="dark"] body.admin-body .error{background:#35131a!important;color:#fda4af!important;border-color:#7f1d1d!important}
html[data-admin-theme="dark"] body.admin-body .layout-card-topline em,
html[data-admin-theme="dark"] body.admin-body .admin-page-kicker{background:#172337!important;color:#9fb0c5!important}
html[data-admin-theme="dark"] body.admin-body .layout-miniature,
html[data-admin-theme="dark"] body.admin-body .brand-upload-preview{background:#0b1423!important;border-color:#314158!important}
html[data-admin-theme="dark"] body.admin-body .appearance-shortcuts-card a{border-color:#263449!important;color:#dbe4ee!important}
html[data-admin-theme="dark"] body.admin-body .appearance-shortcuts-card a:hover{background:#172337!important}
html[data-admin-theme="dark"] body.admin-body .system-popup-close{background:#1d2a3d!important;color:#dbe4ee!important}

/* A miniatura da loja nao deve herdar as superficies escuras do painel. */
html[data-admin-theme="dark"] body.admin-body .store-live-preview{color:var(--preview-text)!important;background:var(--preview-bg)!important}
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-info-strip{color:var(--preview-top-strip-contrast,#111827)!important}
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-store-brand span,
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-cart{color:var(--preview-header-contrast,#111827)!important}
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-banner span{color:#fff!important}
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-promo-row i,
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-category-list span{color:var(--preview-text)!important}
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-store-header,
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-product{background:var(--preview-card)!important;color:var(--preview-text)!important}
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-product small{color:var(--preview-text)!important}
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-product strong{color:var(--preview-primary)!important}
html[data-admin-theme="dark"] body.admin-body .store-live-preview .preview-buy-button{color:var(--preview-button-text)!important}

@media(max-width:720px){
  .admin-theme-selector-label{display:none}
  .admin-theme-selector{padding-left:5px}
  .admin-theme-selector select{min-width:105px}
}

/* ========================================================================== 
   V24 - Imagens de produto inteiras + slider principal estavel em 5 layouts
   ========================================================================== */

/*
 * Produtos: a caixa pode mudar de tamanho entre os layouts, mas a fotografia
 * nunca e ampliada para fora nem recortada. Esta regra fica no fim do arquivo
 * para neutralizar estilos antigos com object-fit: cover.
 */
body .product-media-wrap,
body .clean-card-media{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  overflow:hidden!important;
  background:#fff!important;
}
body .product-photo,
body .clean-card-image,
body .market-product-image{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  padding:6px!important;
  background:#fff!important;
}
body .product-photo img,
body .clean-card-image img,
body .market-product-image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#fff!important;
  transform:none!important;
  clip-path:none!important;
}

/* Mantem uma area util consistente sem alterar a identidade de cada card. */
body.layout-supermarket .product-photo,
body.layout-supermarket .clean-card-image,
body.layout-supermarket .market-product-image{height:150px!important}
body.layout-sidebar .product-photo,
body.layout-sidebar .clean-card-image,
body.layout-sidebar .market-product-image{height:166px!important}
body.layout-grid .product-photo,
body.layout-grid .clean-card-image,
body.layout-grid .market-product-image{height:170px!important}
body.layout-compact .product-photo,
body.layout-compact .clean-card-image,
body.layout-compact .market-product-image{height:112px!important}
body.layout-premium .product-photo,
body.layout-premium .clean-card-image,
body.layout-premium .market-product-image{height:180px!important}

/*
 * Slider principal: os banners cadastrados usam 1920 x 384 (proporcao 5:1).
 * O componente preserva essa proporcao em qualquer posicao, sem depender da
 * altura das colunas vizinhas e sem cortar a arte.
 */
body .market-slider,
body .home-composition .market-slider,
body.layout-supermarket .home-slot-slider,
body.layout-sidebar .home-slot-slider,
body.layout-grid .home-slot-slider,
body.layout-compact .home-slot-slider,
body.layout-premium .home-slot-slider{
  position:relative!important;
  display:block!important;
  align-self:start!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:5 / 1!important;
  overflow:hidden!important;
  background:#f3f4f6!important;
}
body .market-slider .market-slide{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .55s ease,visibility .55s ease!important;
}
body .market-slider .market-slide.active{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
body .market-slider .market-slide img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#f3f4f6!important;
  transform:none!important;
}

/* As composicoes assimetricas continuam diferentes, mas nao esticam o banner. */
body.layout-sidebar .home-composition,
body.layout-grid .home-composition,
body.layout-compact .home-composition{align-items:start!important}

/* Premium: busca flutuante sem coordenada fixa dependente da altura do banner. */
body.layout-premium .home-composition{
  grid-template-areas:"slider" "search" "promos" "middle"!important;
}
body.layout-premium .home-slot-search{
  position:relative!important;
  inset:auto!important;
  grid-area:search!important;
  width:min(86%,1120px)!important;
  margin:-38px auto 0!important;
}
body.layout-premium .home-slot-promos{margin-top:0!important}

/* Nao exibe navegacao vazia e mantem os pontos dentro do componente. */
.market-slider .slider-dots:empty{display:none!important}
.market-slider .slider-dots{max-width:calc(100% - 20px)!important}

@media(max-width:980px){
  body.layout-supermarket .product-photo,
  body.layout-sidebar .product-photo,
  body.layout-grid .product-photo,
  body.layout-premium .product-photo,
  body.layout-supermarket .clean-card-image,
  body.layout-sidebar .clean-card-image,
  body.layout-grid .clean-card-image,
  body.layout-premium .clean-card-image,
  body.layout-supermarket .market-product-image,
  body.layout-sidebar .market-product-image,
  body.layout-grid .market-product-image,
  body.layout-premium .market-product-image{height:138px!important}
  body.layout-compact .product-photo,
  body.layout-compact .clean-card-image,
  body.layout-compact .market-product-image{height:112px!important}
  body.layout-premium .home-slot-search{width:94%!important;margin:-24px auto 0!important}
}

@media(max-width:640px){
  body .market-slider,
  body .home-composition .market-slider,
  body.layout-supermarket .home-slot-slider,
  body.layout-sidebar .home-slot-slider,
  body.layout-grid .home-slot-slider,
  body.layout-compact .home-slot-slider,
  body.layout-premium .home-slot-slider{
    height:auto!important;
    min-height:0!important;
    aspect-ratio:5 / 1!important;
    border-radius:10px!important;
  }
  body .market-slider .market-slide{
    position:absolute!important;
    display:block!important;
    height:100%!important;
  }
  body .market-slider .market-slide img{
    height:100%!important;
    object-fit:contain!important;
  }
  body .product-photo,
  body .clean-card-image,
  body .market-product-image{height:108px!important;padding:4px!important}
  body.layout-premium .home-slot-search{width:100%!important;margin:0!important}
}


/* ========================================================================== 
   Reorganizacao dos banners da home: promos pequenas apos categorias e faixa 
   larga no fim da pagina. Tambem evita slider com barras vazias.
   ========================================================================== */
body .market-slider,
body .home-composition .market-slider,
body.layout-supermarket .home-slot-slider,
body.layout-sidebar .home-slot-slider,
body.layout-grid .home-slot-slider,
body.layout-compact .home-slot-slider,
body.layout-premium .home-slot-slider{
  background:#fff!important;
  border-radius:20px!important;
}
body .market-slider .market-slide img{
  object-fit:cover!important;
  object-position:center center!important;
  background:transparent!important;
}
body.layout-supermarket .home-composition{
  grid-template-columns:1fr!important;
  grid-template-areas:"slider" "search"!important;
}
body.layout-sidebar .home-composition{
  grid-template-columns:minmax(280px,340px) minmax(0,1fr)!important;
  grid-template-areas:"search slider"!important;
  align-items:start!important;
}
body.layout-grid .home-composition{
  grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr)!important;
  grid-template-areas:"slider search"!important;
  align-items:start!important;
}
body.layout-compact .home-composition{
  grid-template-columns:minmax(0,1.55fr) minmax(270px,.6fr)!important;
  grid-template-areas:"slider search"!important;
  align-items:start!important;
}
body.layout-premium .home-composition{
  grid-template-areas:"slider" "search"!important;
  gap:22px!important;
}
body.layout-sidebar .home-slot-slider,
body.layout-grid .home-slot-slider,
body.layout-compact .home-slot-slider,
body.layout-premium .home-slot-slider,
body.layout-supermarket .home-slot-slider{
  min-height:0!important;
  aspect-ratio:5 / 1!important;
}
body.layout-sidebar .home-slot-search,
body.layout-grid .home-slot-search,
body.layout-compact .home-slot-search{
  height:100%!important;
}
body.layout-premium .home-slot-search{
  position:relative!important;
  inset:auto!important;
  width:min(92%,1120px)!important;
  margin:-28px auto 0!important;
}
.home-campaigns{
  display:grid;
  gap:14px;
  margin:0 0 24px;
}
.home-campaigns--top{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.home-campaigns--bottom{
  grid-template-columns:1fr;
  margin-top:14px;
}
.home-campaigns .promo-card{
  display:block;
  overflow:hidden;
  border-radius:18px;
  border:1px solid color-mix(in srgb,var(--store-border,#d9e2ea) 88%,#fff);
  background:var(--card-bg,#fff);
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.home-campaigns--top .promo-card img{
  display:block;
  width:100%;
  aspect-ratio:1000 / 235;
  height:auto;
  object-fit:cover;
}
.home-campaigns--bottom .promo-card img,
.home-campaigns .promo-card-wide img{
  display:block;
  width:100%;
  aspect-ratio:1920 / 384;
  height:auto;
  object-fit:cover;
}
body.layout-supermarket .home-campaigns--top{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.layout-sidebar .home-campaigns--top{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.layout-grid .home-campaigns--top{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.layout-compact .home-campaigns--top{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
body.layout-premium .home-campaigns--top{grid-template-columns:1fr 1fr!important;gap:18px!important;}
body.layout-compact .home-campaigns .promo-card,
body.layout-compact .home-campaigns .promo-card img{border-radius:10px!important;}
body.layout-premium .home-campaigns .promo-card{border-radius:4px!important;box-shadow:0 14px 34px rgba(47,37,31,.08)!important;}
body.layout-premium .home-campaigns--bottom{margin-top:26px!important;}
@media(max-width:980px){
  body.layout-sidebar .home-composition,
  body.layout-grid .home-composition,
  body.layout-compact .home-composition{
    grid-template-columns:1fr!important;
    grid-template-areas:"slider" "search"!important;
  }
  body.layout-premium .home-slot-search{width:100%!important;margin:0!important;}
}
@media(max-width:640px){
  .home-campaigns--top,
  body.layout-supermarket .home-campaigns--top,
  body.layout-sidebar .home-campaigns--top,
  body.layout-grid .home-campaigns--top,
  body.layout-compact .home-campaigns--top,
  body.layout-premium .home-campaigns--top{
    grid-template-columns:1fr!important;
  }
  .home-campaigns{gap:12px!important;margin-bottom:18px!important;}
  .home-campaigns .promo-card{border-radius:12px!important;}
  .home-campaigns--top .promo-card img,
  .home-campaigns--bottom .promo-card img,
  .home-campaigns .promo-card-wide img{aspect-ratio:auto!important;height:auto!important;}
}


/* ========================================================================== 
   V24 - Refinamento visual do modo escuro do painel admin
   ========================================================================== */
html[data-admin-theme="dark"] body.admin-body{
  --admin-bg:#0b1120;
  --admin-surface:#0f172a;
  --admin-surface-2:#111c31;
  --admin-surface-3:#162235;
  --admin-line:#243247;
  --admin-line-strong:#334155;
  --admin-text:#e5edf7;
  --admin-muted:#9fb0c5;
  --admin-soft:#cbd5e1;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.15) 0, rgba(37,99,235,0) 32%),
    radial-gradient(circle at top right, rgba(22,163,74,.10) 0, rgba(22,163,74,0) 28%),
    linear-gradient(180deg,#08111f 0,#0b1120 100%)!important;
  color:var(--admin-text)!important;
}
html[data-admin-theme="dark"] body.admin-body .container.admin-layout{
  max-width:1440px!important;
  padding-top:20px!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-content{
  min-width:0;
}
html[data-admin-theme="dark"] body.admin-body .admin-head,
html[data-admin-theme="dark"] body.admin-body .appearance-admin-head{
  padding:20px 22px!important;
  border:1px solid rgba(148,163,184,.14)!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(9,14,26,.82))!important;
  box-shadow:0 18px 48px rgba(2,6,23,.28)!important;
  backdrop-filter:blur(12px);
}
html[data-admin-theme="dark"] body.admin-body .admin-page-kicker,
html[data-admin-theme="dark"] body.admin-body .layout-card-topline em{
  background:#18253a!important;
  color:#b8c7d9!important;
  border:1px solid rgba(148,163,184,.14)!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-topbar{
  background:rgba(6,11,22,.88)!important;
  border-bottom:1px solid rgba(148,163,184,.12)!important;
  box-shadow:0 14px 40px rgba(2,6,23,.42)!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-sidebar,
html[data-admin-theme="dark"] body.admin-body .sidebar{
  background:linear-gradient(180deg,#0b1426 0,#0d1528 100%)!important;
  border:1px solid rgba(148,163,184,.14)!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-home-link{
  background:#101b2f!important;
  border-color:#1f3047!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-menu-group{
  background:#0f1a2e!important;
  border-color:#1f3047!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-menu-group a,
html[data-admin-theme="dark"] body.admin-body .admin-home-link,
html[data-admin-theme="dark"] body.admin-body .admin-main-link,
html[data-admin-theme="dark"] body.admin-body .admin-menu-group summary{
  color:#d8e1ec!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-menu-group a{border-top-color:#19273b!important}
html[data-admin-theme="dark"] body.admin-body .admin-menu-group summary:hover,
html[data-admin-theme="dark"] body.admin-body .admin-menu-group a:hover,
html[data-admin-theme="dark"] body.admin-body .admin-home-link:hover,
html[data-admin-theme="dark"] body.admin-body .admin-main-link:hover{
  background:#13233a!important;
}
html[data-admin-theme="dark"] body.admin-body .card,
html[data-admin-theme="dark"] body.admin-body .admin-card,
html[data-admin-theme="dark"] body.admin-body .appearance-section,
html[data-admin-theme="dark"] body.admin-body .appearance-preview-card,
html[data-admin-theme="dark"] body.admin-body .appearance-shortcuts-card,
html[data-admin-theme="dark"] body.admin-body .brand-upload-card,
html[data-admin-theme="dark"] body.admin-body .appearance-color-card,
html[data-admin-theme="dark"] body.admin-body .appearance-layout-choice-card,
html[data-admin-theme="dark"] body.admin-body .appearance-option>span,
html[data-admin-theme="dark"] body.admin-body .system-popup-card{
  background:linear-gradient(180deg,#0f172a 0,#0d1527 100%)!important;
  border-color:rgba(148,163,184,.14)!important;
  color:#e6edf6!important;
  box-shadow:0 14px 36px rgba(2,6,23,.30)!important;
}
html[data-admin-theme="dark"] body.admin-body .appearance-section-head{
  border-bottom-color:rgba(148,163,184,.12)!important;
}
html[data-admin-theme="dark"] body.admin-body .appearance-section-head h2,
html[data-admin-theme="dark"] body.admin-body .layout-card-topline strong,
html[data-admin-theme="dark"] body.admin-body .brand-upload-card strong,
html[data-admin-theme="dark"] body.admin-body .appearance-color-card label,
html[data-admin-theme="dark"] body.admin-body .appearance-subtitle{
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-body .appearance-section-head p,
html[data-admin-theme="dark"] body.admin-body .layout-description,
html[data-admin-theme="dark"] body.admin-body .appearance-layout-choice-card>small,
html[data-admin-theme="dark"] body.admin-body .field-block small,
html[data-admin-theme="dark"] body.admin-body .brand-upload-card p,
html[data-admin-theme="dark"] body.admin-body .appearance-color-card small,
html[data-admin-theme="dark"] body.admin-body .admin-head p,
html[data-admin-theme="dark"] body.admin-body .muted,
html[data-admin-theme="dark"] body.admin-body p,
html[data-admin-theme="dark"] body.admin-body small{
  color:#9fb0c5!important;
}
html[data-admin-theme="dark"] body.admin-body .section-step{
  background:rgba(22,163,74,.16)!important;
  color:#baf5cc!important;
  border:1px solid rgba(34,197,94,.14)!important;
}
html[data-admin-theme="dark"] body.admin-body .layout-miniature,
html[data-admin-theme="dark"] body.admin-body .brand-upload-preview,
html[data-admin-theme="dark"] body.admin-body .upload-box{
  background:#0a1324!important;
  border-color:#223148!important;
}
html[data-admin-theme="dark"] body.admin-body .lm-header{background:#475569!important}
html[data-admin-theme="dark"] body.admin-body .lm-products i{background:#111c31!important;border-color:#2d3b50!important;box-shadow:inset 0 -8px 0 #0b1423!important}
html[data-admin-theme="dark"] body.admin-body .lm-categories i{background:#314158!important}
html[data-admin-theme="dark"] body.admin-body .appearance-layout-choice:hover .appearance-layout-choice-card{
  border-color:#3a4a62!important;
  box-shadow:0 18px 38px rgba(2,6,23,.35)!important;
}
html[data-admin-theme="dark"] body.admin-body .appearance-layout-choice input:checked + .appearance-layout-choice-card,
html[data-admin-theme="dark"] body.admin-body .appearance-option input:checked + span{
  border-color:var(--green)!important;
  box-shadow:0 0 0 4px rgba(22,163,74,.12),0 18px 42px rgba(2,6,23,.34)!important;
}
html[data-admin-theme="dark"] body.admin-body .palette-presets button,
html[data-admin-theme="dark"] body.admin-body .file-button,
html[data-admin-theme="dark"] body.admin-body .appearance-shortcuts-card a,
html[data-admin-theme="dark"] body.admin-body .btn.light{
  background:#101b2f!important;
  border-color:#243247!important;
  color:#d8e1ec!important;
}
html[data-admin-theme="dark"] body.admin-body .palette-presets button:hover,
html[data-admin-theme="dark"] body.admin-body .file-button:hover,
html[data-admin-theme="dark"] body.admin-body .appearance-shortcuts-card a:hover,
html[data-admin-theme="dark"] body.admin-body .btn.light:hover{
  background:#13233a!important;
  border-color:#334155!important;
  color:#fff!important;
}
html[data-admin-theme="dark"] body.admin-body .input,
html[data-admin-theme="dark"] body.admin-body input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),
html[data-admin-theme="dark"] body.admin-body select,
html[data-admin-theme="dark"] body.admin-body textarea,
html[data-admin-theme="dark"] body.admin-body .color-code-input{
  background:#091425!important;
  border-color:#243247!important;
  color:#edf4ff!important;
}
html[data-admin-theme="dark"] body.admin-body input[type="color"]{
  background:#091425!important;
  border-color:#243247!important;
}
html[data-admin-theme="dark"] body.admin-body .table,
html[data-admin-theme="dark"] body.admin-body .dashboard-table,
html[data-admin-theme="dark"] body.admin-body .home-cat-settings-table{
  background:#0f172a!important;
}
html[data-admin-theme="dark"] body.admin-body .table th,
html[data-admin-theme="dark"] body.admin-body .dashboard-table th,
html[data-admin-theme="dark"] body.admin-body .home-cat-settings-table th,
html[data-admin-theme="dark"] body.admin-body .customer-list-head{
  background:#0b1423!important;
  color:#9fb0c5!important;
}
html[data-admin-theme="dark"] body.admin-body .table tbody tr:hover,
html[data-admin-theme="dark"] body.admin-body .customer-list-row:hover,
html[data-admin-theme="dark"] body.admin-body .customer-order-row:hover{
  background:#101b2f!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-theme-selector{
  background:#0d1728!important;
  border-color:#243247!important;
  color:#9fb0c5!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-theme-selector select{
  background:#101b2f!important;
  color:#f8fafc!important;
  border:1px solid #243247!important;
}
html[data-admin-theme="dark"] body.admin-body .system-popup-dialog::backdrop{background:rgba(2,6,23,.72)!important}
html[data-admin-theme="dark"] body.admin-body .system-popup-card h3{color:#f8fafc!important}
html[data-admin-theme="dark"] body.admin-body .system-popup-card p{color:#9fb0c5!important}
html[data-admin-theme="dark"] body.admin-body .system-popup-close{background:#101b2f!important;color:#d8e1ec!important}
/* Mantem a previa da loja clara e fiel as cores configuradas. */
html[data-admin-theme="dark"] body.admin-body .store-live-preview,
html[data-admin-theme="dark"] body.admin-body .store-live-preview *{
  color:initial;
}
html[data-admin-theme="dark"] body.admin-body .store-live-preview{box-shadow:inset 0 0 0 1px rgba(148,163,184,.12)!important}


/* ========================================================================== 
   V25 - Fundo geral escuro no admin dark mode (remove area branca)
   ========================================================================== */
html[data-admin-theme="dark"] body.admin-body .container,
html[data-admin-theme="dark"] body.admin-body .admin-layout,
html[data-admin-theme="dark"] body.admin-body .appearance-form,
html[data-admin-theme="dark"] body.admin-body .appearance-workspace,
html[data-admin-theme="dark"] body.admin-body .appearance-main-column,
html[data-admin-theme="dark"] body.admin-body .appearance-side-column{
  background:transparent!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-content{
  background:linear-gradient(180deg,rgba(8,14,28,.90) 0,rgba(8,14,28,.78) 100%)!important;
  border:1px solid rgba(148,163,184,.10)!important;
  border-radius:30px!important;
  padding:18px!important;
  box-shadow:0 22px 60px rgba(2,6,23,.22)!important;
}
html[data-admin-theme="dark"] body.admin-body .appearance-workspace,
html[data-admin-theme="dark"] body.admin-body .admin-form,
html[data-admin-theme="dark"] body.admin-body .admin-card,
html[data-admin-theme="dark"] body.admin-body .dashboard-grid{
  position:relative;
  z-index:1;
}
html[data-admin-theme="dark"] body.admin-body .appearance-preview-card,
html[data-admin-theme="dark"] body.admin-body .appearance-shortcuts-card{
  background:linear-gradient(180deg,#0d1527 0,#0b1323 100%)!important;
}
@media(max-width:980px){
  html[data-admin-theme="dark"] body.admin-body .admin-content{
    padding:14px!important;
    border-radius:24px!important;
  }
}
@media(max-width:760px){
  html[data-admin-theme="dark"] body.admin-body .admin-content{
    padding:10px!important;
    border-radius:18px!important;
  }
}


/* ========================================================================== 
   V26 - Remove fundos brancos restantes do dashboard/menu no modo escuro
   ========================================================================== */
html[data-admin-theme="dark"] body.admin-body .admin-menu-group summary,
html[data-admin-theme="dark"] body.admin-body .admin-home-link,
html[data-admin-theme="dark"] body.admin-body .admin-main-link,
html[data-admin-theme="dark"] body.admin-body .admin-submenu summary,
html[data-admin-theme="dark"] body.admin-body .admin-submenu a{
  background:#0f1a2e!important;
}
html[data-admin-theme="dark"] body.admin-body .admin-menu-group[open] > summary,
html[data-admin-theme="dark"] body.admin-body .admin-submenu[open] > summary{
  background:#111d33!important;
}
html[data-admin-theme="dark"] body.admin-body .dashboard-date{
  background:#101b2f!important;
  border-color:#243247!important;
  color:#dbe4ee!important;
  box-shadow:none!important;
}
html[data-admin-theme="dark"] body.admin-body .dashboard-kpi,
html[data-admin-theme="dark"] body.admin-body .dashboard-card,
html[data-admin-theme="dark"] body.admin-body .order-summary-card,
html[data-admin-theme="dark"] body.admin-body .order-admin-card,
html[data-admin-theme="dark"] body.admin-body .customer-total-badge,
html[data-admin-theme="dark"] body.admin-body .customer-search-card,
html[data-admin-theme="dark"] body.admin-body .customer-profile-hero,
html[data-admin-theme="dark"] body.admin-body .customer-profile-stats > div,
html[data-admin-theme="dark"] body.admin-body .customer-empty-state,
html[data-admin-theme="dark"] body.admin-body .customer-profile-empty{
  background:linear-gradient(180deg,#10192b 0,#0d1627 100%)!important;
  border-color:#223148!important;
  color:#e5edf7!important;
  box-shadow:0 14px 36px rgba(2,6,23,.24)!important;
}
html[data-admin-theme="dark"] body.admin-body .dashboard-kpi:after{
  background:color-mix(in srgb,var(--green) 16%, transparent)!important;
}
html[data-admin-theme="dark"] body.admin-body .dashboard-kpi .kpi-label,
html[data-admin-theme="dark"] body.admin-body .dashboard-head p,
html[data-admin-theme="dark"] body.admin-body .metric-name,
html[data-admin-theme="dark"] body.admin-body .day-label,
html[data-admin-theme="dark"] body.admin-body .dashboard-card-header span,
html[data-admin-theme="dark"] body.admin-body .metric-sub,
html[data-admin-theme="dark"] body.admin-body .empty-dashboard,
html[data-admin-theme="dark"] body.admin-body .customer-total-badge span{
  color:#9fb0c5!important;
}
html[data-admin-theme="dark"] body.admin-body .dashboard-kpi strong,
html[data-admin-theme="dark"] body.admin-body .dashboard-kpi small,
html[data-admin-theme="dark"] body.admin-body .metric-value,
html[data-admin-theme="dark"] body.admin-body .day-bar span,
html[data-admin-theme="dark"] body.admin-body .dashboard-table a,
html[data-admin-theme="dark"] body.admin-body .customer-total-badge strong{
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-body .dashboard-kpi .kpi-icon{
  background:#13243a!important;
  color:#d8fbe5!important;
}
html[data-admin-theme="dark"] body.admin-body .metric-track,
html[data-admin-theme="dark"] body.admin-body .day-bar-wrap{
  background:transparent!important;
  border-color:#223148!important;
}
html[data-admin-theme="dark"] body.admin-body .metric-track{height:9px;background:#162235!important}
html[data-admin-theme="dark"] body.admin-body .dashboard-table td strong,
html[data-admin-theme="dark"] body.admin-body .dashboard-table td,
html[data-admin-theme="dark"] body.admin-body .dashboard-table small{
  color:#dbe4ee!important;
}
html[data-admin-theme="dark"] body.admin-body .status-pill{background:#152235!important;color:#cbd5e1!important}
html[data-admin-theme="dark"] body.admin-body .status-pill.is-new{background:#0f2a48!important;color:#93c5fd!important}
html[data-admin-theme="dark"] body.admin-body .status-pill.is-progress{background:#3a2811!important;color:#fcd34d!important}
html[data-admin-theme="dark"] body.admin-body .status-pill.is-route{background:#25163f!important;color:#c4b5fd!important}
html[data-admin-theme="dark"] body.admin-body .status-pill.is-done{background:#0d2b21!important;color:#86efac!important}
html[data-admin-theme="dark"] body.admin-body .status-pill.is-cancelled{background:#3a141b!important;color:#fda4af!important}
html[data-admin-theme="dark"] body.admin-body .empty-dashboard{
  background:#0d1627!important;
  border:1px dashed #243247!important;
}


/* ========================================================================== 
   V27 - Ajustes finais do dark mode em ajuda de estoque e meta dos pedidos
   ========================================================================== */
html[data-admin-theme="dark"] body.admin-body .stock-help{
  background:#101b2f!important;
  border:1px dashed #243247!important;
  color:#9fb0c5!important;
}
html[data-admin-theme="dark"] body.admin-body .stock-help strong{
  color:#e5edf7!important;
}
html[data-admin-theme="dark"] body.admin-body .order-admin-meta{
  background:#101b2f!important;
  border:1px solid #223148!important;
  color:#dbe4ee!important;
}
html[data-admin-theme="dark"] body.admin-body .order-admin-meta small{
  color:#9fb0c5!important;
}
html[data-admin-theme="dark"] body.admin-body .order-admin-meta strong{
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-body .order-status{
  background:#152235!important;
  color:#e5edf7!important;
  border:1px solid #253348!important;
}


/* ========================================================================== 
   V28 - Correcoes estruturais finais: layout premium e catalogo lateral
   ========================================================================== */

/* 1) Editorial premium: faixa superior acima do header e marca alinhada a esquerda */
body.layout-premium .storefront-header{
  display:flex!important;
  flex-direction:column!important;
}
body.layout-premium .store-info-strip{
  order:1!important;
}
body.layout-premium .storefront-topbar{
  order:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  width:100%!important;
}
body.layout-premium .storefront-topbar .brand{
  grid-column:auto!important;
  justify-self:auto!important;
  margin:0!important;
  min-width:180px!important;
}
body.layout-premium .storefront-topbar .main-nav{
  grid-column:auto!important;
  justify-self:auto!important;
  width:auto!important;
  display:flex!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  margin-left:auto!important;
}
body.layout-premium .storefront-topbar .main-nav a:first-child,
body.layout-premium .storefront-topbar .main-nav a:nth-child(2){
  background:#fff!important;
  border:1px solid #edf1f5!important;
  box-shadow:none!important;
}
body.layout-premium .header-search{display:none!important}

/* 2) Editorial premium: troca o carrossel de categorias por grade estavel */
body.layout-premium .market-categories-wrap{
  margin-top:42px!important;
}
body.layout-premium .category-carousel{
  display:block!important;
}
body.layout-premium .category-carousel .cat-nav{
  display:none!important;
}
body.layout-premium .category-carousel .market-categories{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(110px,1fr))!important;
  gap:16px!important;
  overflow:visible!important;
  padding:8px 0 6px!important;
}
body.layout-premium .category-carousel .market-cat{
  min-width:0!important;
  max-width:none!important;
  flex:initial!important;
  display:block!important;
}
body.layout-premium .category-carousel .market-cat strong{
  min-height:30px;
}

/* 3) Catalogo lateral: fixa a barra lateral na coluna esquerda e o conteudo na direita */
body.layout-sidebar .market-page-shell{
  display:grid!important;
  grid-template-columns:280px minmax(0,1fr)!important;
  column-gap:24px!important;
  row-gap:18px!important;
  align-items:start!important;
}
body.layout-sidebar .market-categories-wrap{
  float:none!important;
  width:auto!important;
  margin:0!important;
  grid-column:1!important;
  grid-row:1 / span 3!important;
}
body.layout-sidebar .home-campaigns--top,
body.layout-sidebar .home-campaigns--bottom,
body.layout-sidebar .market-main{
  grid-column:2!important;
  min-width:0!important;
  width:100%!important;
  margin-left:0!important;
}
body.layout-sidebar .market-main{
  display:block!important;
}
body.layout-sidebar .product-section,
body.layout-sidebar .market-grid,
body.layout-sidebar .promo-grid,
body.layout-sidebar .market-slider,
body.layout-sidebar .market-search-panel{
  margin-left:0!important;
}

@media(max-width:980px){
  body.layout-premium .storefront-topbar{
    flex-wrap:wrap!important;
  }
  body.layout-premium .storefront-topbar .main-nav{
    width:100%!important;
    justify-content:flex-start!important;
    margin-left:0!important;
  }
  body.layout-premium .category-carousel .market-categories{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.layout-sidebar .market-page-shell{
    display:block!important;
  }
  body.layout-sidebar .market-categories-wrap,
  body.layout-sidebar .home-campaigns--top,
  body.layout-sidebar .home-campaigns--bottom,
  body.layout-sidebar .market-main{
    grid-column:auto!important;
    grid-row:auto!important;
  }
}
@media(max-width:640px){
  body.layout-premium .category-carousel .market-categories{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
}


/* ========================================================================== 
   V29 - Oculta a barra de rolagem do menu lateral sem remover a rolagem
   ========================================================================== */
body.layout-sidebar .market-categories-wrap,
body.layout-sidebar .category-carousel,
body.layout-sidebar .category-carousel .market-categories{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
body.layout-sidebar .market-categories-wrap::-webkit-scrollbar,
body.layout-sidebar .category-carousel::-webkit-scrollbar,
body.layout-sidebar .category-carousel .market-categories::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
  background:transparent!important;
}
