﻿
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    font-family: 'Inter', sans-serif;
}

.filter-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    padding: 0.75rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: capitalize;
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

    .filter-btn:hover {
        background: #1d4ed8;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(29, 78, 216, 0.15);
    }

    .filter-btn.active {
        background: #1d4ed8;
        color: white;
        border-color: #1d4ed8;
        box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
        transform: translateY(-1px);
    }

    .filter-btn:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.3);
    }

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

.product-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
    filter: brightness(0.92);
}

.add-to-cart-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .add-to-cart-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.add-to-cart-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    border: none;
    color: #111827;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

    .add-to-cart-btn:hover {
        background: linear-gradient(45deg, #fbbf24, #fcd34d);
        transform: scale(1.05);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

.badge-discount {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #16a34a;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 0.75rem;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
    text-align: center;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    margin: 0;
}

.product-author {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.list-price {
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: line-through;
    margin: 0;
}

.sale-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #16a34a;
    margin: 0;
}

.view-details-btn {
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #1d4ed8;
    color: #1d4ed8;
    transition: all 0.2s ease;
    text-align: center;
}

    .view-details-btn:hover {
        background: #1d4ed8;
        color: white;
        transform: translateY(-1px);
    }

.no-products {
    font-size: 1.1rem;
    color: #6b7280;
    text-align: center;
    padding: 2rem 0;
}

button, a {
    text-decoration: none;
}


