/* Cart and Wishlist Dropdown Items Styles */

/* Cart Item Styles */
.cart-item,
.wishlist-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
  transition: all 0.2s;
}

.cart-item:hover,
.wishlist-item:hover {
  background: #f3f4f6;
  transform: translateX(-2px);
}

.cart-item-image,
.wishlist-item-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: white;
  border: 1px solid #e5e7eb;
}

.cart-item-details,
.wishlist-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-title,
.wishlist-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-price,
.wishlist-item-price {
  font-size: 15px;
  font-weight: 700;
  color: #FCB1D8;
  margin: 0;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.quantity-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #6b7280;
}

.quantity-btn:hover {
  border-color: #FCB1D8;
  background: #FCB1D8;
  color: #202023;
}

.quantity-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  min-width: 20px;
  text-align: center;
}

.cart-item-subtotal {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.cart-item-remove,
.wishlist-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: white;
  color: #9ca3af;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-item-remove:hover,
.wishlist-item-remove:hover {
  background: #fee2e2;
  color: #ef4444;
}

.btn-add-to-cart {
  padding: 6px 12px;
  background: #FCB1D8;
  color: #202023;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-add-to-cart:hover {
  background: #F6CCDE;
  transform: translateY(-1px);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 15px;
  text-align: center;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Cart Total in Footer */
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
  border-top: 1px solid #e5e7eb;
  margin-bottom: 8px;
}

.cart-total span {
  color: #6b7280;
  font-weight: 500;
}

.cart-total strong {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Button Styles for Cart/Wishlist Dropdowns */
.action-dropdown .btn-outline,
.action-dropdown .btn-text,
.action-dropdown .btn-primary-full {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.action-dropdown .btn-outline {
  background: transparent;
  color: #6b46c1;
  border: 1px solid #6b46c1;
}

.action-dropdown .btn-outline:hover {
  background: #f3f0ff;
}

.action-dropdown .btn-text {
  background: transparent;
  color: #6b7280;
  padding: 8px;
}

.action-dropdown .btn-text:hover {
  color: #FCB1D8;
}

.action-dropdown .btn-primary-full {
  background: #6b46c1;
  color: white;
  width: 100%;
  margin-top: 8px;
}

.action-dropdown .btn-primary-full:hover {
  background: #5a38a3;
}

/* Scrollbar for dropdown body */
.dropdown-body::-webkit-scrollbar {
  width: 6px;
}

.dropdown-body::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.dropdown-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.dropdown-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .cart-item,
  .wishlist-item {
    gap: 10px;
    padding: 10px;
  }

  .cart-item-image,
  .wishlist-item-image {
    width: 56px;
    height: 56px;
  }

  .cart-item-title,
  .wishlist-item-title {
    font-size: 13px;
  }

  .cart-item-price,
  .wishlist-item-price {
    font-size: 14px;
  }
}

/* Animation for items being added */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item,
.wishlist-item {
  animation: slideInFromTop 0.3s ease;
}
