

    body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.topbar {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    text-align: right;
}

.container {
    display: flex;
    flex-direction: row;
    padding: 20px;
    gap: 20px;
}

.left, .right {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.left {
    flex: 1.2;
}

.right {
    flex: 0.8;
}

h2, h3 {
    margin-top: 0;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 8px 12px;
    margin: 6px 0 16px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

button.complete-btn {
    background-color: #28a745;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

button.complete-btn:hover {
    background-color: #218838;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.product-card img {
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 5px;
}

.product-card.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
}

.price {
    color: #e91e63;
    font-weight: bold;
}

#cart-items p {
    text-align: center;
    color: #888;
    font-size: 15px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
}
