/*
Theme Name: Millers Patchs
Theme URI: https://millerspatchs.com.br
Author: Millers Patchs
Description: Tema WooCommerce da Millers Patchs — loja de patches de PES. Design escuro nas cores da marca (vermelho, preto e branco), com página inicial de alta conversão. Reveste a loja WooCommerce existente.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: millers
WC requires at least: 6.0
WC tested up to: 9.0
Tags: e-commerce, custom-colors, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   MILLERS PATCHS — Design System
   ========================================================= */
:root{
  --bg:#0b0b0d; --bg-2:#121214; --surface:#17171a; --surface-2:#1a1a1e69;
  --line:#2b2b30; --line-soft:#242427;
  --green:#e5121b; --green-bright:#ff3b42; --green-deep:#b60d15; --lime:#ff5a44;
  --gold:#ffcf4d; --wpp:#25d366;
  --text:#f6f6f7; --text-mute:#b6b3b8; --text-dim:#86828a;
  --radius:18px; --radius-sm:12px;
  --shadow:0 24px 60px -20px rgba(0,0,0,.75); --glow:0 0 40px -6px rgba(229,18,27,.55);
  --font-display:'Anton','Inter',system-ui,sans-serif;
  --font:'Inter',system-ui,-apple-system,sans-serif;
  --maxw:1180px;
}
*{box-sizing:border-box}
body{
  font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;
  margin:0;overflow-x:hidden;
  background-image:
    radial-gradient(900px 500px at 80% -8%, rgba(229,18,27,.10), transparent 60%),
    radial-gradient(700px 500px at 5% 12%, rgba(255,90,68,.06), transparent 55%);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button{font-family:inherit}
.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 22px}
.container.narrow{max-width:820px}

/* ---------- Buttons ---------- */
.btn-primary,.btn-ghost,.btn-wpp{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-weight:800;font-size:.98rem;letter-spacing:.2px;
  padding:15px 28px;border-radius:999px;transition:.22s ease;white-space:nowrap;cursor:pointer;
}
.btn-primary{background:linear-gradient(135deg,var(--green),var(--lime));color:#fff;box-shadow:var(--glow);border:none}
.btn-primary:hover{transform:translateY(-2px);filter:brightness(1.06);color:#fff}
.btn-ghost{background:rgba(255,255,255,.03);color:var(--text);border:1.5px solid var(--line)}
.btn-ghost:hover{border-color:var(--green);color:var(--green-bright);background:rgba(229,18,27,.06)}
.btn-wpp{background:var(--wpp);color:#04240f;border:none}
.btn-wpp:hover{transform:translateY(-2px);filter:brightness(1.07);color:#04240f}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{position:sticky;top:0;z-index:60;backdrop-filter:blur(14px);background:rgba(11,11,13,.72);border-bottom:1px solid transparent;transition:.3s ease}
.site-header.scrolled{background:rgba(11,11,13,.94);border-bottom-color:var(--line-soft)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:72px;gap:20px}
.brand{display:flex;align-items:center;gap:11px;font-family:var(--font-display);font-size:1.35rem;letter-spacing:1px;color:var(--text)}
.brand-mark{width:40px;height:40px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;box-shadow:0 4px 16px rgba(229,18,27,.45);flex-shrink:0}
.brand-mark svg{width:24px;height:24px}
.brand-accent{color:var(--green)}
.main-nav{display:flex;gap:30px}
.main-nav a{font-weight:600;font-size:.95rem;color:var(--text-mute);position:relative;transition:.2s}
.main-nav a:hover{color:var(--text)}
.main-nav a::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:2px;background:var(--green);transition:.25s}
.main-nav a:hover::after{width:100%}
.header-actions{display:flex;align-items:center;gap:14px}
.btn-wpp-header{padding:10px 18px;font-size:.9rem}
.cart-btn{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;border:1.5px solid var(--line);color:var(--text);transition:.2s}
.cart-btn:hover{border-color:var(--green);color:var(--green)}
.cart-count{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--green);color:#fff;font-size:.72rem;font-weight:900;display:grid;place-items:center;box-shadow:0 0 0 3px var(--bg)}
.menu-toggle{display:none;flex-direction:column;gap:5px;width:44px;height:44px;justify-content:center;align-items:center;border:1.5px solid var(--line);border-radius:12px;background:none;cursor:pointer}
.menu-toggle span{width:20px;height:2px;background:var(--text);border-radius:2px;transition:.25s}
.site-content{min-height:40vh}

/* =========================================================
   HERO
   ========================================================= */
.hero{position:relative;overflow:hidden;padding:96px 0 0;isolation:isolate}
.hero-pitch{position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,transparent 40%,var(--bg) 96%),repeating-linear-gradient(90deg,#101013 0 90px,#17171b 90px 180px);opacity:.9}
.hero-glow{position:absolute;border-radius:50%;filter:blur(90px);z-index:-1;opacity:.55;animation:float 9s ease-in-out infinite}
.hero-glow-1{width:520px;height:520px;background:radial-gradient(circle,rgba(229,18,27,.55),transparent 70%);top:-160px;right:-80px}
.hero-glow-2{width:440px;height:440px;background:radial-gradient(circle,rgba(255,90,68,.35),transparent 70%);bottom:40px;left:-120px;animation-delay:-4s}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-26px)}}
.hero-inner{text-align:center;padding-bottom:70px;display:flex;flex-direction:column;align-items:center}
.hero-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;background:rgba(229,18,27,.1);border:1px solid rgba(229,18,27,.3);color:var(--green-bright);font-weight:700;font-size:.85rem;letter-spacing:.4px;margin-bottom:26px}
.hero-title{font-family:var(--font-display);font-weight:400;font-size:clamp(2.4rem,6.2vw,5rem);line-height:.98;letter-spacing:.5px;text-transform:uppercase;margin:0 0 22px}
.grad{background:linear-gradient(120deg,#ff5a44,#e5121b,#ff3b42);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero-sub{max-width:660px;color:var(--text-mute);font-size:1.12rem;margin:0 0 34px}
.hero-sub strong{color:var(--text)}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-bottom:56px}
.hero-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;width:100%;max-width:760px}
.stat{background:var(--surface-2);border:1px solid var(--line-soft);border-radius:var(--radius-sm);padding:20px 12px;backdrop-filter:blur(6px)}
.stat-num{display:block;font-family:var(--font-display);font-size:2rem;color:var(--green-bright);line-height:1}
.stat-label{font-size:.82rem;color:var(--text-dim);font-weight:600}
.hero-marquee{border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);background:rgba(229,18,27,.04);overflow:hidden;padding:14px 0}
.marquee-track{display:flex;gap:26px;white-space:nowrap;font-family:var(--font-display);font-size:1.05rem;letter-spacing:1.5px;color:var(--text-dim);animation:marquee 26s linear infinite}
.marquee-track span:nth-child(odd){color:var(--green)}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* =========================================================
   SECTIONS
   ========================================================= */
.section{padding:90px 0}
.section-alt{background:linear-gradient(180deg,var(--bg-2),transparent)}
.section-head{text-align:center;max-width:640px;margin:0 auto 48px}
.eyebrow{display:inline-block;color:var(--green);font-weight:800;font-size:.82rem;letter-spacing:2.5px;text-transform:uppercase;margin-bottom:12px}
.section-title{font-family:var(--font-display);font-weight:400;font-size:clamp(1.9rem,4vw,3rem);text-transform:uppercase;letter-spacing:.5px;line-height:1.05;margin:0}
.section-desc{color:var(--text-mute);margin-top:14px}

/* ---------- Grid + Card de produto ---------- */
.product-grid,.woocommerce ul.products,ul.products{
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px;
  margin:0;padding:0;list-style:none;
}
.woocommerce ul.products li.product,ul.products li.product,.card{
  position:relative;display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius);
  overflow:hidden;transition:.28s ease;width:auto!important;margin:0!important;float:none!important;padding:0!important;
}
.card:hover,.woocommerce ul.products li.product:hover{transform:translateY(-6px);border-color:var(--green-deep);box-shadow:var(--shadow)}
.card-banner{position:relative;height:220px;display:grid;place-items:center;overflow:hidden;background:#0a0a0c}
.card-banner img{width:100%;height:100%;object-fit:cover;object-position:center;position:absolute;inset:0;margin:0}
.card-tagline{position:absolute;top:12px;left:12px;z-index:2;font-family:var(--font-display);font-size:.72rem;letter-spacing:2px;padding:5px 10px;border-radius:6px;background:var(--green);color:#fff;text-transform:uppercase}
.card-media-link{display:block}
.card-title-link{color:inherit}
.card-title-link:hover .card-title{color:var(--green-bright)}
.card-body{padding:18px 18px 20px;display:flex;flex-direction:column;flex:1;gap:12px}
.card-title{font-weight:800;font-size:1rem;line-height:1.3;transition:.15s;margin:0}
.card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:6px}
.card-price{font-family:var(--font-display);font-size:1.5rem;color:var(--text)}
.card-price .woocommerce-Price-amount{color:var(--text)}
.card-price del{color:var(--text-dim);font-size:.9rem;margin-right:6px}
.card-price ins{text-decoration:none;color:var(--green-bright)}
/* Botão "comprar" do card — estilizado dentro e fora do contexto .woocommerce */
.add-btn.button,.card .add-btn.button{
  display:inline-flex;align-items:center;gap:7px;padding:11px 16px;font-size:.85rem;
  border-radius:11px;margin:0;border:none;font-weight:800;
  background:linear-gradient(135deg,var(--green),var(--lime));color:#fff;transition:.2s;
}
.add-btn.button:hover{filter:brightness(1.08);color:#fff}
.add-btn svg{width:17px;height:17px}

/* =========================================================
   STEPS / FEATURES / TESTI / FAQ / CTA / FOOTER
   ========================================================= */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.step{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius);padding:34px 26px}
.step-num{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;font-family:var(--font-display);font-size:1.5rem;background:linear-gradient(135deg,var(--green),var(--lime));color:#fff;margin-bottom:18px}
.step h3{font-size:1.15rem;margin:0 0 8px}
.step p{color:var(--text-mute);font-size:.96rem;margin:0}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.feature{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius);padding:28px 22px;transition:.25s}
.feature:hover{border-color:var(--green-deep);transform:translateY(-4px)}
.feature h3{font-size:1.08rem;margin:0 0 7px;color:var(--green-bright)}
.feature p{color:var(--text-mute);font-size:.92rem;margin:0}
.testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.testi{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius);padding:28px;margin:0}
.stars{color:var(--gold);letter-spacing:3px;margin-bottom:14px}
.testi blockquote{font-size:1.02rem;line-height:1.55;margin:0 0 16px}
.testi figcaption{color:var(--text-dim);font-weight:700;font-size:.9rem}
.faq{display:flex;flex-direction:column;gap:12px}
.faq-item{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius-sm);overflow:hidden}
.faq-item summary{list-style:none;cursor:pointer;padding:20px 22px;font-weight:700;font-size:1.02rem;display:flex;justify-content:space-between;align-items:center;gap:14px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:1.5rem;color:var(--green);transition:.25s;flex-shrink:0}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item p{padding:0 22px 22px;color:var(--text-mute);margin:0}
.cta-band{position:relative;overflow:hidden;padding:70px 0;background:linear-gradient(120deg,rgba(229,18,27,.14),rgba(255,90,68,.08));border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap}
.cta-inner h2{font-family:var(--font-display);font-size:clamp(1.8rem,3.5vw,2.6rem);text-transform:uppercase;line-height:1.05;margin:0}
.cta-inner p{color:var(--text-mute);margin:8px 0 0;max-width:480px}
.site-footer{background:var(--bg-2);border-top:1px solid var(--line-soft);padding:56px 0 26px;margin-top:40px}
.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;padding-bottom:36px}
.footer-brand p{color:var(--text-dim);margin:14px 0 0;max-width:340px;font-size:.94rem}
.footer-col h4{font-size:.95rem;margin:0 0 14px;color:var(--text)}
.footer-col a{display:block;color:var(--text-mute);padding:5px 0;font-size:.92rem;transition:.2s}
.footer-col a:hover{color:var(--green)}
.footer-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:24px;border-top:1px solid var(--line-soft);color:var(--text-dim);font-size:.84rem}
.wpp-float{position:fixed;bottom:24px;right:24px;z-index:70;width:60px;height:60px;border-radius:50%;background:var(--wpp);color:#fff;display:grid;place-items:center;box-shadow:0 10px 30px rgba(37,211,102,.45);transition:.25s;animation:pulse 2.6s ease-in-out infinite}
.wpp-float:hover{transform:scale(1.08)}
@keyframes pulse{0%,100%{box-shadow:0 10px 30px rgba(37,211,102,.45)}50%{box-shadow:0 10px 40px rgba(37,211,102,.75)}}

/* =========================================================
   WOOCOMMERCE — tema geral
   ========================================================= */
.woo-container{padding-top:50px;padding-bottom:70px}
.woo-container>.page-title{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.5px;font-weight:400;font-size:clamp(1.9rem,4vw,3rem);text-align:center;margin:0 0 6px}
.woo-container>.woocommerce-result-count{display:block;text-align:center;color:var(--text-dim);margin:0 0 22px}
.woo-container .woocommerce-ordering{display:flex;justify-content:center;float:none;margin:0 0 28px}
.woo-container .woocommerce-ordering select{min-width:220px}
.woocommerce-products-header{text-align:center;margin-bottom:34px}
.woocommerce-products-header__title,.woocommerce .page-title{font-family:var(--font-display)!important;text-transform:uppercase;letter-spacing:.5px;font-size:clamp(1.9rem,4vw,3rem);font-weight:400}
.woocommerce-products-header__subtitle,.term-description{color:var(--text-mute)}
.woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{color:var(--text-mute)}
.woocommerce .woocommerce-ordering select{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 10px}

/* Botões WooCommerce */
.woocommerce #respond input#submit,
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce .button,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce #respond input#submit.alt{
  background:linear-gradient(135deg,var(--green),var(--lime));color:#fff;border:none;border-radius:999px;
  font-weight:800;padding:13px 26px;transition:.2s;text-transform:none;
}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce .button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce #respond input#submit:hover{
  background:linear-gradient(135deg,var(--green),var(--lime));filter:brightness(1.08);color:#fff;
}
.woocommerce a.button.added::after{color:#fff}
.woocommerce .button.loading{opacity:.7}

/* Preço */
.woocommerce div.product p.price,.woocommerce div.product span.price,
.woocommerce ul.products li.product .price{color:var(--text)}
.woocommerce div.product p.price,.woocommerce div.product span.price{font-family:var(--font-display);font-size:2.2rem;color:var(--green-bright)}
.woocommerce div.product p.price del{color:var(--text-dim);font-size:1.2rem}
.woocommerce div.product p.price ins{text-decoration:none;color:var(--green-bright)}

/* Página de produto único */
.single-product div.product{display:grid;grid-template-columns:1fr 1fr;gap:44px}
.single-product div.product .woocommerce-product-gallery{margin:0}
.single-product div.product .product_title{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.5px;font-weight:400;font-size:clamp(1.7rem,3vw,2.6rem);margin:0 0 8px}
.single-product .woocommerce-product-gallery img{border-radius:var(--radius)}
.single-product div.product .woocommerce-product-details__short-description{color:var(--text-mute)}
.single-product div.product form.cart{margin:20px 0}
.single-product .quantity input.qty{background:var(--bg-2);border:1px solid var(--line);color:var(--text);border-radius:8px;padding:10px}
.woocommerce div.product .woocommerce-tabs{grid-column:1/-1}
.woocommerce div.product .woocommerce-tabs ul.tabs{border:none}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{border-color:var(--line)}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:var(--surface);border-color:var(--line-soft);border-radius:10px 10px 0 0}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--bg-2)}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--text-mute)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--text)}
.woocommerce div.product .woocommerce-tabs .panel{color:var(--text-mute)}
.woocommerce .related.products>h2,.woocommerce .upsells>h2{font-family:var(--font-display);text-transform:uppercase}
@media(max-width:768px){.single-product div.product{grid-template-columns:1fr}}

/* Tabelas: carrinho / checkout / conta */
.woocommerce table.shop_table{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);border-collapse:separate}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-top-color:var(--line-soft);color:var(--text)}
.woocommerce-cart table.cart img{border-radius:8px}
.woocommerce .cart-collaterals .cart_totals,.woocommerce-checkout #order_review,.woocommerce-checkout #customer_details{color:var(--text)}
.woocommerce .cart_totals h2,.woocommerce-checkout h3{font-family:var(--font-display);text-transform:uppercase}

/* Formulários */
.woocommerce form .form-row label,.woocommerce-checkout label{color:var(--text-mute)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,
.woocommerce-checkout input.input-text,.woocommerce select,.select2-container .select2-selection{
  background:var(--bg-2)!important;border:1px solid var(--line)!important;color:var(--text)!important;
  border-radius:10px!important;padding:12px 14px!important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--text);line-height:normal}
.woocommerce #payment,.woocommerce-checkout #payment{background:var(--surface);border-radius:var(--radius)}
.woocommerce #payment div.payment_box{background:var(--bg-2);color:var(--text-mute)}

/* Avisos */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews{
  background:var(--surface);border-top:3px solid var(--green);color:var(--text);border-radius:8px;
}
.woocommerce-message a,.woocommerce-info a{color:var(--green-bright)}

/* Paginação */
.woocommerce nav.woocommerce-pagination ul{border:none;gap:8px;display:inline-flex}
.woocommerce nav.woocommerce-pagination ul li{border:none;background:var(--surface);border-radius:8px}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{color:var(--text)}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--green);color:#fff;border-radius:8px}

.entry-content a{color:var(--green-bright)}

/* Instalação Remota — adicional no checkout */
.millers-remote-addon{margin:18px 0;padding:14px 16px;border:1.5px dashed var(--green);border-radius:12px;background:rgba(229,18,27,.05)}
.millers-remote-addon label{display:flex;gap:11px;align-items:flex-start;cursor:pointer;font-size:.95rem;color:var(--text);line-height:1.5}
.millers-remote-addon input{width:20px;height:20px;margin-top:2px;accent-color:var(--green);flex-shrink:0}
.millers-remote-price{color:var(--green-bright);font-weight:800;white-space:nowrap}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:900px){
  .main-nav,.btn-wpp-header{display:none}
  .menu-toggle{display:flex}
  .site-header.nav-open .main-nav{display:flex;flex-direction:column;position:absolute;top:72px;left:0;right:0;background:var(--bg-2);border-bottom:1px solid var(--line);padding:18px 22px;gap:6px}
  .site-header.nav-open .main-nav a{padding:10px 0}
  .feature-grid,.steps,.testi-grid{grid-template-columns:1fr 1fr}
  .footer-inner{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .section{padding:64px 0}
  .hero{padding-top:60px}
  .hero-stats{grid-template-columns:1fr 1fr}
  .feature-grid,.steps,.testi-grid,.footer-inner{grid-template-columns:1fr}
  .hero-stats .stat-num{font-size:1.6rem}
  .cta-inner{flex-direction:column;align-items:flex-start}
}
