/* Product Card Styles - Improved Design */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #9E8A78;
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-wrapper>a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Stock Badge */
.badge-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.badge-stock.in-stock {
    background-color: rgba(25, 135, 84, 0.9);
    color: white;
}

.badge-stock.out-of-stock {
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
}

/* Card Body */
.product-card .card-body {
    padding: 1.25rem;
}

.product-category .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

/* Product Title */
.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
    line-height: 1.4;
    min-height: 2.8rem;
}

.product-card:hover .product-title {
    color: #9E8A78;
}

/* Product Description */
.product-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #6c757d;
    min-height: 3.6rem;
}

/* Price Section */
.product-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #9E8A78;
}

/* Button Styles */
.product-card .btn-primary {
    background-color: #9E8A78;
    border-color: #9E8A78;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-card .btn-primary:hover {
    background-color: #8a7868;
    border-color: #8a7868;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 138, 120, 0.3);
}

/* Filter Sidebar Styles */
.filter-sidebar {
    position: sticky;
    top: 20px;
    border: none;
    border-radius: 12px;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 0.95rem;
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

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

.filter-options::-webkit-scrollbar-thumb {
    background: #9E8A78;
    border-radius: 10px;
}

.form-check-input:checked {
    background-color: #9E8A78;
    border-color: #9E8A78;
}

.form-check-input:focus {
    border-color: #9E8A78;
    box-shadow: 0 0 0 0.2rem rgba(158, 138, 120, 0.25);
}

/* Empty State */
.empty-state {
    padding: 3rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.empty-icon {
    color: #9E8A78;
    opacity: 0.4;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #9E8A78;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-filter-btn:hover {
    background-color: #8a7868;
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .product-image-wrapper {
        height: 220px;
    }

    .mobile-filter-btn {
        display: flex;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 300px;
        z-index: 1050;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .filter-sidebar.active {
        left: 0;
    }

    .filter-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }

    .filter-backdrop.active {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .product-image-wrapper {
        height: 200px;
    }

    .product-title {
        font-size: 1rem;
        min-height: auto;
    }

    .price-value {
        font-size: 1.1rem;
    }
}