/* Sidecart Styles */
#cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

#sidecart {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

#sidecart.open {
  right: 0;
}

.sidecart-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ff008a;
  color: #fff;
}

.sidecart-header h2 {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

#close-cart {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
}

.sidecart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.sidecart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-family: 'Montserrat', sans-serif;
}

.sidecart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.sidecart-item:last-child {
  border-bottom: none;
}

.sidecart-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
}

.sidecart-item-info {
  flex: 1;
}

.sidecart-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

.sidecart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: #ff008a;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.sidecart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
}

.qty-btn:hover {
  background: #ff008a;
  color: #fff;
  border-color: #ff008a;
}

.qty-value {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

.remove-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #ff0000;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.3s;
}

.remove-btn:hover {
  color: #cc0000;
}

.sidecart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}

.sidecart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.sidecart-total-label {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.sidecart-total-value {
  font-size: 24px;
  font-weight: 700;
  color: #ff008a;
}

#sidecart-checkout {
  width: 100%;
  background: #ff008a;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

#sidecart-checkout:hover {
  background: #e6007a;
}

/* Cart Notification */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.3s, transform 0.3s;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.cart-notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* Cart Icon Badge */
#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff008a;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  #sidecart {
    max-width: 100%;
  }
  
  .sidecart-item img {
    width: 60px;
    height: 60px;
  }
  
  .sidecart-item-info h4 {
    font-size: 12px;
  }
  
  .sidecart-item-price {
    font-size: 14px;
  }
}
