@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
}

.text-indigo-700 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar {
    backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.product-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    background: white;
}

/* Make cards use full column layout and have consistent height */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Force a minimum height so cards visually match even with differing content */
.product-card {
    box-sizing: border-box;
    min-height: 460px;
}

.product-card:hover {
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25), 0 12px 24px -8px rgba(139, 92, 246, 0.2);
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.hero-cta:hover {
    animation: float 2.5s ease-in-out infinite;
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.4);
}

@keyframes blob {
    0%, 100% { transform: translateY(0) scale(1); }
    33% { transform: translateY(-20px) scale(1.1); }
    66% { transform: translateY(20px) scale(0.9); }
}

.animate-blob {
    animation: blob 6s infinite ease-in-out;
}

.animation-delay-0 { animation-delay: 0s; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

.store-badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 768px) {
    .navbar {
        background-color: white;
    }
}
/* Animation for product cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--order) * 0.1s);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

/* Centralize product grid */
#products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
}

#products-grid > * {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

@media (min-width: 640px) {
    #products-grid > * {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    #products-grid > * {
        flex: 1 1 calc(33.333% - 1.334rem);
        max-width: calc(33.333% - 1.334rem);
    }
}

@media (min-width: 1280px) {
    #products-grid > * {
        flex: 1 1 calc(25% - 1.5rem);
        max-width: calc(25% - 1.5rem);
    }
}

/* Ensure card content fills available height so cards align uniformly */
.product-card .p-5 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
}

/* Ensure images inside cards have consistent height and cover behavior */
.product-card img {
    width: 100%;
    height: 14rem; /* 224px, matches h-56 used in JS/component */
    object-fit: cover;
    display: block;
}

@media (max-width: 640px) {
    /* Reduce card and image size for mobile - 2 cards per row */
    #products-grid > * {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    
    .product-card {
        min-height: 320px;
    }
    
    .product-card img {
        height: 8rem; /* 128px */
    }
    
    .product-card .p-6,
    .product-card .p-5 {
        padding: 0.75rem !important;
    }
    
    .product-card h3,
    .product-card .pc-title {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }
    
    .product-card p,
    .product-card .pc-desc {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Layout vertical para preço e botão no mobile */
    .product-card .flex.justify-between.items-center {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem;
        padding-top: 0.75rem !important;
    }
    
    .product-card .flex.justify-between.items-center > div {
        width: 100%;
    }
    
    .product-card .flex.justify-between.items-center > a {
        width: 100%;
        justify-content: center;
    }
    
    /* Ocultar scrollbar mas manter funcionalidade */
    .product-card .pc-desc {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .product-card .pc-desc::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    /* Ajustar tamanhos de fonte dos preços */
    .product-card .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .product-card .text-sm {
        font-size: 0.75rem !important;
    }
    
    /* Badge da loja (direita) fica no topo com tamanho reduzido */
    .product-card .absolute.top-4.right-4 {
        top: 0.5rem !important;
        right: 0.5rem !important;
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
        z-index: 30;
    }

    /* Badge de promoção (mobile): ícone-only no canto esquerdo, sem texto */
    .product-card .absolute.top-4.left-4 {
        top: 0.5rem !important;
        left: 0.5rem !important;
        right: auto !important;
        padding: 0 !important;
        border-radius: 9999px !important;
        width: 1.9rem !important;
        height: 1.9rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0 !important; /* esconde texto mantendo o elemento */
        overflow: visible !important;
        box-shadow: 0 6px 14px rgba(0,0,0,0.08);
        background: rgba(219,39,119,0.95) !important;
        z-index: 25;
    }

    /* Ajustar ícones dos badges */
    .product-card .absolute i[data-feather] {
        width: 0.75rem !important;
        height: 0.75rem !important;
    }

    /* Ícone da promoção visível e maior */
    .product-card .absolute.top-4.left-4 i[data-feather] {
        width: 1.05rem !important;
        height: 1.05rem !important;
        color: #fff;
    }
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
