/* POS شاشة الكاشير - تصميم عصري مستوحى من الصورة المرفقة مع ألوان مطابقة */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');
body {
  font-family: 'Cairo', sans-serif !important;
  background: #F8F8F8;
  margin: 0;
}
.pos-container {
  display: flex;
  gap: 32px;
  max-width: 1300px;
  margin: 40px auto;
  background: #fff;
  padding: 32px 28px;
  border-radius: 18px;
  box-shadow: 0 2px 24px #0001;
}
.products-list {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  background: #FFF3F0;
  border-radius: 16px;
  padding: 24px 12px;
  min-height: 400px;
}
.product-card {
  border: none;
  background: #fff;
  color: #222;
  font-size: 1.12em;
  transition: box-shadow .2s, border-color .2s, background .2s;
  padding: 18px 12px 16px 12px;
  border-radius: 16px;
  box-shadow: 0 2px 12px #0001;
  text-align: center;
  cursor: pointer;
  position: relative;
}
.product-card:hover, .product-card.selected, .product-card:active {
  box-shadow: 0 4px 24px #FF665122;
  border: 2px solid #FF6651;
}
.product-card img {
  max-width: 110px;
  max-height: 110px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0001;
}
.product-price {
  color: #FF6651;
  font-weight: bold;
  font-size: 1.18em;
  margin-top: 6px;
}
.cart {
  flex: 1;
  background: #fff;
  border: none;
  padding: 22px 18px;
  border-radius: 16px;
  box-shadow: 0 2px 12px #0001;
  min-width: 320px;
}
.cart h3 {
  margin-top: 0;
  color: #222;
  font-size: 1.3em;
  font-weight: 900;
}
.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 320px;
  overflow: auto;
}
.cart-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #F3F3F3;
  font-size: 1.08em;
}
.cart-list li:last-child {border-bottom: none;}
.cart-total {
  color: #FF6651;
  font-size: 1.4em;
  font-weight: 900;
  margin: 22px 0 12px 0;
}
.btn {
  display: block;
  width: 100%;
  background: #FF6651;
  color: #fff;
  padding: 16px 0;
  border: none;
  border-radius: 12px;
  font-size: 1.18em;
  font-weight: 900;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 2px 12px #FF665122;
  transition: background .2s, box-shadow .2s;
}
.btn:hover:not(:disabled) {
  background: #FF3B1F;
  box-shadow: 0 4px 24px #FF665133;
}
.btn:disabled {background: #bdbdbd; cursor: not-allowed;}
.search-box, .customer-select {
  border: 2px solid #F3F3F3;
  background: #fff;
  font-size: 1.08em;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: border-color .2s;
}
.search-box:focus, .customer-select:focus {
  border-color: #FF6651;
  outline: none;
}
.last-sales-list {
  background: #FFF3F0;
  border-radius: 10px;
  padding: 10px 8px;
  margin-bottom: 12px;
  max-height: 120px;
  overflow-y: auto;
  font-size: 1em;
}
.categories-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.category-btn {
  background: #F3F3F3;
  color: #222;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 900;
  font-size: 1.08em;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.category-btn.selected, .category-btn:hover {
  background: #FF6651;
  color: #fff;
}
body, .pos-container, .products-list, .cart, .cart-list, .btn {
  direction: rtl;
}
@media (max-width: 600px) {
  .pos-container {padding: 2px 0; flex-direction: column;}
  .products-list {grid-template-columns:repeat(auto-fill,minmax(120px,1fr));padding:8px 2px;}
  .cart {min-width:unset;padding:10px 2px;}
  .btn {font-size:1em;padding:10px 0;}
}
@media (max-width:900px) {
  .pos-container{flex-direction:column;gap:18px;padding:12px 4px;}
  .products-list{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));}
}
