/* === Killimall-Inspired Cart Styles === */

/* Global */
body {
  font-family: 'Poppins', sans-serif;
  background: #f8f8f8;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 15px 25px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  font-size: 20px;
  color: #222;
  margin: 0;
}

.btn-back {
  text-decoration: none;
  color: #ff6600;
  font-weight: 600;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: #e55a00;
}

/* Cart Section */
.cart-section {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Empty State */
.empty-cart {
  text-align: center;
  color: #777;
  font-size: 18px;
  margin-top: 80px;
}

/* Cart Item Card */
.cart-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
  transform: scale(1.01);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Image */
.cart-item img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

/* Details */
.cart-details {
  flex: 1;
  margin-left: 15px;
}

.cart-details h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #333;
}

.cart-details p {
  margin: 3px 0;
  color: #777;
  font-size: 14px;
}

/* Price */
.cart-price {
  font-weight: 600;
  color: #ff6600;
  font-size: 16px;
  min-width: 80px;
  text-align: right;
}

/* Actions */
.cart-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

/* Remove Button */
.btn-remove {
  border: none;
  background: #ff4444;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

.btn-remove:hover {
  background: #e33;
}

/* Summary */
.cart-summary {
  background: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cart-summary p {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* Checkout + Clear Buttons */
.btn-checkout {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-checkout:hover {
  background: #e55a00;
}

.btn-clear {
  background: #eee;
  color: #333;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  margin-left: 10px;
  transition: background 0.2s ease;
}

.btn-clear:hover {
  background: #ddd;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-details {
    margin: 10px 0 0 0;
  }

  .cart-actions {
    width: 100%;
    align-items: flex-start;
  }

  .cart-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .btn-checkout {
    width: 100%;
  }
}
