/*
Theme Name: Storefront IAG
Template: storefront
Version: 2.0
Description: IA Guru dark theme for WooCommerce store — Layout v2 com sidebar, sliders e header aprimorado
*/

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap");

/* ============================================================
   TOKENS & BASE — IA GURU ORIGINAL COLORS
   ============================================================ */
:root {
  --red:       #C0392B;
  --red-light: #E74C3C;
  --gold:      #D4A853;
  --bg:        #080808;
  --bg-2:      #0F0F0F;
  --bg-3:      #141414;
  --border:    rgba(255,255,255,0.08);
  --text:      #F0F0F0;
  --muted:     #888;
  --sidebar-w: 300px; /* Sidebar mais larga (era 260px) */
  --radius:    10px;
}

/* ============================================================
   BANNER ROTATIVO
   ============================================================ */
.iag-banner-rotativo {
  position: relative !important;
  width: 100% !important;
  margin: 0 0 40px 0 !important;
  overflow: hidden;
  background: #000;
  display: block !important;
  clear: both !important;
}

/* Proporção 16:9 — igual às imagens (2752×1536) */
.iag-banner-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: "DM Sans", sans-serif !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Syne", sans-serif !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

a { color: var(--red-light) !important; transition: color .2s; }
a:hover { color: var(--gold) !important; }

/* ============================================================
   BARRA SUPERIOR (topbar) – telefone + login
   ============================================================ */
.iag-topbar {
  background: var(--bg-3) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 15px 0 !important;
}

.iag-topbar-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1300px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
}

.iag-topbar-contact {
  display: flex !important;
  gap: 30px !important;
}

.iag-topbar-links {
  display: flex !important;
  gap: 25px !important;
}

.iag-topbar a {
  color: #CCCCCC !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* ============================================================
   HEADER & LOGO + SLOGAN
   ============================================================ */
.site-header {
  background: rgba(8,8,8,0.97) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border) !important;
  padding: 18px 0 !important;
}

#masthead > .col-full {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

.site-branding {
  text-align: left !important;
  flex-shrink: 0 !important;
}

.site-branding .site-title a {
  font-size: 1.6rem !important;
  color: #FFFFFF !important;
  display: block !important;
  margin-bottom: 2px !important;
  line-height: 1.2 !important;
}

.site-description {
  display: block !important;
  font-size: 0.82rem !important;
  color: var(--red-light) !important;
  font-weight: 500 !important;
  margin-top: 0 !important;
  letter-spacing: 0.03em !important;
}

.site-search {
  width: 280px !important;
  max-width: 280px !important;
  flex-shrink: 0 !important;
}

.site-search .woocommerce-product-search,
.site-search form {
  display: flex !important;
  gap: 0 !important;
}

.site-search input[type="search"] {
  flex: 1 !important;
  background: #1a1a1a !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-right: none !important;
  border-radius: 6px 0 0 6px !important;
  color: #f0f0f0 !important;
  padding: 7px 12px !important;
  font-size: 0.85rem !important;
}

.site-search button[type="submit"],
.site-search input[type="submit"] {
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 7px 14px !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

/* ============================================================
   LAYOUT WRAPPER — Sidebar + Sliders (dentro do col-full do Storefront)
   ============================================================ */
.iag-layout {
  display: flex !important;
  flex-direction: row !important;
  gap: 40px !important;
  padding: 40px 0 80px !important; /* sem padding horizontal: o col-full pai já provê */
  box-sizing: border-box !important;
  width: 100% !important;
}

.iag-main-content {
  flex: 1 !important;
  min-width: 0 !important;
  display: block !important;
}

/* Garante que o texto não ultrapasse o limite do container */
.iag-main-content p {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 25px !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: #CCCCCC !important;
  word-wrap: break-word !important; /* Evita que palavras longas cortem o layout */
}

/* Estilização para as seções de texto (Catálogo, Categorias, etc) */
.iag-main-content h2, 
.iag-main-content h3 {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  line-height: 1.2 !important;
  word-wrap: break-word !important;
}

/* Botões lado a lado — remove o <br> que o editor insere entre eles */
.iag-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 20px !important;
}

.iag-actions br {
  display: none !important;
}

.iag-actions .button,
.iag-actions a.button {
  margin: 0 !important;
  padding: 12px 25px !important;
  display: inline-block !important;
}

/* Sidebar reforçada */
.iag-sidebar {
  width: var(--sidebar-w) !important;
  min-width: var(--sidebar-w) !important;
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  flex-shrink: 0 !important;
  height: fit-content !important;
}

/* Overlay da sidebar (padrão: oculto) */
.iag-sidebar-overlay {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.55) !important;
  z-index: 999 !important;
}
.iag-sidebar-overlay.open { display: block !important; }

/* Botão toggle — oculto no desktop */
.iag-sidebar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.iag-sidebar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Botão fechar sidebar — oculto no desktop */
.iag-sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.iag-sidebar-list li a {
  padding: 15px 20px !important; /* Mais respiro lateral no menu */
  white-space: normal !important; /* Permite que o texto quebre linha se necessário */
  line-height: 1.4 !important;
}

.iag-banner-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}

.iag-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* object-fit: contain — mostra a imagem inteira sem cortar */
.iag-banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.iag-banner-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px !important;
  background: rgba(8,8,8,0.75) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #fff !important;
  transform: translateY(-50%);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  cursor: pointer;
}

.iag-banner-prev { left: 14px; }
.iag-banner-next { right: 14px; }
.iag-banner-nav:hover { background: rgba(192,57,43,0.9) !important; }

.iag-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.iag-banner-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(255,255,255,0.35) !important;
  cursor: pointer;
}

.iag-banner-dot.is-active {
  background: var(--gold) !important;
  transform: scale(1.2);
}

/* ============================================================
   SEÇÕES DE PRODUTOS — SLIDERS HORIZONTAIS
   ============================================================ */
.iag-product-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 24px;
  overflow: hidden;
}

.iag-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.iag-section-header h2 {
  margin: 0 !important;
  font-size: 1.05rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.iag-section-header h2 .iag-section-icon {
  font-size: 1.1rem;
}

.iag-section-header .iag-ver-todos {
  font-size: 0.8rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: var(--red-light) !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.iag-section-header .iag-ver-todos:hover { color: var(--gold) !important; }

/* Slider wrapper */
.iag-slider-wrapper {
  position: relative;
}

.iag-slider-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.iag-slider-track::-webkit-scrollbar { display: none; }

.iag-slider-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50% !important;
  background: var(--bg-3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.iag-slider-nav:hover { background: var(--red) !important; }
.iag-slider-prev-btn { left: -18px; }
.iag-slider-next-btn { right: -18px; }

/* ---- CARD DE PRODUTO NO SLIDER ---- */
.iag-product-card {
  flex: 0 0 175px;
  scroll-snap-align: start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.iag-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192,57,43,0.4);
  box-shadow: 0 10px 28px rgba(192,57,43,0.12);
}

.iag-product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-2);
}

.iag-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.iag-product-card:hover .iag-product-card-img img { transform: scale(1.06); }

.iag-product-card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.iag-product-card-title {
  font-family: "Syne", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.iag-product-card-price {
  color: var(--gold);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
}

.iag-product-card-price del {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
  margin-right: 4px;
}

.iag-product-card-btn {
  display: block;
  margin-top: auto;
  padding: 7px 10px;
  background: var(--red) !important;
  color: #fff !important;
  font-family: "Syne", sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-align: center;
  text-decoration: none !important;
  border-radius: 6px !important;
  border: none !important;
  transition: background .2s !important;
}
.iag-product-card-btn:hover {
  background: var(--red-light) !important;
  color: #fff !important;
}

/* ---- BADGES ---- */
.iag-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: "Syne", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
  line-height: 1.4;
}

.iag-badge-novo    { background: #1a9e6f; color: #fff; }
.iag-badge-promo   { background: var(--red); color: #fff; }
.iag-badge-destaque{ background: var(--gold); color: #080808; }

/* ============================================================
   BANNER PROMOCIONAL ENTRE SEÇÕES
   ============================================================ */
.iag-promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(192,57,43,0.18) 0%, rgba(8,8,8,0) 50%),
    var(--bg-2);
  text-decoration: none !important;
}

.iag-promo-banner:hover {
  border-color: rgba(192,57,43,0.35);
  background:
    linear-gradient(135deg, rgba(192,57,43,0.25) 0%, rgba(8,8,8,0) 50%),
    var(--bg-2);
}

.iag-promo-banner-text {}

.iag-promo-banner-eyebrow {
  color: var(--red-light);
  font-family: "Syne", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.iag-promo-banner h3 {
  margin: 0 0 4px !important;
  font-size: 1.1rem !important;
  line-height: 1.15 !important;
}

.iag-promo-banner p {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 0.88rem !important;
}

.iag-promo-banner-cta {
  flex-shrink: 0;
  padding: 9px 20px;
  border-radius: 6px;
  background: var(--red);
  color: #fff !important;
  font-family: "Syne", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s;
}
.iag-promo-banner-cta:hover { background: var(--red-light); color: #fff !important; }

/* ============================================================
   PRODUTOS — GRID PADRÃO (páginas de categoria)
   ============================================================ */
ul.products li.product {
  background: var(--bg-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  transition: transform .2s, border-color .2s, box-shadow .2s !important;
  overflow: hidden;
  padding-bottom: 16px !important;
}

ul.products li.product:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(192,57,43,0.4) !important;
  box-shadow: 0 8px 32px rgba(192,57,43,0.1) !important;
}

ul.products li.product a img { transition: transform .4s !important; }
ul.products li.product:hover a img { transform: scale(1.05) !important; }

ul.products li.product .woocommerce-loop-product__title {
  font-family: "Syne", sans-serif !important;
  color: var(--text) !important;
  font-size: 1rem !important;
  padding: 12px 16px 4px !important;
}

ul.products li.product .price {
  color: var(--gold) !important;
  font-family: "Syne", sans-serif !important;
  font-weight: 700 !important;
  padding: 0 16px 8px !important;
  display: block !important;
}

ul.products li.product .onsale {
  background: var(--red) !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-family: "Syne", sans-serif !important;
}

/* ============================================================
   BOTÕES GLOBAIS
   ============================================================ */
.button,
button,
input[type="submit"],
a.button,
.single_add_to_cart_button,
.wc-block-components-button {
  background: var(--red) !important;
  color: #fff !important;
  font-family: "Syne", sans-serif !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 6px !important;
  transition: background .2s !important;
  letter-spacing: 0.3px;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
a.button:hover,
.single_add_to_cart_button:hover {
  background: var(--red-light) !important;
  color: #fff !important;
}

/* ============================================================
   SIDEBAR / WIDGETS (páginas internas)
   ============================================================ */
.widget-area, #secondary { background: var(--bg-2) !important; }

.widget-title {
  font-family: "Syne", sans-serif !important;
  color: var(--text) !important;
  border-bottom: 2px solid var(--red) !important;
  padding-bottom: 8px !important;
}

.widget ul li { border-bottom: 1px solid var(--border) !important; }
.widget ul li a { color: var(--muted) !important; }
.widget ul li a:hover { color: var(--red-light) !important; }

/* ============================================================
   INPUTS / FORMULÁRIOS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
  background: var(--bg-3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 6px !important;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15) !important;
  outline: none !important;
}

input::placeholder, textarea::placeholder { color: var(--muted) !important; }

/* ============================================================
   CHECKOUT / CARRINHO
   ============================================================ */
.woocommerce-cart table.cart,
.woocommerce-checkout form.checkout .col2-set,
#order_review,
.cart_totals {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 24px !important;
}

.order-total .amount {
  color: var(--gold) !important;
  font-family: "Syne", sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
}

/* ============================================================
   TABELAS
   ============================================================ */
table  { background: var(--bg-2) !important; color: var(--text) !important; }
th     { background: var(--bg-3) !important; color: var(--text) !important; border-color: var(--border) !important; font-family: "Syne", sans-serif !important; }
td     { border-color: var(--border) !important; }
tr:nth-child(even) td { background: rgba(255,255,255,0.02) !important; }

/* ============================================================
   NOTICES
   ============================================================ */
.woocommerce-message { background: rgba(39,174,96,0.12) !important; border-top-color: #2ecc71 !important; color: var(--text) !important; }
.woocommerce-error   { background: rgba(192,57,43,0.2) !important; border-top-color: var(--red) !important; color: var(--text) !important; }
.woocommerce-info    { background: var(--bg-3) !important; border-top-color: var(--red) !important; color: var(--text) !important; }

/* ============================================================
   CONTEÚDO EDITORIAL DA HOME — hero, seções, cards de categoria
   ============================================================ */

/* Wrapper geral do conteúdo da home */
.iag-home {
  padding: 0 0 40px;
}

/* Hero */
.iag-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.iag-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  margin: 8px 0 16px !important;
  line-height: 1.2 !important;
}

.iag-hero p {
  color: var(--muted) !important;
  font-size: 1.05rem !important;
  max-width: 640px;
  margin-bottom: 0 !important;
}

/* Rótulo eyebrow (ex: "Catálogo principal") */
.iag-eyebrow {
  display: inline-block;
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 8px;
}

/* Seções (Categorias, Como comprar, Estatísticas) */
.iag-section {
  margin-bottom: 56px;
}

.iag-section h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important;
  margin: 8px 0 8px !important;
}

.iag-section-intro {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  margin-bottom: 28px !important;
  max-width: 600px;
}

/* ---- GRID genérico ---- */
.iag-grid {
  display: grid;
  gap: 16px;
}

/* Grade 3 colunas para os 6 cards de categoria */
.iag-grid-6 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---- CARDS DE CATEGORIA ---- */
.iag-card {
  background: #1e1e1e;          /* cinza escuro, tom neutro */
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.iag-card:hover {
  border-color: rgba(192,57,43,0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.iag-card h3 {
  font-family: "Syne", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
}

.iag-card p {
  font-size: 0.88rem !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  flex: 1;
}

.iag-card a {
  display: inline-block;
  margin-top: 10px;
  font-family: "Syne", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-light) !important;
  text-decoration: none !important;
}

.iag-card a:hover { color: var(--gold) !important; }

/* ---- FLUXO DE TRABALHO (Como comprar) ---- */

/* O .iag-grid sem modificador vira layout horizontal de fluxo */
.iag-section .iag-grid:not(.iag-grid-6) {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;               /* gap zero: o conector visual fica entre os cards */
  align-items: stretch;
  position: relative;
}

/* Seta conectora entre os steps via pseudo-elemento no card */
.iag-step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 20px;       /* espaço para a seta */
}

/* Seta → entre os steps (exceto o último) */
.iag-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--red);
  z-index: 1;
  line-height: 1;
}

/* Contador CSS para gerar o badge de número automaticamente */
.iag-section .iag-grid:not(.iag-grid-6) {
  counter-reset: step-counter;
}

.iag-step {
  counter-increment: step-counter;
}

/* Badge de número usando counter — sobrepõe o "1." do texto com ::before no h3 */
.iag-step h3 {
  font-family: "Syne", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  padding-left: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Badge circular vermelho com o número */
.iag-step h3::before {
  content: counter(step-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.iag-step p {
  font-size: 0.88rem !important;
  color: var(--muted) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  flex: 1;
}

/* ---- STATS / ESTATÍSTICAS ---- */
.iag-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.iag-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

.iag-stat strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 2px;
}

/* Responsivo: 2 colunas no tablet, 1 no mobile */
@media (max-width: 860px) {
  .iag-grid-6 { grid-template-columns: repeat(2, 1fr); }

  /* Fluxo de trabalho: empilha verticalmente */
  .iag-section .iag-grid:not(.iag-grid-6) {
    grid-template-columns: 1fr;
  }
  .iag-step {
    margin: 0;
  }
  .iag-step:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -18px;
    transform: translateX(-50%);
    font-size: 1.2rem;
  }
}

@media (max-width: 520px) {
  .iag-grid-6 { grid-template-columns: 1fr; }
  .iag-hero h1 { font-size: 1.4rem !important; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.woocommerce-breadcrumb { color: var(--muted) !important; font-size: 0.85rem !important; background: transparent !important; }
.woocommerce-breadcrumb a { color: var(--muted) !important; }
.woocommerce-breadcrumb a:hover { color: var(--red-light) !important; }

/* ============================================================
   FOOTER — Full Width, fora do container de conteúdo
   ============================================================ */
.site-footer {
  background: #141414 !important;
  color: #AAAAAA !important;
  width: 100% !important;
  position: static !important;
  left: auto !important;
  margin: 0 !important;
  padding: 60px 0 0 !important;
  border-top: 4px solid var(--red) !important;
  box-sizing: border-box !important;
  clear: both !important;
}

/* Storefront envolve o footer num .col-full — zeramos seu max-width para o fundo ir de ponta a ponta */
.site-footer > .col-full {
  max-width: 100% !important;
  padding: 0 !important;
}

.iag-footer-inner {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 40px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px 60px !important;
}

/* Barra Final do Rodapé */
.iag-footer-base {
  background: #000000 !important;
  width: 100% !important;
  padding: 12px 0 !important;
}

/* Bloco padrão do Storefront — suprimido via remove_action, mas por segurança */
.site-info { display: none !important; }

.iag-footer-base .col-full {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 20px !important;
}

/* ============================================================
   CARRINHO FLUTUANTE MOBILE
   ============================================================ */

/* Oculto no desktop */
.iag-mobile-cart {
  display: none !important;
}

@media (max-width: 768px) {
  .iag-mobile-cart {
    display: flex !important;
    position: fixed !important;
    bottom: 76px !important; /* acima da barra handheld do Storefront */
    right: 16px !important;
    z-index: 9500 !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--red) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    padding: 10px 16px 10px 12px !important;
    font-family: "Syne", sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5) !important;
    transition: background .2s, transform .15s !important;
  }

  .iag-mobile-cart:hover {
    background: var(--red-light) !important;
    color: #fff !important;
    transform: scale(1.04) !important;
  }

  .iag-mc-icon {
    font-size: 1.1rem;
    line-height: 1;
  }

  /* Total (ex: R$ 0,00) */
  .iag-mc-label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
  }

  /* Badge com quantidade de itens */
  .iag-mc-count {
    background: #fff !important;
    color: var(--red) !important;
    border-radius: 50% !important;
    min-width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    padding: 0 4px !important;
    line-height: 1 !important;
  }

  /* Quando carrinho está vazio, oculta a badge de contagem */
  .iag-mc-count:empty {
    display: none !important;
  }
}

/* ============================================================
   PRODUTO INDIVIDUAL
   ============================================================ */
.single-product div.product .product_title {
  font-family: "Syne", sans-serif !important;
  font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
  color: var(--text) !important;
}

.single-product div.product .price {
  color: var(--gold) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

.single-product div.product .woocommerce-product-details__short-description { color: var(--muted) !important; }

.woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--border) !important; }
.woocommerce-tabs ul.tabs li { background: var(--bg-3) !important; border-color: var(--border) !important; }
.woocommerce-tabs ul.tabs li.active { background: var(--bg-2) !important; border-bottom-color: var(--bg-2) !important; }
.woocommerce-tabs ul.tabs li a { color: var(--muted) !important; font-family: "Syne", sans-serif !important; }
.woocommerce-tabs ul.tabs li.active a { color: var(--text) !important; }
.woocommerce-Tabs-panel { background: var(--bg-2) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }

/* ============================================================
   MOBILE FOOTER BAR
   ============================================================ */
.storefront-handheld-footer-bar {
  background: var(--bg-2) !important;
  border-top: 1px solid var(--border) !important;
}
.storefront-handheld-footer-bar ul li a { color: var(--text) !important; }
.storefront-handheld-footer-bar ul li.search > a:before,
.storefront-handheld-footer-bar ul li.cart > a:before { color: var(--text) !important; }

/* ============================================================
   STOREFRONT HERO (páginas de categoria)
   ============================================================ */
.storefront-hero,
.woocommerce-products-header {
  background: var(--bg-2) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 40px 0 !important;
}

.woocommerce-products-header__title {
  font-family: "Syne", sans-serif !important;
  color: var(--text) !important;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 960px) {
  /* Sidebar vai para off-canvas no mobile */
  body {
    padding-left: 0 !important;
  }

  /* Header: empilha logo em cima, busca embaixo no mobile */
  .site-header > .col-full {
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }
  .site-search {
    max-width: 100% !important;
    width: 100% !important;
    order: 3 !important;
  }
  .site-branding {
    flex: 1 !important;
  }

  /* Sidebar: off-canvas real — sai do fluxo do layout */
  .iag-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    min-width: unset !important;
    width: 270px !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    border-radius: 0 !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5) !important;
  }

  .iag-sidebar.open {
    transform: translateX(0) !important;
  }

  .iag-sidebar-close {
    display: flex !important;
  }

  .iag-sidebar-toggle {
    display: flex !important;
  }

  .iag-sidebar-list li a {
    padding: 11px 16px;
    font-size: 0.9rem;
  }
  .iag-sidebar-list li a:hover { padding-left: 20px; }

  /* Footer: 2 colunas em tablet */
  .iag-footer-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
    padding: 32px 20px 28px !important;
  }
}

@media (max-width: 600px) {
  :root { --sidebar-w: 230px; }

  .iag-product-card { flex: 0 0 148px; }

  /* Footer: coluna única no mobile */
  .iag-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 28px 16px 24px !important;
  }

  /* Barra inferior do footer centralizada */
  .iag-footer-base .col-full {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
  }

  .iag-promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Topbar (telefone/WhatsApp) some no mobile — carrinho fica na barra inferior do Storefront */
  .iag-topbar { display: none !important; }

  /* Barra inferior do Storefront (carrinho, conta, busca) — garante visibilidade */
  .storefront-handheld-footer-bar {
    display: block !important;
    z-index: 9999 !important;
  }
}
