

    body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.topbar {
    background-color: #5c6bc0;
    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: #5c6bc0;
    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;
    margin: auto;
    display: block;
}

.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;
    }
}
.cart-item button {
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
  font-family: Tahoma;
  direction: rtl;
}

.close {
  color: red;
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.calc-buttons button {
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
}

#calcInput {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  text-align: right;
  margin-bottom: 10px;
}
.footer-bar {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #777;
  padding: 15px;
  font-family: 'Cairo', sans-serif;
}

.footer-bar a {
  color: inherit;
  text-decoration: none;
}
    .filter-group {
    margin-bottom: 10px;
}

.filter-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 3px 3px 3px 0;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.filter-btn.active {
    background-color: #5c6bc0;
    color: white;
}