/* ====================================================
   HEADER BASE
==================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    box-shadow: 0 1px 0 var(--gray-200);
}

/* ====================================================
   VISIBILITY HELPERS
==================================================== */
.hide-on-desktop {
    display: none !important;
}

.hide-on-mobile {
    display: flex !important;
}

@media (max-width: 991px) {
    .hide-on-desktop {
        display: flex !important;
    }

    .hide-on-mobile {
        display: none !important;
    }
}

/* ====================================================
   TOP ANNOUNCEMENT BAR
==================================================== */
.top-announcement {
    background: var(--blue);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
}

.top-announcement__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    max-width: 1440px;
    margin: 0 auto;
}

.top-announcement__left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-announcement__right {
    display: flex;
    align-items: center;
}

.top-announcement__center {
    flex: 1;
    display: flex;
    justify-content: center;
    text-align: center;
}

.top-actions-desktop {
    align-items: center;
    gap: 30px;
}

.trust-info-simple {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    white-space: nowrap;
}

.trust-stars-mini {
    color: #00b67a;
    font-size: 14px;
}

.trust-logo-mini {
    font-weight: 700;
}

.top-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.top-lang-btn-desktop {
    background: none;
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
}

/* ====================================================
   TOP NAV
==================================================== */

.top-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 40px;
    height: var(--header-h);
    max-width: 1440px;
    margin: 0 auto;
}

.logo__img {
    height: 40px;
}

.btn-categories-desktop {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 0 18px;
    height: 44px;
    font-size: 14px;
    cursor: pointer;
}

.search-wrap-premium {
    flex: 1;
    position: relative;
    max-width: 800px;
    margin: 0 20px;
}

.search-input-premium {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 0 46px 0 18px;
    font-size: 15px;
}

.search-btn-premium {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
}

.auth-zone-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-login-desktop {
    background: none !important;
    border: 1.5px solid var(--gray-200) !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-family: 'DM Sans', sans-serif !important;
    color: var(--black) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

.auth-zone-desktop a {
    text-decoration: none;
}

.btn-login-desktop:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.btn-sell-black {
    background: var(--black);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.btn-sell-black:hover {
    background: var(--black) !important;
    border-color: var(--black) !important;
    opacity: 0.85;
}

/* ====================================================
   CATEGORY BAR
==================================================== */
.cat-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 120px;
    padding: 0 16px;
}

.cat-bar__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cat-bar__scroll::-webkit-scrollbar {
    display: none;
}

.cat-bar.is-hidden {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.cat-bar__list {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: max-content;
    justify-content: center;
    scrollbar-width: none;

}

.cat-bar__list::-webkit-scrollbar {
    display: none;
}

.cat-item {
    flex-shrink: 0;
    display: flex;
}

.cat-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    width: 140px;
    height: var(--cat-h);
    padding: 0 18px;
    text-decoration: none;
    color: var(--gray-600);
    border: 1px solid transparent;
    margin: 10px 0;
    transition: all 0.2s ease;
}

.cat-item a:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: var(--black);
    border-radius: 12px;
    
}

.cat-item.active a {
    color: var(--black);
    border-bottom: 2px black solid;
}

/* =========================
   NORMALIZACIÓN ICONOS CATEGORÍAS
========================= */

.cat-icon {
    width: 92px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TODOS los SVG se comportan igual */
.cat-icon svg {
    min-width: 100%;
    min-height: 100%;
}

/* Color unificado */
.cat-icon svg path,
.cat-icon svg line,
.cat-icon svg rect,
.cat-icon svg circle,
.cat-icon svg path,
.cat-icon svg line,
.cat-icon svg rect,
.cat-icon svg circle {
    stroke: var(--gray-400);
}

/* Hover */
.cat-item:hover .cat-icon svg path,
.cat-item:hover .cat-icon svg line,
.cat-item:hover .cat-icon svg rect,
.cat-item:hover .cat-icon svg circle,
.cat-item.active .cat-icon svg path,
.cat-item.active .cat-icon svg line,
.cat-item.active .cat-icon svg rect,
.cat-item.active .cat-icon svg circle {
    stroke: var(--black);
}

.cat-label {
    font-size: 11.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

/* ====================================================
   MOBILE NAV ICONS
==================================================== */
.hamburger {
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
}

.nav-icons-right {
    display: none;
    gap: 10px;
}

.nav-icon-link {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--white) !important;
    border: 1.5px solid var(--gray-200) !important;
    border-radius: 50% !important;
    color: var(--gray-600) !important;
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s;
    padding: 0 !important;
}

.nav-icon-link:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.nav-icon-link svg {
    width: 18px;
    height: 18px;
}

/* ====================================================
   MOBILE DRAWER
==================================================== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 300;
    opacity: 0;
    transition: opacity .28s ease;
}

.mobile-overlay.is-visible {
    display: block;
}

.mobile-overlay.is-open {
    opacity: 1;
}

.mobile-drawer-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 400;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
}

.mobile-drawer-premium.is-open {
    transform: translateX(0);
}

.drawer__head-premium {
    background: var(--blue);
    padding: 5px 12px;
    display: flex;
    justify-content: space-between;
    color: var(--white);
}

.drawer__close-premium {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
}

/* BODY */
.drawer__body-premium {
    flex: 1;
    overflow-y: auto;
    background-color: var(--gray-100);
}

.drawer__menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--white);
}

.drawer__menu-list li a {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 15px;
    gap: 12px;
    font-weight: 500;
}

.drawer__menu-list li a:hover {
    background: var(--gray-100);
}

.drawer__menu-list li a i.fa-arrow-right {
    margin-left: auto;
    font-size: 13px;
    color: var(--gray-500);
}

.drawer__menu-list li,
.drawer__menu-list li a {
    border-bottom: none;
}

/* BLOQUE SUPERIOR (BLANCO) */
.drawer__body-premium>.drawer__menu-list:first-of-type {
    background: var(--white);
}

.drawer__secondary-premium {
    background: var(--gray-100);
    margin: 0;
    padding-top: 10px;
}


.drawer__secondary-premium .drawer__menu-list {
    background: transparent;
}


.drawer__secondary-premium .drawer__menu-list li a {
    background: transparent;
    font-weight: 400;
    color: var(--gray-500);
    font-weight: 500;
}

/* FOOTER integrado en gris */
.drawer__footer-premium {
    background: var(--gray-100);
    padding: 24px;
    margin-top: 0;
    display: flex;
    justify-content: center;

}

/* Botón */
.btn-contact-drawer-premium {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 10px 35px;
    border-radius: 10px;
    font-weight: 400;
    margin-bottom: 75px;
}

.btn-contact-drawer-premium:hover {
    background: var(--blue-hover);
}

/* ====================================================
   MOBILE
==================================================== */
@media (max-width: 991px) {

    .top-announcement__inner {
        padding: 0 14px;
    }

    .top-nav__inner {
        padding: 0 14px;
        height: 64px;
    }

    .hamburger {
        display: flex;
    }

    .nav-icons-right {
        display: flex;
    }

    .search-wrap-premium {
        margin: 0;
    }

    .search-input-premium {
        height: 40px;
        font-size: 14px;
    }

    .cat-bar__list {
        justify-content: flex-start;
    }

    .cat-icon svg {
        width: 24px;
        height: 24px;
    }

    .cat-item {
        min-width: 120px;
    }
}
