.shop-container {
    padding: 3rem 0;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.shop-sidebar {
    flex: 0 0 250px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
    font-weight: 700;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 0.5rem;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-list label:hover {
    color: var(--primary-color);
}

.shop-main {
    flex: 1;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.shop-results-count {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.shop-sort select {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 600;
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:hover:not(.active) {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Responsiveness */
@media (max-width: 768px) {
    .shop-container {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
        flex: none;
        position: static;
    }
}

html[dir="rtl"] .shop-header {
    flex-direction: row-reverse;
}

/* Shopping Cart Drawer CSS */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    right: 0;
}

/* RTL Cart support */
html[dir="rtl"] .cart-drawer {
    right: auto;
    left: -450px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}
html[dir="rtl"] .cart-drawer.active {
    left: 0;
}

.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s;
}

.cart-close-btn:hover {
    color: #0f172a;
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #94a3b8;
    margin: auto 0;
}

.cart-empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.cart-empty-state p {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Cart Item Rows */
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item img {
    width: 60px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-title {
    font-size: 0.925rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.cart-item-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #3b82f6;
}

/* Quantity controls in Cart */
.cart-item-qty-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.qty-counter {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
    color: #475569;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #cbd5e1;
}

.qty-val {
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.15s;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
}

.cart-item-remove:hover {
    opacity: 1;
}

/* Footer & checkout */
.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.cart-summary-row.total-row {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.75rem;
}

.cart-drawer-footer .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}