@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Evita que a sidebar crie barra de rolagem lateral ao estar escondida */
}

/* --- AJUSTE CRÍTICO DO CARRINHO --- */
.cart-sidebar { 
    position: fixed !important;
    top: 0;
    right: 0; /* Começa na direita */
    width: 350px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%; /* Ocupa tela cheia no celular */
        transform: translateX(100%);
    }
}

.cart-sidebar.open { 
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* Overlay do Carrinho */
#cartOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

/* Quando o overlay estiver ativo */
#cartOverlay.active { 
    opacity: 1; 
    pointer-events: auto; 
}

/* --- RESTANTE DOS ESTILOS --- */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .product-card { padding: 1rem; border-radius: 1.5rem; }
    .product-card img { height: 120px; }
}
.product-card:hover { transform: translateY(-8px); }

/* Efeito de Zoom na Imagem */
.product-img-container {
    overflow: hidden;
}
.product-img-container img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-img-container img {
    transform: scale(1.1);
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}
.animate-pulse-soft { animation: pulse-soft 3s infinite ease-in-out; }

@keyframes bounce-short {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-bounce-short { animation: bounce-short 0.6s ease-out; }

@keyframes cart-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.cart-bump { animation: cart-bump 0.4s ease-out; }

.group:hover .mute-toggle {
    opacity: 1;
    transform: translateY(0);
}

/* Badges de Estoque */
.badge-stock {
    font-size: 8px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animações de Fade para Cards de Produto */
.product-card.fade-out {
    opacity: 0;
    transform: translateY(20px); /* Move ligeiramente para baixo ao sair */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.product-card.fade-in {
    opacity: 0; /* Começa invisível */
    transform: translateY(20px); /* Começa ligeiramente abaixo */
    animation: fadeInAnimation 0.3s ease-in forwards; /* Usa animação para o estado inicial e depois transição */
}
@keyframes fadeInAnimation {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Controlador de Música Flutuante */
.music-player-widget {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-btn {
    width: 45px;
    height: 45px;
    border-radius: 100%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Estilo para a barra de volume */
.volume-slider {
    width: 0; /* Começa escondido (largura zero) */
    height: 5px; /* Espessura da barra */
    -webkit-appearance: none; /* Remove estilo padrão do navegador */
    appearance: none;
    background: #cbd5e1; /* Cor da trilha */
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Transição suave para largura e opacidade */
    opacity: 0; /* Invisível por padrão */
    pointer-events: none; /* Evita interação enquanto oculto */
}

.music-player-widget:hover .volume-slider {
    width: 80px; /* Expande para o tamanho original no hover */
    opacity: 1;
    pointer-events: auto;
}

/* Estilo do "thumb" (o controle deslizante) */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #b91c1c; /* Cor do thumb */
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.8); /* Borda branca */
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #b91c1c;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.8);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: white;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(10deg);
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Estilos para o Slider do Banner */
.banner-slide {
    position: absolute;
    inset: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s ease-out;
    pointer-events: none;
    transform: scale(1.05);
}
.banner-slide.active {
    opacity: 1 !important;
    pointer-events: auto;
    transform: scale(1);
}
.slider-dot.active-dot {
    background-color: #b91c1c !important; /* Red-700 */
    width: 24px !important;
    border-radius: 4px;
}