/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/* Ocultar notificación de "Tu carrito contiene X productos" */
#notifications .alert-info,
article.alert-info[data-alert="info"] {
    display: none !important;
}

/* Espaciado superior para sección de productos en home */
.an_homeproducts {
    margin-top: 40px;
}

.anav-top .adropdown {
    background-color: #ede415;
    border-radius: 10px;
    padding-top: 20px;
}

.amenu-item a:hover {
    color: #898989 !important;
}

.amenu-item .mm-6 {
    background-color: #ede415;
}

#amegamenu .anav-top .amenu-item {
    text-transform: uppercase;
}

#header .amenu-item .amenu-link {
    padding: 10px 10px 10px 10px;
    font-weight: bolder !important;
    color: #636363 !important;
}

#header .amenu-item .amenu-link:hover {
    color: #242424 !important;
}

/* OFERTAS - último item del menú siempre verde */
#header .anav-top > .amenu-item:last-child > .amenu-link {
    background-color: #31a838 !important;
    color: #fff !important;
    border-radius: 6px;
}

#header .anav-top > .amenu-item:last-child > .amenu-link:hover {
    background-color: #31a838 !important;
    color: #fff !important;
}

/* Estado activo del menú (excepto OFERTAS) - fondo negro con texto blanco */
#header .anav-top > .amenu-item:not(:last-child).active > .amenu-link,
#header .anav-top > .amenu-item:not(:last-child).current > .amenu-link,
#header .anav-top > .amenu-item:not(:last-child).sfHover > .amenu-link,
#header .anav-top > .amenu-item:not(:last-child) > .amenu-link.active,
#header .anav-top > .amenu-item:not(:last-child) > .amenu-link.current {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 6px;
}

#header .anav-top > .amenu-item:not(:last-child).active > .amenu-link:hover,
#header .anav-top > .amenu-item:not(:last-child).current > .amenu-link:hover,
#header .anav-top > .amenu-item:not(:last-child).sfHover > .amenu-link:hover,
#header .anav-top > .amenu-item:not(:last-child) > .amenu-link.active:hover,
#header .anav-top > .amenu-item:not(:last-child) > .amenu-link.current:hover {
    background-color: #000 !important;
    color: #fff !important;
}

#header .header-nav {
    background-color: #ede415;
}

#header .header-nav a,
#header .header-nav a:link,
#header .header-nav a:visited {
    color: #333 !important;
}

#header .header-nav a:hover,
#header .header-nav a:active,
#header .header-nav a:focus {
    color: #000 !important;
    background-color: transparent !important;
    text-decoration: none;
}

.clientservice_open-modal-btn {
    color: #333 !important;
    cursor: pointer;
}

.clientservice_open-modal-btn:hover {
    color: #000 !important;
    background-color: transparent !important;
    text-decoration: none;
}

/* Header Contact Info */
.header-contact-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.header-contact-item svg {
    flex-shrink: 0;
}

.header-contact-item strong {
    font-weight: 600;
}

/* Header Social Links */
.header-social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.header-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.header-social-links a:hover {
    opacity: 0.7;
}

.hidden-lg-up.text-sm-center.mobile {
    padding: 20px 0;
}

.cart-products-count {
    background-color: #ede415;
    color: #000;
}

@media (max-width: 991px) {
    .blockcart-link svg {
        margin-bottom: -7px;
        transform: scale(1.1);
        color: #000;
    }
}

@media (max-width: 991px) {
    #_mobile_user_info svg {
        color: #000;
    }
}

.search-wrapper svg {
    color: #000;
}

@media (max-width: 991px) {
    #search_widget {
        padding: 0;
    }

    #search_widget form input {
        background-color: #ede415;
    }

    #index #header .header-top {
        background-color: #ede415;
        border: none;
    }

    /* Ocultar menú desktop en tablet/móvil */
    .amega-menu {
        display: none !important;
    }
}

/* Copyright bar - eliminar espaciado extra */
.copyright-container .row {
    margin: 0 !important;
    padding: 0 !important;
}

/* ========== FOOTER STYLES ========== */

/* Títulos del footer con iconos */
.footer-container .links .h3,
.footer-container .block-contact .h3,
.footer-container .myaccount-title,
.footer-container .block-contact-title {
    display: flex !important;
    align-items: center;
    gap: 10px;
    line-height: 1.2 !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

#block_myaccount_infos .myaccount-title a {
    color: inherit !important;
    text-decoration: none;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

/* Iconos para cada sección usando pseudo-elementos */
.footer-container .links .wrapper:first-child .h3::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.footer-container .links .wrapper:nth-child(2) .h3::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

#block_myaccount_infos .h3::before,
#block_myaccount_infos .myaccount-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.block-contact .h3::before,
.block-contact .block-contact-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}
