/**
 * Armários e Cofres — Estilos dos Templates de Fallback Nativo
 * armarioscofres.com.br
 *
 * Estilos para páginas de produto individual (single-produto.php) e
 * arquivos de categorias (_categorias) sem dependência do Elementor Pro.
 *
 * @version 1.1.0
 */

:root {
    --ac-primary: #3e495b;
    --ac-primary-dark: #2c3543;
    --ac-primary-light: #526075;
    --ac-accent: #6ec1e4;
    --ac-accent-hover: #1e7399;
    --ac-green: #25D366;
    --ac-green-hover: #1ebe5d;
    --ac-dark: #1E293B;
    --ac-text: #494D53;
    --ac-muted: #64748B;
    --ac-light: #F8F9FA;
    --ac-border: #E2E6EA;
    --ac-white: #FFFFFF;
}

/* Container Estrutural */
.ac-single-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Breadcrumbs */
.ac-single-breadcrumbs {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    font-size: 13px;
    margin-bottom: 28px;
    width: 100%;
    box-sizing: border-box;
}

.ac-single-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ac-single-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: #64748b;
}

.ac-single-breadcrumbs li + li::before {
    content: "/";
    margin-right: 8px;
    color: #94a3b8;
    font-size: 11px;
}

.ac-single-breadcrumbs a {
    color: var(--ac-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.ac-single-breadcrumbs a:hover {
    color: var(--ac-accent-hover);
    text-decoration: underline;
}

.ac-single-breadcrumbs .ac-active {
    color: #0f172a;
    font-weight: 600;
}

/* Card Principal do Produto (2 Colunas) */
.ac-product-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 36px;
    box-sizing: border-box;
}

.ac-product-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
}

/* Coluna de Mídia */
.ac-product-media-column {
    width: 100%;
}

.ac-product-media-frame {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
    box-sizing: border-box;
}

.ac-product-featured-img {
    max-width: 100%;
    max-height: 440px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.ac-product-media-frame:hover .ac-product-featured-img {
    transform: scale(1.03);
}

.ac-product-placeholder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
}

/* Coluna de Informações Comerciais */
.ac-product-info-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ac-product-cat-pill {
    display: inline-block;
    background: #eef8fc;
    color: var(--ac-accent-hover);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 12px;
    border: 1px solid #d0ecf7;
    transition: background-color 0.2s, color 0.2s;
}

.ac-product-cat-pill:hover {
    background: var(--ac-accent);
    color: #ffffff;
}

.ac-product-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.ac-product-lead {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Box de Orçamento e Ação */
.ac-product-cta-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.ac-cta-price-tag {
    margin-bottom: 16px;
}

.ac-cta-status {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.ac-cta-note {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}

.ac-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ac-btn-whatsapp-large {
    background: var(--ac-green);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #20ba5a;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.ac-btn-whatsapp-large:hover {
    background: var(--ac-green-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.ac-btn-phone-secondary {
    background: var(--ac-primary);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--ac-primary-dark);
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.ac-btn-phone-secondary:hover {
    background: var(--ac-primary-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Diferenciais e Selos */
.ac-trust-badges-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.ac-trust-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ac-trust-badge-item svg {
    flex-shrink: 0;
}

.ac-trust-badge-item strong {
    display: block;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.3;
}

.ac-trust-badge-item small {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
}

/* Seção de Conteúdo e Ficha Técnica */
.ac-product-details-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px;
    margin-bottom: 36px;
    box-sizing: border-box;
}

.ac-section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.ac-typography {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

.ac-typography p {
    margin: 0 0 16px 0;
}

.ac-typography ul, .ac-typography ol {
    margin: 16px 0;
    padding-left: 24px;
}

.ac-typography li {
    margin-bottom: 8px;
}

.ac-product-specs-table-wrap {
    margin-top: 32px;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.ac-product-specs-table-wrap h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.ac-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.ac-specs-table th,
.ac-specs-table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.ac-specs-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    width: 35%;
}

.ac-specs-table td {
    color: #475569;
    background: #ffffff;
}

.ac-specs-table tr:nth-child(even) td {
    background: #fdfdfe;
}

/* Produtos Relacionados */
.ac-related-products-section {
    margin-bottom: 40px;
}

.ac-related-products-section .ac-section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    border-bottom: none;
    padding-bottom: 0;
}

.ac-related-products-section .ac-section-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* Banner de Fechamento */
.ac-closing-banner {
    margin-bottom: 40px;
}

.ac-closing-box {
    background: linear-gradient(135deg, #2c3543 0%, #3e495b 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    box-sizing: border-box;
}

.ac-closing-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.ac-closing-box p {
    font-size: 15px;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.ac-closing-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Cabeçalho do Arquivo / Categorias */
.ac-archive-hero {
    background: linear-gradient(135deg, #2c3543 0%, #3e495b 100%);
    color: #ffffff;
    padding: 50px 0;
    margin-bottom: 36px;
    text-align: center;
}

.ac-archive-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ac-archive-badge {
    display: inline-block;
    background: rgba(110, 193, 228, 0.2);
    color: #6ec1e4;
    border: 1px solid rgba(110, 193, 228, 0.4);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.ac-archive-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ffffff;
    line-height: 1.25;
}

.ac-archive-description {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.ac-archive-search-wrap {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.ac-archive-body {
    margin-bottom: 40px;
}

/* Paginação do Arquivo */
.ac-archive-pagination {
    margin: 40px 0 20px 0;
    text-align: center;
}

.ac-archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ac-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #3e495b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.ac-archive-pagination .page-numbers.current {
    background: #3e495b;
    color: #ffffff;
    border-color: #3e495b;
}

.ac-archive-pagination .page-numbers:hover:not(.current) {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Empty State */
.ac-archive-empty {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 36px;
}

.ac-archive-empty h2 {
    font-size: 20px;
    color: #1e293b;
    margin: 16px 0 8px 0;
}

.ac-archive-empty p {
    font-size: 15px;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.ac-empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsividade Mobile e Tablet */
@media (max-width: 991px) {
    .ac-product-grid-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ac-product-hero-card {
        padding: 24px;
    }

    .ac-archive-title {
        font-size: 26px;
    }

    .ac-specs-table th {
        width: 45%;
    }
}

@media (max-width: 600px) {
    .ac-product-hero-card {
        padding: 16px;
    }

    .ac-product-title {
        font-size: 22px;
    }

    .ac-product-media-frame {
        min-height: 280px;
        padding: 16px;
    }

    .ac-closing-box {
        padding: 28px 18px;
    }

    .ac-closing-box h2 {
        font-size: 20px;
    }

    .ac-closing-buttons {
        flex-direction: column;
        width: 100%;
    }

    .ac-closing-buttons a {
        width: 100%;
    }

    .ac-empty-actions {
        flex-direction: column;
        width: 100%;
    }

    .ac-empty-actions a {
        width: 100%;
    }
}
