/**
 * Armários e Cofres — Estilos da Vitrine Nativa
 * Substituição visual leve e ultrarrápida do JetEngine Listing Grid
 */

.ac-vitrine-container {
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.ac-vitrine-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-sizing: border-box;
}

.ac-vitrine-grid.ac-grid-col-1 { grid-template-columns: 1fr; }
.ac-vitrine-grid.ac-grid-col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-vitrine-grid.ac-grid-col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-vitrine-grid.ac-grid-col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Card de Produto */
.ac-card-produto {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ac-card-produto:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Imagem */
.ac-card-media {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    background: #f8fafc;
    overflow: hidden;
}

.ac-card-media-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.ac-card-produto:hover .ac-card-img {
    transform: scale(1.04);
}

.ac-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 32px;
}

/* Badge de Categoria */
.ac-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(62, 73, 91, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* Conteúdo */
.ac-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.ac-card-title {
    margin: 0 0 14px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.ac-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ac-card-title a:hover {
    color: #3e495b;
}

/* Botões */
.ac-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.ac-btn-detalhes,
.ac-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.ac-btn-detalhes {
    background-color: #f1f5f9;
    color: #3e495b;
    border: 1px solid #cbd5e1;
}

.ac-btn-detalhes:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.ac-btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border: 1px solid #20ba5a;
}

.ac-btn-whatsapp:hover {
    background-color: #1ebe5d;
    color: #ffffff;
}

/* Depoimentos */
.ac-depoimentos-container {
    width: 100%;
    margin: 20px 0;
}

.ac-depoimentos-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ac-depoimento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ac-depoimento-texto {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    font-style: italic;
    margin-bottom: 16px;
}

.ac-depoimento-autor {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #1e293b;
}

.ac-autor-foto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsividade Mobile e Tablet */
@media (max-width: 991px) {
    .ac-vitrine-grid.ac-grid-col-3,
    .ac-vitrine-grid.ac-grid-col-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ac-depoimentos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ac-blog-grid.ac-grid-col-3,
    .ac-blog-grid.ac-grid-col-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ac-vitrine-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .ac-depoimentos-grid {
        grid-template-columns: 1fr !important;
    }
    .ac-blog-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .ac-search-input-wrap {
        padding: 4px 6px 4px 10px;
    }
    .ac-search-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Busca Nativa de Produtos: [armarioscofres_busca]
   Substituto do JetSearch (jet-ajax-search)
   ========================================================================== */

.ac-search-container {
    width: 100%;
    margin: 12px auto;
    box-sizing: border-box;
}

.ac-search-form {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.ac-search-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 3px 4px 3px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.ac-search-input-wrap:focus-within {
    border-color: #6ec1e4;
    box-shadow: 0 0 0 3px rgba(110, 193, 228, 0.25);
}

.ac-search-icon {
    display: flex;
    align-items: center;
    color: #64748b;
    margin-right: 8px;
    flex-shrink: 0;
}

.ac-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 8px 6px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    font-family: inherit !important;
    width: 100%;
    box-shadow: none !important;
}

.ac-search-input::placeholder {
    color: #94a3b8;
}

.ac-search-btn {
    background: #3e495b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
}

.ac-search-btn:hover {
    background: #2c3543;
    color: #ffffff;
}

.ac-search-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Artigos Recentes do Blog: [armarioscofres_blog]
   Substituto do JetBlog (Smart Tiles / Posts Grid)
   ========================================================================== */

.ac-blog-container {
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.ac-blog-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-sizing: border-box;
}

.ac-blog-grid.ac-grid-col-1 { grid-template-columns: 1fr; }
.ac-blog-grid.ac-grid-col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-blog-grid.ac-grid-col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-blog-grid.ac-grid-col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ac-blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ac-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.ac-blog-media {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Proporção 16:9 */
    background: #f8fafc;
    overflow: hidden;
}

.ac-blog-media-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ac-blog-card:hover .ac-blog-img {
    transform: scale(1.04);
}

.ac-blog-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    width: 100%;
    height: 100%;
}

.ac-blog-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(62, 73, 91, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.ac-blog-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ac-blog-meta {
    margin-bottom: 8px;
}

.ac-blog-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.ac-blog-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.ac-blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ac-blog-title a:hover {
    color: #1e7399;
}

.ac-blog-excerpt {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.ac-blog-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.ac-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1e7399;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.15s ease;
}

.ac-blog-link:hover {
    color: #0f172a;
    gap: 10px;
}

.ac-blog-empty {
    padding: 24px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* ==========================================================================
   MENU DE NAVEGAÇÃO NATIVO: [armarioscofres_menu]
   ========================================================================== */
.ac-nav-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.ac-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.ac-nav-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.ac-nav-menu > li > a {
    display: inline-block;
    padding: 0.5rem 0.25rem;
    color: #3e495b;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ac-nav-menu > li > a:hover,
.ac-nav-menu > li.current-menu-item > a {
    color: #1e7399;
}

.ac-nav-menu .sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.ac-nav-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ac-nav-menu .sub-menu li a {
    display: block;
    padding: 8px 16px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.ac-nav-menu .sub-menu li a:hover {
    background: #f1f5f9;
    color: #1e7399;
}

/* ==========================================================================
   BLINDAGEM DO CABEÇALHO (Header 24): Fundo Azul-Marinho Fixo do Menu
   ========================================================================== */
.elementor-24 .elementor-element.elementor-element-15839fe,
.elementor-element.elementor-element-15839fe {
    background-color: #3e495b !important;
}

/* ==========================================================================
   BARRA DE MENU DE CATEGORIAS: [armarioscofres_menu] (Fiel a como-era.png)
   ========================================================================== */
.ac-navbar-wrapper {
    background-color: #3e495b !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ac-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Oculta botão mobile em desktop */
.ac-menu-toggle {
    display: none !important;
}

/* Lista Horizontal das Categorias Desktop */
.ac-categories-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
}

.ac-categories-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

/* Separador vertical "|" entre itens (fiel a como-era.png) */
.ac-categories-menu > li + li::before {
    content: "|";
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    font-weight: 300;
    margin: 0 2px;
}

.ac-categories-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 13px 10px;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: none; /* Title Case, não all-caps! */
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.ac-categories-menu > li > a:hover {
    color: #00c2ff !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.ac-categories-menu > li > a .ac-arrow {
    transition: transform 0.2s ease;
    opacity: 0.85;
}

.ac-categories-menu > li:hover > a .ac-arrow {
    transform: rotate(180deg);
}

/* Submenu Dropdown Suspenso */
.ac-categories-menu .ac-sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #2e3643;
    border-top: 3px solid #00a8cc;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border-radius: 0 0 6px 6px;
    padding: 6px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1000;
    text-align: left;
}

.ac-categories-menu > li:hover > .ac-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ac-categories-menu .ac-sub-menu li {
    margin: 0;
    padding: 0;
}

.ac-categories-menu .ac-sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: #f1f5f9 !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    line-height: 1.4;
}

.ac-categories-menu .ac-sub-menu li:last-child a {
    border-bottom: none;
}

.ac-categories-menu .ac-sub-menu li a:hover {
    background-color: #242c37;
    color: #00c2ff !important;
    padding-left: 22px;
}

/* Responsividade Mobile do Menu */
@media (max-width: 900px) {
    .ac-menu-toggle {
        display: flex !important;
        align-items: center;
        gap: 10px;
        background: transparent;
        border: none;
        color: #ffffff;
        padding: 12px 0;
        cursor: pointer;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .ac-categories-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 8px 0;
    }

    .ac-navbar-wrapper.ac-menu-open .ac-categories-menu {
        display: flex;
    }

    .ac-categories-menu > li + li::before {
        display: none;
    }

    .ac-categories-menu > li > a {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        justify-content: space-between;
    }

    .ac-categories-menu .ac-sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #252d38;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid #00a8cc;
        padding: 4px 0 4px 14px;
        margin: 4px 0 8px 10px;
    }
}

/* ==========================================================================
   TÍTULO LIMPO DE CATEGORIA: (Fiel a como-era.png)
   ========================================================================== */
.ac-archive-clean-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 40px 0 24px 0;
    padding: 0;
    text-align: left;
    letter-spacing: -0.3px;
}

.ac-archive-empty-clean {
    font-size: 16px;
    color: #4a5568;
    margin: 40px 0 60px 0;
    text-align: center;
    padding: 30px;
    background-color: #f8fafc;
    border-radius: 6px;
}

/* ==========================================================================
   BOTÃO DE ATENDIMENTO WHATSAPP (Header Pill Verde como-era.png)
   ========================================================================== */
.ac-header-whatsapp-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #25d366;
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ac-header-whatsapp-pill:hover {
    background-color: #1ebe57;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.38);
}

.ac-wa-pill-icon {
    display: flex;
    align-items: center;
}

.ac-wa-pill-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.ac-wa-pill-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.ac-wa-pill-phone {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   RODAPÉ COMPLETO E RESILIENTE: (Fiel a como-era.png)
   ========================================================================== */
.ac-custom-footer {
    width: 100%;
    margin-top: 60px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}

/* 1. Faixa Azul: Mais de 25 Anos de Experiência */
.ac-footer-banner {
    background-color: #3e495b;
    padding: 32px 20px;
    text-align: center;
    width: 100%;
}

.ac-footer-banner-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

/* 2. Grid de 4 Colunas */
.ac-footer-body {
    background-color: #ffffff;
    padding: 50px 20px 40px;
}

.ac-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ac-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr;
    gap: 36px;
    align-items: flex-start;
}

.ac-footer-col-logo img {
    max-width: 220px;
    height: auto;
    display: block;
}

.ac-footer-heading {
    color: #1e293b;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 18px 0;
}

.ac-footer-contact-list,
.ac-footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 14px;
}

.ac-footer-contact-list a,
.ac-footer-links-list a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}

.ac-footer-contact-list a:hover,
.ac-footer-links-list a:hover {
    color: #1e7399;
}

.ac-footer-links-list li {
    margin-bottom: 10px;
}

.ac-f-icon {
    color: #64748b;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 3. Barra Inferior de Direitos */
.ac-footer-bottom {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.ac-footer-bottom p {
    margin: 0;
}

/* Oculta o rodapé vazio padrão do Hello Elementor */
#site-footer.dynamic-footer,
.site-footer.dynamic-footer {
    display: none !important;
}

/* Responsividade do Rodapé */
@media (max-width: 900px) {
    .ac-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .ac-footer-banner-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .ac-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Vitrine Randômica: Ocultação de cards excedentes do pool */
.ac-card-hidden {
    display: none !important;
}
