.page-header.type3.sticky-header~.custom-top-bar-fixed {
    display: none !important;
}

.custom-top-bar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: #f2f2f2;
    padding: 4px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.custom-top-bar-fixed .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.custom-top-bar-fixed ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}


.custom-top-bar-fixed ul li a:hover {
    text-decoration: underline;
}

/* Desplazar el contenido hacia abajo para que no lo tape */
body {
    padding-top: 40px;
    /* Ajusta según el alto real de la barra */
}

.custom-top-bar-fixed ul li {
    border-radius: 25px;
    background: black;
    padding: 3px 15px;
}

.custom-top-bar-fixed ul li a {
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
}

/* ============================================
   RESPONSIVE: Ajustes para pantallas menores a 540px
   ============================================ */


@media (max-width: 600px) {

    /* Ajustar padding del body para pantallas pequeñas
       cuando la barra superior toma 2 líneas */
    body {
        padding-top: 34px;
        /* Aumentado para compensar la altura de 2 líneas */
    }

    /* Ajustes de la barra superior para pantallas pequeñas */
    .custom-top-bar-fixed {
        padding: 5px 0;
        /* Reducir padding vertical */
    }

    .custom-top-bar-fixed .topbar-links{
        display: none;
    }

    /* Ajustar contenedor de la barra */
    .custom-top-bar-fixed .container {
        justify-content: center;
        /* Centrar en móvil */
        padding: 0 10px;
    }

    /* Ajustar lista de enlaces */
    .custom-top-bar-fixed ul {
        gap: 8px;
        /* Reducir espacio entre botones */
        flex-wrap: wrap;
        /* Permitir que los botones pasen a 2 líneas */
        justify-content: center;
    }

    /* Ajustar botones individuales */
    .custom-top-bar-fixed ul li {
        padding: 2px 8px;
        /* Reducir padding de los botones */
        margin: 2px 0;
        /* Agregar margen vertical para separar líneas */
    }

    /* Ajustar tamaño de texto en botones */
    .custom-top-bar-fixed ul li a {
        font-size: 9px;
        /* Reducir ligeramente el tamaño de fuente */
    }
}


/* Ajuste adicional para pantallas muy pequeñas (menos de 400px) */
@media (max-width: 480px) {
    body {
        padding-top: 31px;
        /* Más espacio para pantallas muy pequeñas */
    }

}


/* Ajuste adicional para pantallas muy pequeñas (menos de 400px) */
@media (max-width: 399px) {
    body {
        padding-top: 31px;
        /* Más espacio para pantallas muy pequeñas */
    }

    .custom-top-bar-fixed ul li {
        padding: 2px 6px;
    }

    .custom-top-bar-fixed ul li a {
        font-size: 8px;
    }
}


@media (max-width: 284px) {
    body {
        padding-top: 51px;
        /* Más espacio para pantallas muy pequeñas */
    }

}

/* UNIVERSAL FIX: Force arrow using the specific PHP-added class */
.sw-megamenu.navigation a.has-children-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.sw-megamenu.navigation a.has-children-arrow:after {
    content: '\e81a' !important;
    font-family: 'porto-icons' !important;
    display: inline-block !important;
    margin-left: 8px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: normal !important;
    color: inherit !important;
}


@media (max-width: 416px) {
    .main-panel-top .panel.wrapper {
        justify-content: space-between;

    }

    .main-panel-top .panel.wrapper .header-left {
        max-width: 125px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .main-panel-top .panel.wrapper .header-right .action.showcart::after {
        position: relative;
        left: 10px;
    }


}
/*------------------INICIO Correccion de estilos de la lista de producto */
.page-products #maincontent .column.main .catalog-topnav .amshopby-filter-parent {
    margin-left: 17px !important;
}

@media (min-width: 1680px) {
    .page-products #maincontent .column.main {
        display: flex !important;
        justify-content: space-between !important;
        flex-wrap: nowrap;
    }

    .page-products #maincontent .column.main .catalog-topnav.amasty-catalog-topnav {
        flex: 0 0 250px;
    }

    .page-products #maincontent .column.main #amasty-shopby-product-list {
        flex: 1 1 100px;
        max-width: calc(100% - 250px);
    }
}

@media (max-width: 1680px) {
    .page-products #maincontent .column.main {
        display: flex !important;
        justify-content: space-between !important;
        flex-wrap: nowrap;
    }

    .page-products #maincontent .column.main .catalog-topnav.amasty-catalog-topnav {
        flex: 0 0 250px;
    }

    .page-products #maincontent .column.main #amasty-shopby-product-list {
        flex: 1 1 100px;
        max-width: calc(100% - 250px);
    }
}

@media (max-width: 1120px) {
    .page-products #maincontent .column.main {
        display: flex !important;
        justify-content: space-between !important;
        flex-wrap: nowrap;
    }

    .page-products #maincontent .column.main .catalog-topnav.amasty-catalog-topnav {
        flex: 0 0 250px !important;
    }

    .page-products #maincontent #amasty-shopby-product-list {
        flex: 1 1 auto !important;
        max-width: calc(100% - 250px);
    }
}

@media (max-width: 1000px) {
    .page-products #maincontent {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 770px) {
    .page-products #maincontent .columns {
        width: 95%;
        margin: auto;
    }

    .page-products #maincontent .column.main {
        flex-wrap: wrap;
    }

    .page-products #maincontent .column.main .catalog-topnav {
        display: none;
    }

    .page-products #maincontent .column.main #amasty-shopby-product-list {
        max-width: 100%;
    }
}

/*------------------FIN Correccion de estilos de la lista de producto */

/*------------------INICIO Monto minimo de compra (outlet) */
.outlet-minimum-order-notice {
    background-color: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.minicart-wrapper .outlet-minimum-order-message {
    background-color: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.minicart-wrapper #top-cart-btn-checkout.disabled,
.minicart-wrapper #top-cart-btn-checkout[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
/*------------------FIN Monto minimo de compra (outlet) */
