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

/* =======================
   NAVBAR GENERAL
======================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fffaf4;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #6d28d9; /* morado suave */
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all .4s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast i {
    font-size: 18px;
}


/* =======================
   DESKTOP NAVBAR
======================= */
.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
.navbar-desktop {
    height: 70px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

/* LOGO */
.nav-logo a {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.nav-logo span {
    color: #d32fc5;
}

/* LINKS CENTRADOS */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}
.nav-links a{
    list-style: none;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}
.nav-links span{
        color: #d32fc5;

}

.nav-link {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: .5px;
    color: #333;
    position: relative;
    padding: 5px 0;
    transition: .3s;
}

.nav-link:hover,
.nav-link.active {
    color: #d32fc5;
}

/* ICONOS DERECHA */
.nav-icons {
    display: flex;
    gap: 20px;
}

.nav-icons a {
    color: #000;
    font-size: 1.3rem;
    transition: .3s;
}
.search-bar {
    display: none;
    background: #fffaf4;
    padding: 15px 40px;
    box-shadow: 0 6px 15px rgba(0,0,0,.08);
}

.search-bar.active {
    display: block;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-size: 1rem;
    outline: none;
}

.search-bar input:focus {
    border-color: #d32fc5;
}


.nav-icons a:hover {
    color: #d32fc5;
}
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    background: #7b2cbf;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* =======================
   MOBILE TOP BAR
======================= */
.navbar-mobile {
    display: none;
    height: 60px;
    padding: 0 15px;
    align-items: center;
    gap: 15px;
}

/* BOTÓN HAMBURGUESA */
.drawer-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #000;
}

/* LOGO MOBILE */
.mobile-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.mobile-logo span {
    color: #d32fc5;
}
.mobile-icons {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin-left: auto;
}

/* =======================
   OVERLAY
======================= */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 998;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* =======================
   DRAWER MOBILE
======================= */
.drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fffaf4;
    z-index: 999;
    transition: .35s ease;
    display: flex;
    flex-direction: column;
}


.drawer.active {
    left: 0;
}

/* DRAWER HEADER */
.drawer-header {
    padding: 20px;
    background: #d32fc5;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.drawer-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* DRAWER LINKS */
.drawer-links {
    list-style: none;
    padding: 10px 0;
}

.drawer-links li {
    border-bottom: 1px solid #eee;
}

.drawer-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    text-decoration: none;
    font-size: 1.05rem;
    color: #333;
    transition: .25s;
}

.drawer-links a i {
    color: #d32fc5;
    font-size: 1.1rem;
}

.drawer-links a:hover,
.drawer-links a.active {
    background: rgba(211,47,197,.12);
    color: #d32fc5;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 992px) {
    .navbar-desktop {
        display: none;
    }

    .navbar-mobile {
        display: flex;
    }
}
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
