/* Template padrão da loja — diferente do sistema de temas antigo (que só
   ajustava classes do style.css compartilhado), este template tem markup
   próprio (layouts/store-storefront.php, layouts/checkout-storefront.php e
   as views *-storefront.php) com suas próprias classes ".storefront-*",
   então este arquivo é o design completo, não um conjunto de overrides
   pontuais. As variáveis de cor abaixo são a paleta padrão — a ideia é que
   fiquem editáveis por loja em Configurações > Templates (customização de
   cores), sem tocar na estrutura. */
:root {
  --storefront-bg: #ffffff;
  --storefront-bg-page: #f6f7fb;
  --storefront-text: #1a1a1a;
  --storefront-text-muted: #666666;
  --storefront-dark: #000000;
  --storefront-header-bg: #10182f;
  --storefront-nav-bg: #1b2542;
  --storefront-nav-hover: #26325a;
  --storefront-topbar-bg: #e6f6f7;
  --storefront-topbar-text: #008299;
  --storefront-primary: #10182f;
  --storefront-primary-hover: #0a0f22;
  --storefront-accent: #159b67;
  --storefront-red: #e3343f;
  --storefront-pix: #159b67;
  --storefront-pix-bg: #e5f6ee;
  --storefront-border: #e2e8f0;
  --storefront-card-bg: #ffffff;
  --storefront-badge-free-shipping: #059669;
  --storefront-footer-bg: #10182f;
}

/* RESET E LIMITES GLOBAIS DE IMAGEM (IMPEDE SOBREPOSIÇÃO) */
.theme-storefront *, .theme-storefront *::before, .theme-storefront *::after {
  box-sizing: border-box;
}

.theme-storefront img, .theme-storefront svg {
  max-width: 100%;
  height: auto;
  display: block;
}

body.theme-storefront {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Inter', Roboto, sans-serif;
  color: var(--storefront-text);
  background-color: var(--storefront-bg-page);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* TOPBAR */
.storefront-topbar {
  background-color: var(--storefront-topbar-bg);
  color: var(--storefront-topbar-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 168, 132, 0.15);
  letter-spacing: 0.2px;
}
.pix-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M112.5 152.3l61.2-61.2c44.8-44.8 117.7-44.8 162.5 0l61.2 61.2c44.8 44.8 44.8 117.7 0 162.5l-61.2 61.2c-44.8 44.8-117.7 44.8-162.5 0l-61.2-61.2c-44.8-44.8-44.8-117.7 0-162.5z'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M112.5 152.3l61.2-61.2c44.8-44.8 117.7-44.8 162.5 0l61.2 61.2c44.8 44.8 44.8 117.7 0 162.5l-61.2 61.2c-44.8-44.8-44.8-117.7 0-162.5z'/%3E%3C/svg%3E") no-repeat center;
  vertical-align: -2px;
  margin-right: 4px;
}

/* HEADER PRINCIPAL */
.storefront-header {
  background-color: var(--storefront-header-bg);
  padding: 12px 0;
  border-bottom: 1px solid #111;
}
.storefront-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.storefront-logo-img {
  height: 73px !important;
  width: auto !important;
  max-width: none !important;
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
  display: block !important;
  mix-blend-mode: screen !important;
}
@media (max-width: 767px) {
  .storefront-logo-img {
    height: 56px !important;
    width: auto !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;
    mix-blend-mode: screen !important;
  }
}
.storefront-logo-text {
  display: flex;
  flex-direction: column;
}
.storefront-logo-title {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.storefront-logo-sub {
  color: #ff3344;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* BUSCA */
.storefront-search-wrapper {
  position: relative;
  width: 100%;
}
.storefront-search-input {
  background-color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 48px 10px 16px;
  font-size: 0.9rem;
  width: 100%;
  color: #333;
  outline: none;
}
.storefront-search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background-color: #555e6d;
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}
.storefront-search-btn:hover {
  background-color: #3f4754;
}

/* AÇÕES DO USUÁRIO */
.storefront-action-item {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  transition: opacity 0.2s;
}
.storefront-action-item:hover {
  color: #e2e8f0;
  opacity: 0.9;
}
.storefront-action-icon {
  font-size: 1.5rem;
  color: #e2e8f0;
  line-height: 1;
}
.storefront-action-text small {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
}
.storefront-action-text strong {
  display: block;
  font-weight: 600;
}
.cart-badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* PAINEL FLUTUANTE (ATENDIMENTO / CONTA) */
.storefront-flyout-item {
  position: relative;
}
.storefront-flyout-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  padding: 18px;
  width: 280px;
  z-index: 50;
  font-size: 0.82rem;
}
.storefront-flyout-item:hover .storefront-flyout-panel,
.storefront-flyout-item.open .storefront-flyout-panel {
  display: block;
}
.storefront-flyout-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--storefront-border);
}
.storefront-flyout-row:last-child {
  border-bottom: none;
}
.storefront-flyout-row a {
  color: var(--storefront-primary);
  text-decoration: none;
}

/* DEPARTAMENTOS / NAVBAR */
.storefront-nav-bar {
  background-color: var(--storefront-nav-bg);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-departments {
  background-color: #121824;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.btn-departments:hover {
  background-color: #0b0f17;
  color: #fff;
}
.storefront-nav-links {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
}
.storefront-nav-links li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.storefront-nav-links li a:hover {
  color: #ffffff;
  background-color: var(--storefront-nav-hover);
}

/* FAIXA DE VANTAGENS */
.storefront-advantages-bar {
  background-color: #000000;
  color: #ffffff;
  padding: 14px 0;
  border-bottom: 1px solid #1a2234;
}
.advantage-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.advantage-icon {
  font-size: 1.6rem;
  color: #e2e8f0;
}
.advantage-text strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
}
.advantage-text small {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
}

/* CARROSSEL DE BANNERS (admin: Adicionais > Banners de Imagem/Mobile) */
.storefront-banner-carousel {
  overflow: hidden;
}
.storefront-banner-carousel,
.storefront-banner-carousel .carousel-inner,
.storefront-banner-carousel .carousel-item {
  height: 100%;
}
.storefront-banner-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.storefront-banner-carousel.banner-ratio-desktop {
  aspect-ratio: 21 / 5;
}
.storefront-banner-carousel.banner-ratio-mobile {
  aspect-ratio: 4 / 3;
}
.storefront-banner-carousel .carousel-indicators {
  margin-bottom: 0.75rem;
}

/* BANNER PRINCIPAL (HERO) */
.storefront-hero {
  background: linear-gradient(135deg, var(--storefront-header-bg) 0%, #1b2542 100%);
  padding: 48px 0;
}
.storefront-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.storefront-hero-copy {
  flex: 1 1 420px;
  max-width: 600px;
}
.storefront-hero-eyebrow {
  display: inline-block;
  color: var(--storefront-accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.storefront-hero-copy h1 {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 14px;
}
.storefront-hero-copy p {
  color: #c3cbe0;
  font-size: 1.02rem;
  margin-bottom: 22px;
}
.storefront-btn-primary {
  background-color: var(--storefront-red);
  border: 1px solid var(--storefront-red);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(227, 52, 63, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.storefront-btn-primary:hover {
  background-color: #c92730;
  border-color: #c92730;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(227, 52, 63, 0.4);
  transform: translateY(-1px);
}
.storefront-btn-outline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.storefront-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}
.storefront-btn-outline-dark {
  background-color: transparent;
  border: 1px solid var(--storefront-border);
  color: var(--storefront-text);
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.storefront-btn-outline-dark:hover {
  background-color: #f8fafc;
  color: var(--storefront-text);
  transform: translateY(-1px);
}
.storefront-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}
.storefront-hero-trust span {
  color: #c3cbe0;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.storefront-hero-trust i {
  color: var(--storefront-accent);
}
.storefront-hero-art {
  flex: 1 1 260px;
  max-width: 320px;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.storefront-hero-device {
  width: 160px;
  height: 190px;
  border-radius: 18px;
  background: linear-gradient(160deg, #26325a 0%, #10182f 100%);
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.storefront-floating-card {
  position: absolute;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  font-size: 0.78rem;
}
.storefront-floating-card i {
  font-size: 1.3rem;
  color: var(--storefront-red);
}
.storefront-floating-card strong {
  display: block;
  color: var(--storefront-text);
}
.storefront-floating-card small {
  color: var(--storefront-text-muted);
}
.storefront-floating-card.c1 { top: 6px; left: -10px; }
.storefront-floating-card.c2 { bottom: 6px; right: -10px; }
@media (max-width: 767px) {
  .storefront-floating-card { display: none; }
}

/* FAIXA "X% OFF NO PIX" */
.storefront-promo-band {
  background: linear-gradient(135deg, var(--storefront-pix) 0%, #0f7a51 100%);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
}
.storefront-promo-band .storefront-hero-eyebrow { color: rgba(255, 255, 255, 0.85); }
.storefront-promo-band h2 {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.6rem;
  margin: 6px 0;
}
.storefront-promo-band p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.storefront-promo-band > i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 576px) {
  .storefront-promo-band { flex-direction: column; text-align: center; }
}

/* BREADCRUMBS */
.storefront-breadcrumb {
  font-size: 0.8rem;
  padding: 12px 0;
  color: #64748b;
}
.storefront-breadcrumb a {
  color: #008299;
  text-decoration: none;
}
.storefront-breadcrumb a:hover {
  text-decoration: underline;
}
.storefront-breadcrumb .separator {
  margin: 0 6px;
  color: #94a3b8;
}

/* GRID E CARDS DE PRODUTO */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}
@media (max-width: 992px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (max-width: 576px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.storefront-product-card {
  background: #ffffff;
  border: 1px solid var(--storefront-border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.storefront-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.card-dept-tag {
  background-color: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: 4px;
  align-self: center;
  margin-bottom: 8px;
  width: 100%;
  text-align: center;
}
.card-badge-free {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--storefront-badge-free-shipping);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 10px;
}
.card-promo-banner {
  background-color: #f97316;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 5px 8px;
  margin: 10px -14px 10px;
}

.card-img-wrap {
  width: 100%;
  height: 180px;
  max-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 8px;
  overflow: hidden;
  position: relative;
  background-color: #ffffff;
}
.card-img-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.card-img-wrap img {
  max-width: 100% !important;
  max-height: 165px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto;
}

.card-product-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  min-height: 38px;
  line-height: 1.35;
  margin-bottom: 10px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}
.card-product-title:hover {
  color: #0284c7;
}
.card-pix-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--storefront-pix);
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.card-old-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-top: 2px;
}
.card-divider {
  border: none;
  border-top: 1px solid var(--storefront-border);
  margin: 10px 0;
}
.card-installments {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.card-buy-form, .card-buy-row {
  margin-top: auto;
  display: flex;
  gap: 6px;
}
.card-qty-input {
  width: 44px;
  border: 1px solid var(--storefront-border);
  border-radius: 4px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.qty-box {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--storefront-border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.qty-box .qty-num {
  width: 30px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
  background: transparent;
}
.qty-arrows {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--storefront-border);
}
.qty-arrows button {
  border: none;
  background: #f8fafc;
  width: 20px;
  height: 14px;
  font-size: 0.6rem;
  line-height: 1;
  padding: 0;
  color: #475569;
  cursor: pointer;
}
.qty-arrows button:first-child {
  border-bottom: 1px solid var(--storefront-border);
}
.qty-arrows button:hover {
  background: #eef2f7;
}
.btn-card-buy {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--storefront-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(16, 24, 47, 0.25);
  transition: background 0.2s, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-card-buy:hover {
  background-color: var(--storefront-primary-hover);
  color: #fff;
  box-shadow: 0 5px 12px rgba(16, 24, 47, 0.35);
  transform: translateY(-1px);
}
.btn-card-fav {
  background: #fff;
  border: 1px solid var(--storefront-border);
  border-radius: 4px;
  color: #94a3b8;
  padding: 8px 10px;
  cursor: pointer;
}
.btn-card-fav:hover, .btn-card-fav.active {
  color: #ef4444;
  border-color: #ef4444;
}

/* BOTÃO VER MAIS PRODUTOS */
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  margin: 20px auto 30px;
  transition: all 0.2s;
}
.btn-load-more:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* PÁGINA DE CATEGORIA */
.category-title-banner {
  background-color: #f1f5f9;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 16px 0 20px;
}
.category-title-banner h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}
.btn-load-more-full {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #f97316;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  margin: 8px 0 24px;
}
.btn-load-more-full:hover {
  background-color: #ea580c;
  color: #ffffff;
}

/* TÍTULOS DE SEÇÃO */
.section-header-styled {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}
.section-header-styled h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  display: inline-block;
  margin: 0;
}
.section-header-styled span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #64748b;
  margin-left: 8px;
}

/* GALERIA DA PÁGINA DO PRODUTO */
.gallery-container {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 100%;
  min-width: 0;
}
.gallery-thumbnails-col {
  width: 76px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.thumb-nav-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}
.thumb-nav-btn:hover {
  color: #1e293b;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  border: 1px solid var(--storefront-border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.gallery-thumb img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
.gallery-thumb.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}
.gallery-main-view {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  height: 480px;
  max-height: 480px;
  background: #ffffff;
  border: 1px solid var(--storefront-border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery-main-view img {
  max-width: 100% !important;
  max-height: 430px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto;
}

/* PAINEL DE COMPRA DO PRODUTO */
.product-info-panel {
  background: #ffffff;
  border: 1px solid var(--storefront-border);
  border-radius: 8px;
  padding: 24px;
  min-width: 0;
}
.product-brand {
  font-size: 0.85rem;
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}
.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
}
.btn-fav {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}
.btn-fav:hover, .btn-fav.active {
  color: #ef4444;
}
.product-title-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}
.badge-free-shipping-img {
  height: 22px;
  width: auto;
  margin: 6px 0 4px;
}
.star-rating i {
  font-size: 0.85rem;
}
.product-meta-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin: 8px 0 16px;
}

/* CAIXA PIX (faixa "Pix | R$ 224,91 no Pix").
   Proporções tiradas da imagem de referência: tudo é medido em cqw (largura da
   própria faixa), então ela fica idêntica em qualquer largura de tela.
   Fonte Selawik (livre, equivalente à Segoe UI) servida pela própria loja. */
@font-face {
  font-family: 'Selawik';
  src: url('/assets/fonts/selawik/selawik-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Selawik';
  src: url('/assets/fonts/selawik/selawik-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Selawik';
  src: url('/assets/fonts/selawik/selawik-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.pix-banner-wrap {
  container-type: inline-size;
  margin-bottom: 14px;
}
.pix-banner {
  --pix-green: #08996a;
  --pix-gray: #5b656c;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 60px;
  min-height: 17.66cqw;
  background: linear-gradient(90deg, #e7f7f2 0%, #e8f8f3 100%);
  border: 1.5px solid #a9e9da;
  border-radius: 8px;
  border-radius: 1.25cqw;
  font-family: 'Segoe UI', 'Selawik', system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1;
}
.pix-banner-logo {
  position: relative;
  flex: 0 0 36.8cqw;
  box-sizing: border-box;
  padding: 0 3.4cqw 0 5.6cqw;
  display: flex;
  align-items: center;
  align-self: stretch;
}
.pix-banner-logo img {
  display: block;
  width: 27.8cqw;
  height: auto;
}
.pix-banner-logo::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18.5%;
  height: 63%;
  width: 1.5px;
  background: #a3e5d6;
}
.pix-banner-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 2cqw 1.36cqw 3.2cqw;
}
.pix-banner-price {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}
.pix-banner-amount {
  margin-left: -0.35cqw;
  font-size: 7.28cqw;
  font-weight: 700;
  color: var(--pix-green);
  letter-spacing: -0.01em;
}
.pix-banner-tag {
  position: relative;
  top: -0.93cqw;
  margin-left: 1.17cqw;
  font-size: 4.3cqw;
  font-weight: 400;
  color: var(--pix-gray);
}
.pix-banner-note {
  margin-top: 1.15cqw;
  font-size: 3.18cqw;
  font-size: max(11px, 3.18cqw);
  font-weight: 400;
  color: var(--pix-green);
}

/* CARTÃO & PARCELAMENTO */
.card-price-box {
  margin-bottom: 18px;
}
.card-price-regular {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
}
.card-installments {
  font-size: 0.88rem;
  color: #475569;
}
.installments-mini-table {
  background: #f8fafc;
  border: 1px solid var(--storefront-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: #334155;
  margin-bottom: 16px;
  max-height: 220px;
  overflow-y: auto;
}
.installments-mini-table table {
  width: 100%;
  margin: 0;
}
.installments-mini-table td {
  padding: 2px 6px;
}

/* "mais formas de pagamento" (sem Mercado Pago configurado) */
.installments-toggle summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--storefront-primary);
  font-weight: 600;
  text-decoration: underline;
  list-style: none;
  margin-bottom: 8px;
}
.installments-toggle summary::-webkit-details-marker { display: none; }
.installments-toggle[open] summary { margin-bottom: 8px; }

/* Caixa "Mercado Pago" com parcelamento expansível */
.mp-installments-box {
  border: 1px solid var(--storefront-border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.mp-installments-box summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}
.mp-installments-box summary::-webkit-details-marker { display: none; }
.mp-installments-box .installments-mini-table {
  margin: 0;
  border: none;
  border-top: 1px solid var(--storefront-border);
  border-radius: 0;
}
.mp-badge {
  font-weight: 700;
  color: #009ee3;
  font-size: 0.95rem;
}
.mp-badge b {
  color: #2d3277;
}
.mp-parcelas-toggle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--storefront-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mp-installments-box[open] .mp-parcelas-toggle i {
  transform: rotate(180deg);
}
.mp-parcelas-toggle i {
  transition: transform 0.2s ease;
}

/* CONTROLES DE COMPRA */
.buy-action-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 16px;
}
.qty-selector {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  height: 50px;
  flex-shrink: 0;
}
.qty-btn {
  background: #f8fafc;
  border: none;
  width: 44px;
  height: 100%;
  font-size: 1.1rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.qty-btn:hover {
  background: #e2e8f0;
}
.qty-btn:active {
  background: #cbd5e1;
}
.qty-input {
  width: 46px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  background: transparent;
  outline: none;
}
.btn-storefront-buy {
  flex: 1;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  height: 50px;
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-storefront-buy:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
  transform: translateY(-1px);
}
.btn-storefront-buy:active {
  transform: scale(0.98);
}
.btn-storefront-buy:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.availability-text {
  font-size: 0.8rem;
  color: #16a34a;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

/* FRETE */
.shipping-calc-box {
  background-color: #f8fafc;
  border: 1px solid var(--storefront-border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
}
.shipping-calc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.shipping-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shipping-header-text {
  display: flex;
  flex-direction: column;
}
.shipping-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.shipping-subtitle {
  font-size: 0.75rem;
  color: #64748b;
}
.shipping-form-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 8px;
}
.shipping-input-wrapper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
.shipping-pin-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}
.shipping-input {
  width: 100%;
  height: 46px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px 8px 36px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.shipping-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}
.shipping-btn {
  height: 46px;
  padding: 0 20px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.shipping-btn:hover {
  background: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}
.shipping-btn:active {
  transform: scale(0.97);
}
.shipping-help-row {
  margin-top: 8px;
}
.shipping-help-link {
  font-size: 0.75rem;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
.shipping-help-link:hover {
  color: #0284c7;
  text-decoration: underline;
}
.shipping-results {
  margin-top: 12px;
  font-size: 0.82rem;
}

/* ACORDEÕES */
.storefront-accordion-item {
  background: #ffffff;
  border: 1px solid var(--storefront-border);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.storefront-accordion-header {
  background: #fdfdfd;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.storefront-accordion-body {
  padding: 20px;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.65;
}

/* CARRINHO */
.cart-table {
  background: #ffffff;
  border: 1px solid var(--storefront-border);
  border-radius: 8px;
  overflow: hidden;
}
.cart-table img {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  object-fit: contain !important;
  display: block !important;
}
.btn-clear-cart {
  background-color: #ef4444;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-finish-cart {
  background-color: #121c32;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-continue-shopping {
  background-color: #64748b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* CHECKOUT */
#checkout-form.row {
  align-items: flex-start;
}
.checkout-step-card {
  background: #ffffff;
  border: 1px solid var(--storefront-border);
  border-radius: 8px;
  padding: 24px;
}
@media (max-width: 991px) {
  .checkout-step-card {
    padding: 18px;
  }
}
.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background-color: #000000;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 8px;
}
.step-header-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

/* CONTA DO CLIENTE (usa .account-layout/.account-nav/.checkout-section
   compartilhados com o tema padrão — aqui só realinhamos a cor de destaque
   pra combinar com a paleta navy/vermelho do storefront). */
.theme-storefront .account-nav a:hover,
.theme-storefront .account-nav a.active {
  background: var(--storefront-bg-page);
  color: var(--storefront-primary);
}
.theme-storefront .account-nav-logout {
  color: var(--storefront-red);
}
.theme-storefront .checkout-section-head i {
  background: var(--storefront-bg-page);
  color: var(--storefront-primary);
}
.theme-storefront .page-title {
  color: var(--storefront-text);
}
.theme-storefront .shipping-option.active {
  border-color: var(--storefront-primary);
  background: var(--storefront-bg-page);
}
.theme-storefront .btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.theme-storefront .btn-primary {
  background-image: none;
  background-color: var(--storefront-red);
  border-color: var(--storefront-red);
  box-shadow: 0 4px 12px rgba(227, 52, 63, 0.25);
}
.theme-storefront .btn-primary:hover {
  background-color: #c92730;
  border-color: #c92730;
  box-shadow: 0 6px 16px rgba(227, 52, 63, 0.35);
  transform: translateY(-1px);
}
.theme-storefront .btn-outline-primary {
  color: var(--storefront-primary);
  border-color: var(--storefront-primary);
}
.theme-storefront .btn-outline-primary:hover {
  background-color: var(--storefront-primary);
  border-color: var(--storefront-primary);
  box-shadow: 0 4px 12px rgba(16, 24, 47, 0.2);
  transform: translateY(-1px);
}

/* NEWSLETTER */
.storefront-newsletter-strip {
  background-color: #111827;
  color: #ffffff;
  padding: 24px 0;
  border-top: 1px solid #1f2937;
}
.newsletter-input {
  background: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 0.88rem;
  width: 100%;
  max-width: 380px;
}
.newsletter-btn {
  background-color: #475569;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 24px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* FOOTER */
.storefront-footer-corporate {
  background-color: var(--storefront-footer-bg);
  color: #cbd5e1;
  padding: 40px 0 20px;
  font-size: 0.82rem;
  border-top: 1px solid #1e293b;
}
.footer-column-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links-list li a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-links-list li a:hover {
  color: #ffffff;
}
.badge-service-tag {
  background: #334155;
  color: #f1f5f9;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 999;
  text-decoration: none;
}

/* MODAL DE ZOOM */
.modal-zoom-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

/* BANNER DE PREVIEW (reaproveita o padrão dos outros temas) */
.theme-storefront .theme-preview-banner {
  background: var(--storefront-primary);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE REFINADA (Telas < 768px e < 576px)
   ========================================================================== */

@media (max-width: 767px) {
  /* Cabeçalho */
  .storefront-header {
    padding: 10px 0 12px;
  }
  .storefront-logo-link {
    gap: 8px;
  }
  .storefront-logo-img {
    height: 46px !important;
    max-height: 46px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
  .storefront-logo-title {
    font-size: 1.15rem;
  }
  .storefront-search-input {
    font-size: 16px; /* Evita zoom automático no iOS Safari */
    height: 42px;
    padding: 8px 44px 8px 14px;
    border-radius: 8px;
  }
  .storefront-search-btn {
    width: 38px;
    border-radius: 6px;
  }
  .storefront-action-item {
    padding: 4px;
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .storefront-action-icon {
    font-size: 1.45rem;
  }
  .cart-badge-count {
    top: -4px;
    right: -6px;
    font-size: 0.65rem;
    padding: 1px 5px;
  }

  /* Barra de Navegação / Departamentos */
  .storefront-nav-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .storefront-nav-bar .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .btn-departments {
    padding: 8px 14px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }
  .storefront-nav-links {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .storefront-nav-links::-webkit-scrollbar {
    display: none;
  }
  .storefront-nav-links li a {
    padding: 8px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Hero Section */
  .storefront-hero {
    padding: 24px 0 28px;
  }
  .storefront-hero-copy h1 {
    font-size: 1.45rem;
    margin-bottom: 10px;
  }
  .storefront-hero-copy p {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  .storefront-hero-copy .d-flex.flex-wrap.gap-2 {
    flex-direction: column;
    width: 100%;
  }
  .storefront-hero-copy .btn-lg {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.92rem;
  }
  .storefront-hero-art {
    display: none;
  }
  .storefront-hero-trust {
    gap: 12px;
    font-size: 0.78rem;
    justify-content: center;
    margin-top: 16px;
  }

  /* Faixa de Vantagens */
  .storefront-advantages-bar {
    padding: 12px 6px;
  }
  .advantage-item {
    gap: 8px;
    text-align: left;
    justify-content: flex-start !important;
  }
  .advantage-icon {
    font-size: 1.3rem;
  }
  .advantage-text strong {
    font-size: 0.78rem;
  }
  .advantage-text small {
    font-size: 0.68rem;
  }

  /* Galeria da Página do Produto */
  .gallery-container {
    flex-direction: column;
    gap: 12px;
  }
  .gallery-main-view {
    width: 100%;
    height: 300px;
    max-height: 300px;
    padding: 14px;
    border-radius: 8px;
    order: 1;
  }
  .gallery-main-view img {
    max-height: 270px !important;
  }
  .gallery-thumbnails-col {
    width: 100%;
    flex-direction: row;
    order: 2;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    justify-content: flex-start;
    padding: 4px 2px;
    scrollbar-width: none;
  }
  .gallery-thumbnails-col::-webkit-scrollbar {
    display: none;
  }
  .gallery-thumb {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    flex-shrink: 0;
  }
  .thumb-nav-btn {
    display: none;
  }

  /* Painel de Compra do Produto */
  .product-info-panel {
    padding: 16px;
    margin-top: 14px;
  }
  .product-title {
    font-size: 1.2rem;
  }
  .buy-action-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
  }
  .qty-selector {
    height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .qty-btn {
    width: 42px;
  }
  .btn-storefront-buy {
    flex: 1;
    height: 52px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  /* Frete Perfeitamente Proporcional no Mobile */
  .shipping-calc-box {
    padding: 14px;
    border-radius: 12px;
    margin-top: 14px;
  }
  .shipping-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .shipping-title {
    font-size: 0.88rem;
  }
  .shipping-subtitle {
    font-size: 0.72rem;
  }
  .shipping-form-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 6px;
  }
  .shipping-input-wrapper {
    flex: 1 1 auto;
    min-width: 0;
  }
  .shipping-input {
    height: 46px;
    font-size: 16px;
    border-radius: 8px;
    padding-left: 36px;
  }
  .shipping-btn {
    height: 46px;
    padding: 0 16px;
    font-size: 0.88rem;
    border-radius: 8px;
    flex-shrink: 0;
  }

  /* Carrinho */
  .cart-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  .cart-table table {
    min-width: 520px;
  }
  .checkout-step-card {
    padding: 18px 14px;
  }

  /* Botão Flutuante do WhatsApp */
  .whatsapp-float {
    bottom: 18px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  /* Rodapé */
  .storefront-footer-corporate {
    padding: 32px 0 16px;
  }
}

@media (max-width: 576px) {
  /* Cards de Produto em Grid de 2 Colunas */
  .storefront-product-card {
    padding: 10px 8px;
    border-radius: 6px;
  }
  .card-badge-free {
    font-size: 0.6rem;
    padding: 2px 6px;
    margin-bottom: 6px;
  }
  .card-promo-banner {
    font-size: 0.65rem;
    padding: 3px 6px;
    margin: 6px -8px 6px;
  }
  .card-img-wrap {
    height: 130px;
    max-height: 130px;
    margin-bottom: 6px;
    padding: 4px;
  }
  .card-img-wrap img {
    max-height: 120px !important;
  }
  .card-product-title {
    font-size: 0.76rem;
    min-height: 32px;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  .card-pix-price {
    font-size: 1.02rem;
    gap: 4px;
  }
  .card-old-price {
    font-size: 0.72rem;
  }
  .card-installments {
    font-size: 0.66rem;
    margin-bottom: 6px;
    line-height: 1.2;
  }
  .card-divider {
    margin: 6px 0;
  }
  .card-buy-row {
    gap: 4px;
  }
  .qty-box {
    display: none !important;
  }
  .btn-card-buy {
    padding: 10px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    width: 100%;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
    transition: transform 0.1s ease, background 0.15s ease;
  }
  .btn-card-buy:active {
    transform: scale(0.96);
  }

  /* Faixa de Promoção */
  .storefront-promo-band {
    padding: 20px 16px;
  }
  .storefront-promo-band h2 {
    font-size: 1.3rem;
  }
  .storefront-promo-band > i {
    font-size: 2.2rem;
  }
}


/* Telas muito estreitas (iPhone SE, Android pequenos): quantidade + Comprar lado a lado sem quebrar linha */
@media (max-width: 380px) {
  .buy-action-row {
    gap: 6px;
  }
  .qty-btn {
    width: 36px;
  }
  .qty-input {
    width: 36px;
  }
  .btn-storefront-buy {
    font-size: 0.95rem;
    gap: 6px;
    white-space: nowrap;
  }
  .btn-storefront-buy svg {
    width: 18px;
    height: 18px;
    margin-right: 0 !important;
  }
}

/* COMPRE JUNTO (kit com desconto na página do produto) */
.bundle-box { border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px; background: #fff; }
.bundle-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 14px; }
.bundle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bundle-item { display: flex; flex-direction: column; align-items: center; text-align: center; width: 150px; text-decoration: none; color: inherit; }
.bundle-item img { width: 110px; height: 110px; object-fit: contain; }
.bundle-item-name { font-size: .85rem; line-height: 1.25; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bundle-item-price { font-weight: 600; font-size: .9rem; }
.bundle-plus { font-size: 1.6rem; font-weight: 300; color: #94a3b8; }
.bundle-buy { margin-left: auto; min-width: 220px; padding: 12px 16px; border-left: 1px solid #e2e8f0; }
.bundle-old { color: #94a3b8; font-size: .9rem; }
.bundle-total { font-size: 1.5rem; font-weight: 800; }
.bundle-save { color: #16a34a; font-size: .85rem; font-weight: 600; }
@media (max-width: 768px) {
  .bundle-item { width: 30%; min-width: 96px; }
  .bundle-item img { width: 80px; height: 80px; }
  .bundle-buy { margin-left: 0; width: 100%; border-left: 0; border-top: 1px solid #e2e8f0; }
}

/* FIDELIDADE (Minha conta > Meus Pontos) */
.loyalty-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px 24px; background: linear-gradient(135deg, #fff7ed, #fff); }
.loyalty-label { font-size: .85rem; color: #64748b; }
.loyalty-balance { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.loyalty-balance span { font-size: 1rem; font-weight: 600; color: #64748b; }
.loyalty-worth { color: #16a34a; font-weight: 600; font-size: .9rem; }
.loyalty-redeem { min-width: 280px; flex: 1 1 280px; max-width: 380px; }