/*
Theme Name: Energia Belém
Description: Tema personalizado para loja de material elétrico e iluminação
Version: 1.0.5 (atualizado para corrigir responsivo)
Text Domain: wordpress-theme
Author: Energia Belém
*/
/* Reset mais seguro para WordPress */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
}
/* Cores do tema */
:root {
    --primary-blue: #063467;
    --dark-blue: #152b48;
    --orange: #ea580c;
    --light-orange: #f88b26;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --border: #e2e8f0;
    --text-muted: #64748b;
    --success: #2e7d32;
    --error: #d32f2f;
}
/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top {
    background: var(--primary-blue);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-info {
    display: flex;
    gap: 10px;
}
.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-main {
    padding: 15px 0;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}
.logo-text h1 {
    font-size: 24px;
    color: var(--primary-blue);
    margin: 0;
}
.logo-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 10px 30px 10px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}
.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    min-height: 44px;
}
.btn-primary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}
.btn-primary:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
}
.btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}
.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}
.btn-orange {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}
.btn-orange:hover {
    background: var(--light-orange);
    border-color: var(--light-orange);
}
.btn.outline-secondary {
    border-color: var(--white);
    color: var(--white);
}
.btn.outline-secondary:hover {
    background-color: var(--orange);
    border-color: var(--orange);
}
/* Navigation */
.main-nav {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: var(--primary-blue);
}
.nav-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
}
/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 60px 0;
    text-align: center;
}
.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}
.hero p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}
/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.card-content {
    padding: 16px;
}
.card-content ul {
    padding-left: 0;
}
.card-content ul li {
    margin-left: 20px;
}
/* Product Categories */
.categories {
    padding: 60px 0;
    background: var(--light-gray);
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}
.section-title p {
    font-size: 16px;
    color: var(--text-muted);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}
.icon-blue {
    background: var(--primary-blue);
}
.icon-orange {
    background: var(--orange);
}
.icon-dark-blue {
    background: var(--dark-blue);
}
/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 40px 0 15px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-section h3 {
    margin-bottom: 15px;
    color: var(--white);
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}
.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    padding: 5px 0;
}
.footer-section ul li a:hover {
    color: white;
}
.footer-hours, .footer-whatsapp {
    margin-top: 15px;
}
.footer-hours p, .footer-whatsapp p {
    margin-bottom: 5px;
}
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 15px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Links no footer - herdam a cor do texto e removem sublinhado */
.footer a {
    color: inherit;                  /* Herda a cor do elemento pai (branco no footer) */
    text-decoration: none;           /* Remove o sublinhado padrão */
    transition: color 0.3s ease;     /* Transição suave para o hover */
}

.footer a:hover,
.footer a:focus {
    text-decoration: underline;      /* Opcional: adiciona sublinhado só no hover para indicar interatividade */
}

/* Para os links do WhatsApp (mantém o mesmo comportamento) */
.footer .footer-whatsapp a {
    color: inherit;
}

.footer .footer-whatsapp a:hover {
    text-decoration: underline;      /* Opcional: adiciona sublinhado só no hover para indicar interatividade */
}

/* Orçamento Form Styles */
.section-orcamento {
    padding: 60px 0;
}
.eb-orcamento-container {
    max-width: 800px;
    margin: 0 auto;
}
.eb-field {
    margin-bottom: 15px;
}
.eb-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}
.eb-field input, .eb-field select, .eb-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}
.eb-field textarea {
    resize: vertical;
}
.eb-section-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}
.eb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.eb-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.eb-radio-group {
    display: flex;
    gap: 15px;
}
.eb-radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}
.eb-upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.eb-upload-area .dashicons {
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.eb-upload-label {
    color: var(--primary-blue);
    cursor: pointer;
}
.eb-upload-label:hover {
    text-decoration: underline;
}
.eb-upload-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}
.eb-upload-selected {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 500;
    margin-top: 8px;
}
.eb-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.eb-terms label {
    font-size: 14px;
    line-height: 1.5;
}
.eb-info-box {
    background: var(--light-gray);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    gap: 8px;
}
.eb-info-box .dashicons {
    font-size: 18px;
    color: var(--primary-blue);
}
.eb-info-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.eb-info-box ul {
    list-style: none;
    font-size: 14px;
}
.eb-info-box li {
    margin-bottom: 4px;
}
.eb-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.eb-notification {
    padding: 10px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 14px;
}
.eb-notification--success {
    background: var(--success);
    color: white;
}
.eb-notification--error {
    background: var(--error);
    color: white;
}
.eb-success {
    background: var(--success);
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-top: 15px;
}
/* Products Grid Styles */
.products-grid-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}
.products-filter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}
.filter-group {
    display: flex;
    flex-direction: column;
}
.filter-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary-blue);
}
.filter-group select,
.filter-group input {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}
.filter-group input[type="number"] {
    -moz-appearance: textfield;
}
.filter-group input::-webkit-outer-spin-button,
.filter-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(30, 64, 175, 0.3);
}
/* Product Cards */
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    background: var(--light-gray);
}
.product-card .onsale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--orange);
    color: var(--white);
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    pointer-events: none;
}
.product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.product-card .woocommerce-loop-product__title {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    text-align: left;
    margin: 12px;
    line-height: 1.3;
    height: 3.9;   
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .woocommerce-loop-product__title a {
    text-decoration: none !important;
    color: inherit;
}
.product-card .woocommerce-loop-product__title a:hover {
    color: var(--primary-blue);
}
.product-card .price {
    font-weight: 600;
    margin: 12px;
    font-size: 16px;
    text-align: left;
}
.product-card .price a, .product-card .price del {
    text-decoration: none !important;
    color: inherit;
}
.product-card .price del {
    text-decoration: line-through !important;
    color: var(--text-muted);
    font-weight: normal;
    font-size: 16px;
    margin-right: 8px;
    margin-bottom: 16px;
}
.product-card .button {
    width: 90%;
    height: 40px;
    padding: 0;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: none;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
    align-items: center;
    margin-top: auto;
    margin-bottom: 8px;
}
.product-card .button:hover {
    background: var(--dark-blue);
}
.product-card .button::before {
    font-size: 18px;
}
.product-card .button span {
    display: none !important;
    font-size: 0;
}
/* Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
/* Loading state */
.products-grid.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}
.products-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 11;
}
@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
/* No products */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    padding: 30px 0;
}
/* Pagination */
.products-pagination {
    text-align: center;
    margin-top: 30px;
}
.products-pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background: var(--light-gray);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}
.products-pagination a:hover {
    background: var(--primary-blue);
    color: white;
}
.products-pagination .current {
    background: var(--primary-blue);
    color: white;
}
/* Single Product */
.product-single {
    padding: 50px 0;
}
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.product-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f9f9f9;
    padding: 15px;
}
.main-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--text-muted);
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f9f9f9;
}
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.product-title {
    font-size: 28px;
    color: var(--primary-blue);
    margin: 0;
}
.product-meta p {
    font-size: 14px;
    margin: 5px 0;
}
.product-meta .category-link {
    color: var(--primary-blue);
    text-decoration: none;
}
.product-meta .category-link:hover {
    color: var(--dark-blue);
}
.product-price {
    font-size: 24px;
    color: var(--orange);
    font-weight: 600;
}
.product-badge {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}
.product-excerpt {
    font-size: 16px;
    color: var(--text-muted);
}
.product-stock p {
    font-size: 14px;
    padding: 10px;
    background: var(--light-gray);
    border-radius: 6px;
}
.product-add-to-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}
.product-add-to-cart .quantity {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}
.product-add-to-cart input[type="number"] {
    width: 80px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    -moz-appearance: textfield;
}
.product-add-to-cart input::-webkit-outer-spin-button,
.product-add-to-cart input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.product-add-to-cart .quantity-btn {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--light-gray);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    transition: background 0.3s;
}
.product-add-to-cart .quantity-btn:hover {
    background: var(--primary-blue);
    color: white;
}
.product-add-to-cart .quantity-btn.minus {
    order: -1 !important;
}
.product-add-to-cart .quantity-btn.plus {
    order: 1 !important;
}
.product-add-to-cart .button {
    background: var(--orange);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, transform 0.2s;
}
.product-add-to-cart .button::before {
    content: '🛒';
}
.product-add-to-cart .button:hover {
    background: var(--light-orange);
    transform: translateY(-2px);
}

/* ====================== NOVAS SEÇÕES ADICIONADAS ====================== */

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        margin-left: auto;
    }
    .top-bar {
        display: none;
    }
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 8px 12px;
    }
    .site-header .logo {
        max-height: 36px;
    }

    /* Ícones compactos */
    .header-icons {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    .header-icons .search-icon,
    .header-icons .cart-icon {
        font-size: 20px;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
        padding: 20px;
        z-index: 999;
    }
    .main-nav.active {
        display: block;
    }
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .nav-menu a {
        display: block;
        padding: 8px 0;
        font-size: 16px;
    }
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 10000;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    .filters-sidebar.open {
        left: 0;
    }
    
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
        display: none;
    }
    
    .filter-toggle-btn {
        position: sticky;
        bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #333;
        color: #fff;
        padding: 12px 24px;
        border-radius: 30px;
        margin: 0 auto;
        cursor: pointer;
        font-weight: 600;
    }
}

/* Gallery Carousel (horizontal) */
.gallery-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.gallery-carousel::-webkit-scrollbar {
    height: 6px;
}
.gallery-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}
.carousel-item {
    flex: 0 0 100px;
    height: 100px;
    scroll-snap-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s;
}
.carousel-item:hover {
    opacity: 0.8;
}
.carousel-item.selected {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(6, 52, 103, 0.2);
}
.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--light-gray);
    border-radius: 6px;
}

/* Quantity wrapper (single product) */
.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.quantity-input-visible {
    width: 80px;
    padding: 10px;
    text-align: center;
    border: none;
    font-size: 16px;
}
.quantity-btn {
    width: 40px;
    height: 46px;
    background: var(--light-gray);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}
.quantity-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* Responsivo single product */
@media (max-width: 1024px) {
    .product-details {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        order: -1; /* galeria acima do texto em mobile */
    }
}
@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 80px;
        height: 80px;
    }
}
/* Header colapsável ao scroll */
.header {
    transition: all 0.4s ease; /* Transição suave para padding, background, shadow */
    background: white; /* Garante fundo sólido */
}

.header--scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra sutil quando colapsado */
}

.header--scrolled .header-top {
    display: none; /* Esconde a top bar */
}

.header--scrolled .header-main {
    padding: 8px 0; /* Reduz altura */
}

.header--scrolled .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.header--scrolled .logo-text h1 {
    font-size: 20px;
}

.header--scrolled .logo-text p {
    font-size: 11px;
}

/* Em mobile/tablet, esconde a busca quando scrolled (prioriza menu e logo) */
@media (max-width: 992px) {
    .header--scrolled .search-bar {
        display: none;
    }
    
    .header--scrolled .header-actions {
        gap: 8px;
    }
    
    .header--scrolled .header-content {
        justify-content: space-between; /* Logo à esquerda, ações à direita */
    }
}

/* Transição suave nos elementos internos */
.logo, .search-bar, .header-actions {
    transition: all 0.3s ease;
}

/* Melhora visual do clique na principal */
.product-main-image {
    cursor: pointer;                /* Indica que é clicável */
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.product-main-image:hover {
    opacity: 0.92;
    transform: scale(1.01);         /* Leve zoom no hover para feedback */
}

/* Opcional: cursor pointer nas thumbnails também */
.carousel-item {
    cursor: pointer;
}

/* Tabs melhorados (sem inline, mais intuitivo) */
.product-tabs {
    margin-top: 30px;
}
.tabs-nav {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}
.tabs-nav a {
    padding-bottom: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}
.tabs-nav a.active {
    color: var(--primary-blue);
    border-bottom: 3px solid var(--primary-blue);
}
.tabs-nav a:hover {
    color: var(--primary-blue);
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block; /* Adicione .active no JS para mostrar */
}
.specifications-table {
    width: 100%;
    border-collapse: collapse;
}
.specifications-table tr {
    border-bottom: 1px solid var(--border);
}
.specifications-table td {
    padding: 8px 0;
}
.specifications-table td:first-child {
    font-weight: 600;
}

/* Ajuste margem no botão adicionar (sem inline, mas como pediu, usei no PHP por agora; mova para aqui se preferir) */
.single_add_to_cart_button {
    margin-top: 15px !important; /* Se precisar de override */
}

/* Related products (melhorias visuais) */
.related-products {
    margin-top: 60px;
}
.related-products h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

/* Responsividade e melhorias visuais */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 992px) {
    .grid-two-columns {
        grid-template-columns: 1fr 1fr;
    }
}

.fieldset-clean {
    border: none;
    padding: 0;
    margin: 0 0 32px;
}
.fieldset-clean legend {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.full-width { width: 100% !important; }

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    background: white;
}

.hover-lift:hover {
    transform: translateY(-6px);
    transition: transform 0.3s ease;
}

.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
    opacity: 0.3;
}
.timeline-item {
    position: relative;
    margin-bottom: 32px;
}
.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(6,52,103,0.15);
}
.timeline-item h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.check-list {
    list-style: none;
    padding: 0;
}
.check-list li {
    margin-bottom: 16px;
    padding-left: 32px;
    position: relative;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Input focus bonito */
.eb-field input:focus,
.eb-field select:focus,
.eb-field textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(6,52,103,0.15);
    outline: none;
}



/* ====================== SINGLE POST & BLOG MODERN 2025 ====================== */

/* Container principal do post */
.single-post-content {
    padding: 60px 0 100px;
    background: var(--light-gray);
}

.post-single {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    max-width: 900px;          /* Largura ideal para leitura */
    margin: 0 auto;
}

/* Hero com imagem destacada */
.post-hero {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
}

.post-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.post-single:hover .post-featured-image {
    transform: scale(1.04);     /* Leve zoom no hover – sutil */
}

/* Conteúdo interno */
.post-container {
    padding: 48px 40px 60px;
    max-width: 820px;
    margin: 0 auto;
}

.post-title {
    font-size: 2.6rem;
    line-height: 1.18;
    color: var(--primary-blue);
    margin: 0 0 24px;
    font-weight: 700;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta .post-date::before { content: '🗓️ '; }
.post-meta .post-author::before { content: '👤 '; }

/* Conteúdo do post – legibilidade máxima */
.post-content {
    font-size: 1.125rem;        /* 18px – confortável */
    line-height: 1.82;
    color: #2d3748;
}

.post-content p {
    margin-bottom: 1.8em;
}

.post-content h2, .post-content h3 {
    color: var(--dark-blue);
    margin: 2.2em 0 0.9em;
    line-height: 1.3;
}

.post-content h2 { font-size: 2.1rem; }
.post-content h3 { font-size: 1.65rem; }

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2em 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Tags */
.post-tags {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.post-tags a {
    background: var(--light-gray);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 30px;
    margin: 0 6px 10px 0;
    display: inline-block;
    text-decoration: none;
    transition: all 0.25s;
}

.post-tags a:hover {
    background: var(--primary-blue);
    color: white;
}

/* Responsividade */
@media (max-width: 992px) {
    .post-container { padding: 36px 24px 48px; }
    .post-title { font-size: 2.2rem; }
    .post-hero { height: 320px; }
}

@media (max-width: 640px) {
    .post-single { border-radius: 0; }
    .post-container { padding: 28px 18px 40px; }
    .post-title { font-size: 1.9rem; }
    .post-hero { height: 240px; }
    .post-meta { flex-direction: column; gap: 10px; }
}

/* ====================== MELHORIAS 2026 - GROK SÊNIOR ====================== */

/* WhatsApp Flutuante */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 68px;
    height: 68px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    z-index: 99999;
    transition: all 0.3s ease;
    text-decoration: none;
}
.wa-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Offcanvas Filtros Mobile */
.filters-sidebar {
    transition: left 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
@media (max-width: 992px) {
    .filters-sidebar {
        position: fixed !important;
        left: -100%;
        top: 0;
        width: 92%;
        max-width: 380px;
        height: 100vh;
        z-index: 100000;
        background: #fff;
        box-shadow: 5px 0 35px rgba(0,0,0,0.3);
        overflow-y: auto;
    }
    .filters-sidebar.open { left: 0; }

    .filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.65);
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    .filter-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .filter-toggle-btn {
        position: fixed;
        bottom: 105px;
        right: 25px;
        z-index: 99998;
        padding: 14px 26px;
        border-radius: 50px;
        box-shadow: 0 6px 20px rgba(6,52,103,0.35);
        font-weight: 600;
    }
}

/* Cards ainda mais bonitos */
.product-card {
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(6,52,103,0.18);
}
.price {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--orange);
}

/* ====================== SEARCH BAR - VERSÃO CONSOLIDADA E CORRIGIDA 2026 ====================== */

/* Container da busca (desktop e mobile) */
.search-bar {
    position: relative;
    flex: 1;
    margin: 0 15px;
    min-width: 180px;
}

/* Input da busca - regras unificadas */
.search-bar input[type="search"] {
    width: 100%;
    height: 48px;
    padding: 0 60px 0 16px !important;     /* espaço garantido para o botão */
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Remove completamente o ícone antigo que conflita */
.search-icon {
    display: none !important;
}

/* Botão lupa (submit) - prioridade alta */
.search-btn {
    position: absolute !important;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.search-btn:hover,
.search-btn:focus {
    background: rgba(6, 52, 103, 0.1);
    color: var(--dark-blue);
}

/* Desktop: campo um pouco maior */
@media (min-width: 769px) {
    .search-bar input[type="search"] {
        height: 52px;
        padding-right: 64px !important;
    }
    
    .search-btn {
        width: 52px;
        height: 52px;
        font-size: 26px;
        right: 6px;
    }
}

/* Mobile: área de toque maior e borda destacada */
@media (max-width: 768px) {
    
    .logo-icon {
        display: none;
    }
    .search-bar {
        margin: 0 8px;
    }
    
    .search-bar input[type="search"] {
        height: 52px;
        padding-right: 68px !important;
        font-size: 16px;
        border: 2px solid var(--primary-blue);   /* destaque visual para idosos */
        border-radius: 12px;
    }
    
    .search-btn {
        width: 56px;
        height: 56px;
        font-size: 28px;
        right: 4px;
    }
}

/* Foco e acessibilidade */
.search-bar input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(6,52,103,0.15);
    outline: none;
}

.search-btn:focus {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}