/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D4845C;
    --primary-dark: #B86F47;
    --secondary-color: #8B4513;
    --accent-color: #FFB84D;
    --bg-primary: #F5F5F5;
    --bg-secondary: #FFFFFF;
    --text-primary: #2C2C2C;
    --text-secondary: #666666;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default font: Rubik for English and Hebrew */
body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Container */
.pos-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 12px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lang-btn.active {
    background: white;
    border-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 1.5rem;
    padding: 1.5rem;
    padding-bottom: 0;
}

/* Categories Sidebar */
.categories-sidebar {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem 1rem;
    width: 280px;
    box-shadow: var(--shadow-sm);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    color: var(--text-primary);
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-btn {
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-btn .category-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    flex-shrink: 0;
}

.category-btn:hover {
    background: var(--bg-primary);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.category-btn.active .category-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Products Section */
.products-section {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.products-header {
    margin-bottom: 2rem;
}

.category-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #FFE5D9 0%, #FFD4C2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.add-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
}

.add-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Cart Footer */
.cart-footer {
    background: var(--bg-secondary);
    border-top: 3px solid var(--border-color);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transition: var(--transition);
}

.cart-footer.collapsed {
    cursor: pointer;
}

.cart-content {
    padding: 1.5rem 2rem;
    max-height: 380px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* Collapsed state - minimal footer */
.cart-footer.collapsed .cart-content {
    max-height: 90px;
    min-height: 90px;
    padding: 1.25rem 2rem;
}

.cart-footer.collapsed .cart-expanded-content {
    display: none;
}

.cart-footer.collapsed .cart-summary {
    padding: 0;
    border: none;
    margin: 0;
}

.cart-footer.collapsed .cart-summary .summary-row.total {
    padding: 0;
    margin: 0;
    border: none;
}

.cart-footer.collapsed .checkout-btn {
    margin: 0;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Compact cart summary for collapsed state */
.cart-compact-summary {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.cart-footer.collapsed .cart-compact-summary {
    display: flex;
}

.cart-footer.collapsed .cart-summary {
    display: none;
}

.cart-footer:not(.collapsed) .cart-compact-summary {
    display: none;
}

.cart-compact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cart-item-count {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-item-count .count-badge {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.cart-compact-total {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-expand-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cart-expand-indicator svg {
    transition: var(--transition);
}

.cart-footer.collapsed:hover .cart-expand-indicator svg {
    transform: translateY(-3px);
}

.cart-footer:not(.collapsed) .cart-expand-indicator svg {
    transform: rotate(180deg);
}

/* Two-Column Cart Layout */
.cart-expanded-content {
    display: flex;
    gap: 2rem;
    height: 100%;
}

.cart-items-section {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cart-summary-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 400px;
}

.cart-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    min-height: 50px;
}

.cart-section-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin: 0;
}

.minimize-cart-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    height: 36px;
    flex-shrink: 0;
}

.minimize-cart-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.clear-cart-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    height: 36px;
    flex-shrink: 0;
}

.clear-cart-btn:hover {
    background: #D32F2F;
    transform: scale(1.05);
}

.cart-items-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    padding: 0.5rem 0;
}

.cart-items {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding-bottom: 0.5rem;
    align-items: flex-start;
}

.empty-cart {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
    gap: 0.5rem;
}

.empty-cart svg {
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    font-size: 1.2rem;
    font-weight: 600;
}

.empty-cart span {
    font-size: 0.95rem;
}

.cart-item {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1rem;
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.cart-item:hover {
    border-color: var(--primary-color);
}

.cart-item-image {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFE5D9 0%, #FFD4C2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.qty-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

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

.qty-value {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-item-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 1;
}

.remove-item-btn:hover {
    background: #D32F2F;
    transform: scale(1.1);
}

/* Cart Summary - styles now applied to cart-summary-section */

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.checkout-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, #45A049 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.checkout-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.checkout-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-body {
    padding: 2rem;
}

/* Checkout Modal - No scroll, compact */
.checkout-modal {
    max-height: fit-content !important;
    overflow: visible !important;
}

.checkout-modal .modal-header {
    padding: 1.25rem 1.5rem;
}

.checkout-modal .modal-header h2 {
    font-size: 1.5rem;
}

.checkout-modal .modal-body {
    padding: 1rem 1.5rem;
    overflow: hidden;
}

.checkout-modal .modal-footer {
    padding: 1rem 1.5rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-primary);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
}

/* Checkout Modal */
.payment-status {
    text-align: center;
    padding: 0.5rem 0;
}

.payment-icon {
    margin-bottom: 0.75rem;
}

.payment-icon svg {
    width: 60px;
    height: 60px;
}

.card-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.payment-status h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.payment-status p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.payment-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.cancel-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    background: #D32F2F;
}

/* Success Modal */
.success-modal .modal-body {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-modal h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-modal p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.order-number {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.order-number span {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.order-number h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.success-message {
    font-size: 1.1rem !important;
    color: var(--text-primary) !important;
    margin-bottom: 2rem !important;
}

.new-order-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.25rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-order-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Product Detail Modal */
.product-modal {
    max-width: 900px;
}

.product-modal .modal-body {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.product-detail-image {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    background: linear-gradient(135deg, #FFE5D9 0%, #FFD4C2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    flex-shrink: 0;
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-detail-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-detail-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 16px;
    width: fit-content;
}

.quantity-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-value {
    font-size: 1.8rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.add-to-cart-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* SweetAlert2 Custom Styles */
.swal-popup {
    border-radius: 20px !important;
    padding: 2rem !important;
}

.swal2-popup {
    border-radius: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

.swal2-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

.swal2-html-container {
    font-size: 1.1rem !important;
    color: var(--text-secondary) !important;
}

.swal2-confirm,
.swal2-cancel {
    border-radius: 12px !important;
    padding: 0.875rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border: none !important;
    min-width: 140px !important;
}

.swal2-confirm {
    background: var(--danger-color) !important;
}

.swal2-confirm:hover {
    background: #D32F2F !important;
}

.swal2-cancel {
    background: #757575 !important;
}

.swal2-cancel:hover {
    background: #616161 !important;
}

.swal2-icon {
    border-width: 3px !important;
    width: 80px !important;
    height: 80px !important;
}

/* Language-Specific Fonts */
/* Arabic: Cairo font - Apply to ALL elements */
body[lang="ar"],
body.lang-ar {
    font-family: 'Cairo', 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

body[lang="ar"] *,
body.lang-ar * {
    font-family: 'Cairo', 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Hebrew & English: Rubik font (already default) */
body[lang="he"],
body.lang-he,
body[lang="en"],
body.lang-en {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

body[lang="he"] *,
body.lang-he *,
body[lang="en"] *,
body.lang-en * {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RTL Support */
body.rtl {
    direction: rtl;
}

body.rtl .header {
    direction: rtl;
}

body.rtl .main-content {
    direction: rtl;
}

body.rtl .categories-sidebar {
    direction: rtl;
}

body.rtl .products-grid {
    direction: rtl;
}

body.rtl .cart-footer {
    direction: rtl;
}

body.rtl .cart-expanded-content {
    direction: rtl;
}

body.rtl .category-btn {
    text-align: right;
}

body.rtl .cart-item {
    direction: rtl;
}

body.rtl .summary-row {
    direction: rtl;
}

body.rtl .checkout-btn {
    flex-direction: row-reverse;
}

body.rtl .checkout-btn svg {
    transform: scaleX(-1);
}

body.rtl .modal-content {
    direction: rtl;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .categories-sidebar {
        width: 220px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .categories-sidebar {
        width: 100%;
        padding: 1rem;
    }
    
    .categories-list {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .category-btn {
        min-width: 200px;
    }
    
    .product-modal .modal-body {
        flex-direction: column;
    }
    
    .product-detail-image {
        width: 100%;
    }
}

