/* ==========================================================================
   Giraldi Peças Agrícolas — Tema base (HTML + CSS)
   Preparado para conversão em tema child do Storefront (WooCommerce).
   Nomes de classes seguem convenções do Woo sempre que possível
   (ul.products, li.product, .price, .woocommerce-breadcrumb, .woocommerce-tabs…).

   Índice
   01. Tokens
   02. Reset & base
   03. Layout utilitário
   04. Botões, badges, formulários
   05. Header (topbar, header principal, navegação)
   06. Card de produto
   07. Home
   08. Listagem (archive-product)
   09. Produto (single-product)
   10. Blocos compartilhados (CTA escuro, formulário técnico)
   11. Footer
   12. Modal de cotação
   13. Responsivo
   ========================================================================== */

/* 01. Tokens ------------------------------------------------------------- */
:root {
  /* Marca */
  --c-primary: #8B1A24;
  --c-primary-hover: #70121B;
  --c-primary-vivid: #9E1B28;
  --c-primary-soft: #FBEDEE;

  /* Neutros */
  --c-ink: #1F2421;
  --c-ink-2: #2B2B2B;
  --c-text: #3F4441;
  --c-muted: #6B706C;
  --c-line: #E2E6EC;
  --c-line-strong: #D1D5DB;
  --c-bg: #F5F7FA;
  --c-bg-2: #ECEFF3;
  --c-card: #FFFFFF;

  /* Suporte */
  --c-gold: #E5A00D;
  --c-yellow: #FCE588;
  --c-yellow-ink: #7A4A00;
  --c-green-bg: #DEF7EC;
  --c-green-ink: #03543F;
  --c-whatsapp: #25D366;
  --c-whatsapp-hover: #1EBE5D;

  /* Tipografia */
  --ff-base: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-xs: 0.6875rem;  /* 11 */
  --fs-sm: 0.8125rem;  /* 13 */
  --fs-md: 0.9375rem;  /* 15 */
  --fs-lg: 1.0625rem;  /* 17 */
  --fs-h4: 1.125rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --fs-h1: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem);

  /* Espaçamento */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 4rem;

  --gutter: 1.5rem;
  --container: 1920px;
  --page-pad: clamp(1rem, 3vw, 2.5rem);

  /* Forma & elevação */
  --r-sm: 3px;
  --r: 6px;
  --r-lg: 10px;
  --r-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(31, 36, 33, .06);
  --shadow: 0 6px 16px rgba(31, 36, 33, .08);
  --shadow-lg: 0 18px 40px rgba(31, 36, 33, .16);

  --t: .2s ease;
}

/* 02. Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--c-ink); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.material-symbols-outlined {
  font-size: 1.25em;
  line-height: 1;
  vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.icon-fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* 03. Layout utilitário -------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--page-pad); }
.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-6); }
.section--alt { background: var(--c-card); border-block: 1px solid var(--c-line); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--c-muted); margin-top: var(--sp-1); max-width: 60ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--ff-mono); font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--c-primary);
  margin-bottom: var(--sp-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.eyebrow--plain::before { display: none; }

.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: 700; color: var(--c-primary); }
.link-arrow:hover { color: var(--c-primary-hover); }
.link-arrow .material-symbols-outlined { transition: transform var(--t); }
.link-arrow:hover .material-symbols-outlined { transform: translateX(3px); }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* 04. Botões, badges, formulários --------------------------------------- */
.button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: 44px; padding: 0 var(--sp-5);
  border: 1px solid transparent; border-radius: var(--r);
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-ink-2); }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-bg); }
.btn--outline { background: #fff; color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--outline:hover { border-color: var(--c-ink); }
.btn--ghost { background: transparent; color: var(--c-muted); border-color: var(--c-line); }
.btn--ghost:hover { color: var(--c-ink); border-color: var(--c-ink); }
.btn--whatsapp { background: var(--c-whatsapp); color: #0b2e17; }
.btn--whatsapp:hover { background: var(--c-whatsapp-hover); }
.btn--lg { height: 52px; padding: 0 var(--sp-6); font-size: var(--fs-md); }
.btn--sm { height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.btn--sm.btn--icon { width: 36px; }

.badge-pn {
  display: inline-block; padding: 3px 8px; border-radius: var(--r-sm);
  background: var(--c-bg-2); color: var(--c-ink);
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600; letter-spacing: .03em;
}
.badge-stock {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--r-sm);
  font-family: var(--ff-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.badge-stock--ok { background: var(--c-green-bg); color: var(--c-green-ink); }
.badge-stock--warn { background: var(--c-yellow); color: var(--c-yellow-ink); }
.badge-stock--promo { background: var(--c-primary); color: #fff; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-label {
  font-family: var(--ff-mono); font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted);
}
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 var(--sp-3);
  background: #fff; border: 1px solid var(--c-line-strong); border-radius: var(--r);
  font-size: var(--fs-md); color: var(--c-ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.textarea { height: auto; min-height: 96px; padding: var(--sp-3); resize: vertical; }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B706C' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input::placeholder, .textarea::placeholder { color: #9AA09C; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(139, 26, 36, .15);
}

.check { display: flex; align-items: center; gap: var(--sp-2); cursor: pointer; font-size: var(--fs-sm); }
.check input { width: 16px; height: 16px; accent-color: var(--c-primary); margin: 0; }
.check .count { margin-left: auto; font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--c-muted); }

.stars { display: inline-flex; color: var(--c-gold); font-size: 16px; }

/* 05. Header ------------------------------------------------------------- */
.topbar { background: var(--c-ink); color: #C8CCC9; font-size: 12px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: 36px; }
.topbar__group { display: flex; align-items: center; gap: var(--sp-5); }
.topbar__label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.topbar strong { color: #fff; font-weight: 700; }
.topbar a { display: inline-flex; align-items: center; gap: 4px; }
.topbar a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--c-line), 0 4px 14px rgba(0,0,0,.04); }
.header-main .container { display: flex; align-items: center; gap: var(--sp-5); height: 92px; }

.site-branding { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }
.site-logo { display: block; }
.site-logo img { height: 68px; width: auto; }
.site-tagline { display: flex; flex-direction: column; padding-left: var(--sp-4); border-left: 1px solid var(--c-line); line-height: 1.3; }
.site-tagline span { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.site-tagline strong { font-size: var(--fs-sm); color: var(--c-ink); }

.site-search { flex: 1; display: flex; max-width: 880px; }
.site-search__field { position: relative; flex: 1; }
.site-search__field .material-symbols-outlined { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-muted); }
.site-search input {
  width: 100%; height: 48px; padding: 0 var(--sp-4) 0 44px;
  background: var(--c-bg); border: 1px solid var(--c-line); border-right: 0;
  border-radius: var(--r) 0 0 var(--r); font-size: var(--fs-sm);
}
.site-search input:focus { outline: none; background: #fff; border-color: var(--c-primary); }
.site-search .btn { height: 48px; border-radius: 0 var(--r) var(--r) 0; }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; margin-left: auto; }
.header-quote { position: relative; }
.header-quote .count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--c-primary); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.menu-toggle-gp { display: none; }

.gp-navigation { border-top: 1px solid var(--c-line); }
.gp-navigation .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: 50px; }
.gp-navigation .menu { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.gp-navigation .menu::-webkit-scrollbar { display: none; }
.gp-navigation .menu a {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 var(--sp-3);
  border-radius: var(--r); font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.gp-navigation .menu a:hover { background: var(--c-bg); color: var(--c-ink); }
.gp-navigation .menu .current-menu-item > a { color: var(--c-primary); background: var(--c-primary-soft); }
.gp-navigation .menu .menu-all > a { background: var(--c-ink); color: #fff; }
.gp-navigation .menu .menu-all > a:hover { background: var(--c-ink-2); }
.nav-highlight { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); color: var(--c-primary); white-space: nowrap; }
.nav-highlight:hover { color: var(--c-primary-hover); }

/* 06. Card de produto ---------------------------------------------------- */
ul.products { display: grid; gap: var(--gutter); grid-template-columns: repeat(4, minmax(0, 1fr)); }
ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.product-card:hover { box-shadow: var(--shadow); border-color: rgba(139, 26, 36, .35); transform: translateY(-2px); }
.product-card--featured { border-color: var(--c-primary); box-shadow: inset 4px 0 0 var(--c-primary); }

.product-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) 0; }
.product-card__media { display: grid; place-items: center; aspect-ratio: 4 / 3; margin: var(--sp-3) var(--sp-4) 0; background: var(--c-bg); border-radius: var(--r); overflow: hidden; }
.product-card__media img { max-height: 82%; max-width: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }

.product-card__body { flex: 1; padding: var(--sp-4); display: flex; flex-direction: column; gap: 6px; }
.product-card__cat { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.woocommerce-loop-product__title {
  font-size: var(--fs-md); font-weight: 700; line-height: 1.35; color: var(--c-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em; transition: color var(--t);
}
.product-card:hover .woocommerce-loop-product__title { color: var(--c-primary); }
.product-card__fit { display: flex; gap: 4px; align-items: flex-start; font-size: 12px; color: var(--c-muted); line-height: 1.4; }
.product-card__fit .material-symbols-outlined { font-size: 15px; color: var(--c-primary); }

.product-card__foot { padding: var(--sp-3) var(--sp-4) var(--sp-4); background: var(--c-bg); border-top: 1px solid var(--c-line); }
.product-card__price { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.product-card__price small { font-family: var(--ff-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.price { font-size: 1.25rem; font-weight: 800; color: var(--c-ink); letter-spacing: -0.02em; white-space: nowrap; }
.price--accent { color: var(--c-primary); }
.product-card__actions { display: flex; gap: var(--sp-2); }
.product-card__actions .btn--primary { flex: 1; min-width: 0; padding-inline: var(--sp-2); gap: 6px; }
/* Card estreito (4 colunas em ~1280px): sem ícone no botão para o texto caber */
.product-card__foot { container-type: inline-size; }
@container (max-width: 240px) {
  .product-card__actions .btn--primary { font-size: 12px; padding-inline: 6px; }
  .product-card__actions .btn--primary .material-symbols-outlined { display: none; }
}
.product-card__actions .btn--icon { flex-shrink: 0; }
.product-card__tag { font-family: var(--ff-mono); font-size: 10px; font-weight: 700; color: var(--c-green-ink); text-transform: uppercase; }

/* Modo lista (PLP) */

/* 07. Home --------------------------------------------------------------- */
/* Hero slider (Swiper) — largura total */
.hero-slider { position: relative; background: var(--c-ink); overflow: hidden; }
.hero-slide { position: relative; height: clamp(360px, 28vw, 520px); display: flex; align-items: center; overflow: hidden; }
.hero-slide__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(31,36,33,.95) 0%, rgba(31,36,33,.8) 40%, rgba(31,36,33,.1) 100%);
}
.hero-slide--product { background: radial-gradient(circle at 75% 50%, rgba(158,27,40,.55), transparent 55%), var(--c-ink); }
.hero-slide--product::before { display: none; }
.hero-slide__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); height: 100%; }
.hero-slide__content { max-width: 720px; color: #E7EAE8; }
.hero-slide__content h1, .hero-slide__content h2 { color: #fff; font-size: clamp(1.625rem, 1rem + 2vw, 2.625rem); margin: var(--sp-4) 0 var(--sp-3); }
.hero-slide__content em { font-style: normal; color: #FFB3B1; }
.hero-slide__content p { font-size: var(--fs-lg); margin-bottom: var(--sp-5); max-width: 56ch; }
.hero-slide__product { max-height: 82%; width: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); margin-right: 5%; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.hero-slider__controls { position: absolute; left: 0; right: 0; bottom: var(--sp-5); z-index: 3; display: flex; align-items: center; justify-content: space-between; margin-inline: auto; pointer-events: none; }
.hero-slider__controls > * { pointer-events: auto; }
.hero-slider .swiper-pagination { position: static; width: auto; display: flex; gap: 6px; }
.hero-slider .swiper-pagination-bullet { width: 28px; height: 4px; border-radius: 2px; margin: 0 !important; background: rgba(255,255,255,.35); opacity: 1; transition: background var(--t), width var(--t); }
.hero-slider .swiper-pagination-bullet-active { width: 48px; background: var(--c-primary-vivid); }
.hero-slider__nav { display: flex; gap: var(--sp-2); }
.hero-slider__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(31,36,33,.4); color: #fff; display: grid; place-items: center; transition: background var(--t), border-color var(--t); }
.hero-slider__nav button:hover { background: var(--c-primary); border-color: var(--c-primary); }

.hero-stats { background: #fff; border-bottom: 1px solid var(--c-line); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-stats .container > div { display: grid; grid-template-columns: auto 1fr; column-gap: var(--sp-3); align-items: center; padding: var(--sp-4) var(--sp-5); border-left: 1px solid var(--c-line); }
.hero-stats .container > div:first-child { border-left: 0; padding-left: 0; }
.hero-stats .material-symbols-outlined { grid-row: span 2; width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); font-size: 24px; }
.hero-stats strong { font-size: 1.25rem; color: var(--c-ink); line-height: 1.1; letter-spacing: -0.02em; }
.hero-stats span:not(.material-symbols-outlined) { font-size: 12px; color: var(--c-muted); }

.chip-brand {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-sm);
  background: var(--c-primary-vivid); color: #fff;
  font-family: var(--ff-mono); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

.machine-search { padding-top: var(--sp-6); }
.machine-search__box { background: var(--c-ink); color: #fff; border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.06); }
.machine-search__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.machine-search__head h2 { color: #fff; font-size: var(--fs-h4); text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: var(--sp-2); }
.machine-search__head h2 .material-symbols-outlined { color: var(--c-yellow); }
.machine-search__head p { font-size: 12px; color: #AEB3B0; }
.machine-search__form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: var(--sp-3); align-items: end; }
.machine-search .field label { color: #D6DAD7; }
.machine-search .btn { height: 44px; background: var(--c-primary-vivid); }
.machine-search .btn:hover { background: var(--c-primary-hover); }

.category-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4); }
.category-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow var(--t), transform var(--t); }
.category-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.category-tile__media { height: 170px; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); overflow: hidden; }
.category-tile__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.category-tile:hover .category-tile__media img { transform: scale(1.06); }
.category-tile__label {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); background: var(--c-ink); color: #fff;
  font-size: var(--fs-sm); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  transition: background var(--t);
}
.category-tile__label .material-symbols-outlined { color: var(--c-yellow); transition: transform var(--t); }
.category-tile:hover .category-tile__label { background: var(--c-primary); }
.category-tile:hover .category-tile__label .material-symbols-outlined { transform: translateX(3px); }

.promo-banner { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--c-ink); min-height: clamp(360px, 26vw, 480px); display: flex; align-items: center; }
.promo-banner__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.promo-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,36,33,.97) 0%, rgba(31,36,33,.88) 50%, rgba(31,36,33,.35) 100%); }
.promo-banner__content { position: relative; z-index: 1; max-width: 640px; padding: clamp(1.5rem, 5vw, 4rem); color: #E7EAE8; }
.promo-banner h2 { color: #fff; font-size: var(--fs-h2); margin: var(--sp-4) 0 var(--sp-3); }
.promo-banner p { font-size: var(--fs-lg); margin-bottom: var(--sp-5); }
.promo-banner__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.promo-banner__note { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.promo-banner__note .material-symbols-outlined { color: var(--c-yellow); }

.feature-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.feature-card__icon { width: 52px; height: 52px; border-radius: var(--r); display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); font-size: 28px; }
.feature-card h3 { font-size: var(--fs-h4); }
.feature-card p { color: var(--c-muted); flex: 1; }
.feature-card__note { display: flex; align-items: center; gap: 6px; padding-top: var(--sp-3); border-top: 1px dashed var(--c-line); font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); }
.feature-card__note .material-symbols-outlined { color: var(--c-green-ink); }

.rating-summary { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; }
.testimonial { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.testimonial blockquote { margin: 0; color: var(--c-text); flex: 1; }
.testimonial__author { display: flex; align-items: center; gap: var(--sp-3); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-ink); color: #fff; font-weight: 800; font-size: var(--fs-sm); flex-shrink: 0; }
.testimonial__author strong { display: block; color: var(--c-ink); }
.testimonial__author span { font-size: 12px; color: var(--c-muted); }

.newsletter { background: var(--c-primary); color: #FBE3E4; border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-6); align-items: center; position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255,255,255,.05); }
.newsletter .eyebrow { color: #FFD1D0; }
.newsletter h2 { color: #fff; font-size: var(--fs-h3); margin-bottom: var(--sp-2); }

/* 08. Listagem ----------------------------------------------------------- */
.woocommerce-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--c-muted); }
.woocommerce-breadcrumb a { display: inline-flex; align-items: center; gap: 4px; }
.woocommerce-breadcrumb a:hover { color: var(--c-primary); }
.woocommerce-breadcrumb .sep { color: var(--c-line-strong); }
.woocommerce-breadcrumb .current { color: var(--c-ink); font-weight: 600; }

.page-bar { background: #fff; border-bottom: 1px solid var(--c-line); }
.page-bar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 48px; flex-wrap: wrap; padding-block: var(--sp-2); }
.page-bar__meta { display: flex; gap: var(--sp-4); font-size: 12px; color: var(--c-muted); }
.page-bar__meta span { display: inline-flex; align-items: center; gap: 4px; }
.page-bar__meta .material-symbols-outlined { color: var(--c-green-ink); font-size: 16px; }

.cat-hero { background: var(--c-ink); color: #C8CCC9; position: relative; overflow: hidden; }
.cat-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(158,27,40,.45), transparent 55%); }
.cat-hero .container { position: relative; padding-block: var(--sp-7) var(--sp-5); }
.cat-hero .eyebrow { color: #FFB3B1; }
.woocommerce-products-header__title { color: #fff; font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.cat-hero p { max-width: 70ch; }
.subcat-pills { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subcat-pills a {
  display: inline-flex; align-items: center; gap: var(--sp-2); height: 38px; padding: 0 var(--sp-4);
  border-radius: var(--r); background: rgba(255,255,255,.08); color: #E7EAE8; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.1); transition: background var(--t);
}
.subcat-pills a:hover { background: rgba(255,255,255,.16); }
.subcat-pills a.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.subcat-pills .count { font-family: var(--ff-mono); font-size: 11px; padding: 1px 6px; border-radius: var(--r-sm); background: rgba(0,0,0,.25); }

.shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.shop-sidebar { position: sticky; top: 150px; display: flex; flex-direction: column; gap: var(--sp-4); }
.filters { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-5); }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-line); }
.filters__head h2 { font-size: var(--fs-md); display: flex; align-items: center; gap: 6px; }
.filters__head h2 .material-symbols-outlined { color: var(--c-primary); }
.filters__head a { font-size: 12px; font-weight: 700; color: var(--c-primary); }
.filters__close { display: none; }

.filter-group { padding-block: var(--sp-4); border-bottom: 1px solid var(--c-line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink); }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "expand_more"; font-family: "Material Symbols Outlined"; text-transform: none; letter-spacing: 0; font-weight: 400; font-feature-settings: "liga"; -webkit-font-feature-settings: "liga"; font-size: 20px; color: var(--c-muted); transition: transform var(--t); }
.filter-group[open] summary::after { transform: rotate(180deg); }
.filter-group ul { display: flex; flex-direction: column; gap: 10px; margin-top: var(--sp-3); }
.filters__actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }

.help-card { background: var(--c-ink); color: #C8CCC9; border-radius: var(--r-lg); padding: var(--sp-5); border-left: 4px solid var(--c-gold); font-size: var(--fs-sm); }
.help-card h3 { color: var(--c-yellow); font-size: var(--fs-md); display: flex; align-items: center; gap: 6px; margin-bottom: var(--sp-2); }
.help-card a { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--sp-3); color: var(--c-yellow); font-weight: 700; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-5); }
.woocommerce-result-count { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
.woocommerce-result-count strong { color: var(--c-ink); font-family: var(--ff-mono); }
.woocommerce-result-count em { font-style: normal; color: var(--c-primary); font-weight: 700; }
.shop-toolbar__right { display: flex; align-items: center; gap: var(--sp-3); }
.woocommerce-ordering { display: flex; align-items: center; gap: var(--sp-2); font-size: 12px; color: var(--c-muted); }
.woocommerce-ordering .select { height: 38px; width: auto; font-size: var(--fs-sm); }
.view-toggle { display: flex; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; }
.view-toggle button { width: 38px; height: 36px; border: 0; background: #fff; color: var(--c-muted); display: grid; place-items: center; }
.view-toggle button.is-active { background: var(--c-primary-soft); color: var(--c-primary); }
.filters-open { display: none; }
.drawer-backdrop { display: none; }

/* 09. Produto ------------------------------------------------------------ */

.gp-panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-5); }
.product-gallery { display: flex; flex-direction: column; gap: var(--sp-4); }

.woocommerce-tabs { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }

/* 10. Blocos compartilhados --------------------------------------------- */
.cta-dark { background: var(--c-ink); color: #C8CCC9; border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-6); align-items: center; position: relative; overflow: hidden; }
.cta-dark::before { content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(158,27,40,.35), transparent 70%); }
.cta-dark > * { position: relative; }
.cta-dark .eyebrow { color: var(--c-yellow); }
.cta-dark .eyebrow .material-symbols-outlined { font-size: 16px; }
.cta-dark h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.cta-dark__checks { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-4); font-size: var(--fs-sm); color: #E7EAE8; }
.cta-dark__checks span { display: inline-flex; align-items: center; gap: 6px; }
.cta-dark__checks .material-symbols-outlined { color: var(--c-yellow); }
.cta-dark__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: flex-end; }

.lead-form { background: #fff; color: var(--c-text); border-radius: var(--r-lg); padding: var(--sp-5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); box-shadow: var(--shadow-lg); }
.lead-form .field--full { grid-column: 1 / -1; }

/* 11. Footer ------------------------------------------------------------- */
.site-footer { background: var(--c-ink); color: #AEB3B0; margin-top: var(--sp-8); border-top: 4px solid var(--c-primary); font-size: var(--fs-sm); }
.site-footer .footer-widgets { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--sp-6); padding-block: var(--sp-8) var(--sp-6); }
.footer-brand .site-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--r); margin-bottom: var(--sp-4); }
.footer-brand .site-logo img { height: 64px; }
.footer-brand p { margin-bottom: var(--sp-4); }
.footer-brand__since { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-mono); font-size: 11px; font-weight: 700; color: var(--c-yellow); text-transform: uppercase; letter-spacing: .06em; }
.widget-title { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-4); display: flex; align-items: center; gap: var(--sp-2); }
.widget-title::before { content: ""; width: 6px; height: 6px; background: var(--c-primary-vivid); transform: rotate(45deg); }
.footer-menu li + li { margin-top: var(--sp-2); }
.footer-menu a { display: inline-flex; align-items: center; gap: 4px; transition: color var(--t); }
.footer-menu a::before { content: "›"; color: var(--c-primary-vivid); font-weight: 800; }
.footer-menu a:hover { color: #fff; }
.contact-list li { display: flex; gap: var(--sp-3); }
.contact-list li + li { margin-top: var(--sp-4); }
.contact-list .material-symbols-outlined { color: var(--c-yellow); }
.contact-list strong { display: block; color: #fff; font-size: var(--fs-md); }
.contact-list small { font-size: 12px; }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-5); }
.pay-grid > span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-sm); font-family: var(--ff-mono); font-size: 11px; font-weight: 700; color: #E7EAE8; }
.pay-grid .material-symbols-outlined { color: var(--c-yellow); font-size: 16px; }
.site-info { border-top: 1px solid rgba(255,255,255,.08); }
.site-info .container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--sp-4); flex-wrap: wrap; padding-block: var(--sp-4); font-size: 12px; }
.site-info__seals { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5); }
.site-info__seals span { display: inline-flex; align-items: center; gap: 4px; }
.site-info__seals .material-symbols-outlined { font-size: 16px; color: var(--c-yellow); }
.site-info__copy { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.site-info__copy a { color: #fff; font-weight: 700; transition: color var(--t); }
.site-info__copy a:hover { color: var(--c-yellow); }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--c-whatsapp); color: #0b2e17; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform var(--t); }
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float .material-symbols-outlined { font-size: 30px; }

/* 12. Modal -------------------------------------------------------------- */
.gp-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: var(--sp-4); background: rgba(20, 24, 22, .6); backdrop-filter: blur(3px); }
.gp-modal.is-open { display: flex; }
.gp-modal__dialog { width: 100%; max-width: 520px; max-height: calc(100vh - 2rem); overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.gp-modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); background: var(--c-ink); color: #fff; }
.gp-modal__head h2 { color: #fff; font-size: var(--fs-h4); display: flex; align-items: center; gap: var(--sp-2); }
.gp-modal__head h2 .material-symbols-outlined { color: var(--c-yellow); }
.gp-modal__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.gp-modal__close:hover { background: rgba(255,255,255,.2); }
.gp-modal__body { padding: var(--sp-5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.gp-modal__body .field--full { grid-column: 1 / -1; }
.gp-modal__item { grid-column: 1 / -1; padding: var(--sp-3); border-radius: var(--r); background: var(--c-primary-soft); border-left: 3px solid var(--c-primary); font-size: var(--fs-sm); }
.gp-modal__item small { display: block; font-family: var(--ff-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.gp-modal__item strong { color: var(--c-ink); }
body.no-scroll { overflow: hidden; }

/* 13. Responsivo --------------------------------------------------------- */
@media (min-width: 1600px) {
  ul.products.columns-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 1200px) {
  ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-tagline, .nav-highlight { display: none; }
}

@media (max-width: 1024px) {
  .hero-stats .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats .container > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-stats .container > div:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .hero-slide__product { max-height: 60%; margin-right: 0; }
  .machine-search__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine-search__form .btn { grid-column: 1 / -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter, .cta-dark { grid-template-columns: minmax(0, 1fr); }
  .cta-dark__actions { justify-content: flex-start; }
  .site-footer .footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Filtros viram gaveta */
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(340px, 88vw); overflow-y: auto; background: var(--c-bg); padding: var(--sp-4); transform: translateX(-100%); transition: transform .25s ease; top: 0; }
  .shop-sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .filters__close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--c-bg); }
  .filters-open { display: inline-flex; }
  .drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(20,24,22,.5); display: none; }
  .drawer-backdrop.is-visible { display: block; }
}

@media (max-width: 860px) {
  .hide-sm { display: none !important; }
  .header-main .container { flex-wrap: wrap; height: auto; padding-block: var(--sp-3); gap: var(--sp-3); }
  .site-logo img { height: 46px; }
  .site-branding { flex: 1; }
  .site-search { order: 3; flex-basis: 100%; max-width: none; }
  .site-search .btn span:not(.material-symbols-outlined) { display: none; }
  .header-actions .btn--dark span:not(.material-symbols-outlined) { display: none; }
  .header-actions .btn--dark { width: 44px; padding: 0; }
  .menu-toggle-gp { display: inline-flex; }
  .gp-navigation { display: none; }
  .gp-navigation.is-open { display: block; }
  .gp-navigation .container { height: auto; padding-block: var(--sp-3); }
  .gp-navigation .menu { flex-direction: column; align-items: stretch; width: 100%; overflow: visible; }
  .gp-navigation .menu a { height: 44px; width: 100%; }
  .shop-sidebar { top: 0; }
}

@media (max-width: 640px) {
  .hero-slide { height: 440px; align-items: flex-start; padding-top: var(--sp-6); }
  .hero-slide::before { background: linear-gradient(180deg, rgba(31,36,33,.92) 0%, rgba(31,36,33,.75) 70%, rgba(31,36,33,.6) 100%); }
  .hero-slide__product { display: none; }
  .hero-slide__content p { font-size: var(--fs-md); }
  .hero-slider__nav { display: none; }
  .hero-stats .container > div { padding: var(--sp-3) var(--sp-2); column-gap: var(--sp-2); }
  .hero-stats .material-symbols-outlined { width: 36px; height: 36px; font-size: 20px; }
  .hero-stats strong { font-size: 1rem; }
  :root { --gutter: 0.75rem; }
  .section { padding-block: var(--sp-7); }
  ul.products, ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card__top { flex-direction: column; align-items: flex-start; gap: 4px; padding: var(--sp-3) var(--sp-3) 0; }
  .product-card__media { margin: var(--sp-2) var(--sp-3) 0; }
  .product-card__body { padding: var(--sp-3); }
  .product-card__foot { padding: var(--sp-3); }
  .product-card__price { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: var(--sp-2); }
  .price { font-size: 1.05rem; }
  .product-card .btn { font-size: 11px; padding: 0 var(--sp-2); }
  .product-card__actions .btn--icon { display: none; }
  .product-card__fit { display: none; }

  .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-tile__media { height: 110px; }
  .category-tile__label { font-size: 11px; padding: var(--sp-2) var(--sp-3); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .machine-search__form { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn, .promo-banner .btn { width: 100%; }

  .lead-form, .gp-modal__body { grid-template-columns: minmax(0, 1fr); }
  .site-footer .footer-widgets { grid-template-columns: minmax(0, 1fr); }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-toolbar__right { justify-content: space-between; flex-wrap: wrap; }
}

/* ==========================================================================
   14. Integração Storefront / WooCommerce
   ========================================================================== */

/* Base */
body.gp-theme { background: var(--c-bg); font-family: var(--ff-base); color: var(--c-text); }
.gp-theme .site { overflow-x: clip; }
.gp-theme a { color: inherit; }
.gp-theme a:focus, .gp-theme button:focus { outline: none; }
.gp-theme a:focus-visible, .gp-theme button:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.gp-theme h1, .gp-theme h2, .gp-theme h3, .gp-theme h4 { font-family: var(--ff-base); font-weight: 800; letter-spacing: -0.015em; }
.gp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.is-whatsapp { color: var(--c-whatsapp); }
.is-brand { color: var(--c-primary); }

/* Container largo do Storefront */
.gp-theme .col-full { max-width: var(--container); padding-left: var(--page-pad); padding-right: var(--page-pad); box-sizing: border-box; }
.gp-wide .site-content > .col-full,
.gp-theme .site-footer > .col-full { max-width: none; padding: 0; margin: 0; }
.gp-wide .site-content > .col-full::before, .gp-wide .site-content > .col-full::after { display: none; }
.gp-theme .site-content { outline: 0; }
.gp-theme:not(.gp-wide) .site-content { padding-block: var(--sp-6); }

/* Cabeçalho */
.gp-theme .site-header { position: sticky; top: 0; z-index: 50; padding: 0 !important; margin: 0 !important; border: 0; background: #fff !important; box-shadow: 0 1px 0 var(--c-line), 0 4px 14px rgba(0,0,0,.04); }
.admin-bar.gp-theme .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.gp-theme .site-header { top: 0; } }
.gp-theme .topbar a { color: inherit; }
.gp-theme .site-logo img { border-radius: 0; }
.gp-theme .site-search input { height: 48px; padding: 0 var(--sp-4) 0 44px; background: var(--c-bg); border: 1px solid var(--c-line); border-right: 0; border-radius: var(--r) 0 0 var(--r); box-shadow: none; font-size: var(--fs-sm); color: var(--c-ink); }
.gp-theme .site-search input:focus { background: #fff; border-color: var(--c-primary); }
.gp-navigation .menu { list-style: none; }
.gp-theme .site-header .site-branding, .gp-theme .site-header .site-search, .gp-theme .site-header .site-logo { width: auto; float: none; margin: 0; clear: none; }
.gp-theme .site-header .site-search { display: flex; flex: 1; font-size: inherit; }
.gp-theme .site-header .site-branding { display: flex; align-items: center; }
.gp-theme .site-header .site-logo img { height: 68px; width: auto; max-width: none; }
.gp-navigation .menu li { margin: 0; }

/* Botões (neutraliza estilos do Storefront) */
.gp-theme .btn { line-height: 1; text-shadow: none; box-shadow: none; text-decoration: none; font-family: var(--ff-base); }
.gp-theme .btn--primary, .gp-theme .btn--primary:hover { color: #fff; }
.gp-theme .btn--outline { background: #fff; color: var(--c-ink); border-color: var(--c-line-strong); }
.gp-theme .btn--outline:hover { background: #fff; border-color: var(--c-ink); color: var(--c-ink); }
.gp-theme .btn--dark, .gp-theme .btn--dark:hover { color: #fff; }
.gp-theme .btn--light { background: #fff; color: var(--c-ink); }
.gp-theme .btn--whatsapp, .gp-theme .btn--whatsapp:hover { color: #0b2e17; }
.gp-theme .btn[disabled] { opacity: .6; cursor: wait; }

/* Formulários */
.gp-theme .input, .gp-theme .select, .gp-theme .textarea, .gp-theme .woocommerce-ordering select {
  width: 100%; height: 44px; padding: 0 var(--sp-3); margin: 0;
  background-color: #fff; border: 1px solid var(--c-line-strong); border-radius: var(--r); box-shadow: none;
  font-family: var(--ff-base); font-size: var(--fs-md); color: var(--c-ink);
}
.gp-theme .textarea { height: auto; min-height: 96px; padding: var(--sp-3); }
.gp-theme .select, .gp-theme .woocommerce-ordering select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B706C' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.gp-theme .input:focus, .gp-theme .select:focus, .gp-theme .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(139, 26, 36, .15); background-color: #fff; }
.gp-form-status { font-size: var(--fs-sm); font-weight: 600; }
.gp-form-status:empty { display: none; }
.gp-form-status.is-success { color: var(--c-green-ink); }
.gp-form-status.is-error { color: #b42318; }

/* Card de produto no loop */
.gp-theme ul.products { margin: 0; padding: 0; }
.gp-theme ul.products::before, .gp-theme ul.products::after { display: none; }
.gp-theme ul.products li.product.product-card { width: auto; float: none; margin: 0; padding: 0; text-align: left; list-style: none; }
.gp-theme ul.products li.product .product-card__media img { width: auto; height: auto; max-width: 82%; max-height: 82%; margin: 0; border-radius: 0; box-shadow: none; }
.gp-theme ul.products li.product .woocommerce-loop-product__title { font-size: var(--fs-md); font-weight: 700; margin: 0; padding: 0; }
.gp-theme ul.products li.product .price { display: inline; margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--c-ink); }
.gp-theme ul.products li.product .price--muted, .price--muted { font-size: 1rem !important; color: var(--c-muted) !important; }
.price .woocommerce-Price-currencySymbol { font-size: .75em; margin-right: 2px; }
.gp-theme ul.products.is-list { grid-template-columns: minmax(0, 1fr); }
.gp-theme ul.products.is-list li.product.product-card { flex-direction: row; align-items: stretch; }
.gp-theme ul.products.is-list .product-card__media { width: 200px; flex-shrink: 0; margin: var(--sp-4); aspect-ratio: 1; }
.gp-theme ul.products.is-list .product-card__top { position: absolute; left: 232px; top: 0; }
.gp-theme ul.products.is-list .product-card__body { padding-top: 52px; }
.gp-theme ul.products.is-list .product-card__foot { width: 280px; border-top: 0; border-left: 1px solid var(--c-line); display: flex; flex-direction: column; justify-content: center; }

/* Breadcrumb */
.gp-theme .woocommerce-breadcrumb { margin: 0; padding: 0; font-size: 12px; background: none; color: var(--c-ink); }
.gp-theme .woocommerce-breadcrumb a { text-decoration: none; color: var(--c-muted); }
.gp-theme .woocommerce-breadcrumb a:hover { color: var(--c-primary); }
.gp-theme .woocommerce-breadcrumb a:first-of-type::before { display: none; }

/* Cabeçalho de categoria */
.cat-hero__desc { max-width: 70ch; }
.cat-hero__desc p { margin: 0 0 var(--sp-2); }
.gp-theme .woocommerce-products-header { padding: 0; }

/* Filtros */
.filter-links { display: flex; flex-direction: column; gap: 2px; margin-top: var(--sp-3); list-style: none; }
.filter-links a { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--c-text); }
.filter-links a:hover { background: var(--c-bg); color: var(--c-ink); }
.filter-links a.is-active { background: var(--c-primary-soft); color: var(--c-primary); font-weight: 700; }
.filter-links .count, .check .count { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--c-muted); }
.filters__toggle-stock { padding: var(--sp-3); background: var(--c-bg); border-radius: var(--r); }
.filter-group ul { list-style: none; }
.filter-group li { margin: 0; }

/* Filtros: chips, contagem, grupos e carregamento AJAX */
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-block: var(--sp-3); border-bottom: 1px solid var(--c-line); }
.active-chips a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: var(--r-sm); background: var(--c-primary-soft); color: var(--c-primary) !important; font-size: 12px; font-weight: 700; transition: background var(--t); }
.active-chips a:hover { background: #F5D6D8; }
.active-chips a .material-symbols-outlined { font-size: 15px; }
.filter-group summary { gap: var(--sp-2); }
.filter-group__badge { margin-left: auto; margin-right: 4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--c-primary); color: #fff; font-size: 11px; display: inline-grid; place-items: center; letter-spacing: 0; }
.filter-group ul:not(.filter-links) { max-height: 264px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.check.is-empty { opacity: .45; cursor: default; }
.check input:disabled { cursor: not-allowed; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: var(--sp-3); }
.segmented label { position: relative; margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: grid; place-items: center; height: 36px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; font-family: var(--ff-mono); font-size: 12px; font-weight: 600; color: var(--c-ink); cursor: pointer; transition: all var(--t); }
.segmented label:hover span { border-color: var(--c-ink); }
.segmented input:checked + span { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.segmented .is-empty span { opacity: .4; cursor: not-allowed; }
.shop-main { transition: opacity .15s ease; }
.toolbar-chips { display: none; }
.toolbar-chips .active-chips { border: 0; padding: 0 0 var(--sp-4); }
.filters-open .filter-group__badge { margin: 0 0 0 2px; }
@media (min-width: 1025px) {
  .gp-theme .shop-sidebar { top: 160px; max-height: calc(100vh - 176px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 2px; }
  .admin-bar.gp-theme .shop-sidebar { top: 192px; max-height: calc(100vh - 208px); }
}
@media (max-width: 1024px) {
  .toolbar-chips { display: block; }
}
.shop-main.is-loading { opacity: .45; pointer-events: none; }
.gp-loading .filter-links, .gp-loading .subcat-pills, .gp-loading .active-chips, .gp-loading .woocommerce-pagination { pointer-events: none; cursor: progress; }
.filter-links a.is-pending, .subcat-pills a.is-pending, .active-chips a.is-pending, .woocommerce-pagination a.is-pending { opacity: .5; }
.gp-filtering {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; background: var(--c-ink); color: #fff; box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); font-weight: 700; opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.gp-filtering.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gp-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: gp-spin .7s linear infinite; }
@keyframes gp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gp-spinner { animation-duration: 2s; } }
@media (min-width: 1025px) {
  .gp-js .shop-sidebar .filters__actions { display: none; }
}

/* Barra de ferramentas e ordenação */
.gp-theme .shop-toolbar .woocommerce-result-count, .gp-theme .shop-toolbar .woocommerce-ordering { float: none; margin: 0; padding: 0; }
.gp-theme .woocommerce-ordering select { height: 38px; width: auto; font-size: var(--fs-sm); }
.shop-empty { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; padding: var(--sp-8) var(--sp-5); }
.shop-empty > .material-symbols-outlined { font-size: 48px; color: var(--c-primary); }
.shop-empty p { color: var(--c-muted); max-width: 48ch; }

/* Paginação WooCommerce */
.gp-theme .woocommerce-pagination { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); text-align: center; }
.gp-theme .woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; border: 0; margin: 0; list-style: none; }
.gp-theme .woocommerce-pagination ul.page-numbers li { border: 0; margin: 0; float: none; }
.gp-theme .woocommerce-pagination .page-numbers li .page-numbers {
  min-width: 40px; height: 40px; padding: 0 var(--sp-3); display: grid; place-items: center;
  border: 1px solid var(--c-line); border-radius: var(--r); background: #fff; font-weight: 700; color: var(--c-ink); text-indent: 0;
}
.gp-theme .woocommerce-pagination .page-numbers li .page-numbers::after, .gp-theme .woocommerce-pagination .page-numbers li .page-numbers::before { display: none; }
.gp-theme .woocommerce-pagination .page-numbers li a.page-numbers:hover { border-color: var(--c-ink); }
.gp-theme .woocommerce-pagination .page-numbers li .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.gp-theme .woocommerce-pagination .page-numbers li .page-numbers.dots { border: 0; background: none; }

/* Página de produto */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; padding-block: var(--sp-6); }
.gp-theme.single-product div.product { overflow: visible; }
.gp-theme.single-product div.product.product-layout::before, .gp-theme.single-product div.product.product-layout::after { display: none; }
.gp-theme .related.products > h2, .gp-theme .upsells.products > h2 { text-align: left !important; }
.gp-theme .cat-hero.woocommerce-products-header { text-align: left !important; margin: 0 !important; padding: 0 !important; }
.gp-theme .cat-hero .page-title { margin: 0 0 var(--sp-3); text-align: left; }
.gp-theme.single-product div.product .product-gallery .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.gp-theme.single-product div.product .gp-summary { width: auto !important; float: none !important; margin: 0 !important; display: flex; flex-direction: column; gap: var(--sp-4); position: sticky; top: 170px; }
.gp-theme .woocommerce-product-gallery__wrapper { margin: 0; }
.gp-theme .woocommerce-product-gallery__image { background: var(--c-bg); border-radius: var(--r); overflow: hidden; }
.gp-theme .woocommerce-product-gallery__image a { display: grid; place-items: center; aspect-ratio: 4 / 3; }
.gp-theme .woocommerce-product-gallery__image img { width: auto !important; max-width: 88%; max-height: 88%; margin: 0 auto; object-fit: contain; mix-blend-mode: multiply; border-radius: 0; }
.gp-theme .woocommerce-product-gallery__trigger { top: 12px !important; right: 12px !important; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.gp-theme .woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.gp-theme.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { width: auto !important; margin: 0 !important; float: none; }
.gp-theme .woocommerce-product-gallery .flex-control-thumbs img { aspect-ratio: 1; object-fit: contain; padding: var(--sp-2); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r); opacity: .7; cursor: pointer; transition: opacity var(--t), border-color var(--t); }
.gp-theme .woocommerce-product-gallery .flex-control-thumbs img.flex-active, .gp-theme .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--c-primary); }

.compat__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.compat__head h2 { font-size: var(--fs-md); display: flex; align-items: center; gap: 6px; }
.compat__head h2 .material-symbols-outlined { color: var(--c-primary); }
.compat > p { font-size: 12px; color: var(--c-muted); margin-bottom: var(--sp-4); }
.compat__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); list-style: none; }
.compat__list li { display: flex; gap: 6px; padding: var(--sp-3); margin: 0; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); font-size: 12px; line-height: 1.35; }
.compat__list li > .material-symbols-outlined { color: var(--c-green-ink); font-size: 18px; }
.compat__list strong { display: block; color: var(--c-ink); font-size: var(--fs-sm); }
.compat__list div > span { color: var(--c-muted); font-family: var(--ff-mono); font-size: 11px; }

.summary__codes { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-pn--outline { background: #fff; border: 1px solid var(--c-line); color: var(--c-muted); }
.badge-pn--brand { background: var(--c-primary-soft); color: var(--c-primary); }
.gp-theme .product_title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); letter-spacing: -0.02em; line-height: 1.15; }
.summary__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); font-size: var(--fs-sm); color: var(--c-muted); }
.summary__meta .stock { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.summary__meta .stock--ok { color: var(--c-green-ink); }
.summary__meta .stock--warn { color: var(--c-yellow-ink); }
.summary__cats a { color: var(--c-primary) !important; }
.summary__excerpt { color: var(--c-text); }
.summary__excerpt p + p { margin-top: var(--sp-2); }

.buy-box { display: flex; flex-direction: column; gap: var(--sp-4); }
.price-box { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--c-line); }
.price-box__label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 4px; }
.price-box .price { font-size: 2.25rem; line-height: 1; color: var(--c-ink); font-weight: 800; }
.price-box__deal { text-align: right; }
.price-box__deal .badge-stock { margin-bottom: 4px; }
.price-box__deal p { font-size: 12px; color: var(--c-muted); }
.summary__ctas { display: flex; flex-direction: column; gap: var(--sp-2); }
.summary__ctas small { text-align: center; font-size: 12px; color: var(--c-muted); }
.ship-info { display: flex; gap: var(--sp-3); align-items: flex-start; }
.ship-info > .material-symbols-outlined { color: var(--c-primary); font-size: 26px; }
.ship-info strong { display: block; color: var(--c-ink); }
.ship-info p { font-size: var(--fs-sm); color: var(--c-muted); }
.trust-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); list-style: none; }
.trust-pills li { display: flex; gap: var(--sp-2); padding: var(--sp-3); margin: 0; border: 1px solid var(--c-line); border-radius: var(--r); background: #fff; font-size: 12px; line-height: 1.3; }
.trust-pills li > .material-symbols-outlined { color: var(--c-primary); font-size: 22px; }
.trust-pills strong { display: block; color: var(--c-ink); }
.trust-pills div > span { color: var(--c-muted); }

/* Abas do WooCommerce */
.gp-theme.single-product .woocommerce-tabs { padding: 0; margin: 0 0 var(--sp-6); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.gp-theme.single-product .woocommerce-tabs ul.tabs { width: 100%; float: none; display: flex; gap: 2px; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--c-line); background: var(--c-bg); overflow-x: auto; scrollbar-width: none; list-style: none; }
.gp-theme.single-product .woocommerce-tabs ul.tabs li { border: 0; margin: 0; display: block; position: static; }
.gp-theme.single-product .woocommerce-tabs ul.tabs li::after, .gp-theme.single-product .woocommerce-tabs ul.tabs li::before { display: none; }
.gp-theme.single-product .woocommerce-tabs ul.tabs li a { display: flex; align-items: center; height: 54px; padding: 0 var(--sp-5); border-bottom: 3px solid transparent; white-space: nowrap; font-size: var(--fs-sm); font-weight: 700; color: var(--c-muted); text-decoration: none; }
.gp-theme.single-product .woocommerce-tabs ul.tabs li a:hover { color: var(--c-ink); }
.gp-theme.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--c-primary); border-bottom-color: var(--c-primary); background: #fff; }
.gp-theme.single-product .woocommerce-tabs .panel { width: 100%; float: none; margin: 0; padding: clamp(1.25rem, 3vw, 2.5rem); }
.gp-theme .woocommerce-Tabs-panel h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-4); }
.gp-theme .woocommerce-Tabs-panel p { margin-bottom: var(--sp-4); max-width: 90ch; }
.gp-theme .woocommerce-Tabs-panel--description ul { margin: 0 0 var(--sp-4) 1.25em; list-style: disc; }
.gp-theme .woocommerce-Tabs-panel--description li { margin-bottom: 4px; }
.gp-theme table.shop_attributes { width: 100%; border: 0; border-collapse: collapse; margin: 0; font-size: var(--fs-sm); }
.gp-theme table.shop_attributes th, .gp-theme table.shop_attributes td { padding: var(--sp-3) var(--sp-4); border: 0; border-bottom: 1px solid var(--c-line); text-align: left; background: transparent; font-style: normal; }
.gp-theme table.shop_attributes th { width: 40%; font-weight: 600; color: var(--c-muted); }
.gp-theme table.shop_attributes td { font-family: var(--ff-mono); font-weight: 600; color: var(--c-ink); }
.gp-theme table.shop_attributes td p { margin: 0; padding: 0; }
.gp-theme table.shop_attributes tr:nth-child(odd) th, .gp-theme table.shop_attributes tr:nth-child(odd) td { background: var(--c-bg); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.app-card { border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-5); }
.app-card h3 { font-size: var(--fs-md); display: flex; align-items: center; gap: 6px; margin-bottom: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-line); }
.app-card h3 .material-symbols-outlined { color: var(--c-primary); }
.app-card ul { list-style: none; margin: 0; }
.app-card li { font-size: var(--fs-sm); padding-block: 5px; margin: 0; display: flex; gap: 6px; }
.app-card li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 1px; background: var(--c-primary); flex-shrink: 0; }

/* Relacionados */
.gp-theme .related.products, .gp-theme .upsells.products { margin-bottom: var(--sp-7); clear: both; }
.gp-theme .related.products > h2, .gp-theme .upsells.products > h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-5); }
.cta-dark--compact { margin-bottom: var(--sp-6); }

/* Home */
.machine-search__form { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr) auto; }
.newsletter__actions { display: flex; justify-content: flex-end; position: relative; }
.gp-theme .category-tile__media img { margin: 0; border-radius: 0; }
.gp-theme .testimonial { margin: 0; }
.gp-theme .testimonial blockquote { margin: 0; padding: 0; border: 0; font-style: normal; font-weight: 400; color: var(--c-text); font-size: var(--fs-md); }
.gp-theme .testimonial blockquote::before { display: none; }

/* Rodapé */
.gp-theme .site-footer { padding: 0; color: #AEB3B0; }
.gp-theme .footer-widgets { border: 0; }
.gp-theme .footer-widgets::before, .gp-theme .footer-widgets::after { display: none; }
#colophon a:not(.btn) { color: inherit; text-decoration: none; }
#colophon .footer-menu a:hover, #colophon .contact-list a:hover { color: #fff; }
#colophon .site-info__copy a { color: #fff; font-weight: 700; }
#colophon .site-info__copy a:hover { color: var(--c-yellow); }
.gp-theme .footer-menu, .gp-theme .contact-list { list-style: none; }
.gp-theme .site-footer .widget-title { border: 0; padding: 0; color: #fff; }
.gp-theme .footer-brand .site-logo img { height: 64px; width: auto; }

/* Páginas de conteúdo */
.gp-theme .entry-content { max-width: 80ch; font-size: var(--fs-lg); }
.gp-theme .entry-content p, .gp-theme .entry-content ul, .gp-theme .entry-content ol { margin: 0 0 1em; }
.gp-theme .entry-content ul, .gp-theme .entry-content ol { padding-left: 1.25em; }
.gp-theme .entry-content h2, .gp-theme .entry-content h3 { margin: 1.5em 0 .5em; }
.gp-theme .entry-content a { color: var(--c-primary); text-decoration: underline; }
.gp-theme .entry-header .entry-title { font-size: var(--fs-h1); margin-bottom: var(--sp-4); }

/* Página de produto: áreas do grid (mobile: galeria → compra → compatibilidade) */
.product-layout { grid-template-areas: "gallery summary" "compat summary"; grid-template-rows: auto 1fr; }
.product-layout > .product-gallery { grid-area: gallery; }
.product-layout > .gp-summary { grid-area: summary; align-self: start; }
.product-layout > .product-compat { grid-area: compat; align-self: start; }
.product-compat:empty { display: none; }
.gp-theme.single-product .woocommerce-tabs .panel h2:first-child { margin-top: 0 !important; }

/* Breadcrumb em uma linha */
.woocommerce-breadcrumb .crumb { white-space: nowrap; }
.woocommerce-breadcrumb .crumb:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Barra fixa de cotação (mobile) */
.mobile-buybar { display: none; }

@media (max-width: 1024px) {
  .product-layout { grid-template-areas: "gallery" "summary" "compat"; grid-template-rows: none; gap: var(--sp-4); padding-block: var(--sp-4) var(--sp-5); }
  .mobile-buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-3) var(--page-pad); padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -6px 20px rgba(31, 36, 33, .1);
    transform: translateY(110%); transition: transform .25s ease; visibility: hidden;
  }
  .mobile-buybar.is-visible { transform: none; visibility: visible; }
  .mobile-buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .mobile-buybar__name { font-size: 12px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-buybar .price { font-size: 1.125rem; font-weight: 800; color: var(--c-ink); line-height: 1.2; }
  .mobile-buybar .btn { height: 46px; }
  .single-product.gp-theme .whatsapp-float { display: none; }
  .single-product.gp-theme .site-footer { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  .single-product .page-bar__meta { display: none; }
  .page-bar .container { min-height: 44px; }
  .gp-theme .woocommerce-breadcrumb { flex-wrap: nowrap; min-width: 0; width: 100%; }
  .product-gallery > .gp-panel, .product-compat > .gp-panel, .buy-box, .ship-info { padding: var(--sp-4); }
  .gp-theme .woocommerce-product-gallery__image a { aspect-ratio: 1 / 1; }
  .gp-theme .woocommerce-product-gallery .flex-control-thumbs { gap: var(--sp-2); margin-top: var(--sp-3); }
  .gp-theme .product_title { font-size: 1.5rem; }
  .summary__meta { gap: var(--sp-2) var(--sp-3); }
  .price-box { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .price-box .price { font-size: 2rem; }
  .price-box__deal { text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .price-box__deal .badge-stock { margin: 0; }
  .summary__ctas .btn--lg { height: 50px; font-size: var(--fs-md); }
  .trust-pills { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .trust-pills li { align-items: center; padding: var(--sp-2) var(--sp-3); }
  .compat__head { align-items: flex-start; }
  .gp-theme.single-product .woocommerce-tabs { margin-bottom: var(--sp-5); border-radius: var(--r); }
  .gp-theme.single-product .woocommerce-tabs ul.tabs li a { height: 48px; font-size: 13px; }
  .gp-theme.single-product .woocommerce-tabs .panel { padding: var(--sp-4); font-size: var(--fs-md); }
  .gp-theme.single-product .woocommerce-tabs .panel h2 { font-size: 1.2rem !important; margin: 0 0 var(--sp-3) !important; }
  .gp-theme .woocommerce-Tabs-panel h3 { font-size: 1.05rem; margin: var(--sp-4) 0 var(--sp-2); }
  .gp-theme table.shop_attributes th, .gp-theme table.shop_attributes td { display: block; width: 100%; padding: 6px var(--sp-3); }
  .gp-theme table.shop_attributes th { padding-top: var(--sp-3); border-bottom: 0; font-size: 12px; }
  .gp-theme .related.products > h2, .gp-theme .upsells.products > h2 { font-size: 1.4rem; margin-bottom: var(--sp-4); }
  .cta-dark--compact h2 { font-size: 1.4rem; }
  .cta-dark__actions .btn { width: 100%; }
}

/* Modal */
.gp-modal[hidden] { display: none; }

@media (max-width: 1200px) {
  .compat__list, .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .gp-theme.single-product div.product .gp-summary { position: static; }
  .machine-search__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine-search__text { grid-column: 1 / -1; }
  .newsletter__actions { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .gp-navigation { display: none; }
  .gp-navigation.is-open { display: block; }
  .menu-toggle-gp { display: inline-flex; }
  .gp-theme .site-header .site-logo img { height: 46px; }
  .gp-theme .site-header .site-search { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .compat__list, .app-grid, .trust-pills { grid-template-columns: minmax(0, 1fr); }
  .machine-search__form { grid-template-columns: minmax(0, 1fr); }
  .gp-theme ul.products li.product .price { font-size: 1.05rem; }
  .gp-theme.single-product .woocommerce-tabs ul.tabs li a { padding: 0 var(--sp-4); }
}

/* ==========================================================================
   16. Listagem de produtos — mobile
   ========================================================================== */

/* Botão flutuante "Filtros" (só aparece ≤1024 quando a barra sai da tela) */
.filters-fab { display: none; }
@media (max-width: 1024px) {
  .filters-fab {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; bottom: 20px; z-index: 60;
    height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--c-ink); color: #fff;
    font-family: var(--ff-base); font-size: var(--fs-sm); font-weight: 700; box-shadow: var(--shadow-lg); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translate(-50%, 16px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .filters-fab .material-symbols-outlined { font-size: 20px; }
  .filters-fab .filter-group__badge { margin: 0; background: var(--c-primary-vivid, var(--c-primary)); }
  .filters-fab.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .gp-loading .filters-fab, .no-scroll .filters-fab { opacity: 0; visibility: hidden; }
}

@media (max-width: 640px) {
  /* Faixa superior: sem breadcrumb (página inicial) ela some */
  .page-bar__meta { display: none; }
  .page-bar:not(:has(.woocommerce-breadcrumb)) { display: none; }

  /* Cabeçalho da categoria mais compacto */
  .cat-hero .container { padding-block: var(--sp-5) var(--sp-4); }
  .gp-theme .cat-hero .page-title { font-size: 1.6rem; margin-bottom: var(--sp-2); }
  .cat-hero .eyebrow { font-size: 10px; margin-bottom: var(--sp-2); }
  .cat-hero__desc { font-size: var(--fs-sm); line-height: 1.5; }
  .cat-hero__desc p { margin: 0; }
  .subcat-pills {
    margin: var(--sp-4) calc(var(--page-pad) * -1) 0; padding: 0 var(--page-pad) 2px; scroll-padding-inline: var(--page-pad);
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .subcat-pills::-webkit-scrollbar { display: none; }
  .subcat-pills a { height: 34px; padding: 0 var(--sp-3); font-size: 13px; scroll-snap-align: start; }
  .subcat-pills a:last-child { margin-right: var(--sp-6); }

  /* Barra de ferramentas: [Filtros][Ordenação][Grade/Lista] + contagem */
  .shop-layout { padding-top: var(--sp-4); }
  .shop-toolbar { display: flex; flex-direction: column-reverse; align-items: stretch; gap: var(--sp-2); padding: var(--sp-2); margin-bottom: var(--sp-3); }
  .gp-theme .shop-toolbar .woocommerce-result-count { font-size: 12px; padding: 0 4px 2px; }
  .shop-toolbar__right { display: flex; flex-wrap: nowrap; gap: var(--sp-2); justify-content: flex-start; }
  .shop-toolbar .filters-open:not(.filters-fab) { height: 40px; flex-shrink: 0; }
  .gp-theme .shop-toolbar .woocommerce-ordering { flex: 1; min-width: 0; }
  .gp-theme .shop-toolbar .woocommerce-ordering select { width: 100%; height: 40px; min-width: 0; font-size: 13px; }
  .view-toggle { flex-shrink: 0; }
  .gp-theme .view-toggle button { width: 36px; height: 38px; padding: 0; }
  .toolbar-chips .active-chips { padding-bottom: var(--sp-3); }

  /* Cards em grade (2 colunas) */
  .gp-theme ul.products { gap: var(--sp-2); }
  .product-card:hover { transform: none; }
  .product-card__top { gap: 4px; padding: var(--sp-2) var(--sp-2) 0; }
  .product-card .badge-pn { font-size: 10px; padding: 2px 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .product-card .badge-stock { font-size: 9px; padding: 2px 6px; }
  .product-card__media { margin: var(--sp-2) var(--sp-2) 0; }
  .product-card__body { padding: var(--sp-2) var(--sp-2) var(--sp-3); gap: 4px; }
  .product-card__cat { font-size: 9px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gp-theme ul.products li.product .woocommerce-loop-product__title { font-size: 13.5px; line-height: 1.3; -webkit-line-clamp: 3; min-height: 3.9em; }
  .product-card__foot { padding: var(--sp-2); }
  .product-card__price small { font-size: 9px; }
  .gp-theme ul.products li.product .price { font-size: 1rem; }
  .product-card .btn { height: 40px; font-size: 12px; gap: 4px; }
  .product-card .btn .material-symbols-outlined { font-size: 17px; }

  /* Cards em lista: foto à esquerda, dados à direita, ação embaixo */
  .gp-theme ul.products.is-list { gap: var(--sp-2); }
  .gp-theme ul.products.is-list li.product.product-card {
    display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto 1fr auto; position: relative;
  }
  .gp-theme ul.products.is-list .product-card__media { grid-column: 1; grid-row: 1 / 3; width: auto; margin: var(--sp-3) 0 var(--sp-3) var(--sp-3); aspect-ratio: 1; align-self: start; }
  .gp-theme ul.products.is-list .product-card__top { grid-column: 2; grid-row: 1; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: var(--sp-3) var(--sp-3) 0; }
  .gp-theme ul.products.is-list .product-card__body { grid-column: 2; grid-row: 2; padding: var(--sp-2) var(--sp-3) var(--sp-3); }
  .gp-theme ul.products.is-list li.product .woocommerce-loop-product__title { font-size: 14px; -webkit-line-clamp: 3; min-height: 0; }
  .gp-theme ul.products.is-list .product-card__foot {
    grid-column: 1 / -1; grid-row: 3; width: auto; border-left: 0; border-top: 1px solid var(--c-line);
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3);
  }
  .gp-theme ul.products.is-list .product-card__price { margin: 0; }
  .gp-theme ul.products.is-list .product-card__actions { flex-shrink: 0; }
  .gp-theme ul.products.is-list .product-card__actions .btn--icon { display: inline-flex; width: 40px; }
  .gp-theme ul.products.is-list .product-card .btn { padding: 0 var(--sp-3); }

  /* Paginação e bloco técnico */
  .gp-theme .woocommerce-pagination { margin-top: var(--sp-5); padding-top: var(--sp-4); }
  .gp-theme .woocommerce-pagination .page-numbers li .page-numbers { min-width: 44px; height: 44px; }
  .gp-theme .lead-form .btn { height: auto; min-height: 52px; padding: var(--sp-3) var(--sp-4); white-space: normal; text-align: center; line-height: 1.25; }
  .gp-theme .cta-dark { border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-4); }
  .gp-theme .cta-dark h2 { font-size: 1.5rem; }
  .lead-form { padding: var(--sp-4); }
}

/* Telas muito estreitas: botão do card só com ícone + texto curto */
@media (max-width: 359px) {
  .product-card .btn { font-size: 11px; padding: 0 6px; }
  .shop-toolbar .filters-open:not(.filters-fab) { padding: 0 var(--sp-2); }
}

/* ==========================================================================
   17. Home (template-homepage) — mobile
   ========================================================================== */
@media (max-width: 640px) {
  /* Slider */
  .hero-slide { height: 420px; padding-top: var(--sp-5); }
  .hero-slide__content h1, .hero-slide__content h2 { font-size: 1.6rem; margin: var(--sp-3) 0 var(--sp-2); }
  .hero-slide__content p { font-size: 15px; line-height: 1.5; margin-bottom: var(--sp-4); }
  .hero__actions { display: flex; flex-direction: column; gap: var(--sp-2); }
  .hero__actions .btn--lg { height: 48px; font-size: 15px; }
  .hero-slider__controls { bottom: var(--sp-3); }

  /* Destaques: ícone em cima, texto embaixo */
  .hero-stats .container > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; align-content: start; padding: var(--sp-4) var(--sp-3); }
  .hero-stats .container > div:nth-child(odd) { padding-left: 0; }
  .hero-stats .material-symbols-outlined { grid-row: auto; margin-bottom: 4px; }
  .hero-stats strong { font-size: 15px; }

  /* Pesquisa técnica */
  .machine-search { padding-top: var(--sp-5); }
  .machine-search__box { padding: var(--sp-4); }
  .machine-search__head { margin-bottom: var(--sp-3); }
  .machine-search__head h2 { font-size: 1rem; }
  .machine-search .btn { height: 48px; }

  /* Cabeçalhos de seção */
  .section-head { gap: var(--sp-2); margin-bottom: var(--sp-4); }
  .section-head h2 { font-size: 1.5rem; }
  .section-head p { font-size: var(--fs-sm); }
  .section-head .link-arrow { font-size: var(--fs-sm); }

  /* Produtos, categorias e depoimentos viram carrossel com rolagem lateral */
  .page-template-template-homepage .section ul.products,
  .page-template-template-homepage .category-tiles,
  .page-template-template-homepage .grid-3:has(.testimonial) {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 68%; gap: var(--sp-3);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--page-pad); scrollbar-width: none;
    margin-inline: calc(var(--page-pad) * -1); padding: 2px var(--page-pad) var(--sp-2);
  }
  .page-template-template-homepage .section ul.products::-webkit-scrollbar,
  .page-template-template-homepage .category-tiles::-webkit-scrollbar,
  .page-template-template-homepage .grid-3:has(.testimonial)::-webkit-scrollbar { display: none; }
  .page-template-template-homepage .section ul.products > li,
  .page-template-template-homepage .category-tiles > a,
  .page-template-template-homepage .grid-3:has(.testimonial) > * { scroll-snap-align: start; }
  .page-template-template-homepage .category-tiles { grid-auto-columns: 42%; }
  .page-template-template-homepage .grid-3:has(.testimonial) { grid-auto-columns: 86%; }
  .category-tile__media { height: 120px; }
  .category-tile__label { min-height: 52px; }

  /* Banner */
  .promo-banner { min-height: 0; }
  .promo-banner::after { background: linear-gradient(180deg, rgba(31,36,33,.94) 0%, rgba(31,36,33,.82) 100%); }
  .promo-banner h2 { font-size: 1.5rem; }
  .promo-banner p { font-size: 15px; }
  .promo-banner__row { gap: var(--sp-3); }

  /* Diferenciais: ícone ao lado do título */
  .feature-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-3); padding: var(--sp-4); }
  .feature-card > :not(.feature-card__icon):not(h3) { grid-column: 1 / -1; }
  .feature-card__icon { width: 44px; height: 44px; font-size: 24px; }
  .feature-card h3 { font-size: 1.05rem; }
  .feature-card p { font-size: var(--fs-sm); }

  /* Depoimentos */
  .testimonial { padding: var(--sp-4); gap: var(--sp-3); }
  .testimonial blockquote { font-size: var(--fs-sm); line-height: 1.55; }

  /* Catálogo por WhatsApp */
  .newsletter { gap: var(--sp-4); padding: var(--sp-5) var(--sp-4); }
  .newsletter h2 { font-size: 1.4rem; }
  .newsletter__actions .btn { width: 100%; }
}

/* ==========================================================================
   18. Cabeçalho, rodapé e modal — mobile
   ========================================================================== */
.gp-theme .gp-modal__close { padding: 0; min-width: 0; flex-shrink: 0; line-height: 1; }

@media (max-width: 860px) {
  /* Cabeçalho compacto que some ao rolar para baixo */
  .gp-theme .site-header { transition: transform .25s ease; will-change: transform; }
  .gp-header-hidden .gp-theme .site-header { transform: translateY(-100%); }
  .gp-theme .header-main .container { padding-block: 10px; gap: 10px; }
  .gp-theme .site-header .site-logo img { height: 40px; }
  .gp-theme .header-actions { gap: 6px; }
  .gp-theme .header-actions .btn { width: 42px; height: 42px; padding: 0; }
  .gp-theme .site-search .site-search__field input, .gp-theme .site-search .input { height: 44px; }
  .gp-theme .site-search .btn { height: 44px; width: 48px; padding: 0; }

  /* Menu aberto */
  .gp-navigation.is-open { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .gp-navigation .container { padding-block: var(--sp-2) var(--sp-3); }
  .gp-navigation .menu li { border-bottom: 1px solid var(--c-line); }
  .gp-navigation .menu li.menu-all { border: 0; margin-bottom: var(--sp-2); }
  .gp-navigation .menu li:last-child { border-bottom: 0; }
  .gp-navigation .menu li:not(.menu-all) a { justify-content: space-between; height: 48px; padding-inline: 4px; border-radius: 0; }
  .gp-navigation .menu li:not(.menu-all) a::after { content: "chevron_right"; font-family: "Material Symbols Outlined"; font-feature-settings: "liga"; -webkit-font-feature-settings: "liga"; font-size: 20px; font-weight: 400; color: var(--c-muted); }
  .gp-navigation .menu li.current-menu-item a { color: var(--c-primary); font-weight: 700; }
}

@media (max-width: 640px) {
  /* Rodapé */
  .site-footer { margin-top: var(--sp-7); }
  .site-footer .footer-widgets { gap: var(--sp-6); padding-block: var(--sp-7) var(--sp-5); }
  .gp-theme .footer-brand .site-logo img { height: 52px; }
  .footer-brand p { font-size: 13px; line-height: 1.55; }
  .site-footer .widget-title { margin-bottom: var(--sp-3); }
  .gp-theme .footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--sp-3); }
  .gp-theme .footer-menu li + li { margin-top: 0; }
  .site-info .container { gap: var(--sp-3); padding-block: var(--sp-4) 92px; }
  .site-info__seals { gap: var(--sp-2) var(--sp-4); }
  .single-product.gp-theme .site-footer { padding-bottom: 0; }
  .single-product.gp-theme .site-info .container { padding-bottom: 88px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }

  /* Modal de cotação */
  .gp-modal { padding: 8px; }
  .gp-modal__dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .gp-modal__head { padding: var(--sp-3) var(--sp-4); position: sticky; top: 0; z-index: 1; }
  .gp-modal__head h2 { font-size: 1.05rem; }
  .gp-modal__body { padding: var(--sp-4); gap: var(--sp-3); }
  .gp-modal__body .textarea { min-height: 88px; }
}

/* ==========================================================================
   19. Tablet (641px–1024px)
   ========================================================================== */
.gp-theme .woocommerce-pagination { float: none; clear: both; width: auto; }

@media (min-width: 861px) and (max-width: 1200px) {
  /* Menu de categorias rola de lado com esmaecido indicando continuação */
  .gp-navigation .menu { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: var(--sp-6); }
}

@media (min-width: 641px) and (max-width: 860px) {
  .gp-theme .site-header .site-logo img { height: 46px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  /* Cards: PN sem quebra, estoque desce quando não cabe, preço empilhado */
  .product-card__top { flex-wrap: wrap; gap: 4px var(--sp-2); }
  .product-card .badge-pn { white-space: nowrap; font-size: 11px; }
  .product-card__price { flex-direction: column; align-items: flex-start; gap: 2px; }
  .product-card__price small { white-space: nowrap; }
  .gp-theme ul.products { gap: var(--sp-4); }

  /* Barra de ferramentas da loja */
  .shop-toolbar { padding: var(--sp-3); }

  /* Página de produto: foto e compra lado a lado, compatibilidade embaixo */
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gallery summary" "compat summary"; grid-template-rows: auto 1fr; gap: var(--sp-5); }
  .product-compat .compat__list { grid-template-columns: minmax(0, 1fr); }
  .product-gallery > .gp-panel { padding: var(--sp-4); }
  .gp-theme .woocommerce-product-gallery__image a { aspect-ratio: 1 / 1; }
  .gp-theme .product_title { font-size: 1.6rem; }
  .price-box { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .price-box__deal { text-align: left; }
  .trust-pills { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .gp-theme.single-product .woocommerce-tabs .panel h2 { font-size: 1.4rem !important; }

  /* Home: listas viram carrossel lateral (sem card sobrando na última linha) */
  .page-template-template-homepage .section ul.products,
  .page-template-template-homepage .category-tiles,
  .page-template-template-homepage .grid-3:has(.testimonial) {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 40%; gap: var(--sp-4);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--page-pad); scrollbar-width: none;
    margin-inline: calc(var(--page-pad) * -1); padding: 2px var(--page-pad) var(--sp-2);
  }
  .page-template-template-homepage .section ul.products::-webkit-scrollbar,
  .page-template-template-homepage .category-tiles::-webkit-scrollbar,
  .page-template-template-homepage .grid-3:has(.testimonial)::-webkit-scrollbar { display: none; }
  .page-template-template-homepage .section ul.products > li,
  .page-template-template-homepage .category-tiles > a,
  .page-template-template-homepage .grid-3:has(.testimonial) > * { scroll-snap-align: start; }
  .page-template-template-homepage .category-tiles { grid-auto-columns: 27%; }
  .page-template-template-homepage .grid-3:has(.testimonial) { grid-auto-columns: 58%; }

  /* Diferenciais: 3 colunas compactas */
  .page-template-template-homepage .grid-3:has(.feature-card) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
  .feature-card { padding: var(--sp-4); }
  .feature-card__icon { width: 44px; height: 44px; font-size: 24px; }
  .feature-card h3 { font-size: 1.05rem; }
  .feature-card p { font-size: var(--fs-sm); }
  .feature-card__note { font-size: 12px; }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .page-template-template-homepage .section ul.products { grid-auto-columns: 31%; }
  .page-template-template-homepage .category-tiles { grid-auto-columns: 22%; }
  .page-template-template-homepage .grid-3:has(.testimonial) { grid-auto-columns: 46%; }
}
/* Rótulo das categorias sempre no rodapé do bloco, com altura uniforme */
.category-tile__label { margin-top: auto; }
@media (min-width: 641px) and (max-width: 1024px) { .category-tile__label { min-height: 64px; } }

/* ==========================================================================
   20. Imagens de fundo: cabeçalho da categoria e blocos técnicos
   ========================================================================== */
.cat-hero {
  background:
    linear-gradient(90deg, rgba(31,36,33,.96) 0%, rgba(31,36,33,.86) 42%, rgba(31,36,33,.4) 100%),
    url("../images/slider-02.jpg") center 60% / cover no-repeat,
    var(--c-ink);
}
.cat-hero::before { background: radial-gradient(circle at 12% 110%, rgba(158,27,40,.35), transparent 50%); }

.cta-dark {
  background:
    linear-gradient(90deg, rgba(31,36,33,.97) 0%, rgba(31,36,33,.88) 45%, rgba(31,36,33,.5) 100%),
    url("../images/slider-01.jpg") center 55% / cover no-repeat,
    var(--c-ink);
}
.cta-dark--compact {
  background:
    linear-gradient(90deg, rgba(31,36,33,.97) 0%, rgba(31,36,33,.86) 50%, rgba(31,36,33,.45) 100%),
    url("../images/slider-03.jpg") center 40% / cover no-repeat,
    var(--c-ink);
}

@media (max-width: 1024px) {
  .cat-hero { background: linear-gradient(180deg, rgba(31,36,33,.9) 0%, rgba(31,36,33,.8) 100%), url("../images/slider-02.jpg") 70% 60% / cover no-repeat, var(--c-ink); }
  .cta-dark { background: linear-gradient(180deg, rgba(31,36,33,.82) 0%, rgba(31,36,33,.95) 55%), url("../images/slider-01.jpg") 70% top / auto 420px no-repeat, var(--c-ink); }
  .cta-dark--compact { background: linear-gradient(180deg, rgba(31,36,33,.85) 0%, rgba(31,36,33,.92) 100%), url("../images/slider-03.jpg") center / cover no-repeat, var(--c-ink); }
}

/* Blocos técnicos (desktop): imagem espelhada para a máquina ficar à esquerda, longe do formulário/botões */
@media (min-width: 1025px) {
  .cta-dark { --cta-img: url("../images/slider-01.jpg"); --cta-pos: center 55%; background: var(--c-ink); isolation: isolate; }
  .cta-dark--compact { --cta-img: url("../images/slider-03.jpg"); --cta-pos: center 40%; }
  .cta-dark::before { display: none; }
  .cta-dark::after {
    content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(-1);
    /* Espelhado: o lado "esquerdo" do gradiente aparece à direita */
    background:
      linear-gradient(90deg, rgba(31,36,33,.92) 0%, rgba(31,36,33,.72) 50%, rgba(31,36,33,.62) 100%),
      var(--cta-img) var(--cta-pos) / cover no-repeat;
  }
  .cta-dark h2, .cta-dark p { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
}

/* ==========================================================================
   21. WhatsApp (ícone, botão flutuante) e aviso de cookies
   ========================================================================== */
.wa-icon { width: 1em; height: 1em; flex-shrink: 0; }

/* Rodapé: números com ícone do WhatsApp e endereço da loja */
.contact-list .wa-icon { width: 22px; height: 22px; color: var(--c-whatsapp); margin-top: 1px; }
.contact-list a:hover strong { color: var(--c-whatsapp); }
.contact-list .footer-visit { display: block; margin: 2px 0 6px; line-height: 1.5; color: #C8CCC9; }
#colophon .contact-list .footer-address { color: #fff; font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
#colophon .contact-list .footer-address:hover { text-decoration-color: var(--c-yellow); color: var(--c-yellow); }
.topbar a:hover { color: #fff; }

/* Botão flutuante */
.gp-theme .whatsapp-float { width: auto; min-width: 58px; padding: 0 16px; gap: 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #fff; text-decoration: none; }
.whatsapp-float .wa-icon { width: 28px; height: 28px; }
.whatsapp-float__label { font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: gp-wa-pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes gp-wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float::before { animation: none; } }
@media (max-width: 1024px) {
  .gp-theme .whatsapp-float { width: 56px; min-width: 0; height: 56px; padding: 0; }
  .whatsapp-float__label { display: none; }
}

/* Aviso de cookies: faixa na largura total, no padrão do rodapé */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: var(--c-ink); color: #C8CCC9; border-top: 4px solid var(--c-primary);
  box-shadow: 0 -10px 30px rgba(0,0,0,.25); font-size: var(--fs-sm);
  transform: translateY(0); transition: transform .3s ease, opacity .3s ease;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar.is-leaving { transform: translateY(100%); opacity: 0; }
.cookie-bar__inner { display: flex; align-items: center; gap: var(--sp-5); padding-block: var(--sp-4); }
.cookie-bar__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--c-yellow); }
.cookie-bar__icon .material-symbols-outlined { font-size: 24px; }
.cookie-bar__text { flex: 1; margin: 0; line-height: 1.5; }
.cookie-bar__text strong { display: block; color: #fff; font-size: var(--fs-md); margin-bottom: 2px; }
.gp-theme .cookie-bar__text a { color: var(--c-yellow); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }
.cookie-bar .btn { height: 44px; padding: 0 var(--sp-5); }
.gp-theme .btn--outline-light,
.gp-theme .btn--outline-light:visited { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.gp-theme .btn--outline-light:hover,
.gp-theme .btn--outline-light:focus,
.gp-theme .btn--outline-light:active { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.gp-theme .btn--outline-light:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; }

/* Elementos flutuantes sobem enquanto o aviso está aberto */
.gp-cookie-open .whatsapp-float { bottom: calc(var(--cookie-h, 0px) + 20px); }
.gp-cookie-open .filters-fab, .gp-cookie-open .gp-filtering { bottom: calc(var(--cookie-h, 0px) + 20px); }
.gp-cookie-open .mobile-buybar { bottom: var(--cookie-h, 0px); }

@media (max-width: 640px) {
  .cookie-bar__inner { flex-wrap: wrap; gap: var(--sp-3); padding-block: var(--sp-4); }
  .cookie-bar__icon { display: none; }
  .cookie-bar__text { font-size: 13px; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions .btn { flex: 1; }
  .gp-cookie-open .whatsapp-float { bottom: calc(var(--cookie-h, 0px) + 14px); }
}

/* Busca do cabeçalho: estado carregando */
.gp-theme .site-search .btn.is-loading { cursor: progress; opacity: 1; }
.gp-theme .site-search .btn.is-loading .gp-spinner { display: inline-block; flex-shrink: 0; }

/* Confirmação / erro dos formulários de cotação (acima do botão) */
.gp-form-status.is-success, .gp-form-status.is-error {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--r);
  font-size: var(--fs-sm); font-weight: 700; line-height: 1.4; animation: gp-status-in .25s ease;
}
.gp-form-status.is-success { background: var(--c-green-bg); color: var(--c-green-ink); border-left: 4px solid var(--c-green-ink); }
.gp-form-status.is-error { background: #FEF3F2; color: #b42318; border-left: 4px solid #b42318; }
.gp-form-status .material-symbols-outlined { font-size: 22px; flex-shrink: 0; }
@keyframes gp-status-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   22. Página 404
   ========================================================================== */
.nf-hero {
  position: relative; overflow: hidden; color: #C8CCC9;
  background:
    linear-gradient(90deg, rgba(31,36,33,.97) 0%, rgba(31,36,33,.88) 50%, rgba(31,36,33,.6) 100%),
    url("../images/slider-02.jpg") center 60% / cover no-repeat,
    var(--c-ink);
}
.nf-hero__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: var(--sp-6); padding-block: var(--sp-8); }
.nf-hero .eyebrow { color: #FFB3B1; }
.gp-theme .nf-hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); margin: var(--sp-3) 0 var(--sp-3); }
.nf-hero p { font-size: var(--fs-lg); max-width: 56ch; margin-bottom: var(--sp-5); }
.nf-hero__code {
  justify-self: end; font-size: clamp(6rem, 4rem + 9vw, 13rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.35); user-select: none;
}

.nf-search { position: relative; display: flex; max-width: 640px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.nf-search > .material-symbols-outlined { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.gp-theme .nf-search input[type="search"] { flex: 1; min-width: 0; height: 56px; padding: 0 var(--sp-4) 0 48px; border: 0; background: transparent; box-shadow: none; font-size: var(--fs-md); color: var(--c-ink); outline: none; }
.gp-theme .nf-search .btn { height: 56px; border-radius: 0; padding: 0 var(--sp-6); }

.nf-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.nf-actions .btn { height: 48px; }
.nf-actions .wa-icon { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nf-hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: var(--sp-7); }
  .nf-hero__code { display: none; }
  .nf-hero { background: linear-gradient(180deg, rgba(31,36,33,.9), rgba(31,36,33,.82)), url("../images/slider-02.jpg") 70% 60% / cover no-repeat, var(--c-ink); }
}
@media (max-width: 640px) {
  .nf-hero p { font-size: var(--fs-md); }
  .gp-theme .nf-search input[type="search"], .gp-theme .nf-search .btn { height: 50px; }
  .gp-theme .nf-search .btn { padding: 0 var(--sp-4); }
  .nf-actions .btn { width: 100%; }
}
/* 404: categorias e produtos em carrossel lateral no celular/tablet (como na home) */
@media (max-width: 1024px) {
  .error404 .category-tiles, .error404 .section ul.products {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 40%; gap: var(--sp-3);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--page-pad); scrollbar-width: none;
    margin-inline: calc(var(--page-pad) * -1); padding: 2px var(--page-pad) var(--sp-2);
  }
  .error404 .category-tiles { grid-auto-columns: 27%; }
  .error404 .category-tiles::-webkit-scrollbar, .error404 .section ul.products::-webkit-scrollbar { display: none; }
  .error404 .category-tiles > a, .error404 .section ul.products > li { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .error404 .section ul.products { grid-auto-columns: 68%; }
  .error404 .category-tiles { grid-auto-columns: 42%; }
}

/* ==========================================================================
   23. Listagem vazia (busca sem resultados / filtros sem peças)
   ========================================================================== */
.shop-empty h2 { font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); }
.shop-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.shop-empty__actions .btn { height: 48px; }
.shop-empty__actions .wa-icon { width: 20px; height: 20px; }

.shop-empty--search { padding: var(--sp-7) var(--sp-6); }
.shop-empty--search > .material-symbols-outlined { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary-soft); font-size: 36px; }
.shop-empty--search h2 { overflow-wrap: anywhere; }

.shop-empty__retry, .shop-empty__cats { width: 100%; max-width: 640px; margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); text-align: left; }
.shop-empty__retry h3, .shop-empty__cats h3, .shop-empty__popular h3 { font-size: var(--fs-md); margin-bottom: var(--sp-3); color: var(--c-ink); }
.shop-empty__retry .nf-search { max-width: none; box-shadow: none; border: 1px solid var(--c-line-strong); }
.shop-empty__retry .nf-search:focus-within { border-color: var(--c-primary); }
.shop-empty__tips { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--c-muted); }
.shop-empty__tips li { position: relative; padding-left: 18px; margin: 0; }
.shop-empty__tips li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }
.shop-empty__tips a { color: var(--c-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.shop-empty__cats > div { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.shop-empty__cats a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--r); background: #fff; font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); transition: border-color var(--t), color var(--t); }
.shop-empty__cats a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.shop-empty__cats .count { font-family: var(--ff-mono); font-size: 11px; color: var(--c-muted); }

.shop-empty__popular { margin-top: var(--sp-6); }
.shop-empty__popular h3 { font-size: var(--fs-h4, 1.25rem); }
.shop-main .shop-empty__popular ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .shop-main .shop-empty__popular ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 640px) {
  .shop-empty--search { padding: var(--sp-5) var(--sp-4); }
  .shop-empty__actions { width: 100%; }
  .shop-empty__actions .btn { flex: 1 1 100%; }
  .shop-empty__cats a { height: 34px; font-size: 13px; }
}
/* Cards estreitos das "mais procuradas": PN sem quebra e preço empilhado */
@media (min-width: 1025px) {
  .shop-empty__popular .product-card__top { flex-wrap: wrap; gap: 4px var(--sp-2); }
  .shop-empty__popular .badge-pn { white-space: nowrap; font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .shop-empty__popular .product-card__price { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ==========================================================================
   24. Página de contato
   ========================================================================== */
.contact-hero .container { padding-block: var(--sp-8) var(--sp-7); }
.contact-hero__intro { max-width: 60ch; }
.contact-hero__intro p { font-size: var(--fs-lg); margin: 0 0 var(--sp-2); }
.contact-hero .nf-actions .material-symbols-outlined { color: var(--c-primary); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-5); }

.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.contact-card {
  display: flex; flex-direction: column; gap: 4px; padding: var(--sp-5); background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); color: var(--c-text); transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
a.contact-card:hover { border-color: rgba(139, 26, 36, .35); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-card__icon { width: 44px; height: 44px; margin-bottom: var(--sp-2); border-radius: var(--r); display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); }
.contact-card__icon .material-symbols-outlined { font-size: 24px; }
.contact-card__icon.is-wa { background: #E7F8EE; color: #1EBE5D; }
.contact-card__icon .wa-icon { width: 24px; height: 24px; }
.contact-card__label { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.contact-card strong { font-size: 1.2rem; color: var(--c-ink); line-height: 1.3; }
.contact-card strong.contact-card__line { font-size: var(--fs-md); }
.contact-card small { font-size: 13px; color: var(--c-muted); }
.contact-card__link { color: var(--c-primary); font-weight: 700; }

.contact-map { position: relative; min-height: 320px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); background: #E9ECE8; }
.contact-map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-5); text-align: center;
  background: linear-gradient(rgba(244,245,247,.86), rgba(244,245,247,.86)), repeating-linear-gradient(45deg, #dfe3de 0 2px, transparent 2px 22px); }
.contact-map__placeholder > .material-symbols-outlined { font-size: 40px; color: var(--c-primary); }
.contact-map__placeholder p { margin: 0 0 var(--sp-2); color: var(--c-ink); }
.contact-map__placeholder small { color: var(--c-muted); font-size: 12px; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-map.is-loaded .contact-map__placeholder { display: none; }

.contact-form { padding: var(--sp-6); }
.contact-form h2 { font-size: var(--fs-h3, 1.5rem); margin-bottom: var(--sp-1); }
.contact-form > p { color: var(--c-muted); margin-bottom: var(--sp-4); }
.contact-form .lead-form { padding: 0; box-shadow: none; background: none; }

@media (min-width: 1025px) {
  .contact-form { position: sticky; top: 160px; }
  .admin-bar .contact-form { top: 192px; }
}
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .contact-hero .container { padding-block: var(--sp-6) var(--sp-5); }
  .contact-hero__intro p { font-size: var(--fs-md); }
  .contact-cards { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .contact-card { padding: var(--sp-4); display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--sp-3); row-gap: 2px; align-items: start; }
  .contact-card__icon { grid-row: span 4; margin: 0; }
  .contact-map { min-height: 260px; }
  .contact-form { padding: var(--sp-4); }
}

/* ==========================================================================
   25. Modo loja: carrinho no cabeçalho, carrinho lateral e compra
   ========================================================================== */
.header-cart { position: relative; }
.gp-cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.gp-cart-count.is-empty { display: none; }
.cart-drawer__head .gp-cart-count { position: static; display: inline-block; box-shadow: none; margin-left: 4px; }

/* Link "Ver carrinho" que o WooCommerce injeta após o botão: o carrinho lateral já abre. */
.gp-theme a.added_to_cart { display: none !important; }
.gp-theme .add_to_cart_button.loading, .gp-theme .single_add_to_cart_button.loading { opacity: .75; pointer-events: none; }
.gp-theme .add_to_cart_button.loading .material-symbols-outlined, .gp-theme .single_add_to_cart_button.loading .material-symbols-outlined { animation: gp-spin .8s linear infinite; }
.gp-theme .add_to_cart_button::after, .gp-theme .single_add_to_cart_button::after { display: none !important; }

/* Carrinho lateral */
.cart-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(20,24,22,.5); opacity: 0; transition: opacity .25s ease; }
.cart-backdrop.is-visible { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 121; width: min(420px, 92vw); display: flex; flex-direction: column;
  background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .28s ease, visibility .28s; visibility: hidden;
}
.cart-drawer.is-open { transform: none; visibility: visible; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); background: var(--c-ink); border-top: 4px solid var(--c-primary); }
.gp-theme .cart-drawer__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-size: var(--fs-md); }
.cart-drawer__head h2 .material-symbols-outlined { color: var(--c-yellow); }
.gp-theme .cart-drawer__close { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.gp-theme .cart-drawer__close:hover { background: rgba(255,255,255,.2); }
.cart-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-4) var(--sp-5); }
.cart-drawer__foot { padding: var(--sp-3) var(--sp-5) var(--sp-4); border-top: 1px solid var(--c-line); }
.gp-theme .cart-drawer__continue { width: 100%; height: 40px; border: 0; background: none; color: var(--c-muted); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.gp-theme .cart-drawer__continue:hover { color: var(--c-ink); }

/* Mini carrinho do WooCommerce dentro da gaveta */
.cart-drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.cart-drawer .woocommerce-mini-cart-item {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--sp-3); align-items: center;
  margin: 0; padding: var(--sp-3) 28px var(--sp-3) 0; border-bottom: 1px solid var(--c-line);
}
.cart-drawer .woocommerce-mini-cart-item > a:not(.remove) { display: contents; font-weight: 700; font-size: var(--fs-sm); color: var(--c-ink); line-height: 1.35; }
.gp-theme .cart-drawer .woocommerce-mini-cart-item img { grid-row: span 2; width: 64px; height: 64px; object-fit: contain; margin: 0; padding: 4px; float: none; border-radius: var(--r); background: var(--c-bg); mix-blend-mode: multiply; }
.cart-drawer .woocommerce-mini-cart-item .quantity { grid-column: 2; font-size: 13px; color: var(--c-muted); }
.cart-drawer .woocommerce-mini-cart-item .quantity .amount { color: var(--c-ink); font-weight: 700; }
.gp-theme .cart-drawer a.remove {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 24px; height: 24px; line-height: 22px; text-align: center;
  border-radius: 50%; color: var(--c-muted) !important; font-size: 18px; background: none; text-indent: 0;
}
.gp-theme .cart-drawer a.remove::before { display: none; }
.gp-theme .cart-drawer a.remove:hover { background: var(--c-primary-soft); color: var(--c-primary) !important; }
.cart-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: var(--sp-4) 0 var(--sp-3); padding: 0; border: 0; font-size: var(--fs-md); }
.cart-drawer .woocommerce-mini-cart__total .amount { font-size: 1.35rem; font-weight: 800; color: var(--c-ink); }
.cart-drawer .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); margin: 0; }
.gp-theme .cart-drawer .woocommerce-mini-cart__buttons a.button {
  display: flex; align-items: center; justify-content: center; height: 48px; margin: 0; border-radius: var(--r); font-weight: 700; text-align: center;
  background: #fff; color: var(--c-ink); border: 1px solid var(--c-line-strong);
}
.gp-theme .cart-drawer .woocommerce-mini-cart__buttons a.button.checkout { order: -1; background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.gp-theme .cart-drawer .woocommerce-mini-cart__buttons a.button.checkout:hover { background: var(--c-primary-hover); }
.cart-drawer .woocommerce-mini-cart__empty-message { margin: var(--sp-7) 0; text-align: center; color: var(--c-muted); }

/* Página do produto: quantidade + adicionar */
.gp-add-to-cart { display: flex; gap: var(--sp-2); margin: 0; }
.gp-add-to-cart .single_add_to_cart_button { flex: 1; }
.qty-stepper { display: flex; align-items: stretch; flex-shrink: 0; height: 52px; border: 1px solid var(--c-line-strong); border-radius: var(--r); overflow: hidden; background: #fff; }
.gp-theme .qty-stepper > button { width: 40px; padding: 0; border: 0; background: var(--c-bg); color: var(--c-ink); font-size: 20px; font-weight: 700; }
.gp-theme .qty-stepper > button:hover { background: var(--c-bg-2); }
.qty-stepper .quantity { margin: 0; }
.gp-theme .qty-stepper input.qty { width: 52px; height: 100%; padding: 0; border: 0; border-inline: 1px solid var(--c-line); text-align: center; font-weight: 700; box-shadow: none; -moz-appearance: textfield; background: #fff; }
.qty-stepper input.qty::-webkit-outer-spin-button, .qty-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Carrinho e checkout (blocos do WooCommerce) nas cores do site */
.gp-shop-mode .wc-block-components-button:not(.is-link), .gp-shop-mode .wc-block-cart__submit-button, .gp-shop-mode .wc-block-components-checkout-place-order-button {
  background: var(--c-primary) !important; color: #fff !important; border-radius: var(--r) !important; font-weight: 700;
}
.gp-shop-mode .wc-block-components-button:not(.is-link):hover { background: var(--c-primary-hover) !important; }

@media (max-width: 640px) {
  .gp-add-to-cart { flex-direction: column; }
  .qty-stepper { align-self: stretch; }
  .qty-stepper .quantity { flex: 1; }
  .gp-theme .qty-stepper input.qty { width: 100%; }
  .gp-theme .qty-stepper > button { width: 56px; }
  .cart-drawer__head, .cart-drawer__body, .cart-drawer__foot { padding-inline: var(--sp-4); }
}

/* Item do carrinho lateral: imagem à esquerda, nome e quantidade à direita
   (sem grid: o Storefront força display:block nos links do mini carrinho). */
.gp-theme .cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
  position: relative; display: block; min-height: 90px; margin: 0; padding: 12px 32px 12px 78px !important;
  border-bottom: 1px solid var(--c-line); list-style: none;
}
.gp-theme .cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item > a:not(.remove) {
  display: block; font-weight: 700; font-size: var(--fs-sm); line-height: 1.35; color: var(--c-ink);
}
.gp-theme .cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item > a:not(.remove):hover { color: var(--c-primary); }
.gp-theme .cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item img {
  position: absolute; left: 0; top: 12px; width: 64px !important; max-width: none; height: 64px; margin: 0; padding: 4px; float: none;
  object-fit: contain; border-radius: var(--r); background: var(--c-bg); box-shadow: none; mix-blend-mode: multiply;
}
.gp-theme .cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .quantity { display: block; margin-top: 4px; font-size: 13px; color: var(--c-muted); }
.gp-theme .cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove { top: 22px; transform: none; }

/* Carrinho e checkout: blocos alinhados ao container do site */
.gp-shop-mode .wp-block-woocommerce-cart.alignwide,
.gp-shop-mode .wp-block-woocommerce-checkout.alignwide { margin-left: 0 !important; margin-right: 0 !important; max-width: none; width: auto; }
.gp-shop-mode.woocommerce-cart .entry-header, .gp-shop-mode.woocommerce-checkout .entry-header { margin-bottom: var(--sp-5); padding: 0; border: 0; text-align: left; }
.gp-shop-mode.woocommerce-cart .entry-title, .gp-shop-mode.woocommerce-checkout .entry-title { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); text-align: left; margin: 0; }
.gp-shop-mode.woocommerce-cart .hentry, .gp-shop-mode.woocommerce-checkout .hentry { margin: 0; padding: 0; border: 0; }
.gp-shop-mode .wc-block-cart, .gp-shop-mode .wc-block-checkout { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-6); }
.gp-shop-mode .wc-block-components-product-name { color: var(--c-ink); font-weight: 700; text-decoration: none; }
.gp-shop-mode .wc-block-components-product-name:hover { color: var(--c-primary); }
@media (max-width: 640px) {
  .gp-shop-mode .wc-block-cart, .gp-shop-mode .wc-block-checkout { padding: var(--sp-4); }
}
.gp-shop-mode.woocommerce-cart .site-main .hentry .entry-content, .gp-shop-mode.woocommerce-checkout .site-main .hentry .entry-content, .gp-shop-mode.woocommerce-cart .site-main .hentry .entry-header, .gp-shop-mode.woocommerce-checkout .site-main .hentry .entry-header { max-width: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }
