/*
Theme Name: MGV
Theme URI: https://mgvacessorios.com.br
Author: MGV Indústria de Acessórios
Author URI: https://mgvacessorios.com.br
Description: Tema personalizado para o catálogo de produtos MGV — acessórios para indústria moveleira. B2B, sem carrinho. WooCommerce em modo catálogo.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mgv
Tags: custom-menu, custom-logo, featured-images, woocommerce
*/


/* ==================================================
   Reset Global
   ================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==================================================
   Design Tokens — Identidade Visual MGV
   ================================================== */
:root {
    /* ---- Cores ---- */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-light: #ebebeb;
    --color-gray-mid: #8a8a8a;
    --color-accent: #D9001B;
    /* Vermelho profundo e vibrante, sofisticado */
    --color-accent-dark: #A60015;
    /* Hover escurecido do vermelho vibrante */

    /* ---- Tipografia ---- */
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-drama: 'Cormorant Garamond', serif;

    /* ---- Espaçamento ---- */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;
    --spacing-3xl: 128px;

    /* ---- Layout ---- */
    --container-max: 1280px;
    --container-wide: 1440px;

    /* ---- Bordas — máximo 4px ---- */
    --radius-none: 0;
    --radius-sm: 2px;
    --radius-md: 4px;

    /* ---- Transições — suaves, sem bounce ---- */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* ==================================================
   Base — Tipografia e Corpo
   ================================================== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    background-color: var(--color-white);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-black);
    background-color: var(--color-white);
}

/* =========================================================
   Tela de abertura — preenchimento da marca de baixo para cima
   ========================================================= */
html.mgv-loader-active,
html.mgv-loader-active body {
    overflow: hidden;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 32px;
    background-color: var(--color-white);
    opacity: 1;
    visibility: visible;
    transition:
        background-color 850ms cubic-bezier(0.76, 0, 0.24, 1),
        opacity 180ms ease,
        visibility 180ms ease;
}

.mgv-intro-seen .site-loader {
    display: none;
}

.site-loader.is-transitioning {
    background-color: transparent;
}

.site-loader.is-finished {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader__logo {
    position: relative;
    width: min(680px, 84vw);
    aspect-ratio: 916 / 272;
    transform-origin: center;
    will-change: transform, opacity;
}

.site-loader__logo-layer {
    position: absolute;
    inset: 0;
    background: var(--color-black);
    -webkit-mask-image: var(--loader-logo);
    mask-image: var(--loader-logo);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.site-loader__logo-layer--fill {
    background: var(--color-accent);
    clip-path: inset(100% 0 0 0);
    will-change: clip-path;
}

.site-loader.is-filling .site-loader__logo-layer--fill {
    animation: mgv-logo-level-fill 2400ms cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

.site-loader.is-loaded .site-loader__logo-layer--fill {
    clip-path: inset(0);
}

@keyframes mgv-logo-level-fill {
    from {
        clip-path: inset(100% 0 0 0);
    }
    to {
        clip-path: inset(0);
    }
}

.site-branding img.is-loader-target {
    opacity: 0;
}

.site-loader__fallback {
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: clamp(42px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

/* Mobile navigation: one consistent surface, compact and anchored to the bar. */
@media (max-width: 1024px) {
    body.menu-open #masthead .floating-header__bar,
    #mobile-menu .floating-header__mobile-panel {
        background: #f5f4f2;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #masthead .floating-header__mobile-overlay {
        position: absolute;
        inset: 100% 0 auto;
        padding: 8px 16px 16px;
    }

    #mobile-menu .floating-header__mobile-panel {
        width: var(--mobile-panel-width, 100%);
        min-height: 0;
        max-height: var(--mobile-panel-height, calc(100dvh - 140px));
        overflow-y: auto;
        overscroll-behavior: contain;
        justify-content: flex-start;
        gap: 24px;
        padding: 24px 22px;
        border-radius: 24px;
    }

    #mobile-menu .floating-header__mobile-link {
        font-size: clamp(28px, 7.5vw, 34px);
        line-height: 1.25;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-loader {
        transition-duration: 120ms;
    }

    .site-loader__logo-layer--fill {
        animation: none !important;
        clip-path: inset(0);
    }
}

/* ==================================================
   Footer editorial MGV — contraste claro após o CTA
   ================================================== */
body .site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
    background: #e9e0d4;
    color: #171613;
}

body .site-footer::after {
    content: "MGV";
    position: absolute;
    right: -0.05em;
    bottom: -0.25em;
    color: rgba(23, 22, 19, 0.035);
    font-family: var(--font-heading);
    font-size: clamp(180px, 28vw, 500px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.09em;
    pointer-events: none;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - clamp(40px, 8vw, 144px)), 1540px);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

.site-footer .footer-heading {
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid rgba(23, 22, 19, 0.22);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.site-footer .footer-heading__track {
    display: flex;
    width: max-content;
    padding: 26px 0;
    animation: footer-words-marquee 22s linear infinite;
}
.site-footer .footer-heading__group {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0;
}
.site-footer .footer-heading__group span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.site-footer .footer-heading__group span::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-inline: clamp(14px, 1.8vw, 24px);
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    transform: rotate(45deg);
    flex: 0 0 auto;
}
@keyframes footer-words-marquee {
    to { transform: translateX(-50%); }
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 32px);
    padding: clamp(78px, 8vw, 126px) 0 clamp(88px, 9vw, 144px);
    border-bottom: 1px solid rgba(23, 22, 19, 0.22);
}

.site-footer .footer-brand {
    grid-column: 1 / span 3;
}

.site-footer .footer-top > .footer-links:nth-child(2) {
    grid-column: 5 / span 2;
}

.site-footer .footer-top > .footer-links:nth-child(3) {
    grid-column: 7 / span 2;
}

.site-footer .footer-top > .footer-links:nth-child(4) {
    grid-column: 9 / span 2;
}

.site-footer .footer-top > .footer-links:nth-child(5) {
    grid-column: 11 / span 2;
}

.site-footer .footer-brand__eyebrow {
    margin: 0 0 34px;
    color: var(--color-accent);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
}

.site-footer .footer-brand__logo {
    margin-bottom: 30px;
}

.site-footer .footer-brand__logo img {
    width: auto;
    height: clamp(54px, 5vw, 76px);
    filter: brightness(0);
}

.site-footer .footer-brand__logo .site-title,
.site-footer .footer-brand__logo .site-title a {
    color: #171613;
}

.site-footer .footer-brand__tagline {
    max-width: 30ch;
    margin: 0 0 38px;
    color: rgba(23, 22, 19, 0.65);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.site-footer .footer-social {
    display: block;
    max-width: 240px;
}

.site-footer .footer-social__link {
    display: grid;
    grid-template-columns: 24px 1fr 20px;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid rgba(23, 22, 19, 0.28);
    border-radius: 0;
    color: #171613;
    transition: color 250ms ease, border-color 250ms ease, background-color 250ms ease;
}
.site-footer .footer-social__link > svg:first-child { width: 20px; height: 20px; }
.site-footer .footer-social__text { display: grid; gap: 2px; text-align: left; }
.site-footer .footer-social__text small { color: rgba(23, 22, 19, .58); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer .footer-social__text strong { font-size: 14px; font-weight: 600; }
.site-footer .footer-social__arrow { width: 18px; height: 18px; fill: none; stroke: var(--color-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms ease; }

.site-footer .footer-social__link:hover,
.site-footer .footer-social__link:focus-visible {
    border-color: #171613;
    background: #171613;
    color: #fff;
}
.site-footer .footer-social__link:hover .footer-social__text small,
.site-footer .footer-social__link:focus-visible .footer-social__text small { color: rgba(255, 255, 255, .62); }
.site-footer .footer-social__link:hover .footer-social__arrow,
.site-footer .footer-social__link:focus-visible .footer-social__arrow {
    stroke: #fff;
    transform: translate(3px, -3px);
}

.site-footer .footer-links h4 {
    margin: 0 0 30px;
    color: rgba(23, 22, 19, 0.52);
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer .footer-links li {
    margin: 0 0 13px;
}

.site-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #171613;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: color 250ms ease, transform 250ms ease;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
    color: var(--color-accent);
    transform: translateX(4px);
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 0;
    padding: 28px 0 34px;
    border: 0;
}

.site-footer .footer-bottom__copy,
.site-footer .footer-bottom__links a {
    color: rgba(23, 22, 19, 0.56);
    font-size: 11px;
}

.site-footer .footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-footer .footer-bottom__links a:hover,
.site-footer .footer-bottom__links a:focus-visible {
    color: #171613;
}

.site-footer .footer-back-to-top {
    gap: 8px;
}

.site-footer .footer-back-to-top svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

@media (max-width: 1024px) {
    .site-footer .footer-top {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .site-footer .footer-brand {
        grid-column: 1 / span 3;
    }

    .site-footer .footer-top > .footer-links:nth-child(2) {
        grid-column: 4 / span 2;
    }

    .site-footer .footer-top > .footer-links:nth-child(3) {
        grid-column: 6 / span 2;
    }

    .site-footer .footer-top > .footer-links:nth-child(4) {
        grid-column: 4 / span 2;
    }

    .site-footer .footer-top > .footer-links:nth-child(5) {
        grid-column: 6 / span 2;
    }
}

@media (max-width: 768px) {
    .site-footer > .container {
        width: calc(100% - 40px);
    }

    .site-footer .footer-heading {
        padding: 22px 0;
        font-size: 8px;
    }

    .site-footer .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 20px;
        padding: 72px 0 82px;
    }

    .site-footer .footer-brand,
    .site-footer .footer-top > .footer-links:nth-child(n) {
        grid-column: auto;
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 12px;
    }

    .site-footer .footer-brand__logo img {
        height: 58px;
        margin: 0;
    }

    .site-footer .footer-links h4 {
        margin-bottom: 20px;
        font-size: 9px;
    }

    .site-footer .footer-links a {
        min-height: 40px;
        font-size: 14px;
    }

    .site-footer .footer-bottom {
        align-items: flex-start;
        gap: 22px;
        padding: 26px 0 32px;
        margin: 0;
        text-align: left;
    }

    .site-footer .footer-bottom__links {
        justify-content: flex-start;
        gap: 8px 20px;
    }

    .site-footer .footer-bottom__links a {
        min-height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-heading__track { animation: none; transform: none; }
    .site-footer .footer-social__link,
    .site-footer .footer-links a {
        transition: none;
    }
}

/* Textura mantida apenas nas páginas internas; a home usa fundos sólidos. */
body:not(.home)::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
}

/* ==================================================
   Animações Globais
   ================================================== */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* As animacoes reveal sao controladas em assets/css/main.css via IntersectionObserver. */


/* ---- Seleção de texto — cor da marca ---- */
::selection {
    background-color: var(--color-accent);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ---- Títulos — DM Sans ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    color: var(--color-black);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

p {
    margin-bottom: 1.5em;
    color: var(--color-black);
}

/* ---- Links ---- */
a {
    color: var(--color-black);
    text-decoration: none;
    transition: color var(--transition-base), transform var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* ---- Imagens ---- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================================================
   Layout — Container
   ================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container--wide {
    max-width: var(--container-wide);
}

.container-fluid {
    width: 100%;
    margin: 0 auto;
    padding: 0 4%;
    /* Move logo e botão mais para o centro */
}

/* ==================================================
   Botões
   ================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), color var(--transition-base);
}

.btn:hover {
    transform: scale(1.05);
}

/* Pseudo-elemento para fundo deslizante no hover */
.btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    border-radius: inherit;
    transition: background-color 0.4s ease;
}


/* CTA principal — vermelho tático */
.btn--accent {
    color: var(--color-white);
}

.btn--accent::before {
    background-color: var(--color-accent);
}

.btn--accent:hover {
    color: var(--color-white);
}

.btn--accent:hover::before {
    background-color: var(--color-accent-dark);
}

/* CTA secundário — contorno preto */
.btn--outline {
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
}

.btn--outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* CTA largo (single product) */
.btn--full {
    width: 100%;
    height: 52px;
}

/* ==================================================
   Header — Floating Foundation
   ================================================== */
.site-header.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 20px 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.floating-header.is-loaded {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .site-header.floating-header {
    z-index: 1001;
}

.floating-header__bar {
    width: min(90vw, 1200px);
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 9px 12px 9px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.floating-header.is-scrolled .floating-header__bar,
body.menu-open .site-header.floating-header .floating-header__bar {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.floating-header-spacer {
    height: 106px;
}

.floating-header__page-backdrop {
    position: fixed;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
}

body.menu-open .floating-header__page-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-branding {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-self: start;
}

.site-branding a {
    display: inline-flex;
    align-items: center;
}

.site-branding img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition:
        filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-branding .site-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-branding .site-title a {
    color: var(--color-black);
}

.site-branding .site-title a:hover {
    color: var(--color-black);
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-self: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation .menu-separator {
    color: rgba(0, 0, 0, 0.42);
    font-size: 14px;
    font-weight: 400;
    user-select: none;
}

.main-navigation a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-black);
    white-space: nowrap;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    background-color: currentColor;
    transition: transform var(--transition-base);
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
    color: var(--color-black);
    transform: translateY(-1px);
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-self: end;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 24px;
    border-radius: 999px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        transform 0.35s ease,
        background-color var(--transition-base),
        color var(--transition-fast);
}

.header-cta:hover,
.header-cta:focus-visible {
    color: var(--color-white);
    background-color: var(--color-accent-dark);
    transform: scale(1.03);
}

.menu-toggle {
    --hamburger-gap: 6px;
    --hamburger-line-height: 1.75px;
    --hamburger-open-offset: calc(var(--hamburger-gap) + var(--hamburger-line-height));
    display: none;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    pointer-events: auto;
}

.menu-toggle:focus-visible,
.main-navigation a:focus-visible,
.header-cta:focus-visible,
.floating-header__mobile-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.menu-toggle span {
    pointer-events: none;
}

.menu-toggle {
    flex-direction: column;
    gap: var(--hamburger-gap);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: var(--hamburger-line-height);
    border-radius: 999px;
    background-color: var(--color-black);
    transform-origin: center center;
    transition:
        transform var(--transition-base),
        opacity var(--transition-base),
        background-color var(--transition-base);
}

.menu-toggle.is-active .hamburger-line:nth-child(1),
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(var(--hamburger-open-offset)) rotate(45deg);
}

.menu-toggle.is-active .hamburger-line:nth-child(2),
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-line:nth-child(3),
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(calc(var(--hamburger-open-offset) * -1)) rotate(-45deg);
}

.floating-header__mobile-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(104px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px));
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
}

body.menu-open .floating-header__mobile-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-header__mobile-panel {
    position: relative;
    width: min(100%, 420px);
    min-height: min(560px, calc(100dvh - 148px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 36px 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(24px);
    opacity: 0;
    transition:
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.menu-open .floating-header__mobile-panel {
    transform: translateY(0);
    opacity: 1;
}

.floating-header__mobile-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.floating-header__mobile-item,
.floating-header__mobile-cta-wrapper {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

body.menu-open .floating-header__mobile-item,
body.menu-open .floating-header__mobile-cta-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.floating-header__mobile-item:nth-child(1) {
    transition-delay: 0.05s;
}

.floating-header__mobile-item:nth-child(2) {
    transition-delay: 0.1s;
}

.floating-header__mobile-item:nth-child(3) {
    transition-delay: 0.15s;
}

.floating-header__mobile-item:nth-child(4) {
    transition-delay: 0.2s;
}

.floating-header__mobile-cta-wrapper {
    transition-delay: 0.24s;
}

.floating-header__mobile-link {
    display: block;
    padding: 8px 0;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

.floating-header__mobile-link:hover {
    color: var(--color-accent);
    transform: translateX(2px);
}

.header-cta--mobile {
    width: 100%;
    height: 52px;
    font-size: 12px;
}

body.home .site-header.floating-header:not(.is-scrolled) .floating-header__bar {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home .site-header.floating-header:not(.is-scrolled) .main-navigation a,
body.home .site-header.floating-header:not(.is-scrolled) .site-branding .site-title a {
    color: var(--color-white);
}

body.home .site-header.floating-header:not(.is-scrolled) .main-navigation .menu-separator {
    color: rgba(255, 255, 255, 0.58);
}

body.home .site-header.floating-header:not(.is-scrolled) .main-navigation a:hover,
body.home .site-header.floating-header:not(.is-scrolled) .main-navigation a:focus-visible,
body.home .site-header.floating-header:not(.is-scrolled) .site-branding .site-title a:hover {
    color: var(--color-white);
}

body.home .site-header.floating-header:not(.is-scrolled) .hamburger-line {
    background-color: var(--color-white);
}

body.home .site-header.floating-header:not(.is-scrolled) .site-branding img {
    filter: brightness(0) invert(1);
}

body.admin-bar .site-header.floating-header {
    top: 32px;
}

body.admin-bar .floating-header-spacer {
    height: 138px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header.floating-header {
        top: 46px;
    }

    body.admin-bar .floating-header-spacer {
        height: 152px;
    }
}

/* Old footer styles removed — see new .footer-top / .footer-bottom below */

/* ==================================================
   Páginas e Posts — Base
   ================================================== */
.site-content {
    min-height: 60vh;
}

.entry-header {
    margin-bottom: var(--spacing-lg);
}

.entry-content {
    line-height: 1.8;
    max-width: 720px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

/* ==================================================
   Página 404
   ================================================== */
.error-404 {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
}

.error-404 h1 {
    font-size: clamp(5rem, 15vw, 10rem);
    line-height: 1;
    color: var(--color-gray-light);
}

.error-404 h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.error-404 p {
    color: var(--color-gray-mid);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

/* ==================================================
   WooCommerce — Catálogo
   ================================================== */

/* Grid de produtos */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    list-style: none;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: var(--color-white);
    border: none;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: none;
}

/* Imagem do produto — macro focus */
.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.04);
}

/* Nome do produto */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-black);
    padding: var(--spacing-md) 0 var(--spacing-xs);
    margin: 0;
}

/* Referência / SKU */
.woocommerce ul.products li.product .product-sku {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300;
    color: var(--color-gray-mid);
}

/* Botão "Ver Produto" no hover */
.woocommerce ul.products li.product .product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.woocommerce ul.products li.product:hover .product-overlay {
    opacity: 1;
}

/* Produto individual */
.woocommerce-single-product .product-gallery {
    width: 60%;
}

.woocommerce-single-product .product-summary {
    width: 40%;
    padding-left: var(--spacing-xl);
}

.woocommerce div.product .product_title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Tabela de especificações */
.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs th,
.product-specs td {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-gray-light);
    font-size: 14px;
    text-align: left;
}

.product-specs th {
    font-weight: 500;
    color: var(--color-gray-mid);
    width: 40%;
}

/* ==================================================
   Acessibilidade
   ================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-white);
    border-radius: var(--radius-sm);
    clip: auto !important;
    clip-path: none;
    color: var(--color-black);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    padding: 15px 23px 14px;
    position: absolute;
    top: 5px;
    left: 5px;
    width: auto;
    z-index: 1000;
}

/* ==================================================
   Footer — Viefe Style (fundo preto, 5 colunas)
   ================================================== */
.site-footer {
    background-color: var(--color-black);
    color: rgba(255, 255, 255, 0.55);
    padding: 80px 0 0;
    margin-top: 0;
}

/* --- Top: branding + colunas de links --- */
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: var(--spacing-xl);
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Coluna branding (logo + tagline + social) */
.footer-brand__logo {
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.footer-brand__logo img {
    height: 76px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand__logo .site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-white);
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-brand__tagline {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    max-width: 260px;
    margin-bottom: var(--spacing-xl);
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition-base);
}

.footer-social__link:hover {
    color: var(--color-white);
}

/* Colunas de links */
.footer-links h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-white);
}

/* --- Barra de copyright --- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    margin-top: 0;
    border-top: none;
}

.footer-bottom__copy {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom__links {
    display: flex;
    gap: 24px;
}

.footer-bottom__links a {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-bottom__links a:hover {
    color: var(--color-white);
}

/* ==================================================
   Responsivo
   ================================================== */

/* Mobile ≤ 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Tablet ≤ 768px */
@media (max-width: 768px) {
    /* Footer responsivo */
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom__links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .woocommerce-single-product .product-gallery,
    .woocommerce-single-product .product-summary {
        width: 100%;
        padding-left: 0;
    }
}

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
    .site-header.floating-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .floating-header__bar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
        padding: 10px 10px 10px 18px;
    }

    .site-branding img {
        height: 38px;
        max-width: 160px;
    }

    .main-navigation,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .floating-header-spacer {
        height: 96px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Wide ≥ 1440px */
@media (min-width: 1440px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ==================================================
   Custom Border Radius for All Buttons
   ================================================== */
.btn,
button,
input[type="submit"],
input[type="button"],
.btn--hero,
.btn--accent,
.btn--dark,
.btn--primary,
.woocommerce ul.products li.product .button {
    border-radius: 6px !important;
}

.menu-toggle {
    border-radius: 999px !important;
}

/* ==================================================
   RESPONSIVIDADE (Mobile First - Ajustes max-width: 768px)
   Regra: Nao alterar desktop. Apenas adicionar comportamento mobile.
   ================================================== */
@media (max-width: 768px) {
    .site-header.floating-header {
        padding: 16px 16px 0;
    }

    .floating-header__bar {
        width: min(94vw, 1200px);
        min-height: 56px;
        gap: 12px;
        padding: 10px 10px 10px 16px;
    }

    .site-branding img {
        height: 36px;
        max-width: 144px;
    }

    .floating-header-spacer {
        height: 92px;
    }

    .floating-header__page-backdrop {
        background: rgba(255, 255, 255, 0.34);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .floating-header__mobile-overlay {
        padding: calc(84px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .floating-header__mobile-panel {
        width: 100%;
        min-height: 0;
        padding: 28px 22px;
        border-radius: 24px;
    }

    .floating-header__mobile-list {
        gap: 14px;
    }

    .floating-header__mobile-link {
        font-size: clamp(1.7rem, 9vw, 2.5rem);
    }

    .header-cta--mobile {
        height: 50px;
    }

    /* --- FOOTER / RODAPÉ --- */

    /* Empilhar colunas */
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    /* Ajustes Brand Footer */
    .footer-brand__logo img {
        height: 48px;
        margin-bottom: 24px;
    }

    .footer-social {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer-social__link {
        min-width: 44px;
        min-height: 44px;
    }

    /* Footer Links empilhados */
    .footer-links {
        margin-bottom: 0;
    }

    .footer-links h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .footer-links ul {
        gap: 12px;
    }

    /* Footer Bottom empilhado e centralizado */
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding-top: 32px;
        margin-top: 40px;
    }

    .footer-bottom__links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-bottom__links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header.floating-header,
    .floating-header__bar,
    .site-branding img,
    .main-navigation a,
    .main-navigation a::after,
    .header-cta,
    .menu-toggle,
    .hamburger-line,
    .floating-header__mobile-overlay,
    .floating-header__mobile-panel,
    .floating-header__mobile-item,
    .floating-header__mobile-cta-wrapper {
        transition: none !important;
    }
}
