/*
Theme Name: Drafta3D
Theme URI: https://drafta3d.com.br
Author: Drafta3D
Description: Tema da loja Drafta3D — impressão 3D e soluções criativas. Compatível com WooCommerce, com ficha técnica de peça (material, dimensões, prazo de produção), seletor de cores de filamento, personalização por texto, formulário de peça sob encomenda com envio de arquivo STL e botão de WhatsApp.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drafta3d
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #15224a;          /* azul-marinho do logo */
  --ink-soft: #46527a;
  --brand: #1c8696;        /* turquesa ".com.br" */
  --brand-deep: #126f7d;
  --cyan: #39c6e0;         /* brilho do cubo */
  --filament: #e38b3f;     /* detalhe laranja do cubo */
  --bg: #f5f8fb;
  --surface: #ffffff;
  --plate: #eaf1f6;        /* mesa de impressão */
  --line: #d5dfe8;
  --danger: #b4232f;
  --ok: #17734a;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.15rem;
  --step-4: clamp(2.4rem, 4.6vw + 1rem, 4rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 8px;
  --r-md: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: var(--step-2); }

/* ---------- Botões ---------- */
.btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border: 2px solid var(--ink); border-radius: 10px;
  background: var(--ink); color: #fff;
  font: 600 var(--step-0)/1 var(--font-display);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.wc-block-components-button:not(.is-link):hover {
  background: var(--brand-deep); border-color: var(--brand-deep); color: #fff;
}
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce button.single_add_to_cart_button {
  background: var(--brand-deep); border-color: var(--brand-deep); color: #fff;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce button.single_add_to_cart_button:hover { background: var(--ink); border-color: var(--ink); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Faixa de aviso ---------- */
.notice-bar {
  background: var(--ink); color: #dbe7f5;
  font-size: var(--step--1); text-align: center; padding: .55em var(--gutter);
}
.notice-bar a { color: #fff; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner {
  display: flex; align-items: center; gap: 24px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 44px; height: auto; }
.brand .custom-logo { width: auto; max-height: 52px; }
.brand__name { font: 700 1.35rem/1 var(--font-display); letter-spacing: -.02em; }
.brand__name span { color: var(--brand); }
.brand__tag { display: block; font: 400 .72rem/1.2 var(--font-body); color: var(--ink-soft); margin-top: 4px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: .55em .8em; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; font: 500 1rem/1.2 var(--font-display);
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--plate); }
.main-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent;
  color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--plate); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 99px; background: var(--filament); color: var(--ink);
  font: 700 11px/19px var(--font-display); text-align: center;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }

.header-search { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }
.header-search[hidden] { display: none; }
.header-search form { display: flex; gap: 8px; }
.header-search input[type="search"] { flex: 1; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none; margin: 0;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .85em .6em; font-size: 1.1rem; }
  .header-actions { margin-left: auto; }
  .brand__tag { display: none; }
}

/* ---------- Formulários ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"],
input[type="password"], input[type="url"], select, textarea,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
  width: 100%; min-height: 48px; padding: .65em .85em;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font: inherit; color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(57,198,224,.35); outline-offset: 0; }
label { font-weight: 700; font-size: var(--step--1); display: block; margin-bottom: 6px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: .35em; }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 40ch; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Mesa de impressão: grade + peça surgindo camada por camada */
.plate {
  position: relative; aspect-ratio: 1 / 1; border-radius: 22px;
  background-color: var(--plate);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.plate__object {
  width: 62%; filter: drop-shadow(0 18px 18px rgba(21,34,74,.18));
  animation: print-up 2.4s steps(28, end) .2s both;
}
.plate__object img { width: 100%; border-radius: 12px; }
.plate__nozzle {
  position: absolute; left: 0; right: 0; height: 2px; bottom: 19%;
  background: linear-gradient(90deg, transparent, var(--filament) 20%, var(--filament) 80%, transparent);
  animation: nozzle 2.4s steps(28, end) .2s both;
  opacity: 0;
}
.plate__caption {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font: 500 .85rem/1.3 var(--font-display); color: var(--ink-soft);
  display: flex; justify-content: space-between;
}
@keyframes print-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nozzle {
  0% { bottom: 19%; opacity: 1; }
  99% { bottom: 81%; opacity: 1; }
  100% { bottom: 81%; opacity: 0; }
}

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 20px 18px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font: 600 1.05rem/1.3 var(--font-display); }
.facts span { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Seções ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--white { background: #fff; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: 6px 0 0; color: var(--ink-soft); max-width: 52ch; }
.section__head a { font: 600 1rem/1.2 var(--font-display); }

/* Categorias */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.cat__img { aspect-ratio: 4/3; background: var(--plate); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; }
.cat__body { padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cat__body strong { font: 600 1.1rem/1.25 var(--font-display); }
.cat__body span { font-size: var(--step--1); color: var(--ink-soft); white-space: nowrap; }
.cat:hover { border-color: var(--brand); color: var(--ink); }

/* Encomenda (passos reais em sequência) */
.custom { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 26px 64px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--brand); color: var(--brand-deep); background: #fff;
  font: 700 1.1rem/1 var(--font-display);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px;
  border-left: 2px dashed var(--line);
}
.steps strong { display: block; font: 600 var(--step-1)/1.3 var(--font-display); margin-bottom: 2px; }
.steps span { color: var(--ink-soft); }

/* Materiais */
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.material { padding: 24px; border-left: 1px solid var(--line); }
.material:first-child { border-left: 0; }
.material h3 { display: flex; align-items: center; gap: 10px; }
.material h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--dot, var(--brand)); }
.material p { margin: 0 0 .6em; color: var(--ink-soft); }
.material dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: var(--step--1); }
.material dt { font-weight: 700; }
.material dd { margin: 0; color: var(--ink-soft); }

/* Faixa WhatsApp */
.cta-band { background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #c9d6ea; max-width: 46ch; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

/* ---------- Rodapé ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 0; padding: 56px 0 28px; font-size: var(--step--1); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: 1rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); }
.pay-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pay-list span { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-weight: 700; color: var(--ink); }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1f9d55; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(21,34,74,.25);
}
.wa-float:hover { background: #17824a; color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Páginas genéricas ---------- */
.page-head { padding: clamp(32px, 5vw, 56px) 0 8px; }
.page-head h1 { font-size: var(--step-3); margin: 0; }
.content-area { padding: 24px 0 clamp(48px, 7vw, 96px); }
.entry-content > * + * { margin-top: 1em; }
.post-list { display: grid; gap: 28px; }

/* ---------- WooCommerce: lista de produtos ---------- */
.woocommerce .woocommerce-breadcrumb { font-size: var(--step--1); color: var(--ink-soft); margin: 0 0 20px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ink-soft); }
.woocommerce-products-header h1 { font-size: var(--step-3); }
.woocommerce .woocommerce-result-count { color: var(--ink-soft); font-size: var(--step--1); margin: 10px 0 20px; }
.woocommerce .woocommerce-ordering select { min-height: 44px; }

.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 32px; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 0 16px; display: flex; flex-direction: column; position: relative;
}
.woocommerce ul.products li.product:hover { border-color: var(--brand); }
.woocommerce ul.products li.product a img {
  margin: 0 0 14px; aspect-ratio: 1/1; object-fit: cover; background: var(--plate);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font: 600 1.05rem/1.3 var(--font-display); padding: 0 16px; color: var(--ink); margin-bottom: 6px;
}
.woocommerce ul.products li.product .price {
  padding: 0 16px; color: var(--brand-deep); font: 700 1.15rem/1.2 var(--font-display); margin-bottom: 12px;
}
.woocommerce ul.products li.product .price del { color: var(--ink-soft); font-weight: 400; font-size: .85em; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin: auto 16px 0; min-height: 42px; font-size: .95rem; }
.woocommerce ul.products li.product .added_to_cart { padding: 8px 16px 0; font-size: var(--step--1); }
.loop-prazo { padding: 0 16px 10px; font-size: .8rem; color: var(--ink-soft); }
.woocommerce span.onsale {
  min-height: 0; min-width: 0; line-height: 1; padding: 6px 10px; border-radius: 99px;
  background: var(--filament); color: var(--ink); font: 700 .8rem/1 var(--font-display);
  top: 12px; left: 12px; right: auto; margin: 0;
}
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  min-width: 44px; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 1000px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .woocommerce ul.products, .woocommerce-page ul.products, .woocommerce ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- WooCommerce: página de produto ---------- */
.woocommerce div.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius: var(--r-md); overflow: hidden; background: var(--plate); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; float: none !important; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: var(--r-sm); border: 2px solid transparent; opacity: .7; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { border-color: var(--brand); opacity: 1; }
.woocommerce div.product .product_title { font-size: var(--step-3); margin-bottom: .25em; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--brand-deep); font: 700 var(--step-2)/1.2 var(--font-display); margin-bottom: .2em;
}
.woocommerce div.product p.price del { color: var(--ink-soft); font-size: .7em; font-weight: 400; }
.woocommerce div.product p.price ins { text-decoration: none; }
.price-installments { color: var(--ink-soft); font-size: var(--step--1); margin: 0 0 1.2em; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--ink-soft); }
.woocommerce div.product form.cart { margin: 1.4em 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .quantity .qty { width: 84px; min-height: 52px; text-align: center; }
.woocommerce div.product form.cart .button { min-height: 52px; flex: 1; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 12px; flex-wrap: wrap; }
.woocommerce div.product form.cart .variations { margin-bottom: 1em; width: 100%; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; text-align: left; padding: 0; }
.woocommerce div.product form.cart .variations td { padding-bottom: 14px; }
.woocommerce div.product form.cart .reset_variations { font-size: var(--step--1); display: inline-block; margin-top: 8px; }
.woocommerce div.product .stock { font-weight: 700; }
.woocommerce div.product .stock.in-stock { color: var(--ok); }
.woocommerce div.product .stock.out-of-stock { color: var(--danger); }

/* Ficha técnica da peça */
.spec { margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.spec dt, .spec dd { margin: 0; padding: 11px 16px; border-top: 1px solid var(--line); }
.spec dt:first-of-type, .spec dt:first-of-type + dd { border-top: 0; }
.spec dt { font-weight: 700; font-size: var(--step--1); color: var(--ink-soft); }
.spec dd { font-family: var(--font-display); font-weight: 500; }
.spec__note { margin: 0; padding: 11px 16px; border-top: 1px dashed var(--line); font-size: var(--step--1); color: var(--ink-soft); background: var(--bg); border-radius: 0 0 var(--r-md) var(--r-md); }

/* Seletor de cor de filamento */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 6px 14px 6px 6px; border-radius: 99px; border: 2px solid var(--line); background: #fff;
  font: 500 .95rem/1 var(--font-display); color: var(--ink); cursor: pointer;
}
.swatch__dot { width: 30px; height: 30px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(21,34,74,.2); }
.swatch[data-plain] { padding-left: 14px; }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.swatch[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.swatch-label { font-size: var(--step--1); color: var(--ink-soft); margin-left: 6px; font-weight: 400; }

/* Personalização */
.personal { width: 100%; margin: 0 0 6px; }
.personal small { display: block; color: var(--ink-soft); margin-top: 6px; }

.trust { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--step--1); color: var(--ink-soft); }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand); margin-top: 2px; }

.woocommerce div.product .woocommerce-tabs { margin-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 24px; border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; margin: 0; padding: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 16px; font: 600 1rem/1 var(--font-display); color: var(--ink-soft); display: block; border-bottom: 3px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--brand); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 75ch; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { font-size: var(--step-2); }
.related > h2, .upsells > h2 { font-size: var(--step-2); margin-top: 32px; }

/* Avisos */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); padding: 14px 18px; list-style: none; margin: 0 0 20px;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-error { border-left-color: var(--danger); }
.woocommerce-message .button, .woocommerce-info .button { float: right; min-height: 38px; padding: .5em 1em; font-size: .9rem; }

/* Carrinho, checkout e conta */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; border-collapse: separate; }
.woocommerce table.shop_table th { font-family: var(--font-display); }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { background: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation li:first-child a { border-top: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--plate); font-weight: 700; }
.wc-block-cart, .wc-block-checkout { font-family: var(--font-body); }
.wc-block-components-product-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* ---------- Formulário de encomenda ---------- */
.quote { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(20px, 3vw, 32px); }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form .field { margin-bottom: 18px; }
.quote-form .hint { font-size: var(--step--1); color: var(--ink-soft); margin-top: 6px; }
.quote-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dropzone {
  position: relative; border: 2px dashed var(--line); border-radius: var(--r-md); background: var(--bg);
  padding: 22px; text-align: center; color: var(--ink-soft);
}
.dropzone.is-over { border-color: var(--brand); background: var(--plate); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone strong { color: var(--ink); display: block; font-family: var(--font-display); }
.dropzone__files { margin-top: 8px; font-size: var(--step--1); color: var(--ink); }
.quote-alert { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 20px; border: 1px solid var(--line); border-left-width: 4px; background: #fff; }
.quote-alert--ok { border-left-color: var(--ok); }
.quote-alert--error { border-left-color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: var(--step--1); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero__grid, .custom, .quote { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .materials { grid-template-columns: 1fr; }
  .material { border-left: 0; border-top: 1px solid var(--line); }
  .material:first-child { border-top: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .facts li { padding: 16px 12px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .quote-form .row { grid-template-columns: 1fr; }
  .hero__visual { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .plate__nozzle { display: none; }
}
.site-footer .muted { color: var(--ink-soft); max-width: 34ch; margin-top: 14px; }
.field-label { font-weight: 700; font-size: var(--step--1); display: block; margin-bottom: 6px; }
.quote__aside-title { font-size: var(--step-2); }
.dropzone svg { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--brand); }
.hero__lead--sm { font-size: var(--step-0); }
.content-area--shop { padding-top: 28px; }
.quote-alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled,
.woocommerce button.button.alt.disabled:hover, .woocommerce button.button.alt:disabled[disabled] {
  background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; opacity: .4;
}
.woocommerce div.product .product_meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-soft); display: grid; gap: 4px; }
.woocommerce div.product .single_variation_wrap .woocommerce-variation { margin-bottom: 12px; }
@media (max-width: 560px) {
  .site-header__inner { gap: 8px; min-height: 64px; }
  .main-nav { inset: 64px 0 auto 0; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 34px; }
  .brand__name { font-size: 1.1rem; }
  .header-actions { gap: 0; }
  .icon-btn { width: 40px; height: 40px; }
  .header-account { display: none; }
}
@media (min-width: 561px) { .main-nav .menu-account { display: none; } }
@media (max-width: 560px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat__body { flex-direction: column; gap: 2px; padding: 10px 12px; }
  .cat__body strong { font-size: 1rem; }
}
.entry-content > p { max-width: 70ch; }
