/* ══════════════════════════════════════════════
   AutoLogic Bangladesh — Shop Specific Styles
   ══════════════════════════════════════════════ */

.shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 140px 0 4rem 0;
}

/* Sidebar Filters */
.shop-sidebar {
    position: sticky;
    top: 150px;
    height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 1rem;
}

.filter-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.filter-widget h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-list {
    list-style: none;
}

.filter-item {
    margin-bottom: 0.75rem;
}

.filter-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-link:hover, .filter-link.active {
    color: var(--primary);
}

.filter-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Shop Header */
.shop-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.shop-sort select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

/* Product Listing Grid */
.product-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Cart Page */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 140px 0 4rem 0;
}

.cart-items-list {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px 50px;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: #f8fafc;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.remove-btn {
    color: var(--danger);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
}

.cart-summary {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 150px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.summary-total {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--dark);
}

@media (max-width: 991px) {
    .shop-container, .cart-grid {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        position: static;
        height: auto;
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    .filter-widget {
        flex: 0 0 250px;
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .cart-item {
        grid-template-columns: 80px 1fr 1fr;
        gap: 1rem;
    }
    .cart-item-qty {
        grid-column: span 2;
        justify-self: end;
    }
    .remove-btn {
        grid-column: span 1;
        justify-self: end;
    }
}
