/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.1.0
 Text Domain:  woodmart
*/

/* ============================================================
   IMPRESSORA ONLINE - Custom Styles
   ============================================================ */

/* ─── Fix: overflow no top bar (height:0px sem overflow:hidden) ── */
.whb-top-bar,
.whb-top-bar-inner {
    overflow: hidden !important;
}

/* ─── Fix: reforçar visibilidade de linhas do header builder ─── */
/* Linha oculta no desktop */
@media (min-width: 1025px) {
    .whb-row.whb-hidden-desktop {
        display: none !important;
        overflow: hidden !important;
        height: 0 !important;
    }
}
/* Linha oculta no mobile */
@media (max-width: 1024px) {
    .whb-row.whb-hidden-mobile {
        display: none !important;
        overflow: hidden !important;
        height: 0 !important;
    }
}

/* ─── Fix: colunas desktop-only e mobile-only ───────────────── */
/* Colunas desktop-only: ocultar no mobile */
@media (max-width: 1024px) {
    .whb-column.whb-visible-lg {
        display: none !important;
    }
}
/* Colunas mobile-only: ocultar no desktop */
@media (min-width: 1025px) {
    .whb-column.whb-hidden-lg {
        display: none !important;
    }
}

/* ─── Melhorias visuais gerais ──────────────────────────────── */

/* Botões - arredondamento consistente */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wd-btn,
.btn {
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Melhorar visibilidade do preço */
.woocommerce .price,
.woocommerce .product-price {
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Product cards - sombra suave ao hover */
.product-grid-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.25s ease;
}

/* ─── Tipografia melhorada ─────────────────────────────────── */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ─── Breadcrumbs mais visíveis ────────────────────────────── */
.woocommerce .woocommerce-breadcrumb {
    font-size: 12px;
    opacity: 0.75;
}

/* ─── Mensagens de stock ────────────────────────────────────── */
.woocommerce .stock.in-stock {
    color: #2e7d32;
}
.woocommerce .stock.out-of-stock {
    color: #c62828;
}

/* ─── Add to cart - animação no botão ─────────────────────── */
.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after {
    font-size: 14px;
}

/* ─── Mobile: melhorar espaçamento do menu ─────────────────── */
@media (max-width: 768px) {
    .woocommerce .products .product {
        margin-bottom: 20px;
    }

    .woocommerce-page .entry-header {
        padding-top: 10px;
    }
}

/* ─── Footer: melhorar legibilidade ────────────────────────── */
.footer-container a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.footer-container a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ─── Formulários: foco visível ────────────────────────────── */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0073e6;
    outline-offset: 1px;
}

/* ─── Lazy loading: evitar layout shift ───────────────────── */
img[loading="lazy"] {
    min-height: 1px;
}

/* ─── Scrollbar customizada (desktop) ─────────────────────── */
@media (min-width: 992px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #f0f0f0;
    }
    ::-webkit-scrollbar-thumb {
        background: #bbb;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
}

/* ─── WooCommerce notices ─────────────────────────────────── */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-radius: 4px;
}
