/*--------------------------------------------------------------
# Wishlist (localStorage) — heart toggle, floating button, drawer
--------------------------------------------------------------*/

.menu .menu-item {
  position: relative;
}

/* Heart toggle on each dish thumbnail */
.wishlist-heart {
  position: absolute;
  top: -6px;
  left: 46px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #1a1814;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.wishlist-heart i {
  font-size: 13px;
  color: #cda45e;
  line-height: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wishlist-heart:hover {
  background: #cda45e;
}

.wishlist-heart:hover i {
  color: #1a1814;
}

.wishlist-heart.is-active i {
  color: #e0453c;
}

.wishlist-heart.is-active {
  background: #1a1814;
  border: 1px solid #e0453c;
}

.wishlist-heart.pop {
  animation: wishlistPop 0.35s ease;
}

@keyframes wishlistPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Floating action button */
.wishlist-fab {
  position: fixed;
  bottom: 15px;
  left: 15px;
  width: 52px;
  height: 52px;
  background-color: #1a1814;
  border: 2px solid #cda45e;
  color: #cda45e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 997;
}

.wishlist-fab:hover {
  background-color: #cda45e;
  color: #1a1814;
  transform: scale(1.08);
}

.wishlist-fab i {
  font-size: 20px;
}

.wishlist-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #cda45e;
  color: #1a1814;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #1a1814;
}

.wishlist-badge[hidden] {
  display: none;
}

/* Overlay + drawer panel */
.wishlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9998;
}

.wishlist-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wishlist-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background: #1a1814;
  color: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.wishlist-panel.active {
  transform: translateX(0);
}

.wishlist-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(205, 164, 94, 0.25);
}

.wishlist-panel-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin: 0;
  color: #cda45e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wishlist-panel-header h3 i {
  font-size: 1.1rem;
}

.wishlist-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wishlist-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.wishlist-close:hover {
  color: #cda45e;
}

.wishlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wishlist-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(205, 164, 94, 0.4);
  flex-shrink: 0;
}

.wishlist-item-info {
  flex: 1;
  min-width: 0;
}

.wishlist-item-info .name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-item-info .price {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  color: #cda45e;
  font-weight: 600;
}

.wishlist-item-remove {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wishlist-item-remove:hover {
  color: #e57373;
  transform: scale(1.1);
}

.wishlist-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
}

.wishlist-empty i {
  display: block;
  font-size: 2.4rem;
  color: rgba(205, 164, 94, 0.4);
  margin-bottom: 14px;
}

.wishlist-panel-footer {
  padding: 16px 24px 18px;
  border-bottom: 1px solid rgba(205, 164, 94, 0.25);
  flex-shrink: 0;
}

.wishlist-count-label {
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 14px;
  text-align: center;
}

.wishlist-count-label strong {
  color: #cda45e;
}

.wishlist-footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.wishlist-clear-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.wishlist-clear-btn:hover {
  color: #e57373;
}

.wishlist-reserve-btn {
  margin: 0;
}

/* Toast */
.wishlist-toast {
  position: fixed;
  bottom: 78px;
  left: 15px;
  background: #1a1814;
  border: 1px solid #cda45e;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 9997;
  white-space: nowrap;
}

.wishlist-toast i {
  color: #cda45e;
  margin-right: 6px;
}

.wishlist-toast.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .wishlist-toast {
    white-space: normal;
    max-width: calc(100vw - 30px);
  }
}

/* On mobile, the browser's bottom address bar can hide fixed elements
   sitting too close to the viewport edge — align with the chat button
   height instead. Desktop keeps the lower position. */
@media (max-width: 768px) {
  .wishlist-fab {
    bottom: 80px;
  }

  .wishlist-toast {
    bottom: 143px;
  }
}

.wishlist-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 30px;
  border: 1px solid rgba(205, 164, 94, 0.5);
  background: transparent;
  color: #cda45e;
  cursor: pointer;
  padding: 8px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wishlist-share-btn i {
  font-size: 14px;
}

.wishlist-share-btn:hover {
  background: #cda45e;
  color: #1a1814;
  transform: scale(1.03);
}

.wishlist-category {
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #cda45e;
  padding: 16px 0 6px;
  border-bottom: 1px solid rgba(205, 164, 94, 0.2);
}

.wishlist-items > .wishlist-category:first-child {
  padding-top: 4px;
}
