/* ========================================
   HEADER GENERAL
   ======================================== */

.site-header {
    width: 100%;
    background-color: #ffffff;
}


/* ========================================
   HEADER - FILA PRINCIPAL
   ======================================== */

.header-main {
    display: flex;
    align-items: center;
    gap: 55px;

    padding: 28px 0 20px;
}


/* ========================================
   LOGO
   ======================================== */

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    width: 155px;
    height: auto;
    display: block;
}


/* ========================================
   BUSCADOR
   ======================================== */

.header-search {
    flex: 1;
    margin: 0;
}

.header-search .uk-inline {
    width: 100%;
}

.header-search .uk-form-icon {
    color: #555555;
}

.header-search .uk-input {
    height: 52px;

    padding-left: 52px;
    padding-right: 25px;

    border: none;
    border-radius: 15px;

    background-color: #fff4ed;

    color: #333333;

    font-size: 15px;

    box-sizing: border-box;

    transition: all 0.2s ease;
}

.header-search .uk-input::placeholder {
    color: #777777;
}

.header-search .uk-input:focus {
    background-color: #ffffff;

    border: 1px solid #f97316;

    outline: none;

    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}


/* ========================================
   WHATSAPP
   ======================================== */

.header-whatsapp {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 180px;

    padding: 10px 18px;

    border: 1.5px solid #f97316;
    border-radius: 15px;

    background-color: #fff4ed;

    color: #222222;

    text-decoration: none;

    flex-shrink: 0;

    transition: all 0.2s ease;

    box-sizing: border-box;
}

.header-whatsapp-icon {
    width: 30px;
    height: 30px;

    object-fit: contain;

    flex-shrink: 0;
}

.header-whatsapp:hover {
    background-color: #fff7f2;

    color: #222222;

    text-decoration: none;
}

.header-whatsapp>span:first-child {
    color: #f97316;
}

.header-whatsapp-text {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}

.header-whatsapp-text strong {
    font-size: 15px;
    font-weight: 700;

    color: #222222;
}

.header-whatsapp-text span {
    font-size: 14px;

    color: #333333;
}


/* ========================================
   HEADER - CATEGORÍAS
   ======================================== */

.header-categories {
    background-color: transparent;

    padding-bottom: 0px;
}

.header-category-list {
    display: flex;
    align-items: center;
    justify-content: center;

    list-style: none;

    margin: 0;
    padding: 0;

    width: 100%;

    background-color: #ff7a2f;

    border-radius: 16px;

    overflow: hidden;
}


/* Cada categoría */

.header-category-list li {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}


/* Separadores */

.header-category-list li:not(:last-child)::after {
    content: "";

    position: absolute;

    right: 0;

    width: 1px;
    height: 24px;

    background-color: rgba(255, 255, 255, 0.35);
}


/* Links */

.header-category-list a {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;

    padding: 14px 10px;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: background-color 0.2s ease;

    box-sizing: border-box;
}

.header-category-list a:hover {
    color: #ffffff;

    background-color: rgba(255, 255, 255, 0.12);

    text-decoration: none;
}

.header-category-list a [uk-icon] {
    flex-shrink: 0;
}


/* ========================================
   BOTÓN HAMBURGUESA
   ======================================== */

.header-menu-toggle {
    display: none;
}

/* ========================================
   TABLET
   ======================================== */

@media (min-width: 768px) and (max-width: 1100px) {

    /* ========================================
       HEADER - FILA PRINCIPAL
       ======================================== */

    .header-main {
        gap: 25px;

        padding: 22px 0 18px;
    }


    /* ========================================
       LOGO TABLET
       ======================================== */

    .header-logo img {
        width: 125px;
    }


    /* ========================================
       BUSCADOR TABLET
       ======================================== */

    .header-search .uk-input {
        height: 48px;

        padding-left: 48px;
        padding-right: 18px;

        font-size: 14px;
    }


    /* ========================================
       WHATSAPP TABLET
       ======================================== */

    .header-whatsapp {
        min-width: 155px;

        gap: 8px;

        padding: 8px 12px;

        border-radius: 12px;
    }


    .header-whatsapp-icon {
        width: 27px;
        height: 27px;
    }


    .header-whatsapp-text strong {
        font-size: 13px;
    }


    .header-whatsapp-text span {
        font-size: 12px;
    }


    /* ========================================
       CATEGORÍAS TABLET
       ======================================== */

    .header-category-list {
        border-radius: 14px;
    }


    .header-category-list a {
        gap: 0;

        padding: 12px 6px;

        font-size: 13px;

        white-space: nowrap;
    }


    /* Ocultar iconos de categorías únicamente en tablet */
    .header-category-list a [uk-icon],
    .header-category-list a .uk-icon {
        display: none !important;
    }


    .header-category-list li:not(:last-child)::after {
        height: 22px;
    }

}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 767px) {

    /* Header principal */

    .header-main {
    display: grid;

    grid-template-columns: 42px auto 1fr;

    align-items: center;

    gap: 10px;

    padding: 14px 0 16px;
}


    /* ========================================
       HAMBURGUESA
       ======================================== */

    .header-menu-toggle {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;

        padding: 0;
        margin: 0;

        border: none;

        background: transparent;

        color: #222222;

        cursor: pointer;
    }


    /* ========================================
       LOGO MOBILE
       ======================================== */

    .header-logo {
    justify-self: start;

    display: flex;
    align-items: center;
}

.header-logo img {
    width: 95px;
    height: auto;
}


    /* ========================================
   WHATSAPP MOBILE
   ======================================== */

.header-whatsapp {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    min-width: auto;

    padding: 7px 10px;

    border: 1.5px solid #f97316;

    border-radius: 12px;

    background-color: #fff4ed;

    grid-column: 3;
    grid-row: 1;

    justify-self: end;

    box-sizing: border-box;
}

.header-whatsapp:hover {
    background-color: #fff4ed;
}

.header-whatsapp-icon {
    width: 25px;
    height: 25px;

    object-fit: contain;

    flex-shrink: 0;
}

.header-whatsapp-text {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.header-whatsapp-text strong {
    font-size: 11px;
}

.header-whatsapp-text span {
    font-size: 10px;
}


    /* ========================================
       BUSCADOR MOBILE
       ======================================== */

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;

        width: 100%;
    }

    .header-search .uk-input {
    height: 46px;

    font-size: 13px;

    padding-left: 48px;

    border-radius: 15px;

    background-color: #fff4ed;
}


    /* ========================================
       OCULTAR CATEGORÍAS DESKTOP
       ======================================== */

    .header-categories {
        padding-bottom: 0;
    }

    .header-category-list {
        display: none;
    }


    /* ========================================
       MENÚ MOBILE
       ======================================== */

    #mobile-categories {
        margin-top: 5px;
        margin-bottom: 10px;

        background-color: #ffffff;

        border-radius: 12px;

        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

        overflow: hidden;
    }

    #mobile-categories .uk-nav {
        margin: 0;

        padding: 8px 0;
    }

    #mobile-categories .uk-nav li a {
        display: flex;

        align-items: center;

        gap: 12px;

        padding: 13px 18px;

        color: #333333;

        text-decoration: none;

        font-size: 14px;
    }

    #mobile-categories .uk-nav li a:hover {
        background-color: #fff7f2;

        color: #f97316;
    }

}

/* ========================================
   BUSCADOR EN VIVO (DROPDOWN PREDICTIVO)
   ======================================== */
.search-live-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(249, 115, 22, 0.15);
    z-index: 1050;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
}

.search-live-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.search-live-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #1f2937;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.search-live-item:last-child {
    border-bottom: none;
}

.search-live-item:hover,
.search-live-item.is-selected {
    background-color: #fff7ed;
    color: #111827;
}

.search-live-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #f9fafb;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
    padding: 2px;
}

.search-live-info {
    flex: 1;
    min-width: 0;
}

.search-live-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-live-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.search-live-badge {
    background: #f3f4f6;
    color: #4b5563;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
}

.search-live-price {
    font-weight: 700;
    color: #f97316;
    font-size: 14px;
    white-space: nowrap;
    margin-left: auto;
    text-align: right;
}

.search-live-price-original {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

.search-live-footer {
    display: block;
    background: #fff7ed;
    color: #ea580c;
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #fed7aa;
    transition: background 0.15s ease;
}

.search-live-footer:hover {
    background: #ffedd5;
    color: #c2410c;
}

.search-live-empty {
    padding: 22px 18px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.search-live-loading {
    padding: 18px;
    text-align: center;
    color: #f97316;
    font-size: 13px;
}