/* Improved Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007bff;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-container:hover .product-overlay {
    opacity: 1;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-icon {
    color: #007bff;
}

/* Feature Icons */
.feature-icon {
    color: #007bff;
}

/* Statistics */
.stat-item {
    padding: 20px 0;
}

.stat-item h3 {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .product-card .card-img-top {
        height: 180px !important;
    }
}

/* List View for Products */
#products-grid.list-view .col-xl-4 {
    flex: 0 0 100%;
    max-width: 100%;
}

#products-grid.list-view .product-card {
    flex-direction: row;
}

#products-grid.list-view .product-card .card-img-top {
    width: 200px;
    height: 150px !important;
    object-fit: cover;
}

#products-grid.list-view .product-card .card-body {
    flex: 1;
}

/* Cart Badge */
.cart-badge {
    font-size: 0.7em;
    margin-left: 5px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
}

/* Form Styles */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    border-color: #007bff;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
}