/* =========================================================
   LILI MIMOS - LAYOUT (HEADER, FOOTER, CATEGORIAS)
========================================================= */

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(135deg, var(--rosa-vivo), var(--roxo));
    color: var(--branco);
    padding: 8px 0;
    font-size: 0.75rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: var(--branco);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.top-bar-social a:hover {
    color: var(--amarelo-vivo);
    transform: translateY(-1px);
}

/* ===== HEADER PRINCIPAL ===== */
.header {
    background: var(--branco);
    padding: 16px 0;
    border-bottom: 3px solid var(--rosa-vivo);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--sombra);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.logo-link {
    flex-shrink: 0;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Menu Wrapper */
.menu-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: flex-end;
}

/* Menu Principal */
.menu-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.menu-main a {
    text-decoration: none;
    color: var(--texto);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.menu-main a i {
    color: var(--rosa-vivo);
    font-size: 0.9rem;
}

.menu-main a:hover {
    color: var(--rosa-escuro);
}

/* Redes sociais no header */
.header-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--cinza-claro);
}

.header-social a {
    color: var(--texto-claro);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.header-social a:hover {
    color: var(--rosa-vivo);
    transform: scale(1.1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-link {
    position: relative;
    color: var(--texto);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-link:hover {
    color: var(--rosa-vivo);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--rosa-vivo);
    color: var(--branco);
    font-size: 0.6rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--branco);
}

.menu-admin a {
    background: var(--amarelo-vivo);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--texto);
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.menu-admin a:hover {
    background: var(--rosa-vivo);
    color: var(--branco);
    transform: translateY(-2px);
    box-shadow: var(--sombra);
}

/* ===== BARRA DE CATEGORIAS ===== */
.barra-categorias {
    background: var(--branco);
    border-bottom: var(--borda);
    padding: 12px 0;
    box-shadow: var(--sombra);
}

.lista-categorias {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.lista-categorias > li > a {
    text-decoration: none;
    color: var(--texto-claro);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lista-categorias > li > a i {
    font-size: 0.7rem;
    color: var(--rosa-vivo);
}

.lista-categorias > li > a:hover {
    color: var(--rosa-vivo);
}

/* ===== DROPDOWNS ===== */
.menu-dropdown {
    position: relative;
}

.menu-dropdown .dropbtn {
    background: transparent;
    color: var(--texto-claro);
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.menu-dropdown .dropbtn i {
    font-size: 0.7rem;
    transition: transform 0.3s;
    color: var(--rosa-vivo);
}

.menu-dropdown:hover .dropbtn {
    color: var(--rosa-vivo);
}

.menu-dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

/* Dropdown Content */
.menu-dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--branco);
    min-width: 220px;
    box-shadow: var(--sombra-media);
    border-radius: var(--radius-sm);
    z-index: 1000;
    padding: 8px 0;
    margin-top: 12px;
    border: var(--borda);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.menu-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.menu-dropdown .dropdown-content a {
    color: var(--texto);
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    border-left: 3px solid transparent;
}

.menu-dropdown .dropdown-content a:hover {
    background: var(--rosa-claro);
    color: var(--rosa-vivo);
    border-left-color: var(--rosa-vivo);
    transform: translateX(3px);
}

/* Mega Menu */
.dropdown-mega {
    min-width: 800px !important;
    padding: 20px !important;
    left: -100px;
}

.dropdown-grid {
    display: grid;
    gap: 12px;
}

.grid-5 {
    grid-template-columns: repeat(4, 1fr);
}

.dropdown-grid a {
    padding: 10px 12px !important;
    border-left: none !important;
    border-bottom: var(--borda);
    border-radius: var(--radius-sm);
    white-space: normal;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--cinza-extra-claro);
}

.dropdown-grid a:hover {
    background: var(--rosa-vivo) !important;
    color: var(--branco) !important;
    transform: translateY(-2px);
    border-left: none !important;
    box-shadow: var(--sombra);
}

.dropdown-divider {
    height: 1px;
    background: var(--cinza-claro);
    margin: 8px 0;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--rosa-vivo), var(--roxo));
    color: var(--branco);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-about h3 {
    font-family: "Pacifico", cursive;
    color: var(--amarelo-vivo);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    max-width: 400px;
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--amarelo-vivo);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--branco);
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* ===== RESPONSIVIDADE DO LAYOUT ===== */
@media (max-width: 1024px) {
    .dropdown-mega {
        min-width: 600px !important;
        left: -50px;
    }

    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-wrapper {
        display: none;
    }

    .header-content {
        justify-content: space-between;
    }

    .logo-img {
        height: 50px;
    }

    .lista-categorias {
        gap: 16px;
        justify-content: center;
    }

    .dropdown-mega {
        min-width: 280px !important;
        left: -100px;
    }

    .grid-5 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-about p {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 0.65rem;
    }

    .top-bar-social {
        gap: 8px;
    }

    .logo-img {
        height: 45px;
    }

    .lista-categorias {
        gap: 12px;
    }

    .lista-categorias > li > a {
        font-size: 0.65rem;
    }

    .footer-about h3 {
        font-size: 1.2rem;
    }
}
