/* Container for side cart */
#side-cart-root {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-left: 16px;
  padding-right: 16px;
}
/* When cart is open */
#side-cart-root.open {
  right: 0;
}
/* Close button */
.close-cart {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none; 
  font-size: 28px;
  cursor: pointer;
  color: #333;
}
.side-cart-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px 16px;
  border-bottom: 1px solid #ddd;
}
.side-cart-heading {
  margin: 0 auto;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}
.side-cart-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.side-cart-close:hover {
  color: #f90c0c;
}
.cart-empty-btn {
  position: absolute;
  right: 16px;
  top: 30px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
/* Cart content */
.side-cart-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 3px;
}
.side-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.side-cart-item img {
  width: 80px;
  height: auto;
  object-fit: contain;
}
/* Remove Button – top-right corner */
.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  color: #000000;
  cursor: pointer;
  transition: color 0.3s;
}
.remove-btn:hover {
  color: #f90c0c;
}
.remove-btn::before {
  content: "\1F5D1"; /* Trash can icon (🗑) */
  font-family: "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}
/* Text container */
.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;  
}
/* Title */
.item-title{
  width: 90%;
}
.item-title a{
  font-size: 16px;
  color: #111;
  text-decoration: none !important;
}
/* Optional: Subtext like color */
.item-subtext {
  font-size: 14px;
  color: #888;
}
/* Quantity row */
.item-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 90px;
}
/* Quantity box */
.item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  height: 33px;
}
/* Buttons */
.qty-btn {
  width: 36px;
  height: 36px;
  font-size: 18px;
  border: none;
  background-color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
/* Quantity number */
.item-quantity span {
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  font-size: 16px;
  color: #111;
}
/* Price */
.item-price {
  font-size: 16px;
  color: #111;
  margin-left: auto;
}
/* Checkout button */
.side-cart-checkout {
  display: block;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 12px;
  margin-top: 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s;
}
.side-cart-checkout:hover {
  background-color: #444;
}
.side-cart-footer {
  padding: 16px 20px;
  border-top: 1px solid #ddd;
  background-color: #fff;
  position: sticky;
  bottom: 0;
  margin-top: auto;
}
 #floating-cart-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background-color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.cart-count-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-cart-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  font-size: 18px;
  color: #666;
}
.cart-continue-shopping-btn {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  background-color: #000;
  padding: 10px 18px;
  border-radius: 4px;
}

.recommendation-card {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  background: white;
  border-radius: 6px;
}
.recommendation-card img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}
.recommendation-card button {
  background: black;
  color: white;
  padding: 5px 10px;
  margin-top: 5px;
  border: none;
  cursor: pointer;
}
.side-cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: bold; 
  margin-top: 10px;
}
.total-label {
  text-align: left;
}
.total-price {
  text-align: right;
}
.side-cart-footer p{
  margin: auto;  
}
#side-cart-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#side-cart-loader .loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: block;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}
