.store-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.store-header h1 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 10px;
}

.store-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-gray);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(11, 128, 122, 0.15);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.product-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.product-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 15px;
    margin-top: auto;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: rgba(11, 128, 122, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Floating Cart */
.cart-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--secondary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(10, 36, 66, 0.4);
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
}

.cart-float:hover {
    transform: scale(1.1);
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    /* Align right for Arabic */
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    height: 100%;
    transform: translateX(-100%);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    display: flex;
    flex-direction: column;
}

/* Since body is dir=rtl, right=left practically, but let's be explicit and slide from left for visual balance */
[dir="rtl"] .cart-sidebar {
    transform: translateX(100%);
}

[dir="rtl"] .cart-modal.active .cart-sidebar {
    transform: translateX(0);
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 22px;
    color: var(--secondary-color);
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 15px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    cursor: pointer;
}

.remove-item {
    color: var(--error-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-top: 5px;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    text-align: center;
    border-radius: 12px;
}

/* Mobile Adjustments for Store */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .product-img {
        height: 130px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .add-to-cart-btn {
        padding: 8px;
        font-size: 13px;
    }

    .store-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-img {
        height: 110px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }

    .add-to-cart-btn {
        font-size: 12px;
        padding: 6px;
    }
}