/* Americanas — loja (CSS único, sem conflitos) */

:root {
  --red: #E8001D;
  --red-dark: #c4000f;
  --yellow: #FFCC00;
  --yellow-dark: #e6b800;
  --green: #008A24;
  --verde-dark: #007a3d;
  --bg: #F5F5F5;
  --white: #fff;
  --text: #333;
  --muted: #666;
  --line: #E5E5E5;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

.loja {
  font-family: 'Nunito Sans', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.loja a { color: inherit; text-decoration: none; }
.loja img { max-width: 100%; display: block; }
.loja button, .loja input, .loja select { font: inherit; }
.loja-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Topbar */
.loja-topbar {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
}

/* Header */
.loja-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 1px 0 var(--line);
}

.loja-header-row {
  display: grid;
  grid-template-columns: 148px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
}

.loja-logo img { height: 36px; width: auto; }

.loja-search {
  display: flex;
  height: 42px;
  background: #F0F0F0;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  overflow: visible;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 30;
}

.loja-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.loja-search input::placeholder { color: #888; }

.loja-search button {
  width: 48px;
  border: 0;
  background: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loja-search button:hover { background: var(--red-dark); }

.loja-header-nav {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.loja-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
  color: var(--text);
  min-width: 52px;
}

.loja-nav-item svg { color: #333; }

.loja-nav-account {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.loja-nav-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.loja-nav-text small { font-size: 11px; color: var(--muted); font-weight: 600; }
.loja-nav-text strong { font-size: 12px; font-weight: 800; color: var(--red); }

.loja-nav-orders .loja-nav-text strong,
.loja-nav-cart .loja-nav-text strong { color: var(--text); font-size: 11px; }

.loja-cart-count {
  position: absolute;
  top: -4px;
  right: 0;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.loja-cart-count.is-empty { display: none; }

/* CEP */
.loja-cep {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  background: var(--white);
  font-size: 13px;
}

.loja-cep-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.loja-cep-icon { flex-shrink: 0; }

.loja-cep-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.loja-cep-btn {
  border: 0;
  background: none;
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-size: 13px;
}

.loja-cep-btn.has-cep {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.loja-cep-btn.has-cep strong { color: var(--red); font-weight: 800; }

.loja-cep-hint { color: var(--muted); font-size: 12px; line-height: 1.35; }

.loja-cep-change {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.loja-cep-change:hover { background: #fff5f6; }

/* Menu vermelho */
.loja-menu { background: var(--red); }

.loja-menu-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
}

.loja-menu-inner::-webkit-scrollbar { display: none; }

.loja-menu-inner a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 12px;
  white-space: nowrap;
  border-radius: 4px;
}

.loja-menu-inner a:hover { background: rgba(0,0,0,.12); }

.loja-menu-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.15);
  font-weight: 800;
  margin-right: 4px;
}

.loja-menu-deals {
  margin-left: auto;
  background: var(--yellow) !important;
  color: var(--text) !important;
  font-weight: 800 !important;
}

.loja-menu-deals:hover { background: var(--yellow-dark) !important; }

/* Banner */
.loja-banner {
  position: relative;
  background: #ddd;
  overflow: hidden;
}

.loja-banner-track {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 360;
  max-height: 340px;
}

.loja-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.loja-banner-slide.is-active { opacity: 1; pointer-events: auto; }

.loja-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loja-banner-prev,
.loja-banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  color: #333;
}

.loja-banner-prev { left: 12px; }
.loja-banner-next { right: 12px; }

.loja-banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.loja-banner-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
}

.loja-banner-dots button.is-active {
  background: var(--yellow);
  width: 24px;
  border-radius: 4px;
}

/* Serviços */
.loja-servicos {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.loja-servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}

.loja-servicos-grid > div {
  padding: 6px 8px;
  border-right: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.loja-servicos-grid > div:last-child { border-right: 0; }
.loja-servicos-grid strong { display: block; color: var(--red); font-size: 12px; margin-bottom: 2px; }

/* Faixa dupla promo */
.loja-promo-duo { background: var(--bg); padding: 16px 0; }

.loja-promo-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.loja-promo-duo-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.loja-promo-duo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.loja-promo-duo-card:hover { opacity: .95; }

/* Categorias pills */
.loja-cats { background: var(--white); padding: 20px 0; }

.loja-cats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loja-cats-list a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--white);
}

.loja-cats-list a:hover { border-color: var(--red); color: var(--red); }

.loja-cats-hot {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}

/* Prateleiras */
.loja-shelf { padding: 24px 0 32px; background: var(--white); }
.loja-shelf--grey { background: var(--bg); }

.loja-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.loja-shelf-head h2 {
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loja-shelf-head h2::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
}

.loja-shelf-head a {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
}

.loja-shelf-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.loja-shelf-scroll .loja-card { flex: 0 0 200px; max-width: 200px; }

.loja-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* Card produto */
.loja-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s;
}

.loja-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.loja-card-img {
  display: block;
  position: relative;
  aspect-ratio: 1;
  padding: 12px;
  background: var(--white);
}

.loja-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loja-card-off {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.loja-card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.loja-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loja-card-title a:hover { color: var(--red); }

.loja-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.loja-stars span {
  display: inline-block;
  width: 68px;
  height: 12px;
  background: linear-gradient(90deg, #FFCC00 calc(var(--n) / 5 * 100%), #e0e0e0 calc(var(--n) / 5 * 100%));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 12'%3E%3Cpolygon fill='black' points='6,0 7.8,4.2 12,4.5 8.8,7.3 10,11.5 6,9.2 2,11.5 3.2,7.3 0,4.5 4.2,4.2'/%3E%3Cpolygon fill='black' points='20,0 21.8,4.2 26,4.5 22.8,7.3 24,11.5 20,9.2 16,11.5 17.2,7.3 14,4.5 18.2,4.2'/%3E%3Cpolygon fill='black' points='34,0 35.8,4.2 40,4.5 36.8,7.3 38,11.5 34,9.2 30,11.5 31.2,7.3 28,4.5 32.2,4.2'/%3E%3Cpolygon fill='black' points='48,0 49.8,4.2 54,4.5 50.8,7.3 52,11.5 48,9.2 44,11.5 45.2,7.3 42,4.5 46.2,4.2'/%3E%3Cpolygon fill='black' points='62,0 63.8,4.2 68,4.5 64.8,7.3 66,11.5 62,9.2 58,11.5 59.2,7.3 56,4.5 60.2,4.2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 12'%3E%3Cpolygon fill='black' points='6,0 7.8,4.2 12,4.5 8.8,7.3 10,11.5 6,9.2 2,11.5 3.2,7.3 0,4.5 4.2,4.2'/%3E%3Cpolygon fill='black' points='20,0 21.8,4.2 26,4.5 22.8,7.3 24,11.5 20,9.2 16,11.5 17.2,7.3 14,4.5 18.2,4.2'/%3E%3Cpolygon fill='black' points='34,0 35.8,4.2 40,4.5 36.8,7.3 38,11.5 34,9.2 30,11.5 31.2,7.3 28,4.5 32.2,4.2'/%3E%3Cpolygon fill='black' points='48,0 49.8,4.2 54,4.5 50.8,7.3 52,11.5 48,9.2 44,11.5 45.2,7.3 42,4.5 46.2,4.2'/%3E%3Cpolygon fill='black' points='62,0 63.8,4.2 68,4.5 64.8,7.3 66,11.5 62,9.2 58,11.5 59.2,7.3 56,4.5 60.2,4.2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.loja-stars em { font-style: normal; }

.loja-card-de { font-size: 12px; color: #999; }

.loja-card-price {
  color: var(--red);
  line-height: 1;
  margin-top: 2px;
}

.loja-card-price span { font-size: 14px; font-weight: 800; vertical-align: top; margin-top: 4px; display: inline-block; }
.loja-card-price b { font-size: 26px; font-weight: 900; letter-spacing: -1px; }
.loja-card-price sup { font-size: 14px; font-weight: 800; vertical-align: top; }

.loja-card-parcela { font-size: 11px; color: var(--muted); }
.loja-card-frete { font-size: 11px; font-weight: 800; color: var(--green); }

.loja-card-form { margin-top: auto; padding-top: 8px; }

.loja-btn-comprar {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  padding: 10px 12px;
  cursor: pointer;
  transition: background .15s;
}

.loja-btn-comprar:hover { background: var(--yellow-dark); }

.loja-btn-outline {
  background: #fff !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
}

.loja-btn-outline:hover { background: #f5f5f5 !important; }

/* Search autocomplete */
.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 360px;
  overflow-y: auto;
  z-index: 50;
}

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text);
  font-size: 13px;
}

.search-suggest-item:hover { background: #fafafa; }
.search-suggest-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; background: #f5f5f5; flex-shrink: 0; }
.search-suggest-item span { flex: 1; line-height: 1.3; }
.search-suggest-item em { font-style: normal; font-weight: 800; color: var(--red); white-space: nowrap; }
.search-suggest-all { display: block; padding: 12px; text-align: center; font-weight: 800; color: var(--red); font-size: 13px; }
.search-suggest-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* Mini-cart drawer */
body.mini-cart-open { overflow: hidden; }

.mini-cart {
  position: fixed;
  inset: 0;
  z-index: 700;
}

.mini-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.mini-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  animation: slideInRight .25s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mini-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.mini-cart-head h2 { font-size: 18px; font-weight: 900; margin: 0; }

.mini-cart-close {
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
}

.mini-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

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

.mini-cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #f5f5f5;
  color: var(--text);
  align-items: start;
}

.mini-cart-item-thumb { display: block; flex-shrink: 0; }
.mini-cart-item:hover { background: #fafafa; }
.mini-cart-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 6px; background: #f5f5f5; }
.mini-cart-item-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mini-cart-item-info a { color: inherit; text-decoration: none; }
.mini-cart-item-info strong { font-size: 12px; font-weight: 700; line-height: 1.3; display: block; }
.mini-cart-item-info span { font-size: 11px; color: var(--muted); }
.mini-cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mini-cart-item-side em { font-size: 13px; font-weight: 800; font-style: normal; white-space: nowrap; color: var(--red); }
.mini-cart-item-side .btn-link { font-size: 11px; padding: 0; }

.mini-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}

.mini-cart-qty .qty-btn {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.mini-cart-qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 28px;
}

.mini-cart-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.mini-cart-subtotal { font-size: 14px; margin-bottom: 12px; }
.mini-cart-subtotal strong { font-size: 18px; color: var(--red); }
.mini-cart-actions { display: flex; flex-direction: column; gap: 8px; }
.mini-cart-actions .loja-btn-comprar { width: 100%; text-align: center; text-decoration: none; display: block; }

/* CEP modal */
.loja-modal[hidden],
.mini-cart[hidden] {
  display: none !important;
}

.loja-modal {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.loja-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0,0,0,.45);
}

.loja-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  box-sizing: border-box;
  overflow: hidden;
}

.loja-modal-box h3 { font-size: 20px; font-weight: 900; margin: 0 0 8px; }
.loja-modal-box .muted { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.loja-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.cep-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cep-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
}

.cep-form .loja-btn-comprar {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 15px;
}

.cep-form-msg { margin-top: 12px; font-size: 13px; }
.cep-form-msg--error { color: var(--red); font-weight: 700; }

.cep-result { margin-top: 16px; }

.cep-result-card {
  background: #f8f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.cep-result-title {
  color: #0a7a3e;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 6px;
}

.cep-result-local strong { color: var(--text); font-size: 15px; }
.cep-result-addr { color: var(--muted); margin: 4px 0 8px; }
.cep-result-frete { color: var(--red); font-weight: 700; margin-top: 6px; }

.loja-modal-box--cep { max-width: 420px; }


/* Breadcrumb / catálogo */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 12px;
}

.breadcrumb-inner {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.breadcrumb-inner::-webkit-scrollbar { display: none; }

.breadcrumb-inner a { color: var(--muted); }
.breadcrumb-current { color: var(--red); font-weight: 700; }

.catalogo-header {
  background: var(--white);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.catalogo-header-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.catalogo-sort label { font-size: 12px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.catalogo-sort select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }

.catalogo-header h1 { font-size: 22px; font-weight: 900; }
.catalogo-subtitle { color: var(--muted); font-size: 13px; margin-top: 6px; }

.catalogo-layout { padding: 20px 0 40px; }

.catalogo-layout-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

.catalogo-sidebar .filter-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.filter-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.filter-list { list-style: none; }
.filter-link { display: block; padding: 6px 0; font-size: 13px; color: var(--muted); }
.filter-link:hover, .filter-link.active { color: var(--red); font-weight: 700; }

.categoria-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.categoria-tab {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--white);
}

.categoria-tab.active, .categoria-tab:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.catalogo-main .loja-grid { grid-template-columns: repeat(4, 1fr); }

.catalogo-empty { text-align: center; padding: 48px 20px; color: var(--muted); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; align-items: center; }
.pagination-btn,
.pagination a, .pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: var(--white);
  color: var(--text);
}
.pagination-pages { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pagination-ellipsis { padding: 0 4px; color: var(--muted); }
.pagination-num.active { background: var(--red); border-color: var(--red); color: #fff; }
.pagination-btn:hover,
.pagination a:hover,
.pagination-num:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

/* Produto detalhe */
.produto-detalhe { background: var(--white); padding: 24px 0 40px; }

.produto-detalhe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.produto-galeria {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  background: var(--white);
}

.produto-galeria img { max-height: 400px; object-fit: contain; }

.produto-cat { font-size: 11px; font-weight: 800; color: var(--red); }
.produto-info h1 { font-size: 22px; font-weight: 900; margin: 8px 0 12px; line-height: 1.3; }

.produto-preco-bloco {
  background: #f9f9f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}

.price-old { color: #999; font-size: 14px; }
.price-now-lg { color: var(--red); font-size: 36px; font-weight: 900; display: block; line-height: 1.1; }

.produto-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

.badge {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 4px;
}

.badge-pix { background: var(--yellow); color: var(--text); }
.badge-frete { background: #e8f5ee; color: var(--green); }

.produto-entrega {
  background: #f8f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  font-size: 13px;
  line-height: 1.5;
}

.produto-entrega-ok strong { display: block; margin-bottom: 4px; }
.produto-entrega-frete { color: var(--green); font-weight: 700; margin-top: 4px; }
.produto-entrega-empty p { color: var(--muted); margin: 0; }

.produto-desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 12px 0; }

.qty-field-label { font-size: 12px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }

.qty-control {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--white);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.qty-input {
  width: 48px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Carrinho */
.carrinho-section { padding: 28px 0 48px; }

.carrinho-section h1 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carrinho-section h1::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
}

.cart-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}

.cart-item img { width: 88px; height: 88px; object-fit: contain; border-radius: 6px; }
.cart-item-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.cart-qty-control { margin-top: 4px; }
.cart-qty-control.is-loading { opacity: .55; pointer-events: none; }
.cart-item.removing { opacity: .5; pointer-events: none; }
.cart-item-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-side strong { font-size: 18px; font-weight: 900; color: var(--red); }

.cart-resumo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 120px;
}

.cart-resumo h3 { font-size: 18px; font-weight: 900; margin-bottom: 14px; }

.resumo-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.resumo-total { font-size: 20px; font-weight: 900; border: 0; padding-top: 12px; }
.resumo-pix { color: var(--green); font-size: 13px; font-weight: 700; margin: 12px 0; }

.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart p { font-size: 16px; color: var(--muted); margin-bottom: 16px; }

/* Checkout */
.checkout-page { padding: 28px 0 48px; }

.checkout-header h1 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-header h1::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
}

.checkout-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

.checkout-entrega-resumo {
  background: #f0faf4;
  border: 1px solid #c8e6d4;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.checkout-entrega-resumo strong { display: block; margin-bottom: 4px; color: var(--text); }

.resumo-frete-msg {
  font-size: 12px;
  color: var(--muted);
  margin: -4px 0 8px;
  line-height: 1.4;
}

.checkout-alert {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.checkout-alert--error {
  background: #fee;
  color: #991b1b;
  border: 1px solid #fcc;
}

.checkout-alert--warn {
  background: #fff8e6;
  color: #8a5b00;
  border: 1px solid #f5d78e;
}

.checkout-pix-limits {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.4;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.checkout-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.checkout-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-card-header h2 { font-size: 16px; font-weight: 800; }
.checkout-card-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.checkout-card-body .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-card-body label { font-size: 12px; font-weight: 700; color: var(--muted); display: block; }

.checkout-card-body input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.checkout-card-body input:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(232,0,29,.12); }
.checkout-card-body .req { color: var(--red); }

.metodo-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  position: relative;
  align-items: center;
}

.metodo-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.metodo-card.selected { border-color: var(--red); background: #fff5f5; }

.metodo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green) 0%, var(--verde-dark) 100%);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.metodo-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.metodo-titulo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.metodo-titulo strong { font-size: 15px; }
.metodo-tag {
  background: var(--yellow);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.metodo-desc { font-size: 13px; color: var(--muted); }
.metodo-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.metodo-card.selected .metodo-check {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.resumo-card .checkout-card-body { padding: 18px 22px; gap: 0; }
.resumo-body { display: flex; flex-direction: column; }

.resumo-prod {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.resumo-prod-img {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.resumo-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.resumo-prod-qtd {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.resumo-prod-info { min-width: 0; }
.resumo-prod-nome {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resumo-prod-preco { font-size: 11px; color: var(--muted); }
.resumo-prod-total { font-size: 14px; font-weight: 700; white-space: nowrap; }

.resumo-totais {
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.resumo-totais .resumo-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  border: 0;
}
.resumo-totais .resumo-total {
  font-size: 18px;
  font-weight: 800;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
}
.resumo-frete-msg { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }

.checkout-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.trust-line { display: block; }

.checkout-selos {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0 4px;
  border-top: 1px solid var(--line);
}
.checkout-selos img {
  height: 28px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  opacity: .9;
}

.cep-wrap { position: relative; display: block; }
.cep-status {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
  min-height: 18px;
}
.cep-status.loading { color: var(--muted); }
.cep-status.ok { color: var(--verde-dark); }
.cep-status.error { color: var(--red); }
.cep-hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

.btn-lg { padding: 14px 24px; font-size: 16px; }
.ame-btn-buy {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yellow) !important;
  color: var(--text) !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-weight: 900 !important;
  cursor: pointer;
  font-family: inherit !important;
}
.ame-btn-buy:hover { background: var(--yellow-dark) !important; }

.checkout-sidebar { position: sticky; top: 120px; }

/* Pagamento PIX */
.pagamento-page { padding: 28px 0 48px; }
.pagamento-header { text-align: center; margin-bottom: 24px; }
.pagamento-header h1 { font-size: 24px; font-weight: 900; }
.pagamento-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }

.pix-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.pix-qr { width: 260px; height: 260px; margin: 0 auto 16px; }
.pix-copy textarea { width: 100%; font-size: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }

/* Botões */
.btn, .btn-primary, .btn-checkout, .btn-outline {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  text-align: center;
}

.btn-primary, .btn-checkout {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover, .btn-checkout:hover { background: var(--red-dark); color: #fff; }

.btn-link { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 13px; }
.btn-link.danger { color: var(--red); }

.text-center { text-align: center; }

/* Footer */
.footer-benefits {
  background: #f5f5f5;
  border-top: 1px solid var(--line);
  padding: 20px 16px;
}

.footer-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.footer-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.footer-benefit strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.footer-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.footer-newsletter {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 32px 16px;
}

.footer-newsletter h3 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.footer-newsletter p { margin-bottom: 16px; opacity: .95; }

.newsletter-form {
  display: inline-flex;
  max-width: 440px;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  border-radius: 6px 0 0 6px;
  outline: none;
}

.newsletter-form button {
  border: 0;
  background: var(--yellow);
  color: var(--text);
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.site-footer {
  background: #2d2d2d;
  color: #b0b0b0;
}

.footer-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) 1.2fr;
  gap: 24px;
  padding: 40px 0 28px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: .5px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  color: #aaa;
}

.footer-col a:hover { color: var(--yellow); }

.footer-slogan,
.footer-col p { font-size: 13px; line-height: 1.6; }

.footer-hours {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  line-height: 1.5;
}

.footer-logo img { height: 32px; filter: brightness(0) invert(1); margin-bottom: 12px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3d3d3d;
  color: #ccc;
  transition: background .15s, color .15s;
}

.footer-social a:hover {
  background: var(--red);
  color: #fff;
}

.footer-col-cep {
  background: #383838;
  border-radius: 8px;
  padding: 16px;
}

.footer-cep-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}

.footer-cep-btn {
  width: 100%;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.footer-cep-btn:hover { background: #c9001a; }

.footer-cep-info {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #4a4a4a;
  font-size: 12px;
  line-height: 1.5;
}

.footer-cep-info strong { color: #fff; }
.footer-cep-frete { color: var(--yellow); font-weight: 700; margin-top: 4px; }

.footer-mid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 24px 0 28px;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}

.footer-mid h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: .4px;
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #333;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 4px;
  min-width: 48px;
}

.pay-badge.pay-pix {
  background: #32bcad;
  color: #fff;
}

.pay-note {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-badge {
  display: inline-block;
  background: #1a1a1a;
  border: 1px solid #555;
  color: #ccc;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.footer-trust .trust-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}

.footer-trust .trust-text { display: flex; flex-direction: column; line-height: 1.1; }
.footer-trust .trust-text strong { font-size: 10px; color: #333; }
.footer-trust .trust-text span { font-size: 8px; color: #666; font-weight: 700; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  font-size: 12px;
}

.footer-legal-links a { color: #999; }
.footer-legal-links a:hover { color: var(--yellow); }

.footer-legal {
  padding: 0 0 20px;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

.footer-bottom {
  background: #1a1a1a;
  padding: 16px;
  font-size: 12px;
  color: #777;
  border-top: 1px solid #444;
}

.footer-bottom .loja-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-disclaimer { max-width: 520px; text-align: right; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-col-cep { grid-column: 1 / -1; }
  .footer-mid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .footer-benefits-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-mid { grid-template-columns: 1fr; }
  .footer-disclaimer { text-align: left; }
}

@media (max-width: 480px) {
  .footer-benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  z-index: 400;
}

/* Consent / modal / toast */
.consent-box {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 360px;
  background: var(--white);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  z-index: 500;
  transition: opacity .3s, transform .3s;
}

.consent-box[hidden] { display: none; }
.consent-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.consent-title { font-weight: 800; font-size: 14px; }
.consent-logo { height: 24px; }
.consent-text { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.consent-actions { display: flex; gap: 8px; }

.consent-btn {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.consent-accept { background: var(--red); color: #fff; }
.consent-decline { background: #eee; color: var(--text); }

.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s;
  padding: 20px;
}

.app-modal-backdrop.show { opacity: 1; }

.app-modal {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  transform: scale(.95);
  transition: transform .2s;
}

.app-modal-backdrop.show .app-modal { transform: scale(1); }

.app-modal-title { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.app-modal-message { color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.app-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
}
.app-modal.modal-success .app-modal-icon { background: #d1fae5; color: #059669; }
.app-modal.modal-error .app-modal-icon { background: #fee2e2; color: #dc2626; }
.app-modal.modal-warning .app-modal-icon { background: #fef3c7; color: #d97706; }
.app-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.app-modal-btn { padding: 12px 24px; border: 0; border-radius: 6px; background: var(--red); color: #fff; font-weight: 800; cursor: pointer; min-width: 110px; font-family: inherit; }
.app-modal-cancel { background: #f1f5f9; color: #475569; }
.app-modal-ok { background: var(--green); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  z-index: 600;
  opacity: 0;
  transition: opacity .3s, transform .3s;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { background: var(--red); }
.toast a { color: #FFCC00; text-decoration: underline; margin: 0 4px; }
.toast a:hover { color: #fff; }

.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }

/* Auth / páginas estáticas */
.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.auth-section, .static-page { padding: 40px 0; min-height: 60vh; }
.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}

.auth-card h1 { font-size: 22px; font-weight: 900; margin-bottom: 20px; }
.auth-card label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.auth-card input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.static-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  line-height: 1.7;
}

.static-content h1 { font-size: 24px; font-weight: 900; margin-bottom: 16px; }

/* PIX waiting spinner */
.pix-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
}

.pix-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.auth-link { margin-top: 16px; text-align: center; font-size: 14px; }
.auth-link a { color: var(--red); font-weight: 700; }
.alert { background: #fee2e2; color: #b91c1c; padding: 10px 12px; border-radius: 6px; margin-bottom: 14px; font-size: 13px; }

/* Pagamento PIX — detalhes */
.pix-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.pix-waiting {
  margin: 16px 0 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.pix-waiting-inner { display: flex; align-items: center; gap: 16px; }

.pix-spinner { display: flex; gap: 6px; flex-shrink: 0; }

.pix-spinner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: pixBounce 1.2s ease-in-out infinite;
}

.pix-spinner-dot:nth-child(2) { animation-delay: .15s; }
.pix-spinner-dot:nth-child(3) { animation-delay: .3s; }

@keyframes pixBounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .5; }
  40% { transform: scale(1); opacity: 1; }
}

.pix-waiting-text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.pix-waiting-text strong { font-size: 15px; color: var(--green); }
.pix-waiting-text span { font-size: 13px; color: var(--muted); }

.pix-waiting-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(0,138,36,.15);
  overflow: hidden;
}

.pix-waiting-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--green);
  animation: pixBarSlide 1.8s ease-in-out infinite;
}

@keyframes pixBarSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.pix-manual-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  background: #fffbeb;
  border-radius: 8px;
  border: 1px solid #fde68a;
}

.pagamento-resumo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 120px;
}

.pix-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: var(--green);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin: 0 auto 16px;
  width: fit-content;
}

.pix-valor {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.pix-valor span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.pix-valor strong { font-size: 32px; font-weight: 900; color: var(--green); }

.pix-qr-wrap {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  border: 2px solid #32BCAD;
  border-radius: 8px;
}

.pix-qr-stage {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.pix-qr-loading small {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.pix-qr-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #e5e7eb;
  border-top-color: #32BCAD;
  border-radius: 50%;
  animation: pixQrSpin .8s linear infinite;
}

@keyframes pixQrSpin { to { transform: rotate(360deg); } }

.pix-qr-error {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.pix-retry-btn {
  margin-top: 12px;
  max-width: 280px;
  width: 100%;
}

.pix-qr { width: 240px; height: 240px; margin: 0 auto; }

.pix-timer {
  margin-top: 12px;
  padding: 8px 12px;
  background: #fff8e6;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.pix-codigo-box { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pix-codigo textarea {
  width: 100%;
  font-size: 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  resize: none;
  height: 72px;
}

.pix-instr { font-size: 13px; color: var(--muted); margin: 16px 0; line-height: 1.6; }
.pix-instr ol { margin: 8px 0 0 18px; }

.btn-amarelo {
  background: var(--yellow) !important;
  color: var(--text) !important;
  font-weight: 900 !important;
}

.btn-amarelo:hover { background: var(--yellow-dark) !important; }

.pag-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.pag-item-img { position: relative; }
.pag-item-img img { width: 56px; height: 56px; object-fit: contain; border-radius: 4px; }
.pag-item-qtd {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pag-totais { margin-top: 12px; }
.pag-cliente { margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.pagamento-numero { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.muted { color: var(--muted); }

.btn-block { display: block; width: 100%; text-align: center; }

.btn-outline {
  background: var(--white);
  border: 2px solid var(--red);
  color: var(--red);
}

.btn-outline:hover { background: var(--red); color: #fff; }

.cart-reminder {
  background: #fff8e6;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  font-size: 13px;
}

.cart-reminder-title { font-weight: 800; margin-bottom: 4px; }
.cart-reminder-desc { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.cart-reminder-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cart-reminder-row input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.cart-reminder-status { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.cart-reminder-status.ok { color: var(--green); font-weight: 700; }

/* Pedido confirmado */
.pedido-confirmado { padding: 40px 0 60px; background: var(--bg); min-height: 60vh; }
.confirmado-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-align: center;
}
.confirmado-card h1 { font-size: 26px; font-weight: 900; margin: 14px 0 16px; }
.confirmado-card p { margin: 10px 0; color: var(--muted); line-height: 1.55; }
.confirmado-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: var(--bg);
  color: var(--text);
}
.confirmado-icon.ok { background: #d1fae5; color: var(--verde-dark); }
.confirmado-icon.waiting { background: #fef3c7; color: #92400e; animation: pulseScale 1.5s ease-in-out infinite; }
.confirmado-icon.error { background: #fee2e2; color: #991b1b; }
@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.confirmado-info {
  background: var(--bg);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 22px 0;
  text-align: left;
}
.confirmado-info p { margin: 6px 0; color: var(--text); }
.auto-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 30px;
  font-size: 13px !important;
  color: var(--verde-dark) !important;
  font-weight: 600;
  margin-top: 16px !important;
}
.auto-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: autoPulse 1.4s ease-in-out infinite;
}
@keyframes autoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .8; }
}

.comprovante-bloco {
  margin-top: 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.comprovante-titulo { font-size: 16px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.comprovante-hint { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 14px; }
.comprovante-form { display: flex; flex-direction: column; gap: 12px; }
.comprovante-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 20px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  text-align: center;
}
.comprovante-drop:hover, .comprovante-drop.drag { border-color: var(--green); background: #ecfdf5; }
.comprovante-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.comprovante-icon-big { font-size: 36px; }
.comprovante-msg { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.comprovante-msg strong { color: var(--verde-dark); font-weight: 700; }
.comprovante-msg small { color: var(--muted); font-size: 12px; }
.comprovante-selected {
  display: none;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--white);
  border-radius: 6px;
  font-size: 13px;
  word-break: break-all;
}
.comprovante-selected.show { display: inline-block; }
.comprovante-enviado {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: #ecfdf5;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  margin-bottom: 14px;
  text-align: left;
}
.comprovante-enviado strong { display: block; color: var(--verde-dark); }
.comprovante-enviado small { color: var(--muted); font-size: 12px; }

.status-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.status-pendente { background: #fef3c7; color: #92400e; }
.status-aguardando_confirmacao { background: #fed7aa; color: #9a3412; }
.status-pago { background: #d1fae5; color: #065f46; }
.status-cancelado { background: #fee2e2; color: #991b1b; }
.status-estornado { background: #e9d5ff; color: #6b21a8; }

/* Responsivo */
@media (max-width: 1024px) {
  .loja-grid { grid-template-columns: repeat(4, 1fr); }
  .catalogo-main .loja-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .loja-header-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .loja-logo { grid-column: 1; }
  .loja-header-nav { grid-column: 2; grid-row: 1; gap: 10px; }
  .loja-search { grid-column: 1 / -1; max-width: none; }
  .loja-nav-account {
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    gap: 2px;
  }
  .loja-nav-account .loja-nav-text { display: none; }
  .loja-nav-text { display: none; }

  .loja-servicos-grid { grid-template-columns: 1fr 1fr; }
  .loja-servicos-grid > div:nth-child(2) { border-right: 0; }

  .loja-promo-duo-grid { grid-template-columns: 1fr; }

  .loja-grid { grid-template-columns: repeat(2, 1fr); }
  .catalogo-layout-inner { grid-template-columns: 1fr; }
  .catalogo-sidebar { display: none; }
  .catalogo-main .loja-grid { grid-template-columns: repeat(2, 1fr); }

  .cart-grid, .checkout-layout, .pagamento-grid { grid-template-columns: 1fr; }
  .produto-detalhe-grid { grid-template-columns: 1fr; }
  .checkout-card-body .row { grid-template-columns: 1fr; }

  .cart-resumo, .checkout-sidebar, .pagamento-resumo { position: static; top: auto; }

  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }
  .cart-item-side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
  }

  .metodo-card { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 12px; }
  .metodo-icon { width: 40px; height: 40px; font-size: 20px; }

  .produto-galeria { min-height: 240px; padding: 16px; }
  .produto-detalhe .loja-btn-comprar { max-width: none !important; width: 100%; }
  .pix-qr { width: min(260px, 72vw); height: min(260px, 72vw); }

  .qty-btn, .mini-cart-qty .qty-btn { min-width: 44px; min-height: 44px; }

  .newsletter-form { flex-direction: column; max-width: 100%; }
  .newsletter-form input,
  .newsletter-form button { width: 100%; border-radius: 6px !important; }

  .confirmado-card { padding: 28px 18px; }
  .comprovante-enviado { grid-template-columns: 1fr; text-align: center; }
  .app-modal-actions { flex-direction: column-reverse; }
  .app-modal-btn { width: 100%; }

  .loja-banner-prev, .loja-banner-next { display: none; }
  .loja-banner-track { max-height: 180px; }

  .loja-menu-deals { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
