/* Fonte personalizada */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --color-dark: #121212;
    --color-light: #f5f5f5;
    --color-accent: #333333;
    --color-gray: #888888;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --accent-color: #f5f5f5;
    --accent-color-rgb: 245, 245, 245;
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --border-color: #333333;
    --bg-secondary: #1f1f1f;
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--color-dark);
    color: var(--color-light);
}

/* Transições de header */
header {
    transition: padding 0.4s var(--ease-out-expo), 
                box-shadow 0.4s var(--ease-out-expo),
                background-color 0.4s var(--ease-out-expo);
}

.btn-primary {
    background-color: var(--color-light);
    color: var(--color-dark);
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background-color: var(--color-dark);
    color: var(--color-light);
    border: 1px solid var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.product-card {
    transition: all 0.5s var(--ease-out-back);
    opacity: 0;
    transform: translateY(30px);
}

/* Animação quando o elemento é visível */
.product-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Animações para detalhes do produto */
.view-details-btn {
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.5s var(--ease-out-back),
                opacity 0.5s ease;
}

.product-card:hover .view-details-btn {
    opacity: 1;
    transform: scale(1);
}

/* Indicador de produto visto recentemente */
.product-card .absolute.bottom-2.left-2 {
    transform: translateY(10px);
    opacity: 0;
    animation: fadeInUp 0.5s var(--ease-out-back) forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação para notificações */
@keyframes notification {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Estilo para menu mobile */
.menu-mobile {
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.menu-mobile.active {
    transform: translateX(0);
}

a {
    transition: all 0.3s ease;
}

a:hover {
    transform: translateY(-2px);
}

button {
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.05);
}

button:active {
    transform: scale(0.98);
}

input, select {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

input:focus, select:focus {
    border-color: var(--color-light);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    outline: none;
    transform: translateY(-2px);
}

/* Efeito de focus nos inputs e selects */
.input-wrapper {
    position: relative;
    overflow: hidden;
}

.input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-light);
    transition: width 0.4s var(--ease-out-expo);
    z-index: 0;
}

.input-wrapper:focus-within::after {
    width: 100%;
}

/* Estilos para a seção de lançamentos */
.slider-container {
    position: relative;
    overflow: hidden;
    min-height: 600px; /* Altura mínima para evitar mudanças de layout */
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.slider-item.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    z-index: 1;
    transform: translateX(0);
}

.slider-item img {
    width: 100%;
    height: auto; /* Alterado para auto para melhor responsividade */
    max-height: 450px; /* Altura máxima para todas as imagens */
    object-fit: cover; /* Mantém a proporção e corta se necessário */
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

@media (max-width: 768px) {
    .slider-container {
        min-height: 1000px; /* Altura aumentada para visualização móvel */
    }
    
    .slider-item img {
        max-height: 350px; /* Altura reduzida em telas menores */
    }
}

.slider-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-light);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    margin: 0 5px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.slider-dot.active {
    background-color: var(--color-light);
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.slider-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slider-arrow:hover {
    background-color: var(--color-accent);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

#prev-slide {
    left: 20px;
}

#next-slide {
    right: 20px;
}

/* Animação para modal de produto */
.fixed.inset-0.bg-black {
    backdrop-filter: blur(5px);
}

.modal-content {
    transition: all 0.5s var(--ease-out-expo);
}

#cart-modal, #checkout-modal {
    transition: opacity 0.4s ease,
                backdrop-filter 0.4s ease;
    backdrop-filter: blur(0);
}

#cart-modal.active, #checkout-modal.active {
    backdrop-filter: blur(5px);
}

.add-to-cart, .add-to-cart-btn, .add-to-cart-details {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart:hover, .add-to-cart-btn:hover, .add-to-cart-details:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.add-to-cart:active, .add-to-cart-btn:active, .add-to-cart-details:active {
    transform: scale(0.95);
}

/* Efeito de onda nos botões */
.add-to-cart::after, .add-to-cart-btn::after, .add-to-cart-details::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1);
    transform-origin: 50% 50%;
}

.add-to-cart:active::after, .add-to-cart-btn:active::after, .add-to-cart-details:active::after {
    animation: ripple 1s ease-out;
}

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

/* Animação para seleção de cores e tamanhos */
.color-option span, .size-option span {
    transition: all 0.3s var(--ease-out-back);
}

.color-option:hover span, .size-option:hover span {
    transform: translateY(-3px);
}

/* Animação de carregamento de página */
.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Animação de rolagem suave */
html {
    scroll-behavior: smooth;
}

/* Estilo para barra de rolagem */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray);
}

/* Estilos para filtros */
.filter-section {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.filter-section select,
.filter-section input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s var(--ease-out-quart);
}

.filter-section select:hover,
.filter-section input:hover {
    border-color: var(--accent-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.filter-section select:focus,
.filter-section input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.2);
}

/* Animação de pulso para filtros */
.pulse-once {
    animation: pulseEffect 0.6s var(--ease-out-quart);
}

@keyframes pulseEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(var(--accent-color-rgb), 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0);
    }
}

/* Cores e Tamanhos Filtros */
.color-size-filters {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.color-size-filters select {
    flex: 1;
    min-width: 120px;
}

/* Animação para transição dos produtos */
.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Indicador visual de filtro ativo */
.filter-active {
    position: relative;
}

.filter-active::after {
    content: "";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: popIn 0.4s var(--ease-out-back);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Melhorias nos cards de produtos para melhor visualização dos atributos */
.product-card .product-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-card .color-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s var(--ease-out-quart);
}

.product-card .color-dot:hover {
    transform: scale(1.3);
}

.product-card .size-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 0.75rem;
    padding: 0 5px;
    margin-right: 5px;
    transition: all 0.2s var(--ease-out-quart);
}

.product-card .size-tag:hover {
    background-color: var(--accent-color);
    color: var(--color-dark);
    transform: translateY(-3px);
}

/* Animação para destacar produtos que correspondem aos filtros exatos */
.product-highlight {
    animation: highlight 1s var(--ease-out-quart);
}

@keyframes highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--accent-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0);
    }
}

/* Estilos adicionais para os seletores de cor e tamanho */
#color-filter, #size-filter {
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-back);
}

#color-filter:hover, #size-filter:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

#color-filter:focus, #size-filter:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.3);
    outline: none;
}

/* Efeito de ondulação ao clicar nos filtros */
#color-filter::after, #size-filter::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(var(--accent-color-rgb), 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1);
    transform-origin: 50% 50%;
}

#color-filter:active::after, #size-filter:active::after {
    animation: ripple-filter 0.8s ease-out;
}

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

/* Estilo para o container dos filtros de cor e tamanho */
.filter-container {
    margin-bottom: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--ease-out-expo);
    animation: slideInFilter 0.6s var(--ease-out-back);
}

.filter-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

@keyframes slideInFilter {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Animação para destacar o label quando o filtro está ativo */
.filter-active-label {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Efeito de glow para filtros ativos */
.filter-active-glow {
    animation: glowPulse 2s var(--ease-out-expo) infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--accent-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0);
    }
}

/* Estilos para os contadores de produtos filtrados */
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    color: var(--color-dark);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 6px;
    margin-left: 0.5rem;
    transition: all 0.3s var(--ease-out-back);
}

.filter-count-animate {
    animation: countPulse 0.5s var(--ease-out-back);
}

@keyframes countPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Estilos para as opções de cor no filtro avançado */
.color-option-advanced {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s var(--ease-out-back);
}

.color-option-advanced:hover {
    transform: translateY(-3px);
}

.color-dot-advanced {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--ease-out-back);
}

.color-option-advanced:hover .color-dot-advanced {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.3);
}

.color-option-advanced.selected .color-dot-advanced {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.3);
}

/* Efeito de transição suave para os produtos quando os filtros mudam */
.filter-transition {
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out-quart);
}

.filter-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.filter-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
}

.filter-transition-exit {
    opacity: 1;
    transform: translateY(0);
}

.filter-transition-exit-active {
    opacity: 0;
    transform: translateY(-20px);
}

/* Estilos específicos para os controles do slider */

#prev-slide, #next-slide {
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

#prev-slide:hover, #next-slide:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#prev-slide:active, #next-slide:active {
    transform: translateY(-50%) scale(0.95);
}

/* Adicionar animação de pulso para os botões em dispositivos móveis */
@media (max-width: 768px) {
    #prev-slide, #next-slide {
        animation: buttonPulse 2s infinite;
    }
    
    @keyframes buttonPulse {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        }
    }
}

/* Animação de deslize no indicador de swipe */
.animate-pulse {
    animation: pulseFade 2s infinite;
}

@keyframes pulseFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Estilos para a página de finalização de compra */
.step-indicator {
    transition: all 0.5s ease;
}

.step-line {
    transition: background-color 0.5s ease;
}

form input {
    transition: all 0.3s ease;
}

form input:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

#car {
    transform: translateX(-100%);
    z-index: 10;
}

#car.animate {
    transform: translateX(100%);
    animation: carMovement 10s linear infinite;
}

@keyframes carMovement {
    0% { transform: translateX(-100%); }
    90% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

#road {
    background: linear-gradient(to right, #4a5568 0%, #4a5568 50%, transparent 50%, transparent 100%);
    background-size: 20px 100%;
    background-position: 0 0;
    height: 12px;
    bottom: 0;
    z-index: 5;
    animation: roadFormation 10s linear infinite;
}

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

#delivery-message {
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
} 