/*
Theme Name: Ideart
Theme URI: https://ideart.com.br
Author: Ideart
Description: Tema WordPress para loja de peças impressas em 3D (esculturas, personagens de anime e variedades), integrado ao WooCommerce. Cores baseadas na logo: grafite e laranja.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ideart
Tags: e-commerce, woocommerce, custom-logo, custom-menu, responsive-layout
*/

:root {
	--ink: #1A2024;
	--ink-2: #2B3236;
	--orange: #FF8A00;
	--orange-dark: #D97200;
	--paper: #FFFFFF;
	--soft: #F4F5F5;
	--line: #E2E4E5;
	--muted: #5B6468;
	--radius: 14px;
	--font-head: 'Poppins', 'Segoe UI', sans-serif;
	--font-body: 'DM Sans', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* Botões */
.btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
	padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
	background: var(--orange); color: var(--ink); transition: background .15s, color .15s, border-color .15s;
}
.btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--orange-dark); color: var(--ink); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }

/* Faixa superior e cabeçalho */
.topbar { background: var(--ink); color: #fff; text-align: center; font-size: .875rem; padding: 8px 20px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand .custom-logo, .brand img { width: 68px; height: 68px; object-fit: contain; display: block; }
.main-nav { margin-left: auto; }
.main-nav ul, .site-footer ul { list-style: none; margin: 0; padding: 0; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; font-weight: 700; padding: 6px 0; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav .current-menu-item > a { border-bottom-color: var(--orange); }
.header-actions { display: flex; gap: 18px; align-items: center; font-weight: 700; }
.header-actions a { text-decoration: none; }
.cart-link { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; }
.cart-count { display: inline-block; min-width: 1.6em; text-align: center; background: var(--orange); color: var(--ink); border-radius: 999px; margin-left: 6px; font-size: .85em; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -8px; }
.nav-toggle .bars::after { position: absolute; top: 8px; }

/* Início com vídeo */
.hero { position: relative; background: var(--ink); color: #fff; padding: 72px 0 110px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.hero-copy p { font-size: 1.15rem; color: #D6DADC; max-width: 34em; margin-bottom: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.video-frame { border-radius: var(--radius); box-shadow: 14px 14px 0 var(--orange); background: #000; }
.video-ratio { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.video-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { display: grid; place-items: center; text-align: center; background: var(--paper); color: var(--ink); padding: 20px; }
.video-empty img { margin-bottom: 8px; }
.video-empty p { margin: 0; font-size: .95rem; color: var(--muted); }
.hero-filament { position: absolute; left: 0; bottom: 18px; width: 100%; height: 50px; color: var(--orange); }
.filament path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s ease-out .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Seções */
.section { padding: 80px 0; }
.section-soft { background: var(--soft); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 32px; }
.section-title-spaced { margin-top: 56px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { position: relative; display: flex; align-items: flex-end; min-height: 280px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: var(--ink); }
.cat-card.cat-1 { background: var(--orange); color: var(--ink); }
.cat-card.cat-2 { background: var(--ink-2); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-card:hover img { transform: scale(1.04); }
.cat-text { position: relative; display: block; padding: 22px; width: 100%; background: linear-gradient(transparent, rgba(26,32,36,.85)); color: #fff; }
.cat-card.cat-1 .cat-text { background: none; color: var(--ink); }
.cat-text strong { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.15; }

.steps { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { counter-increment: passo; border-top: 6px solid var(--orange); background: var(--soft); border-radius: 0 0 var(--radius) var(--radius); padding: 24px; }
.steps li::before { content: counter(passo); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.cta { background: var(--orange); color: var(--ink); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta p { margin: 0; }
.cta .btn-primary { background: var(--ink); color: #fff; }
.cta .btn-primary:hover { background: var(--ink-2); color: #fff; }

/* Páginas internas */
.page-wrap { padding: 56px 0 80px; }
.entry-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.entry-title a { text-decoration: none; }
.entry-content { max-width: 75ch; }
.woo-wrap .entry-content, .woocommerce-page .entry-content { max-width: none; }

/* WooCommerce */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; margin: 0; float: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; position: relative; }
.woocommerce ul.products li.product a img { border-radius: 10px; margin-bottom: 12px; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; padding: 0 0 6px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.woocommerce ul.products li.product .button { margin-top: auto; text-align: center; }
.woocommerce span.onsale { background: var(--ink); color: #fff; min-height: 0; min-width: 0; line-height: 1; padding: 8px 12px; border-radius: 999px; top: 20px; left: 20px; right: auto; margin: 0; }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.woocommerce div.product form.cart .button { padding: 14px 32px; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: .9rem; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--orange) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--orange) !important; }
.woocommerce table.shop_table { border-radius: var(--radius); }
.woocommerce #payment { background: var(--soft); border-radius: var(--radius); }
.woocommerce #payment div.payment_box { background: #fff; color: var(--ink); }
.woocommerce #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-pagination .page-numbers li .current { background: var(--orange); color: var(--ink); }

/* Rodapé */
.site-footer { background: var(--ink); color: #D6DADC; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 12px; }
.footer-title { font-size: 1.05rem; color: var(--orange); margin-bottom: 12px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #38424A; margin-top: 40px; padding: 20px 0; font-size: .9rem; }

/* Responsivo */
@media (max-width: 1000px) {
	.hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.cat-grid, .steps { grid-template-columns: 1fr; }
	.cat-card { min-height: 200px; }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; margin: 0; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 12px; }
	.header-actions .account-link { display: none; }
	.footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.woocommerce ul.products { grid-template-columns: 1fr; }
	.video-frame { box-shadow: 8px 8px 0 var(--orange); }
	.hero { padding: 48px 0 90px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.filament path { animation: none; stroke-dashoffset: 0; }
	.cat-card img { transition: none; }
}
