/**
 * Estilos Frontend para Metales Polo Extend
 */

.aaar-product-extra-meta {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aaar-quote-note {
    background-color: #f8f9fa;
    border-left: 4px solid #1a365d;
    padding: 10px 14px;
    font-size: 14px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 4px 4px 0;
}

.aaar-btn-tech-sheet {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background-color: #4a5568 !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 10px 18px !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.aaar-btn-tech-sheet:hover {
    background-color: #2d3748 !important;
    color: #ffffff !important;
}

.aaar-btn-whatsapp {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background-color: #25d366 !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 12px 20px !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.aaar-btn-whatsapp:hover {
    background-color: #1ebc57 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.aaar-custom-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #1a365d;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.aaar-quote-price-label {
    font-size: 16px;
    font-weight: 600;
    color: #e53e3e;
}

/* Botón flotante WhatsApp */
.aaar-floating-wa-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
}

.aaar-floating-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aaar-floating-wa:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Banner de Categoría (Full Width) en Tema Scandi
   ========================================================================== */

/* Ocultar el headline por defecto de Scandi cuando la categoría tiene banner */
body.has-aaar-category-banner #middle > .headline {
    display: none !important;
}

/* Evitar scroll horizontal involuntario en vistas de categoría */
body.tax-product_cat {
    overflow-x: hidden;
}

/* Contenedor ancho completo (Full Width Breakout) */
.aaar-category-banner-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 35px;
    overflow: hidden;
    background-color: #1a202c;
}

/* Cuando se recoloca al inicio de #middle */
.aaar-category-banner-wrap.is-relocated {
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
}

.aaar-category-banner {
    position: relative;
    width: 100%;
    height: 340px;
    min-height: 240px;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.aaar-category-banner-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.aaar-category-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 30px;
    z-index: 2;
}

.aaar-category-banner-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.aaar-category-banner-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.95), 0px 0px 20px rgba(0, 0, 0, 0.8) !important;
    text-align: center !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aaar-category-banner-desc {
    color: #f7fafc !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.85) !important;
    font-size: 1.15rem !important;
    margin-top: 14px !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .aaar-category-banner {
        height: 230px;
    }
    .aaar-category-banner-title {
        font-size: 2rem !important;
    }
    .aaar-category-banner-desc {
        font-size: 1rem !important;
    }
}

/* ==========================================================================
   Logo Header
   ========================================================================== */
.logo-header .site-logo,
#header #logo a img {
    width: 200px !important;
}

/* ==========================================================================
   Soporte para Banner de Categoría en Tema Vemus
   ========================================================================== */
body.has-aaar-category-banner .tf-page-title {
    position: relative !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 280px !important;
    padding: 60px 0 !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.has-aaar-category-banner .tf-page-title::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.65) 100%) !important;
    z-index: 1 !important;
}

body.has-aaar-category-banner .tf-page-title .container {
    position: relative !important;
    z-index: 2 !important;
}

body.has-aaar-category-banner .tf-page-title .page-title {
    text-align: center !important;
}

body.has-aaar-category-banner .tf-page-title .heading {
    display: block !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.95), 0px 0px 20px rgba(0, 0, 0, 0.8) !important;
    text-align: center !important;
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    margin-top: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

body.has-aaar-category-banner .tf-page-title .heading .number-count {
    display: none !important;
}

body.has-aaar-category-banner .tf-page-title .breadcrumbs,
body.has-aaar-category-banner .tf-page-title .breadcrumbs a,
body.has-aaar-category-banner .tf-page-title .breadcrumbs span {
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9) !important;
}

body.has-aaar-category-banner .tf-page-title .breadcrumbs .bg-main {
    background-color: #ffffff !important;
}
