:root {
    --negro: #000000;
    --dorado: #c59234;
    --dorado-claro: #e6c878;
}

@media (min-width: 992px) {
    .nav-menu {
        max-width: 900px;
        margin: 10px auto;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    padding-top: 210px; /* mobile */
}

/* HEADER PRINCIPAL */
.header {
    width: 100%;
    padding: 0 60px;
    background: var(--negro);
    color: var(--dorado);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* TOP BAR */
.top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 0;
    padding: 10px 0;
}

/* LOGO */
.logo {
    display: flex;
    justify-content: center;
}

.logo img {
    height: 90px;
}

/* REDES SOCIALES */
.social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social.left {
    align-items: flex-start;
}

.social.right {
    align-items: flex-end;
}

.social a {
    color: var(--dorado);
    text-decoration: none;
    font-size: 15px;
    transition: all .3s ease;
}

.social a:hover {
    color: var(--dorado-claro);
    transform: translateY(-2px);
}

.social a i {
    margin-right: 5px;
}

/* SEARCH BAR */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 60%;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border-radius: 30px;
    border: 2px solid var(--dorado);
    background: white;
    color: #000;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
}

.search-box input::placeholder {
    color: #555;
    font-style: italic;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dorado);
    font-size: 18px;
}

/* WISHLIST */
.wishlist {
    background: linear-gradient(135deg, var(--dorado), var(--dorado-claro));
    border: none;
    padding: 14px 25px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .3s ease;
    color: #ffffff;
}

.wishlist:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(201, 161, 74, 0.6);
}

/* NAV MENU CENTRADO */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 50px;
}

/* Links principales */
.nav-menu a,
.mega-trigger>a {
    color: var(--dorado);
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
    transition: color .3s ease;
    display: inline-block;
    position: relative;
}

.nav-menu a.active,
.mega-trigger>a.active {
    color: var(--dorado-claro);
}

/* Línea inferior animada */
.nav-menu a::before,
.mega-trigger>a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--dorado);
    transition: width .3s ease;
}

.nav-menu a:hover::before,
.mega-trigger:hover>a::before,
.nav-menu a.active::before {
    width: 100%;
}

/* MEGA MENU PEQUEÑO */
.mega-trigger {
    position: relative;
    display: inline-block;
}

.mega-menu {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    /* centrar el recuadro bajo el link Fragancias */
    width: 200px;
    /* recuadro pequeño */
    background: #ffffff;
    /* fondo negro */
    border: 2px solid #906a24;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    display: none;
    z-index: 999;
    flex-direction: column;
    /* links en columna */
}

.mega-menu.open {
    display: flex;
}

/* Links internos del mega menú */
.mega-column-small {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(229, 200, 120, 0.3);
}

.mega-column-small:last-child {
    border-bottom: none;
}

.mega-column-small a {
    display: block;
    color: var(--dorado);
    font-size: 14px;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.mega-column-small a:hover {
    color: #e3ab46;
}

/* Carrito ZUÉ */
.cart-zue {
    background: #000;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
}

.cart-zue .offcanvas-header {
    border-bottom: 1px solid rgba(227, 171, 70, 0.3);
}

.cart-zue .offcanvas-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.cart-empty {
    text-align: center;
    opacity: 0.7;
    margin-top: 40px;
    font-family: 'Quicksand', sans-serif;
}

/* Subtotal */
.subtotal-box {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border: 1px solid rgba(227, 171, 70, 0.4);
    margin-top: 30px;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
}

.btn-zue-outline,
.btn-zue-gold {
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 100;
    padding: 12px 0;
    font-size: 16px;
    transition: all .3s ease;
}

/* Seguir comprando */
.btn-zue-outline {
    border: 1px solid #e3ab46;
    color: #e3ab46;
    background: transparent;
}

.btn-zue-outline:hover {
    background: #e3ab46;
    color: #000;
}

/* Enviar mensaje WhatsApp */
.btn-zue-gold {
    background: #e3ab46;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-zue-gold:hover {
    background: #fff;
    color: #000;
}

/* --- ESTILO DEL CARRITO --- */
.cart-item button {
    border: none;
    background: #d4a047;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.cart-item button:hover {
    background: #b38c3a;
    color: #fff;
}

.cart-item span {
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

/* --- BARRA DE BÚSQUEDA --- */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    gap: 8px;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.search-result-item span {
    display: flex;
    flex-direction: column;
}

.search-result-item span small {
    color: #555;
    font-size: 13px;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.zue-toggler {
    border: none;
    padding: 6px 10px;
}

.navbar-toggler-icon {
    width: 26px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(212,160,71,1)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.zue-menu {
    background-color: #000;
    color: #fff;
}

.zue-menu .offcanvas-header {
    border-bottom: 1px solid rgba(227, 171, 70, 0.3);
}

.zue-menu .offcanvas-title {
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 1px;
    color: #e3ab46;
}

/* botón cerrar */
.zue-menu .btn-close {
    filter: invert(1);
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color .3s ease;
}

.mobile-nav a:hover {
    color: #e3ab46;
}

.accordion {
    background: transparent;
}

.accordion-item {
    background: transparent;
    border: none;
}

.accordion-button {
    background: transparent;
    color: #e3ab46;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 1px;
    padding: 16px 0;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: #e3ab46;
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    padding-left: 12px;
}

/* links fragancias */
.accordion-body a {
    display: block;
    padding: 8px 0;
    color: #ddd;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.accordion-body a:hover {
    color: #e3ab46;
}

/* Quitar estados raros del accordion */
.accordion-button:focus {
    box-shadow: none;
}

.accordion-button.collapsed {
    color: #fff;
}

/* cuando está cerrado, no parece activo */
.accordion-button.collapsed:hover {
    color: #e3ab46;
}


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

    body {
        padding-top: 200px;
    }

    .header {
        padding: 0 30px;
    }

    /* TOP BAR */
    .top-bar {
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
    }

    .logo img {
        height: 75px;
    }

    .social {
        font-size: 14px;
    }

    /* SEARCH */
    .search-bar {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 80%;
    }

    /* NAV */
    .nav-menu {
        flex-direction: column;
        gap: 20px;
        margin-top: 15px;
    }

    .nav-menu a,
    .mega-trigger > a {
        font-size: 15px;
    }

    /* MEGA MENU */
    .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        border-radius: 10px;
        box-shadow: none;
        margin-top: 10px;
    }

    .mega-column-small {
        text-align: center;
    }

    /* HAMBURGUESA */
    .navbar-toggler {
        align-self: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {

    body {
        padding-top: 240px;
    }

    .header {
        padding: 0 15px;
    }

    /* TOP BAR */
    .top-bar {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }

    .social {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        font-size: 13px;
    }

    .logo img {
        height: 65px;
    }

    /* SEARCH */
    .search-bar {
        flex-direction: column;
        gap: 12px;
    }

    .search-box {
        width: 100%;
    }

    .wishlist {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 12px;
    }
    
    .nav-menu {
        display: none;
    }

    .nav-menu a,
    .mega-trigger > a {
        font-size: 15px;
    }

    /* MEGA MENU */
    .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        border-radius: 10px;
        box-shadow: none;
        padding: 8px 0;
    }

    .mega-column-small {
        text-align: center;
    }

    /* HAMBURGUESA */
    .navbar-toggler {
        align-self: center;
        margin-bottom: 8px;
    }

    /* SEARCH RESULTS */
    .search-results {
        max-height: 250px;
    }
}
