/* ===================== MENU HARMONIZADO - DESIGN MODERNO E ELEGANTE ===================== */

/* ==================== HEADER PRINCIPAL ==================== */
#site-header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Logo com destaque */
#site-header .flex-shrink-0 img {
    transition: transform 0.3s ease;
}

#site-header .flex-shrink-0:hover img {
    transform: scale(1.05);
}

/* Ícones do header com efeito hover elegante */
#site-header a[href*="sobre"],
#site-header a[href*="instagram"],
#site-header a[href*="carrinho"] {
    position: relative;
    transition: all 0.2s ease;
}

#site-header a[href*="sobre"]:hover,
#site-header a[href*="instagram"]:hover,
#site-header a[href*="carrinho"]:hover {
    color: #2563eb !important;
}

#site-header a svg {
    transition: transform 0.2s ease;
}

#site-header a:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Badge do carrinho animado */
#site-header .bg-primary {
    animation: none;
    background: #2563eb !important;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ==================== BUSCA DESKTOP ==================== */
#desktop-search-input {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: none;
}

#desktop-search-input:focus {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
    border-color: #2563eb;
}

#desktop-search-input:hover {
    box-shadow: none;
}

/* Busca Mobile */
#mobile-search-input {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#mobile-search-input:focus {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
    border-color: #2563eb;
}

/* ==================== MENU DE CATEGORIAS DESKTOP ==================== */
.category-nav {
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
    border-bottom: 1px solid #e5e7eb;
}

/* Items de categoria com design moderno */
.category-item-desktop {
    position: relative;
    overflow: hidden;
}

.category-item-desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.category-item-desktop:hover::before {
    left: 100%;
}

/* Botão TODAS com destaque especial */
.category-item-desktop[href*="todas"] {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.category-item-desktop[href*="todas"]:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

/* Ícone SVG nos botões de categoria */
.category-item-desktop svg {
    transition: transform 0.3s ease;
}

.category-item-desktop:hover svg {
    transform: none;
}

/* Badge decorativo de urgência */
.category-item-desktop .absolute.bottom-0 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== MENU MOBILE MELHORADO ==================== */
/* Header do menu mobile com gradiente suave */
#mobile-menu>div:first-child {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Efeito de partículas no header */
#mobile-menu>div:first-child::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -60%) scale(1.2);
        opacity: 0.8;
    }
}

/* Links do menu mobile com animação suave */
#mobile-menu a {
    position: relative;
    overflow: hidden;
}

#mobile-menu a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    transform: translateY(-50%);
    transition: height 0.3s ease;
}

#mobile-menu a:hover::before {
    height: 80%;
}

/* Ícones com animação de rotação */
#mobile-menu a svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu a:hover svg {
    transform: scale(1.15) translateX(4px);
}

/* Link Início com destaque especial */
#mobile-menu a[href="index.php"] {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #2563eb;
}

#mobile-menu a[href="index.php"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Categoria TODAS com design especial */
#mobile-menu a[href*="categoria.php?id=todas"] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #10b981;
    position: relative;
}

#mobile-menu a[href*="categoria.php?id=todas"]:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
}

/* Links de contato com cores específicas */
#mobile-menu a[href*="whatsapp"]:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateX(4px);
}

#mobile-menu a[href*="instagram"]:hover {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    transform: translateX(4px);
}

/* Badge do carrinho no menu */
#menu-cart-count {
    animation: bounce-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ==================== MELHORIAS DE BUSCA ==================== */
/* Container de busca com efeito glass */
.search-container {
    position: relative;
}

/* ==================== BOTÃO HAMBÚRGUER MINIMALISTA ==================== */
/* Estilos definidos em mobile-menu-modern.css */

/* ==================== OVERLAY MELHORADO ==================== */
#mobile-menu-overlay {
    backdrop-filter: blur(4px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-overlay.show {
    backdrop-filter: blur(8px);
}

/* ==================== ANIMAÇÕES DE ENTRADA ==================== */
/* Fade in suave para o menu */
#mobile-menu.show {
    animation: slideInFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Items do menu com stagger animation */
#mobile-menu.show>div>a {
    animation: slideInLeft 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.show>div>a:nth-child(1) {
    animation-delay: 0.05s;
}

#mobile-menu.show>div>a:nth-child(2) {
    animation-delay: 0.1s;
}

#mobile-menu.show>div>a:nth-child(3) {
    animation-delay: 0.15s;
}

#mobile-menu.show>div>a:nth-child(4) {
    animation-delay: 0.2s;
}

#mobile-menu.show>div>a:nth-child(5) {
    animation-delay: 0.25s;
}

#mobile-menu.show>div>a:nth-child(6) {
    animation-delay: 0.3s;
}

#mobile-menu.show>div>a:nth-child(7) {
    animation-delay: 0.35s;
}

#mobile-menu.show>div>a:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== MELHORIAS DE RESPONSIVIDADE ==================== */
@media (max-width: 768px) {

    /* Reduzir animações em mobile para melhor performance */
    #mobile-menu-btn::after {
        display: none;
    }

    .category-item-desktop::before {
        animation: none;
    }
}

/* ==================== MELHORIAS DE ACESSIBILIDADE ==================== */
/* Indicador de foco melhorado */
#mobile-menu-btn:focus-visible,
.category-item-desktop:focus-visible,
#mobile-menu a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Feedback tátil aprimorado */
@media (hover: none) and (pointer: coarse) {
    #mobile-menu a:active {
        background: #e5e7eb !important;
        transform: scale(0.98) translateX(4px);
    }

    .category-item-desktop:active {
        transform: scale(0.98) translateY(-1px);
    }
}

/* ==================== EFEITOS ESPECIAIS ==================== */
/* Removido gradiente animado para estética minimal */

/* Efeito de brilho nos links de categoria desktop */
.category-item-desktop {
    transition: all 0.3s ease;
}

/* Hover minimalista - removido brightness e shadow para evitar conflitos */

/* ==================== LOADING STATES ==================== */
/* Indicador de carregamento elegante */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {

    #mobile-menu,
    #mobile-menu-overlay,
    .category-nav {
        display: none !important;
    }
}