/* static/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== SCROLLBAR HIDE ===== */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ===== PRODUCT CARD HOVER ===== */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* ===== HEADER GLASS ===== */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== BANNER GRADIENT ===== */
.banner-gradient {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

/* ===== SIDEBAR TRANSITION ===== */
.sidebar-transition {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BUTTON HOVER EFFECTS ===== */
.btn-hover-scale {
    transition: all 0.3s ease;
}
.btn-hover-scale:hover {
    transform: scale(1.05);
}

/* ===== DROPDOWN ANIMATION ===== */
.dropdown-enter {
    animation: slideDown 0.2s ease-out forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}
/* static/css/styles.css - Add these styles */

/* Product Card Grid - Ensure uniform sizing */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Product Card Wrapper - Ensure all cards are same height */
.product-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    max-height: 480px;
}

/* Image container - Fixed height */
.product-card-wrapper .relative {
    height: 200px;
    flex-shrink: 0;
}

/* Product name - Ensure consistent height */
.product-card-wrapper .product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem;
    line-height: 1.5rem;
}

/* Description - Ensure consistent height */
.product-card-wrapper .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.5rem;
}

/* Bottom section - Always at bottom */
.product-card-wrapper .product-bottom {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .product-card-wrapper {
        min-height: 380px;
        max-height: 440px;
    }
    
    .product-card-wrapper .relative {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .product-card-wrapper {
        min-height: 340px;
        max-height: 400px;
    }
    
    .product-card-wrapper .relative {
        height: 140px;
    }
}