/**
 * Fantasy Shop Carnaval - CSS Premium
 * Tema: Carnaval Brasileiro 2026
 * Paleta: Roxo Imperial, Ouro, Turquesa, Rosa Vibrante
 * Efeitos: Glassmorphism, Confetes SVG, Hover Flutuante
 */

/* ============================================
   CSS VARIABLES - PALETA DE CORES CARNAVAL
   ============================================ */
:root {
    /* Cores Primárias */
    --purple-imperial: #8B5CF6;
    --purple-dark: #6D28D9;
    --purple-light: #A78BFA;

    /* Cores de Destaque */
    --gold-carnival: #F59E0B;
    --gold-light: #FCD34D;
    --gold-dark: #D97706;

    /* Cores Vibrantes */
    --turquoise: #06B6D4;
    --turquoise-light: #22D3EE;
    --pink-vibrant: #EC4899;
    --pink-light: #F472B6;

    /* Cores de Suporte */
    --green-success: #10B981;
    --red-alert: #EF4444;

    /* Gradientes */
    --gradient-carnival: linear-gradient(135deg, var(--purple-imperial) 0%, var(--pink-vibrant) 50%, var(--gold-carnival) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-carnival) 50%, var(--gold-light) 100%);
    --gradient-purple: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-imperial) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);

    /* Transições */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   ANIMAÇÕES DE CONFETE (SVG OTIMIZADO)
   ============================================ */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes confetti-sway {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

@keyframes float-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   CONFETTI BACKGROUND CONTAINER
   ============================================ */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-confetti, 1); /* Atrás de todo conteúdo mas visível */
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.7;
    animation: confetti-fall linear infinite;
}

.confetti:nth-child(odd) {
    animation: confetti-fall linear infinite, confetti-sway ease-in-out infinite;
}

.confetti-purple { background: var(--purple-imperial); }
.confetti-gold { background: var(--gold-carnival); }
.confetti-pink { background: var(--pink-vibrant); }
.confetti-turquoise { background: var(--turquoise); }

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
    border-color: var(--purple-light);
}

.glass-card-dark {
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
}

/* ============================================
   PRODUTO CARDS - PREMIUM STYLE
   ============================================ */
.produto-card-premium {
    position: relative;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.produto-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-carnival);
    opacity: 0;
    transition: var(--transition-smooth);
}

.produto-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
}

.produto-card-premium:hover::before {
    opacity: 1;
}

/* Badge Premium */
.badge-premium {
    background: var(--gradient-carnival);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    color: white;
    font-weight: 700;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.badge-gold {
    background: var(--gradient-gold);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Preço Premium */
.preco-premium {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preco-antigo {
    color: #9CA3AF;
    text-decoration: line-through;
    font-size: 0.875rem;
}

/* ============================================
   BOTÕES PREMIUM COM HOVER FLUTUANTE
   ============================================ */
.btn-carnival {
    position: relative;
    background: var(--gradient-purple);
    color: white;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-carnival::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: 0.5s;
}

.btn-carnival:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
    animation: float-up 2s ease-in-out infinite;
}

.btn-carnival:hover::before {
    left: 100%;
}

.btn-carnival:active {
    transform: translateY(-2px) scale(0.98);
}

/* Botão Secundário */
.btn-carnival-outline {
    position: relative;
    background: transparent;
    color: var(--purple-imperial);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 14px;
    border: 2px solid var(--purple-imperial);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-carnival-outline:hover {
    background: var(--purple-imperial);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

/* Botão Ouro */
.btn-gold {
    background: var(--gradient-gold);
    color: #1F2937;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

/* ============================================
   DESTAQUE DO DIA - TIMER COUNTDOWN
   ============================================ */
.destaque-dia {
    position: relative;
    background: var(--gradient-carnival);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
    border-radius: 24px;
    padding: 32px;
    color: white;
    overflow: hidden;
}

.destaque-dia::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: sparkle 4s ease-in-out infinite;
}

.countdown-timer {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 80px;
    text-align: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 4px;
}

/* ============================================
   SKELETON LOADING SCREENS
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-card {
    background: white;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
    margin-bottom: 8px;
}

.skeleton-price {
    height: 24px;
    width: 40%;
    margin-bottom: 16px;
}

.skeleton-button {
    height: 48px;
    border-radius: 14px;
}

/* ============================================
   GRID DINÂMICO RESPONSIVO
   ============================================ */
.grid-carnival {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px;
}

@media (max-width: 640px) {
    .grid-carnival {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
}

/* ============================================
   TOP BAR PREMIUM
   ============================================ */
.top-bar-carnival {
    background: var(--gradient-carnival);
    background-size: 400% 400%;
    animation: gradient-shift 10s ease infinite;
    color: white;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.top-bar-carnival::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

/* ============================================
   HEADER GLASSMORPHISM
   ============================================ */
.header-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.1);
}

/* ============================================
   CARROSSEL PREMIUM
   ============================================ */
.carousel-premium {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.carousel-premium::-webkit-scrollbar {
    height: 8px;
}

.carousel-premium::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.carousel-premium::-webkit-scrollbar-thumb {
    background: var(--gradient-purple);
    border-radius: 10px;
}

.carousel-item-premium {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 300px;
}

/* ============================================
   SEÇÃO CATEGORIAS
   ============================================ */
.categoria-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 24px;
}

.categoria-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-purple);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.categoria-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1F2937;
    margin: 0;
}

.categoria-subtitle {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

/* ============================================
   FOOTER PREMIUM
   ============================================ */
.footer-carnival {
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
    color: white;
    padding: 60px 0 30px;
    position: relative;
}

.footer-carnival::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-carnival);
}

/* ============================================
   EFEITOS ESPECIAIS
   ============================================ */
.glow-purple {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.glow-gold {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

.text-gradient-carnival,
.carnaval-gradient-text {
    background: var(--gradient-carnival);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient animado para top bar */
.carnaval-gradient {
    background: var(--gradient-carnival);
    background-size: 400% 400%;
    animation: gradient-shift 10s ease infinite;
}

/* Scrollbar personalizada para carrossel premium */
.carousel-premium::-webkit-scrollbar {
    height: 6px;
}

.carousel-premium::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
}

.carousel-premium::-webkit-scrollbar-thumb {
    background: var(--gradient-purple);
    border-radius: 10px;
}

/* Efeito hover flutuante para cards */
.produto-card-premium:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.25);
}

/* Animação suave de pulse para indicadores */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: subtle-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-carnival) border-box;
    border-radius: 20px;
}

/* ============================================
   ANIMAÇÃO DE ENTRADA
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .destaque-dia {
        padding: 20px;
        border-radius: 16px;
    }

    .countdown-item {
        padding: 12px 14px;
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.75rem;
    }

    .categoria-title {
        font-size: 1.25rem;
    }

    .btn-carnival {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .confetti-container {
        display: none;
    }
}

/* Focus states */
.btn-carnival:focus,
.btn-carnival-outline:focus,
.btn-gold:focus {
    outline: 3px solid var(--gold-carnival);
    outline-offset: 2px;
}

/* ============================================
   DARK MODE SUPPORT (OPCIONAL)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .glass-card {
        background: rgba(30, 30, 30, 0.85);
        border-color: rgba(139, 92, 246, 0.3);
    }
}

/* ============================================
   MELHORIAS DE ACESSIBILIDADE - CONTRASTE
   ============================================ */
/* Texto roxo com contraste melhorado (WCAG AA) */
.text-purple-accessible {
    color: #6D28D9; /* purple-dark - 4.5:1 ratio em branco */
}

.text-pink-accessible {
    color: #BE185D; /* pink-700 - 5.2:1 ratio em branco */
}

/* Links com contraste adequado */
a.link-accessible {
    color: #6D28D9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a.link-accessible:hover {
    color: #4C1D95;
}

/* ============================================
   HIERARQUIA DE CTA - BOTÕES PRIMÁRIOS
   ============================================ */
/* CTA Principal - Maior destaque */
.btn-cta-primary {
    position: relative;
    background: var(--gradient-purple);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-bounce);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s;
}

.btn-cta-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.5);
}

.btn-cta-primary:hover::before {
    left: 100%;
}

.btn-cta-primary:active {
    transform: translateY(-2px) scale(0.98);
}

/* CTA Secundário - Menor destaque */
.btn-cta-secondary {
    background: transparent;
    color: var(--purple-dark);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 14px;
    border: 2px solid var(--purple-light);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-cta-secondary:hover {
    background: var(--purple-light);
    color: white;
    border-color: var(--purple-light);
}

/* ============================================
   MICRO-INTERAÇÕES - BOTÕES DE QUANTIDADE
   ============================================ */
.qty-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.qty-button:hover {
    background: var(--purple-light);
    color: white;
    border-color: var(--purple-light);
    transform: scale(1.1);
}

.qty-button:active {
    transform: scale(0.95);
    background: var(--purple-dark);
}

.qty-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.qty-button:disabled:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
    transform: none;
}

/* Input de quantidade */
.qty-input {
    width: 60px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: #1f2937;
}

.qty-input:focus {
    outline: none;
}

/* ============================================
   BADGES COM HOVER
   ============================================ */
.badge-premium:hover,
.badge-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.badge-discount {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: white;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    transition: var(--transition-smooth);
}

.badge-discount:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

/* ============================================
   ANIMAÇÃO DE SUCESSO - ADICIONAR AO CARRINHO
   ============================================ */
@keyframes cart-success {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-success-animation {
    animation: cart-success 0.5s ease-in-out;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.btn-ripple:active::after {
    animation: ripple 0.6s ease-out;
}

/* ============================================
   LOADING STATE PARA BOTÕES
   ============================================ */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--purple-dark);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification.success {
    background: var(--green-success);
}

.toast-notification.error {
    background: var(--red-alert);
}

/* ============================================
   SKELETON LOADING PARA IMAGENS
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg, #f3e8ff 25%, #e9d5ff 50%, #f3e8ff 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   Z-INDEX PADRONIZADO
   ============================================ */
:root {
    --z-confetti: 1;
    --z-content: 10;
    --z-header: 30;
    --z-sticky-bar: 35;
    --z-top-bar: 40;
    --z-sidebar: 50;
    --z-overlay: 55;
    --z-modal: 60;
    --z-toast: 70;
    --z-message: 80;
}

/* ============================================
   SIDEBAR DE CATEGORIAS - UI PREMIUM
   ============================================ */
.sidebar-categorias {
    position: sticky;
    top: 100px;
}

.sidebar-category-list {
    display: flex;
    flex-direction: column;
}

.sidebar-category-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-category-item:last-child {
    border-bottom: none;
}

.sidebar-category-link {
    position: relative;
}

.sidebar-category-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.2s ease;
}

/* Hover state com borda rosa */
.sidebar-category-link:hover::before {
    background: var(--pink-vibrant, #EC4899);
}

/* Estado ativo */
.sidebar-category-link.active::before {
    background: var(--pink-vibrant, #EC4899);
}

/* Ícone padronizado */
.sidebar-icon {
    font-size: 14px;
    line-height: 1;
}

.sidebar-icon i {
    font-size: 14px;
}

/* Nome da categoria com peso aumentado */
.sidebar-category-name {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Contagem sutil */
.sidebar-category-count {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 500;
}

/* Animação suave no hover do ícone */
.sidebar-category-link:hover .sidebar-icon {
    transform: scale(1.08);
}

/* Mobile optimization */
@media (max-width: 1024px) {
    .sidebar-categorias {
        position: static;
    }
}

/* ============================================
   IMAGEM PLACEHOLDER
   ============================================ */
.product-image-placeholder {
    background: linear-gradient(135deg, #F3E8FF 0%, #FCE7F3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.product-image-placeholder i {
    font-size: 3rem;
    color: #A78BFA;
    opacity: 0.5;
}

/* Fallback animation while loading */
.img-loading {
    background: linear-gradient(90deg, #f3e8ff 25%, #e9d5ff 50%, #f3e8ff 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   MOBILE MENU IMPROVEMENTS
   ============================================ */
#menu-lateral {
    box-shadow: 10px 0 40px rgba(139, 92, 246, 0.15);
}

#menu-lateral a {
    position: relative;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

#menu-lateral a:hover {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
    border-left-color: var(--pink-vibrant, #EC4899);
}

#menu-lateral a:hover .fa-chevron-right {
    color: var(--pink-vibrant, #EC4899);
    transform: translateX(3px);
}

#menu-lateral a .fa-chevron-right {
    transition: all 0.2s ease;
}

/* Mobile menu category icons - consistent size */
#menu-lateral .w-10.h-10 {
    font-size: 16px;
}

/* Improve category title weight */
#menu-lateral .text-base.font-semibold {
    font-weight: 700;
}

/* Reduce subtitle opacity */
#menu-lateral .text-xs.text-gray-500 {
    opacity: 0.7;
    font-size: 11px;
}

/* ============================================
   CAROUSEL CTA BUTTONS - GRADIENT STYLE
   ============================================ */
.btn-carousel-cta {
    background: linear-gradient(135deg, white 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-carousel-cta:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
