.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b170f;
}
.wishlist-actions {
  display: flex;
  gap: 1rem;
}
.wishlist-actions button {
  background: none;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.wishlist-actions button:hover {
  background: #f5f5f5;
}
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.wishlist-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  position: relative;
}
.wishlist-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.wishlist-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.wishlist-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.wishlist-card:hover .wishlist-card-image img {
  transform: scale(1.05);
}
.remove-wishlist {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
}
.remove-wishlist:hover {
  background: #e74c3c;
  transform: scale(1.1);
}
.wishlist-card-info {
  padding: 1.5rem;
}
.wishlist-card-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #3b170f;
  cursor: pointer;
}
.wishlist-card-info h3:hover {
  color: #d1a056;
}
.product-category {
  color: #999;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.product-rating {
  margin: 0.5rem 0;
}
.product-price {
  margin: 0.5rem 0;
}
.current-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #d1a056;
}
.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}
.product-stock {
  font-size: 0.8rem;
  margin: 0.5rem 0;
}
.product-stock.in-stock {
  color: #27ae60;
}
.product-stock.out-stock {
  color: #e74c3c;
}
.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.add-to-cart-btn {
  flex: 1;
  background: #5f2a19;
  color: white;
  border: none;
  padding: 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.add-to-cart-btn:hover {
  background: #d1a056;
}
.view-details-btn {
  background: #f5f5f5;
  border: none;
  width: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.view-details-btn:hover {
  background: #ddd;
}
.empty-wishlist {
  text-align: center;
  padding: 4rem;
  background: white;
  border-radius: 20px;
  grid-column: 1/-1;
}
.empty-wishlist i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 1rem;
}
.share-wishlist {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  .wishlist-grid {
    grid-template-columns: 1fr;
  }
  .share-wishlist {
    flex-direction: column;
  }
}
body.dark-mode .wishlist-card,
body.dark-mode .empty-wishlist,
body.dark-mode .share-wishlist {
  background: #2d2d2d;
}
body.dark-mode .wishlist-card-info h3 {
  color: #f5f5f5;
}
body.dark-mode .view-details-btn {
  background: #3d3d3d;
  color: #f5f5f5;
}
