/* ============================================================
   IT — Ebook Simple Wishlist
   Dark Theme • Grid-Aligned • Responsive
   ============================================================ */

/* --- Button Wrapper --- */
.ebook-wishlist-btn-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: 6px;
}

/* --- Buttons --- */
.ebook-wishlist-main-btn,
.ebook-wishlist-toggle {
  background: none;
  border: 1px solid #333;
  border-radius: 10px;
  color: #ddd;
  font-size: 1rem;
  padding: 6px 10px;
  margin-right: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ebook-wishlist-main-btn:hover,
.ebook-wishlist-toggle:hover {
  border-color: #f69a5f;
  color: #f69a5f;
  box-shadow: 0 0 6px rgba(246, 154, 95, 0.4);
}

/* --- Dropdown Menu --- */
.ebook-wishlist-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid #222;
  border-radius: 12px;
  min-width: 200px;
  z-index: 9999;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  animation: dropdownFade 0.2s ease forwards;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.ew-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- Dropdown Header --- */
.ew-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ew-dropdown-header span {
  font-size: 0.85rem;
  color: #aaa;
}

.ew-new-wishlist-link {
  background: none;
  border: none;
  color: #f69a5f;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.ew-new-wishlist-link:hover {
  color: #fff;
}

/* --- Wishlist List Rows --- */
.ew-wishlist-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
  background: transparent;
  color: #ccc;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.ew-wishlist-row:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f69a5f;
}

/* --- Feedback / Messages --- */
.ew-message {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

.ew-loading,
.ew-empty {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  padding: 6px;
}

/* ============================================================
   Integration: Expanded Product Grid
   ============================================================ */

.details-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.details-buttons button {
  background: none;
  border: 1px solid #333;
  border-radius: 10px;
  color: #ddd;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.details-buttons button:hover {
  color: #f69a5f;
  border-color: #f69a5f;
  box-shadow: 0 0 8px rgba(246, 154, 95, 0.3);
}

/* --- Wishlist Buttons Inside Grid --- */
.details-buttons .ebook-wishlist-btn-wrapper {
  transform: translateY(1px);
  display: inline-flex;
  gap: 4px;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
  .ebook-wishlist-main-btn,
  .ebook-wishlist-toggle {
    font-size: 0.9rem;
    padding: 5px 9px;
  }

  .ebook-wishlist-dropdown {
    min-width: 180px;
    top: 38px;
  }
}
