@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 12px;
    }

    .hero-title {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 400px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .categories-list {
        justify-content: flex-start;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-menu {
        gap: 8px;
        padding: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 20px;
    }
}

/* RTL adjustments */
html[dir="rtl"] .header-top .container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .product-footer {
    flex-direction: row-reverse;
}

html[dir="rtl"] .cart-item {
    flex-direction: row-reverse;
}
