/* General Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', sans-serif;
  background: #f5f5f5;
  font-size: 14px;
  line-height: 1.5;
}
.cart-i-c::before{
  content: "\f07a";
}

.cart-page {
  min-height: 100vh;
  padding: 0 10px;
}

.checkout-steps-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #999;
}

.step .icon {
    font-size: 20px;
}

.step.active {
    color: #d32f2f;
    font-weight: bold;
}

.step-line {
    flex-grow: 1;
    height: 3px;
    background: #ccc;
    margin: 0 1rem;
    border-radius: 2px;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cart-content {
  flex: 3;
  min-width: 300px;
}

/* Cart Item */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cart-item.invalid-product {
  background: #fff0f0;
  border: 1px solid #f5b4b4;
}

.item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.item-info img {
  width: 65px;
  height: 65px;
  border: 1px solid #eee;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.item-details {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.invalid-message {
  color: #f44336;
  font-size: 12px;
  margin-top: 5px;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  background: #eee;
  border: none;
  width: 26px;
  height: 26px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #ddd;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  padding: 4px;
}

.price-unit {
  font-size: 11px;
  color: #666;
  text-align: center;
}

.unavailable, .invalid-price {
  color: #f44336;
  font-weight: bold;
}

.discounted-price {
  color: #d32f2f;
  font-weight: bold;
}

.price-total {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  color: #333;
}

.remove-btn {
  color: #e53935;
  font-size: 16px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.remove-btn:hover {
  background: #ffebee;
}

/* Discount Box */
.discount-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 10px;
  overflow: hidden;
}

.discount-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  cursor: pointer;
  font-weight: bold;
  color: #6c6a6a;
  font-size: 1rem;
  background: #f9f9f9;
  transition: background 0.2s;
}

.discount-header:hover {
  background: #f0f0f0;
}

.discount-header .icon {
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.2s;
}

.discount-content {
  padding: 15px;
  border-top: 1px solid #eee;
}

/* Coupon */
.coupon-container {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  background: #f9f9f9;
}

.coupon-container .coupon-input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  background: transparent;
  outline: none;
}

.coupon-container .btn-apply-coupon {
  border: none;
  background: #43a047;
  color: #fff;
  padding: 0 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.coupon-container .btn-apply-coupon:hover {
  background: #388e3c;
}

#coupon-message {
  margin-top: 8px;
  font-size: 13px;
  min-height: 20px;
}

/* Summary */
.summary {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  height: max-content;
  min-width: 280px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.summary-row {
  color: #6c6a6a;
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 14px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  font-size: 16px;
  font-weight: bold;
  border-top: 1px solid #eee;
  padding-top: 15px;
  color: #333;
}

.summary-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-direction: column;
}

.btn {
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
}

.btn-checkout {
  background: #43a047;
  color: #fff;
}

.btn-checkout:hover {
  background: #388e3c;
  transform: translateY(-1px);
}

.btn-continue {
  background: #eee;
  color: #333;
}

.btn-continue:hover {
  background: #ddd;
  transform: translateY(-1px);
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #777;
  font-size: 16px;
  background: #fff;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 500px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }
  
  .cart-content, .summary {
    width: 100%;
  }
}
/* 🎯 ریسپانسیو */
@media (max-width: 992px) {
    .checkout-steps-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .checkout-steps {
        flex-direction: row;
        gap: 10px;
    }

    .step-line {
        display: none;
    }
  }

@media (max-width: 768px) {

  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 15px;
  }
  
  .item-info {
    width: 100%;
    gap: 10px;
  }
  
  .item-info img {
    width: 60px;
    height: 60px;
  }
  
  .controls {
    width: 100%;
    align-items: stretch;
    gap: 10px;
  }
  
  .quantity-controls {
    justify-content: space-between;
    width: 100%;
  }
  
  .qty-input {
    width: 60px;
  }
  
  .summary-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .coupon-container {
    flex-direction: column;
  }
  
  .coupon-container .coupon-input,
  .coupon-container .btn-apply-coupon {
    width: 100%;
    font-size: 14px;
    padding: 12px;
  }
  
  .coupon-container .btn-apply-coupon {
    border-top: 1px solid #ddd;
  }
}

@media (max-width: 480px) {
  .cart-page {
    padding: 0 5px;
  }  
  .cart-item {
    padding: 12px;
  }
  
  .item-info img {
    width: 50px;
    height: 50px;
  }
  
  .item-name {
    font-size: 13px;
  }
  
  .summary {
    padding: 15px;
  }
}
@media (max-width: 480px) {
    .step {
        font-size: 0.9rem;
        flex-direction: column;
    }

    .step .icon {
        font-size: 16px;
    }

    .summary-buttons .btn {
        font-size: 14px;
        padding: 8px 0;
    }
}
