.sidecart {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidecart.active {
  right: 0;
}

.sidecart-header {
  padding: 6px 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidecart-header h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.sidecart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  margin-right: 15px;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-color img.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  vertical-align: middle;
  margin: 0 5px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 500;
  margin-bottom: 5px;
  margin-right: 20px;
}

.cart-item-options {
  font-size: 12px;
  color: #666;
}

.cart-item-color {
  display: flex;
  align-items: center;
  gap: 5px;
}

.color-swatch {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #ddd;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.quantity-adjust {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.quantity-adjust:hover:not(.disabled) {
  background: #f5f5f5;
  border-color: #ccc;
}

.quantity-adjust.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.quantity-adjust i {
  font-size: 12px;
  color: #666;
}

.quantity-value {
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.item-price {
  margin-left: auto;
  font-weight: 500;
  color: #333;
}

.remove-item {
  background: #efefef;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: #939393;
  transition: color 0.2s ease;
  display: flex;
  justify-content: center;
  height: 24px;
  width: 24px;
  align-items: center;
  border-radius: 4px;
}

.remove-item:hover {
  color: #ff4444;
}

.remove-item i {
  font-size: 14px;
}

.sidecart-footer {
  padding: 20px;
}

.subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: 500;
}

#checkout-button {
  color: #fff !important;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.sidecart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidecart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-message {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.header-cart-icon {
  cursor: pointer;
}

.cart-link {
  position: relative;
  text-decoration: none;
}

.header-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-sidecart {
  background: none;
  border: none;
  font-size: 30px;
}

/* REmove Cupom */
.applied-coupon {
  position: relative;
  width: fit-content;
}

.coupon-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #c9ffc4;
  padding: 8px 50px 8px 12px;
  border-radius: 4px;
  margin-top: 10px;
  position: relative;
}

.remove-coupon {
  background: #ffffff57;
  border: none;
  color: #ff4444;
  font-size: 18px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 18px;
  font-weight: 700;
}

.remove-coupon:hover {
  color: #cc0000;
}

.global-coupon {
  background: #e8f5e9;
  border-left: 3px solid #4caf50;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-radius: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.discount-value {
  font-weight: bold;
  color: #4caf50;
}

.price-breakdown {
  width: 100%;
  margin-top: 10px;
}

.price-breakdown > div {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
}

.subtotal {
  color: #666;
  font-size: 0.9em;
}

.discount {
  color: #4caf50;
  font-size: 0.9em;
}

.final-total {
  font-weight: bold;
  font-size: 1.1em;
  border-top: 1px solid #eee;
  padding-top: 8px;
  margin-top: 8px;
}

.sidecart-coupon {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
}

.coupon-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.coupon-input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.coupon-input:focus {
  outline: none;
  border-color: #4caf50;
}

.apply-coupon {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.apply-coupon:hover {
  background: #45a049;
}

.apply-coupon i {
  font-size: 14px;
}
