/* ==========================================================
   CART DRAWER – Shopify-like (mobile-first)
========================================================== */
.cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: min(92%, 420px);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 20px rgba(0,0,0,.10);
  display: flex;
  flex-direction: column;
  transition: transform .32s ease;
  z-index: 9999;
  font-family: "Helvetica Neue", Arial, sans-serif;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  will-change: transform;
}
.cart-drawer.open{ transform: translateX(0); }

/* Overlay */
.cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.cart-overlay.open{ opacity: 1; visibility: visible; }

/* Header */
.cart-header{
  padding: 18px 20px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3{
  font-size: 18px; font-weight: 600; color: #111; margin: 0;
}
.cart-close{
  background: none; border: 1px solid transparent;
  font-size: 26px; color: #111; cursor: pointer;
  border-radius: 8px;
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease;
}
.cart-close:hover{ transform: rotate(90deg); opacity: .75; }
.cart-close:focus-visible{ outline: none; border-color: #111; }

/* Items */
.cart-items{
  flex: 1;
  overflow: auto;
  padding: 16px 16px 8px;
  scroll-padding-bottom: 120px; /* espaço para o sticky footer */
}
.cart-item{
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 12px;
}
.cart-item-img{
  width: 80px; height: 90px; object-fit: cover;
  border-radius: 8px; border: 1px solid #f0f0f0;
}
.cart-item-details{ flex: 1; }
.cart-item-title{ font-size: 15px; font-weight: 600; color: #111; margin: 0 0 4px; }
.cart-item-details p{ font-size: 13px; color: #555; margin: 0; }
.cart-item-bottom{
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px;
}

/* ===== Coluna lateral + Remove (ALINHADO COM O JS) ===== */
.cart-item-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  margin-left:8px;
}
.qty-badge{
  min-width:40px; height:34px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid #ddd; border-radius:10px;
  font-size:13px; color:#333; background:#fff;
}
.remove-link{
  background:none; border:0; padding:0; margin:0;
  color:#6b6b6b; font-size:12.5px; text-decoration:underline; cursor:pointer;
}
.remove-link:hover{ color:#111; }

/* Quantity (mantido se quiser exibir no futuro) */
.quantity{
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #ddd; border-radius: 8px; height: 32px; padding: 0 4px;
}
.quantity button{
  background: none; border: 0; width: 32px; height: 32px;
  font-size: 18px; font-weight: 700; color: #111; cursor: pointer; border-radius: 6px;
}
.quantity button:focus-visible{ outline: 2px solid #009b95; outline-offset: 2px; }
.quantity input{
  width: 42px; height: 28px; text-align: center;
  border: 0; font-size: 14px; color: #111; background: transparent;
}

/* Prices */
.cart-prices{ display: flex; flex-direction: column; align-items: flex-end; }
.cart-price{ font-weight: 700; font-size: 15px; color: #111; }
.cart-compare{ font-size: 12px; color: #999; text-decoration: line-through; }

/* Footer (sticky) */
.cart-footer{
  position: sticky; bottom: 0; left: 0;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -8px 18px rgba(0,0,0,.06);
  display: grid; gap: 10px;
}
.subtotal-row{
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.subtotal-row span{ font-size: 14px; color: #444; }
.subtotal-row strong{ font-size: 18px; font-weight: 800; color: #111; }

/* Buttons (base) */
.cart-footer button{
  width: 100%;
  border: none; cursor: pointer; border-radius: 9999px;
  font-weight: 700; letter-spacing: .02em; transition: filter .2s ease, transform .02s ease;
  padding: 14px; font-size: 15px;
}
.cart-footer button:active{ transform: translateY(1px); }

/* Checkout (verde) */
.checkout-btn{
  background: #009b95;
  color:#fff;
}
.checkout-btn:hover{ filter: brightness(.95); }

/* Continue Shopping (cinza claro + texto preto) */
.continue-btn{
  background: #f0f0f0;
  color: #111;
  box-shadow: none;
}
.continue-btn:hover{
  background:#e9e9e9;
  filter:none;
}
.continue-btn:active{ background:#e2e2e2; }

/* Responsive */
@media (max-width: 600px){
  .cart-drawer{ width: 100%; border-radius: 0; }
  .cart-header h3{ font-size: 17px; }
  .cart-item-img{ width: 72px; height: 80px; }
  .cart-items{ padding: 14px 12px 6px; }
  .cart-footer button{ font-size: 16px; padding: 16px; }
}

/* Acessibilidade geral */
.cart-footer button:focus-visible,
.cart-close:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,155,149,.35);
}

/* ==========================================================
   BARRA SUPERIOR DE PROMOÇÃO
========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

.promo-bar {
  background-color: #159896;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  padding: 6px 10px;
}

/* Desktop tweaks */
@media (min-width: 768px){
  .promo-bar{
    font-size: 14px;
    padding: 10px 16px;
    letter-spacing: .2px;
  }
}
@media (min-width: 1200px){
  .promo-bar{
    font-size: 15px;
    padding: 12px 20px;
  }
}

/* ==========================================================
   CABEÇALHO PRINCIPAL
========================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 35px;
}
.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.logo img {
  height: 20px;
  display: block;
}
.menu-toggle,
.cart-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.menu-toggle img,
.cart-toggle img {
  width: 20px;
  height: 20px;
  display: block;
}

/* ==========================================================
   GALERIA DE PRODUTO — SLIDER COM DOTS E MINIATURAS
========================================================== */
.product-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
}
.product-gallery::-webkit-scrollbar { display: none; }
.product-gallery img {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 10px;
  object-fit: contain;
  width: 100%;
  max-height: 420px;
}

/* Miniaturas */
.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.thumbs img {
  flex: 0 0 calc(20% - 8px);
  max-width: 100px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: border 0.2s, box-shadow .2s;
}
/* NOVO: realce da miniatura ativa */
.thumbs img.active{
  border-color:#159896;
  box-shadow:0 0 0 2px rgba(21,152,150,.25);
}

/* ==========================================================
   PRODUCT TITLE
========================================================== */
.product-title {
  font-family: 'Inter', 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
  margin: 10px 0 12px; /* FIX: adiciona 'px' no primeiro valor */
}

/* ==========================================================
   BADGE - BLACK FRIDAY
========================================================== */
.badge-new {
  display: inline-block;
  background: #7b3ff2;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  line-height: 1;
  margin: 0px 0px 15px;
}

/* ==========================================================
   PRICE
========================================================== */
.price-box {
  font-family: 'Poppins', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #333;
  margin-bottom: 16px;
}
.price-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #666;
  margin: 0;
}
.price-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.price-values {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-new {
  font-size: 32px;
  font-weight: 500;
  color: #f44336;
}
.price-old {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}
.price-save {
  background: #f44336;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  border-radius: 4px;
  padding: 4px 7px;
  display: inline-block;
  line-height: 1.4;
  position: relative;
  top: 5px;
}

/* ==========================================================
   CONNECTOR
========================================================== */
.connector-field {
  font-family: 'Poppins', sans-serif;
  color: #1b1b1b;
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.connector-label {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
}
.pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
}
.pill-toggle input[type="radio"] { display: none; }
.pill {
  padding: 10px 30px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #e5e5e5;
  color: #000;
  transition: all 0.25s ease;
}
.pill-toggle input[type="radio"]:checked + .pill {
  background: #169896;
  color: #fff;
  font-weight: 600;
}
.pill:hover { filter: brightness(0.95); }

/* ==========================================================
   QUANTITY
========================================================== */
.qty-box{
  font-family: 'Poppins', Arial, sans-serif;
  color:#111;
}
.qty-label{
  display:block;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  margin:0 0 8px;
}
#selected-option{ font-weight:700; }
.qty-options{
  display:flex;
  gap:12px;
  padding:10px;
  border:1px solid #e6e6e6;
  border-radius:12px;
  background:#fff;
  flex-wrap:wrap;
}
/* Base do container já define cor, mas garanta no botão também */
.qty-card{
  width:125px;
  border-radius:12px;
  border:none;
  background:#dcdcdc;
  padding:12px 14px 10px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  cursor:pointer;
  box-shadow:0 1px 0 rgba(0,0,0,.06) inset;
  transition:transform .06s ease, background .15s ease, box-shadow .15s ease;

  /* ANULA estilo nativo e fixa cor inativa */
  -webkit-appearance: none;
  appearance: none;
  color:#111;
}
.qty-card *{
  color: inherit;   /* filhos herdam a cor do card */
}

/* Ativo continua branco, como você já tinha */
.qty-card.active{
  background:#159896;
  box-shadow:0 0 0 3px rgba(21,152,150,.15) inset;
  color:#fff;
}
.qty-card.active .qty-old{ opacity:.85; }

.qty-card:hover{ transform:translateY(-1px); }
.qty-card:focus{ outline:2px solid rgba(21,152,150,.35); outline-offset:2px; }
.qty-icon{ width:34px; height:34px; display:block; margin-bottom:2px; }
.qty-title{ font-size:14px; font-weight:600; line-height:1.1; }
.qty-now{ font-size:14px; font-weight:600; line-height:1.1; }
.qty-old{ font-size:13px; color:#555; text-decoration:line-through; line-height:1.1; }
.qty-card.active{
  background:#159896;
  box-shadow:0 0 0 3px rgba(21,152,150,.15) inset;
  color:#fff;
}
.qty-card.active .qty-title,
.qty-card.active .qty-now,
.qty-card.active .qty-old{ color:#fff; }
.qty-card.active .qty-old{ opacity:.85; }
@media (max-width:480px){
  .qty-card{ width:112px; }
}

/* ==========================================================
   DESCRIÇÃO (bullets)
========================================================== */
.product-description {
  font-family: 'Poppins', sans-serif;
  color: #111;
  font-size: 15px;
  line-height: 1.6;
  max-width: 420px;
  margin: 40px auto;
  text-align: left;
}
.product-description ul { list-style: none; padding: 0; margin: 0; }
.product-description li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 24px;
}
.product-description li::before {
  content: "✔";
  color: #159896;
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 0;
}
.product-description li strong { font-weight: 600; color: #000; }
@media (max-width: 480px) {
  .product-description { font-size: 14px; line-height: 1.5; padding: 0 12px; }
}

/* ==========================================================
   CTA
========================================================== */
.add-to-cart-btn {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 20px auto;
  background-color: #159896;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 9999px;
  padding: 14px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.add-to-cart-btn:hover {
  background-color: #11807d;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(17, 128, 125, 0.3);
}
.add-to-cart-btn:active { transform: translateY(0); box-shadow: none; }
@media (max-width: 480px) {
  .add-to-cart-btn { max-width: 90%; font-size: 13px; padding: 12px 0; }
}

/* ==========================================================
   COMPATIBILITY BOX
========================================================== */
.compatibility-box {
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 12px 0;
  max-width: 480px;
  margin: 0 auto;
}
.compatibility-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.compatibility-header p {
  font-size: 14px;
  color: #000;
  margin: 0;
  flex: 1;
  padding-right: 10px;
}
.toggle-btn {
  font-size: 20px;
  font-weight: bold;
  color: #159896;
  background: none;
  border: 1.5px solid #159896;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
}
.toggle-btn:hover { background: #159896; color: #fff; }
.compatibility-content {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  color: #111;
  line-height: 1.5;
}
.compatibility-content a {
  color: #159896;
  font-weight: 600;
  text-decoration: none;
}
.compatibility-content a:hover { text-decoration: underline; }
.compatibility-box.active .compatibility-content { display: block; }

/* ==========================================================
   AFTER-SALE POLICY
========================================================== */
.after-sale {
  font-family: 'Poppins', sans-serif;
  color: #111;
  max-width: 480px;
  margin: 32px auto;
  text-align: left;
}
.after-sale h4 {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 5px 10px 20px;
}
.after-sale-items {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.policy-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 300;
  color: #169896;
  margin: 5px 10px 0;
}
.policy-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  position: relative;
  top: -1px;
}

/* ==========================================================
   RECOMMENDED PRODUCTS
========================================================== */
.recommended {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
.recommended-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}
.recommended-products {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.recommended-products::-webkit-scrollbar { display: none; }
.recommended-card {
  flex: 0 0 75%;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px 16px 8px;
  transition: 0.2s;
}
.recommended-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}
.rec-name {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0;
  color: #111;
}
.rec-rating {
  font-size: 16px;
  color: #169896;
  margin: 6px 0;
  letter-spacing: 1px;
}
.rec-rating span {
  color: #333;
  font-size: 14px;
  margin-left: 6px;
}
.rec-price { font-size: 16px; margin: 8px 0 0; }
.rec-price .new { color: #169896; font-weight: 700; font-size: 18px; }
.rec-price .old { color: #777; text-decoration: line-through; margin-left: 6px; }
a.recommended-card,
a.recommended-card:visited,
a.recommended-card:hover,
a.recommended-card:focus { text-decoration: none; color: inherit; }
.rec-rating .stars { font-size: 18px; color: #169896; letter-spacing: 1px; }
@media (min-width: 768px) { .rec-rating .stars { font-size: 20px; } }

/* ==========================================================
   HERO SECTION — NANO AI
========================================================== */
.nano-hero {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  background: #fff;
  color: #111;
  padding: 0px 5px 18px;
}
.nano-hero h1 {
  font-size: 40px;
  font-weight: 700;
  color: #ccc;
  margin-bottom: 4px;
}
.nano-hero h2 {
  font-size: 14px;
  color: #777;
  margin-bottom: 16px;
}
.nano-hero p {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  max-width: 350px;
  margin: 0 auto 24px;
}
.nano-image img {
  width: 190px;
  display: block;
  margin: 0 auto 22px;
}
.nano-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 12px;
  justify-items: center;
  align-items: center;
  max-width: 380px;
  margin: 0 auto;
}
.feature { text-align: center; }
.feature img { width: 32px; margin-bottom: 8px; }
.feature p {
  font-size: 13px;
  color: #111;
  line-height: 1.4;
  max-width: 120px;
  margin: 0 auto;
}

/* ==========================================================
   DESCRIÇÃO EM IMAGENS (LANDING STACK)
========================================================== */
.image-stack { margin: 0; padding: 0; line-height: 0; }
.image-stack img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* ==========================================================
   FOOTER PRINCIPAL — MOBILE FIRST
========================================================== */
.main-footer {
  background-color: #159896;
  color: #fff;
  text-align: center;
  padding: 40px 16px 30px;
  font-family: 'Poppins', sans-serif;
}
.main-footer > *:not(.footer-social):not(.footer-payments):not(.footer-copy) {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.footer-logo { margin-bottom: 30px; }
.footer-logo img { width: 130px; display: inline-block; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 35px;
  margin-bottom: 30px;
}
.footer-column { width: 45%; max-width: 180px; }
.footer-column h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.footer-column a {
  display: block;
  font-size: 13px;
  color: #fff;
  opacity: 0.95;
  text-decoration: none;
  margin-bottom: 6px;
  line-height: 1.5;
}
.footer-column a:hover { text-decoration: underline; }
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 26px 0 22px;
}
.footer-social img {
  width: 20px; height: 20px; opacity: 0.9; transition: opacity 0.25s ease;
}
.footer-social img:hover { opacity: 1; }
.footer-payments {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 10px; width: 100%; margin: 20px auto 0;
}
.footer-payments img { height: 20px; width: auto; object-fit: contain; flex-shrink: 0; }
.footer-copy { font-size: 12px; opacity: 0.9; }

/* ==========================================================
   CTA FLUTUANTE
========================================================== */
.floating-cta{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(640px, calc(100% - 24px));
  height: 52px;
  border: none;
  border-radius: 999px;
  padding: 0 20px;
  font: 600 16px/52px 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: #10a7a6;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  z-index: 1000;
  display: none;           /* começa escondido */
}
.floating-cta.show{ display:block; }
/* não mostrar quando o carrinho estiver aberto */
.cart-overlay.open ~ .floating-cta{ display:none; }
@media (min-width: 768px){
  .floating-cta{ height: 56px; line-height:56px; }
}

.add-to-cart-btn:not(.floating-cta){
  display:block; position:static;
}

/* Carrossel: só mostra a ativa */
#carousel img{display:none;width:100%;height:auto}
#carousel img.active{display:block}

/* Thumbs strip */
#thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto;scrollbar-width:none}
#thumbs::-webkit-scrollbar{display:none}
#thumbs img{
  width:68px;height:68px;object-fit:cover;cursor:pointer;
  border:2px solid transparent;border-radius:8px;opacity:.6;transition:opacity .2s, border-color .2s, transform .15s
}
#thumbs img:hover{opacity:.85;transform:translateY(-1px)}
#thumbs img.active{opacity:1;border-color:#111}


/* Largura máx + padding lateral para as seções de conteúdo */
.products,
.product-description,
.compatibility-box,
.after-sale,
.recommended,
.nano-hero{
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Mantém as imagens descritivas em full-bleed */
.image-stack{
  max-width: none;
  padding-inline: 0;
}


/* ======== GUTTER DEFINITIVO (COLE NO FIM DO ARQUIVO) ======== */
:root{
  --gutter: clamp(14px, 5vw, 18px);
  --maxw: 1100px;
}

@supports (padding: max(0px)) {
  :root{
    --gutter: max(
      clamp(14px, 5vw, 18px),
      env(safe-area-inset-left),
      env(safe-area-inset-right)
    );
  }
}

@media (max-width: 767.98px){
  /* 1) Bloqueia scroll lateral causado por elementos full-bleed */
  html, body { margin: 0; }
  body { overflow-x: hidden; }

  /* 2) Aplica gutter a TODO FILHO DIRETO do body (universal) */
  body > *:not(.cart-overlay):not(.cart-drawer):not(.image-stack):not(script):not(style):not(link) {
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
  }

  /* 3) Mantém full-bleed onde faz sentido */
  .product-gallery,
  .image-stack,
  .main-footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 4) Imagens higiênicas (evita colar/cortar) */
  img { display: block; max-width: 100%; height: auto; }

  /* 5) Header com altura e gutter consistentes */
  .site-header{
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* 6) Bullets com recuo confortável */
  .product-description ul{
    margin: 0;
    padding-left: 1.1rem;
  }

  /* 7) Grupos de botões não colam na borda */
  .qty-options,
  .add-to-cart-btn,
  .floating-cta{
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }
}

/* 8) Layout bonito no desktop (opcional) */
@media (min-width: 768px){
  header.site-header,
  section,
  footer {
    max-width: var(--maxw);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ===== ANTI-WIGGLE / BLOQUEIO DE SCROLL LATERAL ===== */

/* 1) Trava a viewport no eixo X e diz que o gesto padrão é só vertical */
@media (max-width: 767.98px){
  html, body {
    overflow-x: hidden;       /* nada pode estourar a largura da tela */
    touch-action: pan-y;      /* gestos horizontais não “levam” a página */
    overscroll-behavior-x: none; /* sem encadeamento de scroll no eixo X */
  }
}

/* 2) Nas faixas horizontais, permitimos o gesto horizontal localmente */
.product-gallery,
.thumbs,
.recommended-products{
  touch-action: pan-x;           /* aqui pode arrastar lateralmente */
  overscroll-behavior-x: contain;/* não passa o scroll para o body */
  -webkit-overflow-scrolling: touch; /* inércia suave no iOS */
}

/* 3) Evita qualquer “sangramento” sub-pixel que cause nudge */
.main-footer,
.site-header{
  overflow-x: clip;
}

/* 4) Segurança extra: imagens nunca empurram a largura */
img{ max-width:100%; height:auto; display:block; }



