body {
  font-family: sans-serif;
  direction: rtl;
  background: #f7f7f7;
  margin: 0;
  padding: 0;
}

/* 🔸 هدر ثابت */
.cart-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  color: #ff6a00;
  text-align: center;
  padding: 0px 0;
  font-size: 9px;
  z-index: 1000;
}

/* 🔸 محتوای اصلی */
.cart-container {
  width: 95%;
  max-width: 800px;
  margin: 70px auto 120px;
}

.cart-item {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin-bottom: 7px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cart-item img {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  object-fit: cover;
}

.cart-info {
  flex: 1;
  margin-right: 10px;
}

.cart-info h3 {
  font-size: 15px;
  margin: 0;
  color: #333;
}

.cart-info p {
  margin: 4px 0;
  color: #777;
  font-size: 13px;
}

/* کنترل تعداد */
.cart-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.qty-control button {
  background: #ff6a00;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 20px;
  cursor: pointer;
}

.qty-control span {
  margin: 0 8px;
  font-size: 14px;
}

.remove-btn {
  background: #f44336;
  border: none;
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 15px;
}

/* 🔸 فوتر ثابت */
.cart-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  z-index: 1000;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

.footer-info p {
  margin: 4px 0;
  font-size: 14px;
  color: #444;
}

.footer-buttons button {
  background: #ff6a00;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 5px;
}

.footer-buttons button:hover {
  background: #e85c00;
}
/* ----------------------------------- */
/* حذف رنگ فوکس روی لینک‌ها و دکمه‌ها */
/* برای دسکتاپ */
a:focus, a:active,
button:focus, button:active {
    outline: none;
    box-shadow: none;
}

/* برای موبایل: حذف رنگ لمس (blue highlight) */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* اختصاصی برای دسته‌بندی‌ها و کارت محصولات */
.category-scroll a:focus,
.category-scroll a:active,
.product-card a:focus,
.product-card a:active {
    outline: none;
    box-shadow: none;
}

/* 📱 موبایل */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: row; /* ✅ کنار هم بمونن */
    align-items: center;
  }

  .cart-info {
    margin-right: 10px;
    flex: 1;
  }

  .cart-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}