/* =========================
   ENCABEZADO GENERAL
========================= */

.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    background-color: #ffffff;
}

/* =========================
   BARRA SUPERIOR
========================= */

.announcement-bar {
    min-height: 34px;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: #e8edd6;
    color: #252525;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.2px;
    text-align: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.announcement-bar:hover {
    background-color: #dfe5c9;
    color: #1a1a1a;
}

.announcement-bar span {
    transition: transform 0.25s ease;
}

.announcement-bar:hover span {
    transform: translateX(4px);
}

/* =========================
   NAVEGACIÓN PRINCIPAL
========================= */

.main-navbar {
    min-height: 138px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.navbar-container {
    width: min(100% - 48px, 1320px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

/* =========================
   LOGOTIPO
========================= */

.brand-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #111111;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .brand-logo:hover {
        color: #111111;
        opacity: 0.9;
        transform: translateY(-1px);
    }

.brand-logo-img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border: none;
    box-shadow: none;
    background: transparent;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

    .brand-logo:hover .brand-logo-img {
        transform: scale(1.05);
        box-shadow: none;
    }

.brand-logo-text {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 6px;
    color: #111111;
}

/* =========================
   CONTENIDO DEL MENÚ
========================= */

.navbar-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.main-menu {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 42px;
    list-style: none;
}

    .main-menu > li {
        position: relative;
    }

        .main-menu > li > a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 15px 0;
            color: #242424;
            text-decoration: none;
            font-size: 16px;
            font-weight: 400;
            transition: color 0.2s ease, opacity 0.2s ease;
        }

            .main-menu > li > a:hover {
                color: #6b7354;
            }

.plus-icon {
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.25s ease;
}

/* =========================
   MENÚ DESPLEGABLE
========================= */

.dropdown-menu-custom {
    min-width: 230px;
    margin: 0;
    padding: 12px 0;
    position: absolute;
    top: calc(100% + 4px);
    left: -20px;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.09);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

    .dropdown-menu-custom a {
        display: block;
        padding: 12px 20px;
        color: #252525;
        text-decoration: none;
        font-size: 14px;
        transition: background-color 0.2s ease, padding-left 0.2s ease;
    }

        .dropdown-menu-custom a:hover {
            padding-left: 25px;
            background-color: #f3f5ea;
        }

.dropdown-item:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item:hover .plus-icon {
    transform: rotate(45deg);
}

/* =========================
   ACCIONES DE LA DERECHA
========================= */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 21px;
}

.shop-button {
    padding: 10px 21px;
    background-color: #e8edd6;
    border: 1px solid #8b9274;
    border-radius: 999px;
    color: #313426;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .shop-button:hover {
        background-color: #dce3c4;
        color: #313426;
        transform: translateY(-1px);
    }

.icon-button {
    width: 29px;
    height: 40px;
    padding: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #101010;
    text-decoration: none;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .icon-button:hover {
        color: #6b7354;
        transform: translateY(-1px);
    }

.cart-counter {
    width: 17px;
    height: 17px;
    position: absolute;
    top: 1px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222222;
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
}

/* =========================
   BOTÓN MÓVIL
========================= */

.mobile-menu-button {
    width: 42px;
    height: 42px;
    padding: 9px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

    .mobile-menu-button span {
        width: 100%;
        height: 2px;
        display: block;
        background-color: #161616;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .mobile-menu-button.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

.search-panel {
    width: 100%;
    padding: 0 24px;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #e2e2e2;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, padding 0.3s ease, opacity 0.25s ease;
    z-index: 1050;
}

    .search-panel.active {
        max-height: 580px;
        padding-top: 24px;
        padding-bottom: 28px;
        opacity: 1;
        overflow-y: auto;
    }

.search-panel-container {
    width: min(100%, 850px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.search-form {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #7f8767;
    background-color: transparent;
    transition: border-color 0.2s ease;
}

    .search-form:focus-within {
        border-color: #20221c;
    }

    .search-form input {
        flex: 1;
        padding: 12px 6px;
        border: 0;
        outline: none;
        color: #222222;
        font-size: 17px;
        background: transparent;
    }

    .search-form input::placeholder {
        color: #888888;
        font-size: 15px;
    }

    .search-form button {
        width: 42px;
        height: 42px;
        background: transparent;
        border: 0;
        color: #222222;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .search-form button:hover {
        color: #7f8767;
        transform: scale(1.1);
    }

/* Resultados en vivo */
.search-live-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-results-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.search-results-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #7f8767;
}

.search-results-hint {
    font-size: 12px;
    color: #888888;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Tarjeta individual de resultado */
.search-result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background-color: #faf9f6;
    border: 1px solid #e8e6df;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .search-result-card:hover {
        background-color: #f2f5e8;
        border-color: #b5bf98;
        transform: translateX(4px);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    }

.search-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: #20221c;
    color: #e8edd6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

    .search-result-card:hover .search-card-icon {
        background-color: #7f8767;
        transform: scale(1.05);
    }

.search-card-body {
    flex: 1;
    min-width: 0;
}

.search-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.search-card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f8767;
}

.search-card-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    background-color: #dfe5c9;
    color: #20221c;
    font-size: 10px;
    font-weight: 700;
}

.search-card-title {
    margin: 0 0 3px 0;
    font-size: 15px;
    font-weight: 600;
    color: #20221c;
    line-height: 1.3;
}

.search-card-desc {
    margin: 0;
    font-size: 12.5px;
    color: #666666;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-card-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #7f8767;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

    .search-result-card:hover .search-card-action {
        transform: translateX(3px);
        color: #20221c;
    }

/* Estado sin resultados */
.search-empty-state {
    padding: 24px 16px;
    text-align: center;
    background-color: #faf9f6;
    border-radius: 8px;
    border: 1px dashed #d5d3ca;
}

.empty-icon {
    font-size: 26px;
    color: #999999;
    margin-bottom: 6px;
}

.search-empty-state p {
    margin: 0 0 14px 0;
    font-size: 14px;
    color: #555555;
}

.empty-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

    .empty-quick-tags span {
        font-size: 12px;
        color: #777777;
    }

.quick-filter-chip {
    padding: 5px 13px;
    background-color: #e8edd6;
    border: 1px solid #ced8b5;
    border-radius: 20px;
    color: #252525;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .quick-filter-chip:hover {
        background-color: #7f8767;
        color: #ffffff;
        border-color: #7f8767;
    }

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {

    .main-navbar {
        min-height: 95px;
    }

    .navbar-container {
        width: min(100% - 32px, 1320px);
    }

    .mobile-menu-button {
        display: flex;
    }

    .navbar-content {
        width: 100%;
        padding: 25px 24px;
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
        background-color: #ffffff;
        border-top: 1px solid #eeeeee;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
    }

        .navbar-content.active {
            display: flex;
        }

    .main-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

        .main-menu > li {
            width: 100%;
            border-bottom: 1px solid #eeeeee;
        }

            .main-menu > li > a {
                justify-content: space-between;
                padding: 15px 0;
            }

    .dropdown-menu-custom {
        min-width: 100%;
        padding: 0 0 10px;
        position: static;
        display: none;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-item.open .dropdown-menu-custom {
        display: block;
    }

    .dropdown-item:hover .dropdown-menu-custom {
        transform: none;
    }

    .navbar-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {

    .announcement-bar {
        min-height: 30px;
        font-size: 11px;
    }

    .main-navbar {
        min-height: 78px;
    }

    .navbar-container {
        width: min(100% - 24px, 1320px);
        gap: 15px;
    }

    .brand-logo {
        font-size: 23px;
        letter-spacing: 4px;
    }

    .shop-button {
        width: 100%;
        text-align: center;
    }
}

/* =========================
   BOTÓN FLOTANTE DE WHATSAPP
========================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
    color: #ffffff !important;
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background-color: #20221c;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #20221c;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 600px) {
    .brand-logo {
        gap: 10px;
    }

    .brand-logo-img {
        height: 46px;
        width: 46px;
        border: none;
        box-shadow: none;
    }

    .brand-logo-text {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}
