/* cart.css - Styles for the ArtShop Cart Page
   Created: November 26, 2025
   Purpose: Dedicated styles for cart.html and cart-related UI components.
   Usage: Link this file in cart.html and any other page with cart-specific features.
*/

body {
  font-family: "Manrope", sans-serif;
  background: #f8f9fa;
}

.cart-container {
  margin-top: 50px;
}

.cart-summary {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 20px;
}

.cart-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.cart-item img {
  max-width: 100px;
  height: auto;
  border-radius: 5px;
}
.item-details {
  flex-grow: 1;
  margin-left: 20px;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quantity-control button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
}
.quantity-control .btn-outline-danger {
  width: auto;
  border-radius: 4px;
  padding: 5px 10px;
}
.quantity-control .fa-trash {
  margin-top: 3px;
  margin-bottom: 3px;
}
.quantity-control input {
  width: 60px;
  text-align: center;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.summary-row.total {
  font-size: 1.3em;
  font-weight: bold;
  padding-top: 15px;
  border-top: 2px solid #dee2e6;
  margin-top: 15px;
}
.empty-cart {
  text-align: center;
  padding: 50px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.empty-cart i {
  font-size: 80px;
  color: #dee2e6;
  margin-bottom: 20px;
}
.btn-primary {
  background: #333 !important;
  border-color: rgb(18, 118, 255) !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: rgb(4, 86, 217) !important;
  border-color: rgb(4, 86, 217) !important;
}
.btn-outline-primary {
  background-color: #333;
  color: white !important;
  border-color: #333 !important;
}
.btn-outline-primary:hover {
  background: rgb(18, 118, 255) !important;
  border-color: rgb(18, 118, 255) !important;
  color: #fff !important;
}
.btn-outline-danger {
  background-color: #fff;
  color: red !important;
  /* border-color: #e14942 !important; */
}
.btn-outline-danger:hover {
  background: #fff !important;
  /* border-color: #e14942 !important; */
  color: red !important;
}
/* Shopping Cart Icon and Badge Styles */
#fa-shopping-cart {
  position: relative;
  padding-right: 0px;
  padding-left: 0px;
  margin-left: 0px;
  margin-right: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#fa-shopping-cart a {
  font-size: 32px;
  color: #ffffff !important;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
#fa-shopping-cart .iconify {
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
}
#cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e14942;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  display: none;
}

@media (max-width: 600px) {
  .cart-container {
    padding: 16px 4px;
  }
  .cart-summary {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .cart-table th,
  .cart-table td {
    padding: 8px 4px;
  }
}
