/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800&display=swap');

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --font-golos: 'Golos Text', Arial, sans-serif;

    --rojo: #EE1d23;
    --rojo2: #b0252a;
    --rojo3: #e40615;
    --verde: #23b24b;
    --verde2: #25944c;
    --turquesa: #4fc4cc;
    --gris1: #f5f5f5;
    --gris2: #e5e5e5;
    --texto: #161616;
    --muted: #777;

    --brand-primary: var(--rojo);
    --brand-primary-hover: #b71c1c;

    --max-width: 1200px;
    --alto_banner_top: 50px;
    --alto_header: 106px;
    --alto_header_controls: 38px;
}

/* =========================================================
   BASE / HELPERS
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background-color: #ebebeb;

    color: var(--texto);
    font-family: var(--font-golos);
}

button,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.m_1200 {
    max-width: var(--max-width);
    margin: 0 auto;
}

.bg_verde {
    background-color: var(--verde) !important;
}

.bg_verde2 {
    background-color: var(--verde2) !important;
}

.bg_rojo {
    background-color: var(--rojo) !important;
}

.bg_rojo2 {
    background-color: var(--rojo2) !important;
}

.bg_rojo3 {
    background-color: var(--rojo3) !important;
}

.is-hidden {
    display: none !important;
}


/* =========================================================
   UTILIDADES RESPONSIVES
   ========================================================= */

.u-desktop-only {
    display: block;
}

.u-mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .u-desktop-only {
        display: none !important;
    }

    .u-mobile-only {
        display: block !important;
    }
}


/* =========================================================
   BOTONES DE MARCA / TEMA
   ========================================================= */

.btn_brand_primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-primary, var(--rojo));
    --bs-btn-border-color: var(--brand-primary, var(--rojo));

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-primary-hover, var(--rojo));
    --bs-btn-hover-border-color: var(--brand-primary-hover, var(--rojo));

    --bs-btn-focus-shadow-rgb: 220, 53, 69;

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-primary-hover, var(--rojo));
    --bs-btn-active-border-color: var(--brand-primary-hover, var(--rojo));

    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--brand-primary, var(--rojo));
    --bs-btn-disabled-border-color: var(--brand-primary, var(--rojo));

    font-weight: 600;
}

.btn_brand_outline {
    --bs-btn-color: var(--brand-primary, var(--rojo));
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--brand-primary, var(--rojo));

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-primary, var(--rojo));
    --bs-btn-hover-border-color: var(--brand-primary, var(--rojo));

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-primary-hover, var(--rojo));
    --bs-btn-active-border-color: var(--brand-primary-hover, var(--rojo));

    font-weight: 600;
}

.btn_brand_secondary {
    --bs-btn-color: var(--color-text, #333);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--color-border, #d8d8d8);

    --bs-btn-hover-color: var(--color-text, #333);
    --bs-btn-hover-bg: #f5f5f5;
    --bs-btn-hover-border-color: #c7c7c7;

    font-weight: 600;
}


/* =========================================================
   BANNER SUPERIOR
   ========================================================= */

.banner_top_wrap {
    position: sticky;
    top: 0;
    z-index: 1060;
    width: 100%;
    border-bottom: 1px solid lightgrey;
}

.banner_top_inner {
    position: relative;
    min-height: var(--alto_banner_top);
    height: var(--alto_banner_top);
    overflow: hidden;
    background: #ff1e1e;
}

.banner_top_slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.banner_top_slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner_top_msg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.banner_top_msg_blanco {
    max-width: calc(100% - 20px);
    padding: 7px 22px;
    border-radius: 999px;
    background: #fff;
    color: #ff1e1e;
}

.banner_top_msg_svg1 {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

.banner_top_msg_svg2 {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site_header {
    position: sticky;
    top: var(--alto_banner_top);
    z-index: 1050;
    width: 100%;
    background: var(--rojo);
    font-family: var(--font-golos);
}

.site_header_inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: var(--alto_header);
    padding: 10px 18px;
}

.site_logo {
    flex: 0 0 125px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site_logo img {
    display: block;
    width: 100%;
    max-width: 112px;
    max-height: 78px;
    object-fit: contain;
}

.site_header_content {
    flex: 1 1 auto;
    min-width: 0;
}

.site_header_search_row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.header_buscar_barra {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.input_group_busqueda {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input_busqueda {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--alto_header_controls);
    border: 0;
    outline: 0;
    border-radius: 6px 0 0 6px;
    padding: 0 14px;
    background: #f2f2f2;
    color: #333;
    font-size: 1rem;
}

.input_busqueda::placeholder {
    color: #b1b1b1;
}

.input_busqueda:hover {
    outline: none !important;
    border-color: #fff !important;
    box-shadow: 0 0 10px grey !important;
}

.input_busqueda:focus {
    outline: none !important;
    border-color: #fff !important;
    box-shadow: 0 0 10px var(--rojo) !important;
}

.btn_search {
    flex: 0 0 var(--alto_header_controls);
    width: var(--alto_header_controls);
    height: var(--alto_header_controls);
    border: 1px solid #fff;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn_search i {
    font-size: 1rem;
}

.btn_shadow:hover {
    outline: none !important;
    border-color: grey !important;
    box-shadow: 0 0 10px grey !important;
}

.btn_shadow:active,
.btn_shadow:focus {
    outline: none !important;
    border-color: #fff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, .75) !important;
}

.btn_search:active,
.btn_search:focus {
    border-color: #fff !important;
    color: #fff !important;
    outline: none !important;
}

.header_actions_right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Header carrito */

.header_cart_btn {
    position: relative;
    width: var(--alto_header_controls);
    height: var(--alto_header_controls);
    border: 1px solid #ffffff;
    border-radius: 4px;
    background: var(--rojo);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.header_cart_btn i {
    font-size: 1rem;
}

.header_cart_badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Header usuario */

.header_user_dropdown {
    position: relative;
}

.header_user_dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    height: 10px;
    z-index: 98;
}

.header_user_btn {
    height: var(--alto_header_controls);
    border: 1px solid #ffffff;
    border-radius: 4px;
    background: var(--rojo);
    color: #fff;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
}

.header_user_btn i {
    line-height: 1;
}

.header_user_arrow {
    font-size: .7rem;
}

.header_user_menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 6px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    z-index: 99;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.header_user_dropdown:hover .header_user_menu,
.header_user_dropdown:focus-within .header_user_menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header_user_menu_header {
    padding: .7rem .9rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    line-height: 1.2;
}

.header_user_menu_header strong {
    display: block;
    font-size: .9rem;
}

.header_user_menu_item {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 14px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    font-size: .94rem;
}

.header_user_menu_item:hover {
    background: #f5f5f5;
}

.header_user_menu_item i {
    width: 18px;
    color: #666;
}

.header_user_menu a.header_user_menu_item {
    text-decoration: none;
    color: inherit;
}

.header_user_menu a.header_user_menu_item:hover {
    color: inherit;
}

/* =========================================================
   MENÚ DE CATEGORÍAS
   ========================================================= */

.catalog-menu {
    position: sticky;
    top: calc(var(--alto_banner_top) + var(--alto_header));
    z-index: 1040;
    background: #fff;
    border-bottom: 1px solid var(--gris2);
}

.cm-desktop {
    position: relative;
}

.cm-scroll {
    overflow-x: auto;
    overflow-y: hidden;
}

.cm-scroll::-webkit-scrollbar {
    height: 4px;
}

.cm-scroll::-webkit-scrollbar-thumb {
    background: #d6d6d6;
    border-radius: 999px;
}

.cm-list {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-item {
    flex: 0 0 auto;
}

.cm-btn {
    height: 42px;
    padding: 0 10px;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: #111;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.cm-btn:hover,
.cm-btn.is-active {
    color: var(--rojo);
    border-left-color: var(--rojo);
}

.cm-arrow {
    margin-left: 3px;
    font-size: 1.2em;
}

.cm-panels {
    position: relative;
}

.cm-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1045;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding: 32px 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.cm-panel.is-active {
    display: block;
}

.cm-panel-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.cm-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 6px 42px;
}

.cm-subcat {
    width: 100%;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: left;
}

.cm-subcat:hover,
.cm-subcat strong {
    color: var(--rojo);
}

/* Menú categorías mobile */

.cm-mobile {
    display: none;
}

.cm-mobile-main,
.cm-mobile-summary {
    display: block;
    position: relative;
    padding: 13px 16px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

.cm-mobile-main::after,
.cm-mobile-summary::after {
    content: "+";
    position: absolute;
    right: 16px;
}

details[open] > .cm-mobile-main::after,
details[open] > .cm-mobile-summary::after {
    content: "−";
}

.cm-mobile details > summary {
    list-style: none;
}

.cm-mobile details > summary::-webkit-details-marker {
    display: none;
}

.cm-mobile-subcats {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 0 8px;
    background: #fafafa;
}

.cm-mobile-subcats button {
    width: 100%;
    padding: 9px 26px;
    border: 0;
    background: transparent;
    text-align: left;
}

/* =========================================================
   MAIN / CATÁLOGO
   ========================================================= */

.main {
    flex: 1 0 auto;
    width: 100%;
    /* max-width: var(--max-width); */
    margin: 0 auto;
    /* padding: 24px 18px 60px; */
    /* padding: 24px 18px 10px; */
    padding: 0 0 10px;
}

.catalog-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.catalog-head h1 {
    margin: 0 0 6px;
    font-size: 1.6rem;
}

.catalog-head p {
    margin: 0;
    color: var(--muted);
}

.catalog-tools select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.status-box {
    margin: 16px 0;
    padding: 14px 16px;
    background: var(--gris1);
    border: 1px solid var(--gris2);
    border-radius: 10px;
    color: var(--muted);
}

/* =========================================================
   PRODUCTOS / GRILLA
   ========================================================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 365px;
    padding: 12px;
    border: 1px solid var(--gris2);
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.product-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.product-img img {
    max-width: 100%;
    max-height: 145px;
    object-fit: contain;
}

.product-img-empty {
    color: #aaa;
    font-size: 0.85rem;
    text-align: center;
}

.product-name {
    min-height: 58px;
    margin-bottom: 8px;
    font-size: 0.93rem;
    line-height: 1.25;
    font-weight: 600;
}

.product-meta {
    min-height: 20px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

.product-price {
    margin-top: auto;
    text-align: center;
}

.price-final {
    display: block;
    color: #111;
    font-size: 1.2rem;
    font-weight: 800;
}

.price-list-old {
    display: block;
    color: #888;
    font-size: 0.82rem;
    text-decoration: line-through;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
}

.product-actions button {
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: var(--verde);
    color: #fff;
    font-weight: 700;
}

.product-actions button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Productos - flags */

.product-flags {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    pointer-events: none;
}

.product-flag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .12);
}

.product-flag-oferta {
    background: var(--rojo);
}

.product-flag-promo {
    background: var(--verde2);
    color: #fff;
}

.product-flag-sintacc {
    background: var(--verde);
}

.product-flag-importado {
    background: #444;
}

.product-flag-peso {
    background: var(--turquesa);
}

.product-flag-origen {
    gap: 5px;
    background: #444;
}

.product-flag-origen img {
    width: 16px;
    height: 11px;
    display: block;
    object-fit: cover;
    border-radius: 2px;
}

.product-flag-origen span {
    line-height: 1;
}

/* =========================================================
   MODAL PRODUCTO
   ========================================================= */

.producto_modal_img_box {
    width: 100%;
    height: 340px;
    max-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 1rem;
    padding: 1rem;
}

.producto_modal_img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.producto_modal_sin_foto {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
    border-radius: .75rem;
    background: #f1f1f1;
}

/* Modal producto - badges */

.producto_modal_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.producto_modal_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

.producto_modal_badge_oferta {
    background: var(--rojo);
}

.producto_modal_badge_promo {
    background: var(--verde2);
    color: #fff;
}

.producto_modal_badge_sintacc {
    background: var(--verde);
}

.producto_modal_badge_importado {
    background: #444;
}

.producto_modal_badge_importado img {
    width: 16px;
    height: 11px;
    display: block;
    object-fit: cover;
    border-radius: 2px;
}

.producto_modal_badge_peso {
    background: var(--turquesa);
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 26px;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.pagination button.is-active {
    border-color: var(--rojo);
    background: var(--rojo);
    color: #fff;
}

/* =========================================================
   LOADER
   ========================================================= */

.loader {
    position: fixed;
    top: calc(var(--alto_banner_top) + var(--alto_header) + 58px);
    left: 50%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    pointer-events: none;
    transform: translateX(-50%);
}

.loader-box {
    min-width: 150px;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}

.spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    border: 4px solid #eee;
    border-top-color: var(--rojo);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .loader {
        top: 110px;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site_footer {
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 1rem;
    background-color: var(--rojo);
    color: #fff;
    font-family: var(--font-golos);
    font-size: 0.8em;
    cursor: default;
    letter-spacing: 1px;
}

.site_footer_inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: var(--max-width);
    margin: 0 auto;
}

.site_footer_col {
    min-height: 150px;
    padding: 0.5rem 1.5rem 0.25rem;
}

.site_footer_brand,
.site_footer_payments {
    border-right: 1px solid lightgrey;
}

.footer_brand_layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: start;
}

.footer_logo_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 105px;
    text-align: center;
}

.img_logo_footer {
    object-fit: contain;
    max-height: 100px;
    max-width: 100%;
}

.footer_socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.footer_social_link {
    color: inherit;
    text-decoration: none;
}

.footer_social_link:hover {
    color: #fff;
}

.icono1 {
    transition: transform .1s;
}

.icono1:hover {
    transform: scale(1.2);
}

.footer_title {
    margin-bottom: 0.5rem;
    font-size: 1.2em !important;
    font-weight: 700;
    text-transform: uppercase;
}

.footer_text {
    margin-bottom: 0.25rem;
    font-size: 0.9em;
    line-height: 1.35;
}

.site_footer hr {
    margin: 0.35rem 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.footer-dev {
    max-width: var(--max-width);
    margin: 0.5rem auto;
    /* padding: 0.5rem; */
    text-align: center;
    font-size: 0.60rem;
    color: rgba(255, 255, 255, 0.63);
    font-weight: 300;
    line-height: 1;
}

.footer-dev a {
    color: rgba(255, 255, 255, 0.658);
    text-decoration: none;
    font-weight: 400;
}

.footer-dev a:hover {
    color: #fff;
    text-decoration: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 1200px) {
    .cm-list {
        justify-content: flex-start;
    }

    .cm-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 991px) {
    :root {
        --alto_header: 92px;
    }

    .site_header_inner {
        gap: 14px;
    }

    .site_logo {
        flex-basis: 100px;
    }

    .site_logo img {
        max-width: 92px;
        max-height: 66px;
    }
}

@media screen and (max-width: 900px) {
    .cm-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    :root {
        --alto_banner_top: 40px;
        --alto_header: auto;
    }

    .banner_top_msg {
        gap: 6px;
        font-size: 16px;
    }

    .banner_top_msg_blanco {
        max-width: calc(100% - 12px);
        padding: 6px 16px;
    }

    .banner_top_msg_svg1 {
        width: 17px;
        height: 17px;
    }

    .banner_top_msg_svg2 {
        width: 20px;
        height: 20px;
    }

    .site_header {
        position: relative;
        top: auto;
    }

    .site_header_inner {
        min-height: 0;
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px;
    }

    .site_logo {
        flex: 0 0 82px;
    }

    .site_logo img {
        max-width: 78px;
        max-height: 58px;
    }

    .site_header_content {
        flex: 1 1 calc(100% - 92px);
    }

    .site_header_search_row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header_buscar_barra {
        flex: 0 0 100%;
        order: 2;
    }

    .header_actions_right {
        width: 100%;
        justify-content: flex-end;
        order: 1;
    }

    .header_user_btn span {
        display: none;
    }

    .header_user_menu {
        right: 0;
    }

    .catalog-menu {
        top: auto;
        position: relative;
    }

    .cm-desktop {
        display: none;
    }

    .cm-mobile {
        display: block;
    }

    .catalog-head {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card {
        min-height: 345px;
        padding: 10px;
    }

    .product-img {
        height: 130px;
    }

    .product-img img {
        max-height: 125px;
    }

    .producto_modal_img_box {
        height: 260px;
        max-height: 260px;
    }
}

@media screen and (max-width: 575px) {
    .site_footer {
        padding: 0 10px;
    }

    .site_footer_inner {
        grid-template-columns: 1fr;
    }

    .site_footer_col {
        padding: 1.25rem 0;
    }

    .site_footer_brand,
    .site_footer_payments {
        border-right: none;
        border-bottom: 1px solid lightgrey;
    }

    .site_footer_brand {
        padding-top: 0;
    }

    .site_footer_delivery {
        padding-bottom: 0.75rem;
    }

    .footer_brand_layout {
        grid-template-columns: minmax(0, 1fr) 48px;
    }
}

@media screen and (max-width: 420px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 260px;
        width: 100%;
        margin: 0 auto;
    }
}

/* =========================================================
   BUSQUEDA - CATEGORIAS DE RESULTADOS
   ========================================================= */
/* Búsqueda - categorías de resultados */

.search-facets {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--gris2);
    border-radius: 12px;
    background: #fff;
}

.search-facets-title {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
}

.search-facets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-facet-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: .86rem;
    font-weight: 600;
}

.search-facet-chip span {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .74rem;
    font-weight: 700;
}

.search-facet-chip:hover,
.search-facet-chip.is-active {
    border-color: var(--rojo);
    background: var(--rojo);
    color: #fff;
}

.search-facet-chip:hover span,
.search-facet-chip.is-active span {
    background: #fff;
    color: var(--rojo);
}

/* ***************************************** */
/* Ocultar flechas nativas en inputs type number */

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ***************************************** */
/* AVISO INICIAL */
.aviso_inicial {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 15px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .35s ease,
        visibility 0s linear .35s;
}

.aviso_inicial.is_visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.aviso_inicial_content {
    position: relative;
    max-width: 600px;
    width: 100%;
    line-height: 0;

    opacity: 0;
    transform: translateY(8px) scale(.985);
    transition:
        opacity .35s ease,
        transform .35s ease;
}

.aviso_inicial.is_visible .aviso_inicial_content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.aviso_inicial_img {
    display: block;
    width: 100%;
    height: auto;
}

.aviso_cerrar {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.aviso_cerrar img {
    display: block;
    width: 100%;
    height: auto;
}

body.aviso_inicial_abierto {
    overflow: hidden;
}

@media (max-width: 767px) {
    .aviso_inicial_content {
        max-width: 500px;
    }

    .aviso_cerrar {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aviso_inicial,
    .aviso_inicial_content {
        transition: none;
    }
}
