/* Shop Page Layout & Refinement */

/* Main Layout Container */
.shop-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 5% 100px;
    gap: 40px;
    position: relative;
}

/* Sidebar Styles */
.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    /* Account for sticky nav */
    align-self: flex-start;
    height: fit-content;
}

.filter-group {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list label {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.filter-list label:hover {
    color: #000;
}

.filter-checkbox {
    accent-color: #000;
    width: 16px;
    height: 16px;
}

/* Product Product Grid (Updated) */
.product-grid {
    flex: 1;
    display: grid;
    /* Reduced min-width to 220px for smaller cards */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 0;
    /* Padding handled by container */
}

/* Card Styles */
.shop-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: transform 0.3s ease;
    border: none;
}

.shop-card:hover {
    transform: translateY(-5px);
}

.shop-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.05);
}

.shop-card-details {
    padding: 12px 0;
    text-align: left;
    /* Aligned left for cleaner look with smaller cards */
}

.shop-card-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 1rem;
    /* Smaller font for smaller card */
    margin-bottom: 3px;
    color: #000;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-card-price {
    font-family: 'Jost', sans-serif;
    color: #444;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.shop-card-action {
    margin-top: auto;
}

.shop-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.shop-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .shop-container {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .filter-group {
        display: inline-block;
        margin-right: 20px;
        border-bottom: none;
    }
}