:root {
  --ink:#10172b; --muted:#667085; --line:#dce3eb; --paper:#f4f7fb;
  --white:#fff; --navy:#070a19; --lime:#baff5c; --green:#18864b;
  font-family:"DM Sans",sans-serif; color:var(--ink); background:var(--paper);
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;min-height:100vh}
button,input{font:inherit}.topbar{position:sticky;top:0;z-index:1000;height:82px;padding:0 clamp(20px,6vw,88px);display:flex;align-items:center;background:var(--navy);color:#fff;box-shadow:0 8px 22px rgba(7,11,27,.18)}
.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-family:Manrope,sans-serif;font-weight:800;letter-spacing:.12em}.brand img{width:48px;height:48px;object-fit:contain;border-radius:12px}
main{width:min(1180px,calc(100% - 36px));margin:auto}.kicker{margin:0 0 10px;color:var(--green);font-size:.75rem;font-weight:800;letter-spacing:.15em}
h2{font-family:Manrope,sans-serif;margin:0}.freight-panel{display:grid;grid-template-columns:minmax(190px,.7fr) 2fr;gap:28px;align-items:center;margin-top:42px;padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--white);box-shadow:0 14px 42px rgba(16,24,40,.06)}.freight-panel h2,.section-heading h2{font-size:clamp(1.3rem,2.5vw,1.8rem)}
.freight-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.freight-options input{position:absolute;opacity:0}.freight-options span{display:flex;min-height:54px;align-items:center;justify-content:center;padding:12px 14px;border:1px solid var(--line);border-radius:14px;cursor:pointer;font-weight:700;text-align:center;transition:.2s}.freight-options input:checked+span{color:var(--navy);background:var(--lime);border-color:var(--navy);box-shadow:0 0 0 2px var(--lime),0 0 0 3px var(--navy)}.freight-options input:focus-visible+span{outline:3px solid #5b8def;outline-offset:3px}
.catalog{padding:48px 0 64px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:10px}.search-box{display:flex;align-items:center;width:min(430px,48%);min-height:54px;padding:0 17px;border:1px solid #cbd5e1;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(16,24,40,.05)}.search-box:focus-within{border-color:var(--green);box-shadow:0 0 0 3px rgba(24,134,75,.14)}.search-box svg{width:21px;height:21px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}.search-box input{width:100%;padding:14px 0 14px 11px;border:0;outline:0;color:var(--ink);background:transparent;font-size:1rem}.search-box input::placeholder{color:#7d8798}.product-count{margin:0 0 20px;color:var(--muted);font-weight:600}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.product-card{display:flex;flex-direction:column;min-height:245px;padding:26px;border:1px solid var(--line);border-radius:22px;background:var(--white)}.product-index{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:10px;background:var(--navy);color:var(--lime);font-weight:800}.product-card h3{margin:32px 0 auto;font-family:Manrope,sans-serif;font-size:clamp(1.2rem,2vw,1.55rem);line-height:1.22}.price-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-top:26px;margin-top:28px;border-top:1px solid var(--line)}.price-label{display:block;color:var(--muted);font-size:.78rem;margin-bottom:4px}.base-price{font-size:1.05rem;font-weight:700}.total-price{font-family:Manrope,sans-serif;font-size:1.45rem;font-weight:800;color:var(--green);white-space:nowrap}.error{padding:20px;border-radius:14px;background:#fff1f0;color:#b42318}
footer{padding:32px 20px 44px;text-align:center;color:var(--muted);font-size:.82rem;letter-spacing:.08em}
@media(max-width:720px){.topbar{height:72px;padding:0 18px}.brand img{width:42px;height:42px}main{width:min(100% - 28px,1180px)}.freight-panel{grid-template-columns:1fr;margin-top:24px;padding:20px}.freight-options{grid-template-columns:1fr}.freight-options span{min-height:48px}.catalog{padding:38px 0 46px}.product-grid{grid-template-columns:1fr}.section-heading{display:grid;align-items:start;gap:18px}.search-box{width:100%}.product-card{min-height:245px;padding:22px}}

.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:22px;align-items:start}.shop-layout .product-card{min-height:270px}.shop-layout .price-row{display:flex;align-items:center;justify-content:space-between}.add-cart{min-height:44px;padding:10px 15px;border:1px solid var(--navy);border-radius:11px;background:var(--navy);color:#fff;font-weight:700;cursor:pointer}.add-cart:hover{background:#16203a}.cart{position:sticky;top:22px;margin-top:48px;padding:24px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 14px 42px rgba(16,24,40,.07)}.cart-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid var(--line)}.cart-heading h2{font-size:1.55rem}.cart-badge{display:grid;place-items:center;min-width:38px;height:38px;padding:0 10px;border-radius:999px;background:var(--navy);color:var(--lime);font-weight:800}.cart-items{display:grid;gap:10px;max-height:390px;overflow:auto;padding:16px 2px}.cart-empty{margin:12px 0;color:var(--muted);line-height:1.5}.cart-item{padding:13px;border-radius:13px;background:var(--paper)}.cart-item-name{margin:0 0 10px;font-weight:700;font-size:.9rem;line-height:1.3}.cart-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.qty-control{display:flex;align-items:center;gap:4px}.qty-control button{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer;font-size:1.1rem}.qty-control span{min-width:26px;text-align:center;font-weight:800}.cart-item-price{font-weight:800}.remove-item{margin-top:8px;padding:0;border:0;background:none;color:#a43b32;font-size:.78rem;cursor:pointer}.cart-summary{display:grid;gap:10px;padding-top:17px;border-top:1px solid var(--line)}.cart-summary>div{display:flex;justify-content:space-between;gap:14px;color:var(--muted)}.cart-summary strong{color:var(--ink)}.cart-total{padding-top:12px;margin-top:2px;border-top:1px dashed #cbd5e1;font-size:1.2rem}.cart-total strong{font-family:Manrope,sans-serif;color:var(--green)}.clear-cart{width:100%;margin-top:18px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-weight:700;cursor:pointer}.clear-cart:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:960px){.shop-layout{grid-template-columns:1fr}.cart{position:static;margin:0 0 52px}.catalog{padding-bottom:0}}
@media(max-width:720px){.shop-layout .price-row{align-items:center}.cart{padding:20px}}

/* Catálogo compacto e frete integrado ao carrinho */
.shop-layout{grid-template-columns:minmax(0,1fr) 370px;margin-top:30px}.catalog{padding-top:18px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shop-layout .product-card{min-height:145px;padding:15px;border-radius:16px}.shop-layout .product-index{width:29px;height:29px;border-radius:8px;font-size:.78rem}.shop-layout .product-card h3{margin:14px 0 18px;font-size:.96rem;line-height:1.25}.shop-layout .price-row{padding-top:13px;margin-top:auto;gap:8px}.shop-layout .price-label{font-size:.7rem}.shop-layout .base-price{font-size:.93rem}.shop-layout .add-cart{min-height:36px;padding:7px 10px;border-radius:9px;font-size:.82rem}.cart{margin-top:18px}.cart-freight{padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.cart-freight h3{margin:0 0 13px;font-family:Manrope,sans-serif;font-size:1rem}.cart-freight .kicker{margin-bottom:5px}.cart-freight .freight-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.cart-freight .freight-options span{min-height:38px;padding:7px 5px;border-radius:9px;font-size:.77rem}.cart-summary{border-top:0}
@media(max-width:1100px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:960px){.shop-layout{grid-template-columns:1fr;margin-top:20px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cart{margin-top:0}}
@media(max-width:720px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-layout .product-card{min-height:155px;padding:14px}.shop-layout .product-card h3{font-size:.9rem}.shop-layout .price-row{display:grid}.shop-layout .add-cart{width:100%}}
@media(max-width:430px){.product-grid{grid-template-columns:1fr}.shop-layout .product-card{min-height:140px}}

.checkout-cart{width:100%;margin-top:18px;padding:13px;border:1px solid var(--navy);border-radius:10px;background:var(--navy);color:#fff;font-weight:800;cursor:pointer}.checkout-cart:hover{background:#16203a}.checkout-cart:disabled{opacity:.4;cursor:not-allowed}.checkout-cart+.clear-cart{margin-top:8px}.checkout-dialog{width:min(520px,calc(100% - 28px));max-height:min(720px,calc(100vh - 28px));padding:0;border:0;border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 24px 80px rgba(7,10,25,.28)}.checkout-dialog::backdrop{background:rgba(7,10,25,.66);backdrop-filter:blur(3px)}.checkout-header{display:flex;align-items:start;justify-content:space-between;gap:20px;padding:24px 24px 18px;border-bottom:1px solid var(--line)}.checkout-header h2{font-size:1.55rem}.close-checkout{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:1.7rem;line-height:1;cursor:pointer}.checkout-items{display:grid;gap:0;max-height:330px;overflow:auto;padding:8px 24px}.checkout-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.checkout-line:last-child{border-bottom:0}.checkout-line-name{margin:0;font-weight:700;font-size:.9rem;line-height:1.3}.checkout-line-meta{display:block;margin-top:4px;color:var(--muted);font-size:.78rem}.checkout-line-value{align-self:center;font-weight:800;white-space:nowrap}.checkout-totals{display:grid;gap:9px;padding:18px 24px;border-top:1px solid var(--line);background:var(--paper)}.checkout-totals>div{display:flex;justify-content:space-between;color:var(--muted)}.checkout-totals strong{color:var(--ink)}.checkout-total{padding-top:11px;margin-top:2px;border-top:1px dashed #cbd5e1;font-size:1.2rem}.checkout-total strong{font-family:Manrope,sans-serif;color:var(--green)}.whatsapp-order{display:block;margin:18px 24px 24px;padding:14px;border-radius:11px;background:#16a45b;color:#fff;text-align:center;text-decoration:none;font-weight:800}.whatsapp-order:hover{background:#118849}
@media(max-width:520px){.checkout-header{padding:20px 18px 15px}.checkout-items{padding:7px 18px}.checkout-totals{padding:16px 18px}.whatsapp-order{margin:15px 18px 20px}.checkout-line{grid-template-columns:1fr}.checkout-line-value{justify-self:start}}
.checkout-savings{margin:18px 24px 0;padding:14px 15px;border:1px solid #a7e3bf;border-radius:12px;background:#ebfff2;color:#11683b;font-weight:700;line-height:1.45;text-align:center}.checkout-savings strong{font-family:Manrope,sans-serif;font-size:1.12rem}.checkout-savings[hidden]{display:none}@media(max-width:520px){.checkout-savings{margin:15px 18px 0}}


/* Visualização das fotos dos produtos */
.product-actions{display:flex;gap:7px;align-items:center}.photo-button{min-height:36px;padding:7px 11px;border:1px solid var(--green);border-radius:9px;background:#fff;color:var(--green);font-size:.82rem;font-weight:800;cursor:pointer}.photo-button:hover{background:#ecfff4}.photo-dialog{width:min(560px,calc(100% - 28px));padding:0;border:0;border-radius:22px;background:#fff;box-shadow:0 24px 80px rgba(7,10,25,.3)}.photo-dialog::backdrop{background:rgba(7,10,25,.72);backdrop-filter:blur(3px)}.photo-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line)}.photo-header h2{font-size:1.05rem;line-height:1.3}.close-photo{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:1.7rem;line-height:1;cursor:pointer}.photo-stage{display:grid;place-items:center;padding:18px;background:var(--paper)}.photo-stage img{display:block;width:100%;max-height:min(68vh,620px);object-fit:contain;border-radius:14px;background:#fff}@media(max-width:720px){.product-actions{width:100%}.product-actions>*{flex:1}.photo-dialog{width:calc(100% - 20px)}}

/* Galeria deslizável de produtos */
.photo-stage{position:relative;overflow:hidden;touch-action:pan-y}.photo-arrow{position:absolute;top:50%;display:grid;place-items:center;width:42px;height:42px;padding:0;transform:translateY(-50%);border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(7,10,25,.72);color:#fff;font-size:2rem;line-height:1;cursor:pointer}.photo-prev{left:28px}.photo-next{right:28px}.photo-arrow[hidden]{display:none}.photo-dots{display:flex;justify-content:center;gap:7px;padding:12px 18px 17px;background:var(--paper)}.photo-dots button{width:8px;height:8px;padding:0;border:0;border-radius:999px;background:#bdc6d2;cursor:pointer;transition:.2s}.photo-dots button.active{width:25px;background:var(--green)}.photo-dots[hidden]{display:none}@media(max-width:520px){.photo-arrow{width:38px;height:38px}.photo-prev{left:22px}.photo-next{right:22px}}

/* Cabeçalho clean e filtros rápidos por tipo */
.catalog .section-heading{align-items:center;margin-bottom:9px}.catalog-kicker{margin:0}.product-filters{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}.product-filters button{min-height:31px;padding:6px 11px;border:1px solid #d5dde7;border-radius:999px;background:#fff;color:var(--muted);font-size:.72rem;font-weight:800;cursor:pointer;transition:.18s}.product-filters button:hover{border-color:var(--green);color:var(--green)}.product-filters button.active{border-color:var(--navy);background:var(--navy);color:var(--lime)}@media(max-width:720px){.catalog .section-heading{gap:9px}.catalog-kicker{display:none}.product-filters{gap:6px;margin-top:-6px;margin-bottom:14px}.product-filters button{min-height:29px;padding:5px 10px;font-size:.68rem}}


/* Miniaturas dos produtos e botão de adicionar */
.product-thumbnail{display:block;width:100%;height:118px;margin:10px 0 0;padding:2px;border:1px solid var(--line);border-radius:10px;background:transparent;overflow:hidden;cursor:pointer}
.product-thumbnail img{display:block;width:100%;height:100%;object-fit:contain;background:transparent}
.add-cart{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#b7ff3c}
.add-cart svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.add-cart:hover{color:#b7ff3c}
@media (max-width:700px){.product-thumbnail{height:100px}.add-cart{gap:5px}.add-cart svg{width:16px;height:16px}}


/* Atalho do carrinho no cabeçalho */
html{scroll-behavior:smooth}
.header-cart{position:relative;margin-left:auto;display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(183,255,60,.5);border-radius:14px;color:#b7ff3c;text-decoration:none}
.header-cart svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.header-cart-badge{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border:2px solid var(--navy);border-radius:999px;background:#fff;color:var(--navy);font-size:.72rem;font-weight:800}
.header-cart-badge.has-items{background:#b7ff3c}
#carrinho{scroll-margin-top:96px}
@media(max-width:720px){.header-cart{width:44px;height:44px;border-radius:12px}.header-cart svg{width:23px;height:23px}}


/* Cotação de frete em tempo real */
.freight-cep-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:10px}.freight-cep-row input{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);outline:0}.freight-cep-row input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(24,134,75,.14)}.freight-cep-row button{min-height:42px;padding:9px 13px;border:1px solid var(--navy);border-radius:9px;background:var(--navy);color:#fff;font-weight:800;cursor:pointer}.freight-cep-row button:disabled{opacity:.55;cursor:wait}.freight-status{margin:0 0 10px;color:var(--muted);font-size:.78rem;line-height:1.35}.cart-freight .freight-options{grid-template-columns:1fr}.cart-freight .freight-options span{justify-content:flex-start;gap:5px;padding:9px 10px;text-align:left}.cart-freight .freight-options small{display:block;margin-left:auto;color:inherit;font-size:.7rem;font-weight:700;text-align:right}@media(max-width:430px){.freight-cep-row{grid-template-columns:1fr}.freight-cep-row button{width:100%}.cart-freight .freight-options small{margin-left:0;text-align:left}}

/* Produto sem estoque no Olist */
.product-card.is-unavailable > *:not(.stock-badge){opacity:.5}
.product-card.is-unavailable .product-thumbnail img{filter:grayscale(1)}
.stock-badge{display:block;width:max-content;margin:8px 0 0;padding:3px 10px;border:1px solid var(--line);border-radius:999px;background:#eef1f5;color:var(--muted);font-size:.78rem;font-weight:700;letter-spacing:.02em}
.add-cart:disabled{cursor:not-allowed;background:#e4e8ee!important;color:#8a93a3!important;border-color:transparent!important;box-shadow:none!important}
.add-cart:disabled:hover{color:#8a93a3!important}
