/*
Theme Name: Ilha Tech
Author: Ilha Tech
Description: Ilha Tech is a WooCommerce theme for a Brazilian electronics e-commerce store.
Version: 2.0
Text Domain: wp-ilhatech
License: GNU General Public License v2 or Later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   1. Reset (enxuto, substitui o normalize.css completo)
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure {
    margin: 0;
}

ul[class],
ol[class] {
    margin: 0;
    padding: 0;
    list-style: none;
    padding-left: 35%;
    margin-right: auto;
    text-align: center;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
    padding: var(--it-space-3) var(--it-space-5);
    background: var(--it-color-primary);
    color: var(--it-color-text);
}

.skip-link:focus {
    position: fixed;
    top: 0;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
    /* Cor */
    --it-color-bg: #27163f;
    --it-color-bg-alt: #1e1031;
    --it-color-surface: #2f1c4a;
    --it-color-glass: #ffffff0d;
    --it-color-glass-hover: #ffffff18;
    --it-color-border: #ffffff1a;
    --it-color-border-strong: #ffffff30;

    --it-color-text: #ffffff;
    --it-color-text-muted: #b9aecb;
    --it-color-text-faint: #7d7291;

    --it-color-primary: #ce6f69;
    --it-color-primary-hover: #a2494d;
    --it-color-primary-soft: rgba(206, 111, 105, .12);

    --it-color-success: #2ecc71;
    --it-color-success-soft: rgba(46, 204, 113, .12);
    --it-color-error: #e74c3c;
    --it-color-error-soft: rgba(231, 76, 60, .12);
    --it-color-warning: #f39c12;
    --it-color-warning-soft: rgba(243, 156, 18, .12);
    --it-color-info: #3498db;
    --it-color-info-soft: rgba(52, 152, 219, .12);

    /* Espaçamento (ritmo 4/8px) */
    --it-space-1: 4px;
    --it-space-2: 8px;
    --it-space-3: 12px;
    --it-space-4: 16px;
    --it-space-5: 20px;
    --it-space-6: 24px;
    --it-space-7: 32px;
    --it-space-8: 40px;
    --it-space-9: 56px;
    --it-space-10: 80px;

    /* Tipografia */
    --it-font-base: 'Poppins', sans-serif;
    --it-text-xs: 12px;
    --it-text-sm: 14px;
    --it-text-base: 16px;
    --it-text-md: 18px;
    --it-text-lg: 22px;
    --it-text-xl: 28px;
    --it-text-2xl: 36px;
    --it-text-3xl: 48px;
    --it-weight-regular: 400;
    --it-weight-medium: 500;
    --it-weight-semibold: 600;
    --it-weight-bold: 700;
    --it-leading-tight: 1.2;
    --it-leading-normal: 1.5;
    --it-leading-relaxed: 1.7;

    /* Raio */
    --it-radius-sm: 6px;
    --it-radius-md: 10px;
    --it-radius-lg: 14px;
    --it-radius-pill: 999px;

    /* Sombra */
    --it-shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
    --it-shadow-md: 0 4px 20px rgba(0, 0, 0, .4);
    --it-shadow-accent: 0 0 20px rgba(206, 111, 105, .35);
    --it-shadow-focus: 0 0 0 3px rgba(206, 111, 105, .35);

    --it-transition: all .3s ease;
}

/*
   Escala de breakpoints do tema (mobile-first, sempre min-width):
   480px  – celulares grandes
   576px  – tablets pequenos
   768px  – tablets
   992px  – desktop pequeno
   1200px – desktop grande
*/

/* ==========================================================================
   3. Base
   ========================================================================== */

body {
    font-family: var(--it-font-base);
    font-size: var(--it-text-base);
    line-height: var(--it-leading-normal);
    background: var(--it-color-bg);
    color: var(--it-color-text);
}

/* CSS gerado pelo Elementor para posts que já foram editados nele (ex.:
   wp-content/uploads/elementor/css/post-95.css) continua sendo enfileirado
   mesmo depois de trocar para os templates PHP do tema, e define
   body.elementor-page-{ID} com background branco em especificidade maior
   que a regra acima — sobrescreve aqui para sempre manter o tema escuro. */
body.elementor-page {
    background-color: var(--it-color-bg) !important;
    color: var(--it-color-text) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--it-weight-semibold);
    line-height: var(--it-leading-tight);
}

h1 { font-size: var(--it-text-2xl); }
h2 { font-size: var(--it-text-xl); }
h3 { font-size: var(--it-text-lg); }
h4 { font-size: var(--it-text-md); }
h5 { font-size: var(--it-text-base); }

@media (min-width: 768px) {
    h1 { font-size: var(--it-text-3xl); }
    h2 { font-size: var(--it-text-2xl); }
    h3 { font-size: var(--it-text-xl); }
}

p {
    color: var(--it-color-text-muted);
}

a {
    color: var(--it-color-text);
    transition: var(--it-transition);
}

a:hover {
    color: var(--it-color-primary);
}

.button,
button.button,
a.button,
input.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--it-space-2);
    padding: var(--it-space-3) var(--it-space-6);
    background: var(--it-color-primary);
    color: var(--it-color-text);
    border: none;
    border-radius: var(--it-radius-md);
    font-weight: var(--it-weight-semibold);
    font-size: var(--it-text-sm);
    transition: var(--it-transition);
}

.button:hover,
button.button:hover,
a.button:hover,
input.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--it-color-primary-hover);
    color: var(--it-color-text);
    box-shadow: var(--it-shadow-accent);
}

/* ==========================================================================
   4. Container
   ========================================================================== */

.container {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--it-space-4);
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}
@media (min-width: 768px) {
    .container { max-width: 720px; }
}
@media (min-width: 992px) {
    .container { max-width: 960px; }
}
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

/* ==========================================================================
   5. Cabeçalho
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--it-color-bg-alt);
    border-bottom: 1px solid var(--it-color-border);
}

.site-header__topbar-inner {
    display: flex;
    align-items: center;
    gap: var(--it-space-4);
    padding-block: var(--it-space-3);
}

.site-header__logo {
    font-size: var(--it-text-lg);
    font-weight: var(--it-weight-bold);
    color: var(--it-color-text);
}

.site-header__logo a {
    color: var(--it-color-text);
}

/* custom-logo support allows any upload size (flex-height/flex-width), so the
   image needs an explicit cap or it renders at its native size everywhere
   the_custom_logo() is used (header, footer, checkout topbar). */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    max-height: 40px;
    width: auto;
    height: auto;
    border-radius: var(--it-radius-pill);
}

.site-header__search {
    display: none;
    flex: 1;
    max-width: 480px;
}

.site-search {
    display: flex;
    width: 100%;
    background: var(--it-color-glass);
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-pill);
    overflow: hidden;
}

.site-search input[type="text"] {
    flex: 1;
    /* Sem isso o input não encolhe e empurra a lupa para fora em telas estreitas. */
    min-width: 0;
    border: none;
    background: transparent;
    padding: var(--it-space-2) var(--it-space-4);
    color: var(--it-color-text);
}

.site-search input[type="text"]::placeholder {
    color: var(--it-color-text-faint);
}

.site-search button {
    padding: 0 var(--it-space-4);
    color: var(--it-color-text-muted);
}

.site-header__actions {
    margin-left: auto;
}

.header-utility {
    display: flex;
    align-items: center;
    gap: var(--it-space-5);
}

.header-utility__account {
    display: flex;
    align-items: center;
    gap: var(--it-space-2);
    color: var(--it-color-text-muted);
    font-size: var(--it-text-sm);
}

.header-utility__label {
    display: none;
}

.header-utility__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--it-space-2);
    border-radius: 50%;
    transition: var(--it-transition);
}

.header-utility__cart:hover {
    background: var(--it-color-primary);
}

.header-utility__cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--it-color-primary);
    color: var(--it-color-text);
    font-size: 10px;
    font-weight: var(--it-weight-bold);
    border-radius: var(--it-radius-pill);
}

.icon-cart {
    background-image: url('img/carrinho.svg');
    height: 22px;
    width: 22px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--it-space-2);
}

.hamburger__bar {
    width: 24px;
    height: 2px;
    background: var(--it-color-text);
    transition: var(--it-transition);
}

.hamburger.is-open .hamburger__bar:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .hamburger__bar:nth-child(3) {
    opacity: 0;
}
.hamburger.is-open .hamburger__bar:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
    /* Fixo só no mobile/tablet; no desktop o header (158px) roubava tela demais. */
    .site-header { position: static; }
    .hamburger { display: none; }
    .site-header__search { display: block; margin-left: 20%;}
    .header-utility__label { display: inline; }
}

/* Navegação principal (off-canvas no mobile) */
.site-header__nav {
    background: var(--it-color-bg);
}

.primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 82%;
    max-width: 320px;
    height: 100%;
    background: var(--it-color-surface);
    border-right: 1px solid var(--it-color-border);
    box-shadow: var(--it-shadow-md);
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
    padding: var(--it-space-8) var(--it-space-5);
}

.primary-nav.is-open {
    transform: translateX(0);
}

.primary-nav__list li {
    border-bottom: 1px solid var(--it-color-border);
}

.primary-nav__list a {
    display: block;
    padding: var(--it-space-4) 0;
    font-weight: var(--it-weight-medium);
}

.primary-nav__list .sub-menu {
    display: none;
    padding-left: var(--it-space-4);
}

.primary-nav__list li.is-open > .sub-menu {
    display: block;
}

body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, .6);
}

/* Painel lateral (mobile/tablet): cabeçalho com botão fechar, busca e
   itens em linha. O desktop não passa por aqui. */
@media (max-width: 991.98px) {
    .primary-nav {
        padding: 0 var(--it-space-5) var(--it-space-6);
        /* Fechado fica invisível também para teclado/leitor de tela. */
        visibility: hidden;
        transition: transform .3s ease, visibility 0s linear .3s;
    }

    .primary-nav.is-open {
        visibility: visible;
        transition: transform .3s ease;
    }

    .primary-nav__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 72px;
        margin-inline: calc(var(--it-space-5) * -1);
        padding-inline: var(--it-space-5) var(--it-space-3);
        border-bottom: 1px solid var(--it-color-border);
    }

    .primary-nav__title {
        font-size: var(--it-text-md);
        font-weight: var(--it-weight-semibold);
    }

    .primary-nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        color: var(--it-color-text);
        font-size: var(--it-text-lg);
    }

    .primary-nav__close:hover,
    .primary-nav__close:focus-visible {
        background: var(--it-color-glass-hover);
    }

    .primary-nav__search {
        padding-block: var(--it-space-5);
    }

    /* O reset genérico ul[class] recua 35% e centraliza as listas. */
    ul.primary-nav__list {
        padding-left: 0;
        text-align: left;
    }

    .primary-nav__list a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: var(--it-space-3) var(--it-space-2);
        border-radius: var(--it-radius-sm);
    }

    .primary-nav__list a:hover,
    .primary-nav__list a:focus-visible,
    .primary-nav__list .current-menu-item > a {
        background: var(--it-color-glass-hover);
        color: var(--it-color-text);
    }

    /* Os títulos dos itens vêm do banco com ícone empilhado e estilo
       inline (migration 002); no painel viram linha: ícone e texto. */
    .primary-nav__list a > span {
        display: flex;
        align-items: center;
        gap: var(--it-space-4);
        text-align: left !important;
    }

    .primary-nav__list a > span br {
        display: none;
    }

    .primary-nav__list a > span i {
        width: 24px;
        font-size: var(--it-text-lg) !important;
        text-align: center;
        color: var(--it-color-primary);
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    .site-header__nav .container {
        padding-block: 0;
    }

    /* No desktop a busca fica no header e o menu não é painel. */
    .primary-nav__header,
    .primary-nav__search {
        display: none;
    }

    .primary-nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        transform: none;
        overflow: visible;
        padding: 0;
        border-right: none;
    }

    .primary-nav__list {
        display: flex;
        gap: var(--it-space-7);
    }

    .primary-nav__list li {
        position: relative;
        border-bottom: none;
    }

    .primary-nav__list > li > a {
        padding: var(--it-space-4) 0;
    }

    .primary-nav__list .sub-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: var(--it-color-surface);
        border: 1px solid var(--it-color-border);
        border-radius: var(--it-radius-md);
        padding: var(--it-space-2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: var(--it-transition);
        z-index: 10;
    }

    .primary-nav__list li:hover > .sub-menu,
    .primary-nav__list li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .primary-nav__list .sub-menu a {
        padding: var(--it-space-2) var(--it-space-3);
        border-radius: var(--it-radius-sm);
    }

    .primary-nav__list .sub-menu a:hover {
        background: var(--it-color-glass-hover);
    }

    body.nav-open::after {
        content: none;
    }
}

/* ==========================================================================
   6. Rodapé
   ========================================================================== */

.site-footer {
    background: var(--it-color-bg-alt);
    padding-block: var(--it-space-9) var(--it-space-6);
    margin-top: var(--it-space-10);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--it-space-8);
    padding-bottom: var(--it-space-8);
    border-bottom: 1px solid var(--it-color-border);
}

@media (min-width: 576px) {
    .site-footer__top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .site-footer__top {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-col__title {
    margin-bottom: var(--it-space-4);
    font-size: var(--it-text-md);
}

.footer-brand__name {
    font-size: var(--it-text-lg);
    font-weight: var(--it-weight-bold);
}

.footer-brand__tagline {
    margin: var(--it-space-3) 0 var(--it-space-4);
    font-size: var(--it-text-sm);
}

.footer-social {
    display: flex;
    gap: var(--it-space-3);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--it-color-glass);
    border: 1px solid var(--it-color-border);
}

.footer-social a:hover {
    background: var(--it-color-primary);
    color: var(--it-color-text);
}

/* O reset genérico ul[class] centraliza e recua 35% as listas; no rodapé
   os links ficam alinhados sob o título da coluna. */
ul.footer-menu__list {
    padding-left: 0;
    text-align: left;
}

.footer-menu__list li {
    margin-bottom: var(--it-space-2);
}

.footer-menu__list a {
    color: var(--it-color-text-muted);
    font-size: var(--it-text-sm);
}

.footer-menu__list a:hover {
    color: var(--it-color-primary);
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    gap: var(--it-space-3);
    font-size: var(--it-text-xl);
    color: var(--it-color-text-muted);
}

.site-footer__bottom {
    padding-top: var(--it-space-6);
    text-align: center;
}

.copyright-text {
    font-size: var(--it-text-sm);
    color: var(--it-color-text-faint);
}

/* ==========================================================================
   7. Home — hero, faixa de confiança, categorias, produtos, promo, blog
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--it-color-bg) 0%, var(--it-color-primary-hover) 100%);
    padding-block: var(--it-space-9);
    display: flex;
    align-items: center;
    min-height: 320px;
    text-align: center;
}

@media (min-width: 992px) {
    .hero {
        min-height: 480px;
        text-align: left;
    }
}

.hero__content {
    max-width: 560px;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .hero__content {
        margin-inline: 0;
        margin-right: auto;
        margin-left: auto;
    }
}

.hero__eyebrow {
    color: var(--it-color-primary);
    font-weight: var(--it-weight-semibold);
    text-transform: uppercase;
    font-size: var(--it-text-sm);
    letter-spacing: .06em;
}

.hero__title {
    margin: var(--it-space-3) 0 var(--it-space-4);
}

.hero__subtitle {
    margin-bottom: var(--it-space-6);
    color: var(--it-color-text-muted);
}

.trust-strip {
    padding-block: var(--it-space-7);
}

.trust-strip__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--it-space-5);
    text-align: center;
}

@media (min-width: 768px) {
    .trust-strip__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--it-space-3);
    padding: var(--it-space-5);
    background: var(--it-color-glass);
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-lg);
}

.trust-strip__item i {
    font-size: var(--it-text-xl);
    color: var(--it-color-primary);
}

.trust-strip__item strong {
    display: block;
    margin-bottom: var(--it-space-1);
}

.trust-strip__item span {
    font-size: var(--it-text-sm);
    color: var(--it-color-text-muted);
}

.section {
    padding-block: var(--it-space-9);
}

.section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--it-space-6);
}

.section__header a {
    font-size: var(--it-text-sm);
    color: var(--it-color-primary);
    font-weight: var(--it-weight-medium);
}

/* Vitrine de categorias */
.category-showcase__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--it-space-4);
}

@media (min-width: 768px) {
    .category-showcase__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--it-space-3);
    padding: var(--it-space-6) var(--it-space-4);
    background: var(--it-color-glass);
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-lg);
    text-align: center;
    transition: var(--it-transition);
}

.category-card:hover {
    background: var(--it-color-glass-hover);
    border-color: var(--it-color-border-strong);
    transform: translateY(-4px);
}

.category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--it-color-primary-soft);
    color: var(--it-color-primary);
    font-size: var(--it-text-lg);
}

.category-card__name {
    font-weight: var(--it-weight-medium);
    font-size: var(--it-text-sm);
    color: var(--it-color-text);
}

/* Grade de produtos (home) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--it-space-4);
}

/* 3 colunas só a partir de 768px — mesmo motivo do grid da loja (shop.css). */
@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Card de produto (home, loja, relacionados) */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--it-color-glass);
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-lg);
    overflow: hidden;
    transition: var(--it-transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--it-shadow-accent);
    border-color: var(--it-color-border-strong);
}

.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--it-color-surface), var(--it-color-bg-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--it-color-text-faint);
    font-size: var(--it-text-2xl);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__badge {
    position: absolute;
    top: var(--it-space-3);
    left: var(--it-space-3);
    padding: var(--it-space-1) var(--it-space-3);
    background: var(--it-color-primary);
    color: var(--it-color-text);
    font-size: var(--it-text-xs);
    font-weight: var(--it-weight-semibold);
    border-radius: var(--it-radius-pill);
}

.product-card__badge--success {
    background: var(--it-color-success);
}

.product-card__wishlist {
    position: absolute;
    top: var(--it-space-3);
    right: var(--it-space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: var(--it-color-text);
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--it-space-2);
    padding: var(--it-space-4);
    flex: 1;
}

.product-card__rating {
    color: var(--it-color-warning);
    font-size: var(--it-text-xs);
}

.product-card__title {
    font-size: var(--it-text-sm);
    font-weight: var(--it-weight-medium);
    color: var(--it-color-text);
    line-height: var(--it-leading-normal);
    overflow-wrap: anywhere;
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--it-space-2);
    margin-top: auto;
}

.product-card__price-current {
    font-size: var(--it-text-md);
    font-weight: var(--it-weight-bold);
    color: var(--it-color-text);
}

.product-card__price-old {
    font-size: var(--it-text-xs);
    color: var(--it-color-text-faint);
    text-decoration: line-through;
}

.product-card__actions {
    margin-top: var(--it-space-2);
}

.product-card__actions .button {
    width: 100%;
}

/* Banner promocional */
.promo-banner {
    padding: var(--it-space-8) var(--it-space-6);
    background: linear-gradient(120deg, var(--it-color-surface), var(--it-color-bg));
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-lg);
    text-align: center;
}

.promo-banner__title {
    margin-bottom: var(--it-space-3);
}

.promo-banner__text {
    margin-bottom: var(--it-space-5);
}

/* Widgets de serviço (dynamic_sidebar service-1/2/3) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--it-space-5);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.services-grid .widget {
    padding: var(--it-space-6);
    background: var(--it-color-glass);
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-lg);
}

/* ==========================================================================
   8. Blog / Arquivo / Busca
   ========================================================================== */

.content-area {
    padding-block: var(--it-space-8);
}

.search-page__form {
    max-width: 480px;
    margin-bottom: var(--it-space-6);
}

.blog-layout {
    display: flex;
    flex-direction: column;
    gap: var(--it-space-8);
}

@media (min-width: 992px) {
    .blog-layout {
        flex-direction: row;
    }

    .blog-layout .blog-items {
        flex: 1;
    }

    .blog-layout .sidebar {
        width: 300px;
        flex-shrink: 0;
    }
}

.blog-items article,
.search-results article {
    padding: var(--it-space-6);
    margin-bottom: var(--it-space-5);
    background: var(--it-color-glass);
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-lg);
}

.blog-items article .meta-info,
.search-results article .meta-info {
    font-size: var(--it-text-xs);
    color: var(--it-color-text-faint);
    margin-bottom: var(--it-space-3);
}

.sidebar .widget-wrapper {
    padding: var(--it-space-5);
    background: var(--it-color-glass);
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-lg);
    margin-bottom: var(--it-space-5);
}

.wpilhatech-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: var(--it-space-6);
}

.nav-links {
    margin-top: var(--it-space-8);
}

.nav-links .page-numbers {
    padding: var(--it-space-2) var(--it-space-4);
    display: inline-block;
    background: var(--it-color-glass);
    border-radius: var(--it-radius-sm);
    margin-right: var(--it-space-2);
}

.nav-links .current {
    background: var(--it-color-primary);
}

/* ==========================================================================
   9. Comentários
   ========================================================================== */

#commentform label {
    display: block;
    margin-bottom: var(--it-space-2);
}

#commentform label[for="wp-comment-cookies-consent"] {
    display: inline;
    margin-left: var(--it-space-2);
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    padding: var(--it-space-3);
    margin-bottom: var(--it-space-4);
    background: var(--it-color-glass);
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-sm);
    color: var(--it-color-text);
}

/* ==========================================================================
   10. Utilitários
   ========================================================================== */

.size-auto,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
    max-width: 100%;
    height: auto;
}

.error-404 {
    text-align: center;
    padding-block: var(--it-space-10);
}

/* ==========================================================================
   11. Botão flutuante WhatsApp
   ========================================================================== */

.ilhatech-whatsapp-float {
    position: fixed;
    right: var(--it-space-5);
    bottom: var(--it-space-5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(37, 211, 102, .75);
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: ilhatech-whatsapp-fade-in 0.4s ease-out 3s forwards;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ilhatech-whatsapp-float:hover {
    background: rgba(37, 211, 102, 1);
    color: #fff;
    transform: scale(1.08);
}

@keyframes ilhatech-whatsapp-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   12. Template geral (páginas migradas do Elementor)
   ========================================================================== */

.general-template {
    padding-block: var(--it-space-8);
}

.general-template h1 {
    text-align: center;
    margin-bottom: var(--it-space-6);
}

.showcase-banner {
    display: block;
    max-width: 700px;
    margin: 0 auto var(--it-space-6);
    border-radius: var(--it-radius-lg);
}

.link-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--it-space-3);
    max-width: 480px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.link-hub li {
    width: 100%;
}

.link-hub .button {
    width: 100%;
    padding-block: var(--it-space-3);
}

.link-hub__whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--it-space-2);
    margin-top: var(--it-space-6);
    font-size: var(--it-text-lg);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--it-space-2);
    margin: 0 auto var(--it-space-5);
    padding: var(--it-space-2) var(--it-space-4);
    border-radius: var(--it-radius-pill);
    color: #fff;
    font-weight: var(--it-weight-semibold);
    text-transform: uppercase;
    font-size: var(--it-text-sm);
}

.status-badge--success {
    background: var(--it-color-success);
}

.status-badge--pending {
    background: var(--it-color-warning);
}

.status-badge--declined {
    background: var(--it-color-error);
}

.general-template .woocommerce-order-tracking-form {
    max-width: 480px;
    margin: 0 auto;
}

/* ==========================================================================
   13. WooCommerce — componentes globais
   ========================================================================== */

/* Input nativo de quantidade do WooCommerce; sem esta regra ele fica sem
   background definido e herda color:inherit (branco) do reset — texto
   branco sobre o fundo branco padrão do navegador, invisível. */
.woocommerce .quantity .qty {
    background: var(--it-color-bg-alt);
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-sm);
    color: var(--it-color-text);
    padding: var(--it-space-2) var(--it-space-3);
}

.woocommerce .quantity .qty:focus {
    outline: none;
    border-color: var(--it-color-primary);
    box-shadow: var(--it-shadow-focus);
}

/* Notices nativos do WooCommerce (sucesso/aviso/erro) — reusa os tokens
   semânticos --it-color-success/warning/error já existentes (antes só
   usados em badges), nunca conectados aos notices até agora. */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background: var(--it-color-bg-alt);
    color: var(--it-color-text);
    border: 1px solid var(--it-color-border);
    border-radius: var(--it-radius-md);
}

.woocommerce-message {
    border-color: var(--it-color-success);
    background: var(--it-color-success-soft);
}

.woocommerce-message::before {
    color: var(--it-color-success);
}

.woocommerce-info {
    border-color: var(--it-color-warning);
    background: var(--it-color-warning-soft);
}

.woocommerce-info::before {
    color: var(--it-color-warning);
}

.woocommerce-error {
    border-color: var(--it-color-error);
    background: var(--it-color-error-soft);
}

.woocommerce-error::before {
    color: var(--it-color-error);
}
