/* Cart Drawer Styles */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  right: 0;
}
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
} /* Text Classes */
.cart-drawer .bold {
  font-weight: bold;
}
.cart-drawer .regular {
  font-weight: normal;
} /* Header */
.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.cart-drawer-title {
  font-size: 18px;
  margin: 0;
  font-family: "Barlow", sans-serif;
}
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}
.cart-drawer-close:hover {
  color: #000;
} /* Content */
.cart-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.cart-drawer-empty {
  padding: 60px 20px;
  text-align: center;
  color: #666;
}
.cart-drawer-empty-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  opacity: 0.3;
}
.cart-drawer-empty-text {
  font-size: 16px;
  margin-bottom: 20px;
}
.cart-drawer-continue {
  background: #eb701f;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.cart-drawer-continue:hover {
  background: #d65b0f;
  color: white;
} /* Items */
.cart-drawer-items {
  padding: 0;
}
.cart-drawer-item {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  gap: 15px;
}
.cart-drawer-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.cart-drawer-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-drawer-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cart-drawer-item-title {
  font-size: 14px;
  color: #000;
  margin: 0;
  line-height: 1.3;
}
.cart-drawer-item-variant {
  font-size: 12px;
  color: #666;
  margin: 0;
}
.cart-drawer-item-price {
  font-size: 14px;
  color: #eb701f;
  margin: 0;
}
.cart-drawer-item-price .compare-price {
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
} /* Individual Item Savings */
.cart-drawer-item-savings {
  margin: 4px 0;
}
.cart-drawer-item-savings .savings-text {
  font-size: 12px;
  color: #4caf50;
  background: #f0fdf4;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #eb701f;
} /* Quantity Controls */
.cart-drawer-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.cart-drawer-quantity-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  font-weight: bold;
}
.cart-drawer-quantity-btn:hover {
  border-color: #eb701f;
  color: #eb701f;
}
.cart-drawer-quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cart-drawer-quantity-input {
  width: 50px;
  height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}
.cart-drawer-remove {
  width: fit-content !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 12px !important;

  color: #ff6767 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  background: none !important;
  border: none !important;
  margin-top: 4px !important;
}
.cart-drawer-remove:hover {
  color: #666;
} /* Footer */
.cart-drawer-footer {
  border-top: 1px solid #e5e5e5;
  padding: 20px;
  flex-shrink: 0;
  background: #fff;
} /* Savings Banner */
.cart-drawer-savings {
  margin-bottom: 15px;
  display: none;
}
.savings-banner {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}
.savings-icon {
  font-size: 24px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}
.savings-content {
  flex: 1;
}
.savings-title {
  font-size: 14px;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.savings-amount {
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px;
}
.cart-drawer-discount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #eb701f;
}
.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-drawer-checkout,
.cart-drawer-view-cart {
  padding: 14px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  font-family: "Barlow", sans-serif;
}
.cart-drawer-checkout {
  background: #eb701f;
  color: white;
}
.cart-drawer-checkout:hover {
  background: #d65b0f;
}
.cart-drawer-view-cart {
  background: transparent;
  color: #eb701f;
  border: 2px solid #eb701f;
}
.cart-drawer-view-cart:hover {
  background: #eb701f;
  color: white;
} /* Mobile Responsive */
@media (max-width: 480px) {
  .cart-drawer {
    width: 100vw;
    right: -100vw;
  }
  .cart-drawer-item {
    padding: 15px;
  }
  .cart-drawer-item-image {
    width: 60px;
    height: 60px;
  }
  .cart-drawer-header,
  .cart-drawer-footer {
    padding: 15px;
  }
  .savings-banner {
    padding: 12px;
  }
  .savings-title {
    font-size: 13px;
  }
  .savings-amount {
    font-size: 14px;
  }
  .cart-drawer-item-savings .savings-text {
    font-size: 11px;
  }
} /* Internal Cart Drawer Notification */
.cart-drawer-internal-notification {
  margin: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideInFromTop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cart-drawer-internal-notification--hide {
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer-internal-notification__content {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}
.cart-drawer-internal-notification__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.cart-drawer-internal-notification.error .cart-drawer-internal-notification__icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.cart-drawer-internal-notification__text {
  flex: 1;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  line-height: 1.4;
}
.cart-drawer-internal-notification__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #9ca3af;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer-internal-notification__close:hover {
  color: #6b7280;
  background: #f3f4f6;
}
@keyframes slideInFromTop {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
