/* Products Section Styles */
.products-section {
    padding: 40px 0;
}

/* Modern Category Filter Styles */
.filter-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0.5rem;
    min-width: 100%;
    justify-content: center;
}

/* Modern Button Styles */
.filter-buttons .btn {
    position: relative;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #4a5568;
    background: #f8f9fa;
    transition: all 0.3s ease;
    min-width: max-content;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-buttons .btn i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

/* Hover and Active States */
.filter-buttons .btn:hover {
    background: #e9ecef;
    color: #f9633d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-buttons .btn.active {
    background: linear-gradient(135deg, #f9633d, #f77858);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

/* Modern Badge Styles */
.filter-buttons .badge {
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #f9633d;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-buttons .btn.active .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Hover Effects */
.filter-buttons .btn:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.filter-buttons .btn:active {
    transform: translateY(1px);
}

/* Custom Scrollbar */
.filter-container::-webkit-scrollbar {
    height: 6px;
}

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

.filter-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.filter-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-container {
        margin: 0 0 1.5rem 0;
        border-radius: 0;
        padding: 0.75rem;
    }

    .filter-buttons {
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0.25rem;
    }

    .filter-buttons .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .filter-buttons .badge {
        padding: 0.35em 0.7em;
    }
}

/* Add indicator for scrollable content */
.filter-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-container:hover::after {
    opacity: 1;
}

/* Product Card Styles */
.product-card {
    transition: all 0.3s ease;
    background: #fff;
    border: none !important;
    border-radius: 12px;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.product-img-wrapper {
    position: relative;
    padding-top: 65%; /* Reduced height ratio */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f8f9fa;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain for better product visibility */
    padding: 10px;
    transition: transform 0.3s ease;
}

.card-body {
    padding: 1rem !important;
}

/* Update Product Title */
.product-title {
    font-size: 0.95rem;
    line-height: 1.4;
    height: 2.8em;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

/* Category Badge Style */
.product-category {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-category i {
    color: #4a5568;
}

/* Rating Style Update */
.rating-wrapper {
    margin-bottom: 0.75rem !important;
}

.stars {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.stars i {
    font-size: 0.8rem;
    color: #eab308;
}

.stars i.text-muted {
    color: #d1d5db;
}

.rating-count {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Action Buttons Update */
.product-buttons {
    display: flex;
    gap: 0.5rem;
}

.product-buttons .btn {
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.product-buttons .btn i {
    font-size: 0.9rem;
}

/* Discount Badge Update */
.discount-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

/* Grid Responsive Updates */
@media (max-width: 1200px) {
    .col-lg-3 {
        width: 33.333%;
    }
}

@media (max-width: 992px) {
    .col-lg-3 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .col-lg-3 {
        width: 100%;
    }
    
    .product-img-wrapper {
        padding-top: 60%;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
}

/* Custom Scrollbar for Filter Container */
.filter-container::-webkit-scrollbar {
    height: 4px;
}

.filter-container::-webkit-scrollbar-track {
    background: #f9633d;
}

.filter-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.filter-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.7em;
}

/* Button Styles */
.product-buttons .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Rating Stars */
.stars {
    display: inline-flex;
    align-items: center;
}

.stars i {
    font-size: 0.9rem;
} 