/* ===========================================================
   MyFavorites Suite v1.2.0
   Module CSS Styles — Dropdown & Modal Wishlist
   -----------------------------------------------------------
   Author:    JoomFlix
   Website:   https://www.joomflix.com
   Support:   support@joomflix.com
   License:   GPLv3
   (C) 2025 JoomFlix. All rights reserved.
   =========================================================== */

.myfav-wrapper {
  position: relative;
  display: inline-block;
}

/* --- Κουμπί καρδιάς --- */
.fav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  font-size: 25px;
  color: inherit; /* Παίρνει το default template χρώμα */
  display: flex;
  align-items: center;
  gap: 3px;
}

.fav-toggle .fa-heart {
  transition: color 0.2s ease-in-out;
}

.fav-toggle.active .fa-chevron-up {
  display: inline-block;
  color: #1d6db3; /* μαύρο chevron */
}

.fav-toggle .fa-chevron-up {
  display: none;
  font-size: 15px;
}

/* --- FAVORITES DROPDOWN (Smooth Roll-Down + Scroll) --- */
.favorites-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  background: var(--sp-dropdown-bg, #fff);
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  width: 520px;
  min-width: 470px;
  z-index: 9999;

  /* Αρχική κατάσταση (κλειστό) */
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: scaleY(0.96);
  transform-origin: top;
  transition:
    max-height 0.55s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.35s ease-out,
    transform 0.45s ease-out,
    padding 0.4s ease-out;
  padding: 0 14px;
}

/* Όταν ανοίγει */
.favorites-dropdown.open {
  max-height: 70vh;         
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 1;
  pointer-events: auto;
  transform: scaleY(1);
  padding: 14px;
}

/* --- Custom Scrollbar (WebKit Browsers) --- */
.favorites-dropdown::-webkit-scrollbar {
  width: 8px;
}

.favorites-dropdown::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
}

.favorites-dropdown::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ccc 0%, #999 100%);
  border-radius: 10px;
  transition: background 0.2s ease-in-out;
}

.favorites-dropdown::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b0b0b0 0%, #7d7d7d 100%);
}

/* Για Firefox */
.favorites-dropdown {
  scrollbar-width: thin;
  scrollbar-color: #999 rgba(0, 0, 0, 0.05);
}

/* --- Fade σκιά στο κάτω μέρος όταν υπάρχει scroll --- */
.favorites-dropdown::after {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 5;
}

/* Container */
.fav-close,
.fav-intro {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Κουμπί chevron */
.fav-close {
  position: absolute;
  top: 30px;
  right: 20px; /* ή right:12px αν το θες δεξιά */
  border: none;
  background: transparent;
  color: #1d6db3;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.fav-close:hover {
  color: #0b4e80 !important;
  transform: translateY(-2px);
}

/* Intro text */
.fav-intro {
  background: #f5f5f5;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 7px 10px;
  margin: 0 auto 10px auto;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: block;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Δημιουργεί χώρο για το chevron */
.fav-intro::before {
  content: "";
  display: block;
  height: 0;
  margin-left: 25px; /* ίδιο με το πλάτος του chevron */
}

/* === Κενό μήνυμα === */
.fav-empty {
  text-align: center;
  color: #555;
  font-size: 14px;
  padding: 16px 10px;
  border-top: 1px solid #eaeaea;
}

.fav-empty i {
  color: #c0c0c0;
  font-size: 20px;
  margin-bottom: 6px;
}


/* ============================================================
   🌟 FAVORITES DROPDOWN – STYLESHEET CLEAN & OPTIMIZED
   ============================================================ */

/* 🪶 Εσωτερικά στοιχεία */
.favorites-dropdown * {
  color: #222;
  font-size: 14px;
  line-height: 1.4;
}

/* --- Είδη --- */
.fav-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 12px;
  position: relative;
}

.fav-item img {
  width: 100px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

.fav-info {
  flex: 1;
  margin-left: 10px;
  padding-right: 35px; /* χώρο για το κουμπί X */
}

.fav-info h4,
.fav-info h4 a {
  color: #111 !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.fav-info h5 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  line-height: 1.3em;
}

/*.price {
  color: #000 !important;
  font-weight: 600 !important;
  font-size: 16px;
}*/

/* --- Remove button (fa-times) --- */
.fav-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fav-remove i {
  color: #f3f3f3;
  font-size: 15px;
  line-height: 1;
  transition: color 0.25s ease;
}

/* 🔴 Hover effect */
.fav-remove:hover {
  background: #d93025;
  border-color: #b71c1c;
}

.fav-remove:hover i {
  color: #fff;
}

/* === FAVORITES ROW: Quantity + Cart Button === */
.fav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  margin-top: 6px !important;
}

/* Quantity box */
.fav-actions .fav-qty,
.fav-info input.fav-qty {
  width: 52px !important;
  height: 30px !important;
  text-align: center !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  padding: 2px !important;
  line-height: 1.2 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  color: #333;
}

/* Add to Cart button */
.fav-actions .fav-add-cart {
  flex: 0 0 auto !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  text-shadow: none !important;
  line-height: 1 !important;
  margin-left: 0 !important;
}

.fav-add-cart.btn.btn-primary:hover {
  opacity: 0.9 !important;
}

/* --- Footer link --- */
.fav-footer {
  text-align: center;
  margin-top: 8px;
}

.fav-footer a {
  font-size: 13px;
  color: inherit;
  text-decoration: underline;
}

/* --- Εισαγωγικό κείμενο --- */
.fav-intro {
  font-size: 15px;
  color: #222;
  margin-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

.fav-intro p { margin: 0; }
.fav-intro center { display: block; }

/* --- Pagination --- */
.fav-pagination {
  text-align: center;
  margin-top: 10px;
}

.fav-page {
  display: inline-block;
  margin: 0 4px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #f4f4f4;
  color: #333 !important;
  text-decoration: none;
  transition: 0.2s ease;
}

.fav-page.active {
  background: #1d6db3;
  color: #fff;
}

/* --- Badge (φουσκίτσα με αριθμό) --- */
.fav-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background: #1d6db3;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
}

.fav-toggle {
  position: relative;
}

/* --- Όταν η λίστα είναι άδεια --- */
.fav-empty {
  text-align: center;
  color: #333;
  padding: 30px 15px;
  font-size: 15px;
  background: #f9f9fb;
  border-radius: 10px;
  line-height: 1.6;
  font-weight: 500;
}

.fav-empty i {
  font-size: 28px;
  color: #c0392b;
  margin-bottom: 6px;
}

/* --- Fade animation --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Footer κουμπιά κάτω από το dropdown --- */
.fav-actions-footer {
  position: sticky;
  bottom: -15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 12px 10px;
  border-top: 1px solid #e0e0e0;
  gap: 3px;
  background: #fff; /* ✅ για να μη φαίνεται το φόντο από πίσω */
  z-index: 10;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05); /* ελαφριά σκιά */
}

/* Βασικό στυλ κουμπιών */
.fav-actions-footer button {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: none;
}

/* 🖥️ Desktop κουμπιά στο footer */
@media (min-width: 601px) {
  .fav-actions-footer button {
    flex: 1 1 33%;
    min-width: 80px;
    font-size: 13px;
    font-weight: 400;
  }
}

/* Διαγραφή Όλων */
#fav-clear-all {
  border-color: #d93025;
  color: #d93025;
}
#fav-clear-all:hover {
  background: #d93025;
  color: #fff;
}

/* Προβολή Λίστας */
#fav-view-list {
  border-color: #1d6db3;
  color: #1d6db3;
}
#fav-view-list:hover {
  background: #1d6db3;
  color: #fff;
}

/* --- Κουμπί Κοινής Χρήσης (μόνο στο dropdown) --- */
#fav-proceed-form {
  border-color: #333;
  color: #333;
  transition: all 0.2s ease;
}
#fav-proceed-form:hover {
  background: #333;
  color: #fff;
}

/* --- Κουμπί Κοινής Χρήσης (μόνο στο dropdown) --- */
#fav-send-email-modal {
  border-color: #333;
  color: #333;
  transition: all 0.2s ease;
}
#fav-send-email-modal:hover {
  background: #333;
  color: #fff;
}
/* ======================================================
   💰 Διόρθωση για dropdown list (μόνο)
   ====================================================== */
.favorites-dropdown .price {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  color: #000 !important; /* αν θέλεις άλλο χρώμα βάλε εδώ */
}

/* επιμέρους στοιχεία */
.favorites-dropdown .price-old {
  text-decoration: line-through !important;
  color: #666 !important;
  font-size: 15px !important;
}

/* ⚫ Κανονική τιμή (χωρίς έκπτωση) */
.favorites-dropdown .price:not(.discounted) .price-final {
  color: #111 !important; /* μαύρη */
  font-weight: 500 !important;
  font-size: 15px !important;
}


.favorites-dropdown .price.discounted .price-final {
  color: #d93025 !important; /* κόκκινη */
  font-weight: 500 !important;
  font-size: 15px !important;
}

.favorites-dropdown .price.fav-subline small {
  font-size: 12px !important;
  color: #666 !important;
  margin-top: 2px !important;
  margin-bottom: 2px !important;
  display: inline-block !important;
  line-height: 1.2 !important;
}

/* Badge έκπτωσης */
.favorites-dropdown .discount-badge {
  background: #d93025 !important;
  color: #fff !important;
  border-radius: 5px !important;
  padding: 2px 6px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  margin-left: 4px !important;
}

/* Separator */
.favorites-dropdown .separator {
  color: #aaa !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

/* Label texts */
.favorites-dropdown .price .label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #555 !important;
}

/* Υποτιμή χωρίς ΦΠΑ */
.favorites-dropdown .fav-subline {
  font-size: 12px !important;
  color: #777 !important;
  margin-top: -5px !important;
  float: left !important;
}

/* ======================================================
   💬 Χωρίς ΦΠΑ — στο dropdown, κάτω & αριστερά μόνο στις εκπτώσεις
   ====================================================== */
.favorites-dropdown .price.discounted {
  flex-wrap: wrap !important; /* επιτρέπει να σπάσει γραμμή */
  align-items: flex-start !important; /* στοίχιση αριστερά */
}

.favorites-dropdown .price.discounted .fav-subline {
  flex-basis: 100% !important; /* πιάνει όλο το πλάτος */
  display: block !important;
  text-align: left !important;
  margin-top: -5px !important;
  margin-left: 0 !important;
  font-size: 12px !important;
  color: #666 !important;
  line-height: 1.3 !important;
}

/* ======================================================
   💰 ΤΙΜΕΣ στο MODAL FINAL PRICES - DISCOUND
   ====================================================== */
.favorites-modal .price {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  color: #111 !important;
}

.favorites-modal .price-old {
  text-decoration: line-through !important;
  color: #555 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.favorites-modal .price.discounted .price-final {
  color: #d93025 !important; /* κόκκινο */
  font-weight: 500 !important;
  font-size: 15px !important;
}

.favorites-modal .price.discounted .discount {
  background: #d93025 !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 1px 6px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}


.favorites-modal .price:not(.discounted) .price-final {
  color: #111 !important;
  font-weight: 500 !important;
  font-size: 15px !important;
}

.favorites-modal .separator {
  color: #aaa !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin: 0 4px !important;
}

.favorites-modal .price .label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #555 !important;
  margin-right: 2px !important;
}

.favorites-modal .fav-subline {
  font-size: 12px !important;
  color: #666 !important;
  margin-top: 2px !important;
}

/* ======================================================
   💬 Χωρίς ΦΠΑ – Κάτω μόνο όταν υπάρχει έκπτωση
   ====================================================== */
.favorites-modal .price.discounted {
  flex-wrap: wrap !important; /* ✅ επιτρέπει να σπάσει γραμμή */
}

.favorites-modal .price.discounted .fav-subline {
  flex-basis: 100% !important; /* ✅ πιάνει όλο το πλάτος */
  display: block !important;
  margin-top: -5px !important;
  margin-left: 0 !important;
  font-size: 12px !important;
  color: #666 !important;
  line-height: 1.2 !important;
}

/* =============================
   ΚΟΙΝΑ MODAL – DROPDOWN List (γενικά)
   ============================= */
/* --- Textarea Παρατήρησης --- */
.fav-note {
  width: 100%;
  min-height: 48px;
  font-size: 13px;
  padding: 6px 8px;
  margin-top: 6px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fafafa;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.fav-note:focus {
  border-color: #1d6db3;
  background: #fff;
  outline: none;
}
.fav-note.saved {
  border-color: #28a745;
  background: #f4fff5;
}

/* =============================
   ΚΟΙΝΑ MODAL – DROPDOWN List (ΤΙΤΛΟΙ Η5 LINK)
   ============================= *
/* ================================
   💎 MyFavorites – DROPDOWN LIST Κοινό στυλ τίτλων & τιμών (με !important)
   ================================ */

/* 🏷️ Τίτλος προϊόντος */
.fav-info h5 {
  margin: 0 0 6px 0 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
}

/* 🔗 Clickable link */
.fav-info h5 a {
  color: #1d6db3 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
.fav-info h5 a:hover {
  color: #0b4e80 !important;
  text-decoration: underline !important;
}

/* 💰 Τιμές προϊόντος 
.fav-info .price {
  font-size: 15px !important;
  color: #333 !important;
  margin-bottom: 8px !important;
  line-height: 1.5 !important;
}
.fav-info .price small {
  color: #777 !important;
  font-size: 13px !important;
}*/


/* =============================
   🧾 Τίτλοι & Τιμές (μέσα στο Modal)
   ============================= */

.favorites-modal .fav-info h5 {
  margin: 0 0 6px 0 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
}

/* 🔗 Clickable τίτλος */
.favorites-modal .fav-info h5 a {
  color: #1d6db3 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
.favorites-modal .fav-info h5 a:hover {
  color: #0b4e80 !important;
  text-decoration: underline !important;
}

/* 💰 Τιμές προϊόντος 
.favorites-modal .fav-info .price {
  font-size: 15px !important;
  color: #333 !important;
  margin-bottom: 8px !important;
  line-height: 1.5 !important;
}
.favorites-modal .fav-info .price small {
  color: #777 !important;
  font-size: 13px !important;
}*/

/* ============================================================
   🌐 Κουτί Κοινής Χρήσης (Social Share Popup)
   Συμβατό με openShareOptions() (2025 edition)
============================================================ */

.fav-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.82); /* πιο διάφανο φόντο */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(4px); /* ελαφρύ blur για βάθος */
  animation: favFadeIn 0.25s ease;
}

/* Εσωτερικό κουτί */
.fav-share-inner {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 34px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  max-width: 340px;
  width: 90%;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

/* ✖️ Κουμπί κλεισίματος πάνω δεξιά */
.fav-share-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #777;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s ease;
}
.fav-share-close:hover {
  color: #000;
  transform: scale(1.15);
}

/* MODAL TEXT 
.favorites-modal .fav-info h5,
.favorites-modal .fav-info h5 a {
  color: #111 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.favorites-modal .fav-info .price {
  color: #000 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
}*/


/* Κουμπιά κοινωνικής δικτύωσης */
.fav-send-email-modal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.fav-send-email-modal a,
.fav-share-buttons button {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 19px;
  background: #f7f7f7;
  color: #444;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fav-send-email-modal a:hover,
.fav-send-email-modal button:hover {
  transform: scale(1.15);
  color: #fff;
}

/* Ειδικά χρώματα για κάθε πλατφόρμα */
.fav-share-buttons a[href*="facebook"] { background: #1877f2; color: #fff; }
.fav-share-buttons a[href*="x.com"],
.fav-share-buttons a[href*="twitter"] { background: #000; color: #fff; }
.fav-share-buttons a[href*="pinterest"] { background: #e60023; color: #fff; }
.fav-share-buttons a[href*="wa.me"] { background: #25d366; color: #fff; }
.fav-share-buttons button#fav-copy-link { background: #555; color: #fff; }

/* Animation */
@keyframes favFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ===========================================================
   📱 Τελικό Responsive Fix για κινητά (Dropdown + Modal)
   =========================================================== */
@media (max-width: 600px) {

  /* === FAVORITES DROPDOWN (default hidden) === */
  .favorites-dropdown {
    display: none !important;              /* 🔒 κρυφή όταν δεν είναι open */
    opacity: 0;
    pointer-events: none;
    position: fixed !important;
    top: 70px !important;
    left: 50% !important;
    transform: translateX(-50%) scale(0.95) !important;
    transition: opacity 0.35s ease, transform 0.35s ease;
    width: 90vw !important;
    max-width: 340px !important;
    min-width: unset !important;
    max-height: 75vh !important;
    min-height: 180px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 9999 !important;
    padding: 12px !important;
    margin: 0 auto !important;
  }

  /* === Όταν ανοίγει === */
  .favorites-dropdown.open {
    display: block !important;             /* 🔓 εμφανίζεται */
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1) !important;
    animation: favSlideIn 0.35s ease forwards;
  }

  @keyframes favSlideIn {
    from { opacity: 0; transform: translate(-50%, -10px) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
  }

  /* === PRODUCT ITEMS === */
  .favorites-dropdown .fav-item img {
    width: 60px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .favorites-dropdown .fav-info {
    flex: 1;
    margin-left: 0;
    padding-right: 0;
    min-width: 0;
  }

  .favorites-dropdown .fav-info h5 {
    font-size: 13.5px;
    line-height: 1.3;
  }

  /* === FOOTER BUTTONS === */
  .fav-actions-footer {
    position: sticky;
    bottom: -15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;                     /* 🔹 λίγο πιο μικρό padding */
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 10;
  }

  .fav-actions-footer button {
    flex: 1 1 90%;
    min-width: 120px;
    font-size: 16px;
    font-weight: 400;
    padding: 6px 10px;
  }

  /* === CLOSE BUTTON === */
  .fav-close {
    position: absolute;
    top: 28px;
    right: 20px;
    border: none;
    background: transparent;
    color: #1d6db3;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 10;
  }

  .fav-close:hover {
    color: #0b4e80 !important;
    transform: translateY(-2px);
  }

  /* ===========================================================
     🌐 SOCIAL SHARE OVERLAY (Modal) – Fix για mobile overlay
     =========================================================== */
  .fav-share-overlay-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(255,255,255,0.96) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    border-radius: 0 !important;
    z-index: 100000 !important; /* ✅ πάνω από modal */
    animation: favOverlayFadeIn 0.25s ease forwards;
  }

  @keyframes favOverlayFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
  }

} /* ✅ σωστό κλείσιμο media query */

/* =============================
   MODAL – Favorites List (γενικά)
   ============================= */

/* ============================================================
   🌐 ΚΟΙΝΩΝΙΚΗ ΚΟΙΝΟΠΟΙΗΣΗ (μέσα στο Modal)
   — ίδιο στυλ overlay με το Add-to-Cart —
============================================================ */

.fav-share-overlay-modal {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 12px;
  z-index: 1001; /* ✅ πάνω από τα προϊόντα */
  opacity: 0;
  animation: favOverlayFadeIn 0.25s ease forwards;
}

/* Εσωτερικό κουτί */
.fav-share-inner {
  background: #fff;
  border-radius: 12px;
  padding: 24px 30px;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 90%;
  max-width: 340px;
  position: relative;
}

.fav-share-inner h5 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
}

/* Κουμπί κλεισίματος */
.fav-share-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #777;
  font-size: 18px;
  cursor: pointer;
  transition: 0.25s ease;
}
.fav-share-close:hover {
  color: #000;
  transform: scale(1.2);
}

/* Social κουμπιά */
.fav-share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.fav-share-buttons a,
.fav-share-buttons button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fav-share-buttons a:hover,
.fav-share-buttons button:hover {
  transform: scale(1.15);
  color: #fff;
}

/* Χρώματα ανά δίκτυο */
.share-fb { background: #1877f2; color: #fff; }
.share-x { background: #000; color: #fff; }
.share-pin { background: #e60023; color: #fff; }
.share-wa { background: #25d366; color: #fff; }
.share-copy { background: #555; color: #fff; }

/* Εφέ fade-in */
@keyframes favOverlayFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
  /* 📱 Fullscreen overlay για κοινή χρήση */
  .fav-share-overlay-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.96) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    z-index: 99999 !important;
    animation: fadeIn 0.25s ease;
  }

  /* Εσωτερικό κουτί στο κέντρο */
  .fav-share-inner {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    width: 88%;
    max-width: 320px;
    text-align: center;
  }

  .fav-share-inner h5 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .fav-share-buttons {
    gap: 14px;
  }

  /* Κουμπί κλεισίματος πάνω δεξιά */
  .fav-share-close {
    position: absolute;
    top: 14px;
    right: 16px;
    color: #333;
    font-size: 22px;
    background: transparent;
    border: none;
  }
}


.favorites-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000; /* Κράτα το υψηλό z-index */
  justify-content: center; /* Επαναφορά κεντραρίσματος */
  align-items: center;   /* Επαναφορά κεντραρίσματος */
  padding: 10px;
}

.favorites-modal.open {
  display: flex; /* Επαναφορά σε flex */
  animation: fadeIn 0.25s ease;
}

.favorites-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 1500px;
  max-height: 95vh; /* Κρατήστε το υψηλό max-height */
  min-height: 700px;
  overflow: hidden;
  padding: 0;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4);
  animation: slideUp .3s ease;
  display: flex;
  flex-direction: column;
  
  /* ΠΡΟΣΘΗΚΗ: Τοποθετεί το στοιχείο στο κέντρο του Flexbox container */
  margin: auto; 
}

/* Header μέσα στο modal */
.favorites-modal .fav-modal-title {
  padding: 20px 25px 10px;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

/* Scrollable body */
.favorites-modal #fav-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 25px;
  -webkit-overflow-scrolling: touch;
}

/* Κουμπί κλεισίματος */
.favorites-modal .fav-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  transition: transform .2s ease;
  z-index: 20;
}
.favorites-modal .fav-modal-close:hover {
  transform: rotate(90deg);
}

/* Προϊόντα */
/* =============================
   Compact εμφάνιση προϊόντων 3 στηλών
   ============================= */
.favorites-modal .fav-list-modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(420px, 25vw, 280px), 1fr)); /* 3 στήλες όταν χωράει */
  gap: 12px;
  align-content: start;
}

/* Κάρτα προϊόντος */
.favorites-modal .fav-item {
  position: relative; /* Για να τοποθετηθεί σωστά το κουμπί X */
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  transition: background .2s ease, box-shadow .2s ease;
  min-height: clamp(100px, 14vh, 140px);
}

.favorites-modal .fav-item:hover {
  background: #fafafa;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

/* Εικόνα προϊόντος */
.favorites-modal .fav-item img {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Πληροφορίες */
.favorites-modal .fav-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.favorites-modal .fav-info h5 {
  font-size: 14px;
  margin: 0 0 3px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorites-modal .fav-info .price {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Κουμπιά / ποσότητα */
.favorites-modal .fav-cart-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.favorites-modal .fav-qty {
  width: 42px;
  padding: 3px;
  text-align: center;
  font-size: 12px;
}

.favorites-modal .fav-add-cart {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

/* Κουμπί Διαγραφής (X) */
.fav-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 18px;
  height: 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fav-remove i {
  color: #f3f3f3;
  font-size: 15px;
  line-height: 1;
  transition: color 0.25s ease;
}

/* 🔴 Hover effect */
.fav-remove:hover {
  background: #d93025;
  border-color: #b71c1c;
}

.fav-remove:hover i {
  color: #fff;
}

/* 📧 EMAIL FORM - Πλήρες overlay πάνω απ’ όλα */
.fav-email-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 999999; /* ⬆️ πάνω από modal & overlay */
  border-radius: 0;
  animation: fadeIn 0.3s ease;
}

/* 🧩 Κεντρική φόρμα */
.fav-email-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 92%;
  max-width: 480px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  animation: popIn 0.3s ease;
}

/* 🖊️ Πεδία */
.fav-email-form input,
.fav-email-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}

/* ✉️ Τίτλος */
.fav-email-form h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

/* 🔘 Κουμπιά */
.fav-email-form .actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.fav-email-form button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fav-email-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 🪶 Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 Responsive για κινητά */
@media (max-width: 600px) {
  .fav-email-form form {
    width: 94%;
    padding: 18px 16px;
    max-width: 360px;
  }

  .fav-email-form h4 {
    font-size: 16px;
  }

  .fav-email-form input,
  .fav-email-form textarea {
    font-size: 14px;
  }

  .fav-email-form button {
    font-size: 13px;
    padding: 7px 12px;
  }
}
/* 🌙 DARK THEME - αυτόματο μέσω prefers-color-scheme */
@media (prefers-color-scheme: dark) {
  .fav-email-form {
    background: rgba(15, 15, 15, 0.95);
  }

  .fav-email-form form {
    background: #1e1e1e;
    border-color: #333;
    color: #f1f1f1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  }

  .fav-email-form input,
  .fav-email-form textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #f1f1f1;
  }

  .fav-email-form input::placeholder,
  .fav-email-form textarea::placeholder {
    color: #aaa;
  }

  .fav-email-form h4 {
    color: #fff;
  }

  .fav-email-form button {
    border: 1px solid #444;
  }

  .fav-email-form .btn-success {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
  }

  .fav-email-form .btn-success:hover {
    background: #34c759;
  }

  .fav-email-form .btn-secondary {
    background: #444;
    border-color: #555;
    color: #eee;
  }

  .fav-email-form .btn-secondary:hover {
    background: #555;
  }
}

/*ADD TO CART ALL*/
.fav-loading-overlay-modal {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  border-radius: 12px;
}

.fav-loading-inner {
  text-align: center;
}

.fav-spinner {
  width: 45px;
  height: 45px;
  border: 4px solid #ccc;
  border-top-color: #28a745;
  border-radius: 50%;
  animation: fav-spin 0.9s linear infinite;
  margin-bottom: 10px;
}

@keyframes fav-spin {
  to {
    transform: rotate(360deg);
  }
}

.fav-loading-text {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* =============================
   Responsive Breakpoints
   ============================= */
@media (max-width: 992px) {
  .favorites-modal .fav-list-modal {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  .favorites-modal .fav-list-modal {
    grid-template-columns: 1fr;
  }

  .favorites-modal .fav-item {
    padding: 10px;
  }

  .favorites-modal .fav-item img {
    width: 70px;
    height: 70px;
  }

  .favorites-modal .fav-remove {
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
  }
}

/* ⚙️ Sticky Footer – Exact Packaging Solutions Gradient */
.favorites-modal .fav-modal-actions {
  position: sticky;
  bottom: 0;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  z-index: 10;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.35);
  position: relative;

  /* 🎨 Ίδιο gradient με το Packaging Solutions */
  background: linear-gradient(90deg, #f0f0f0, #ddd, #f0f0f0);
}

/* --- Κουμπιά επάνω στο gradient --- */
.favorites-modal .fav-modal-actions button {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-transform: none;
  min-width: 120px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* 💡 Hover effect */
.favorites-modal .fav-modal-actions button:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ============================================================
   🟢 FAVORITES MODAL – FOOTER BUTTONS (Reverse Hover) - ΚΟΥΜΠΙΑ MODAL
   ============================================================ */
.fav-modal-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 12px;
  border-top: 1px solid #eee;
  background: #fff;
}

/* Βασικό στυλ κουμπιών */
.fav-modal-actions button {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-transform: none;
  min-width: 120px;
  white-space: nowrap;
}

/* --- Διαγραφή Όλων --- */
#fav-clear-all-modal {
  background: #fff;
  border: 2px solid #d93025;
  color: #d93025;
  transition: all 0.25s ease;
}
#fav-clear-all-modal:hover {
  background: #d93025;
  color: #fff;
}

/* --- Προβολή Λίστας --- */
#fav-view-list-modal {
  background: #fff;
  border: 2px solid #1d6db3;
  color: #1d6db3;
  transition: all 0.25s ease;
}
#fav-view-list-modal:hover {
  background: #1d6db3;
  color: #fff;
}

/* --- Κοινή Χρήση (Share) --- */
#fav-share-all-modal {
  background: #fff;
  border: 2px solid #f39c12;
  color: #f39c12;
  transition: all 0.25s ease;
}
#fav-share-all-modal:hover {
  background: #f39c12;
  color: #fff;
}

/* --- Αποστολή Email --- */
#fav-send-email-modal {
  background: #fff;
  border: 2px solid #333;
  color: #333;
  transition: all 0.25s ease;
}
#fav-send-email-modal:hover {
  background: #333;
  color: #fff;
}

/* --- Προσθήκη όλων στο καλάθι --- */
#fav-add-all {
  background: #fff;
  border: 2px solid #20c057;
  color: #20c057;
  transition: all 0.25s ease;
}
#fav-add-all:hover {
  background: #20c057;
  color: #fff;
}

/* Φόρτωση */
.favorites-modal .fav-loading {
  text-align: center;
  padding: 40px 0;
  color: #666;
}

/* ============================================================ */
/* 💌 SEND LIST (Dropdown & Modal) — ίδιο στυλ με τα υπόλοιπα   */
/* ============================================================ */

/* Κουμπιά αποστολής λίστας */
#fav-send-list,
#fav-send-email,
#fav-proceed-form-ajax button[type="submit"],
#fav-proceed-form-modal button[type="submit"],
#fav-send-email-modal {
  background: #fff;
  border: 2px solid #f37312;
  color: #f37312;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  text-transform: none;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

/* Hover reverse effect */
#fav-send-list:hover,
#fav-send-email:hover,
#fav-proceed-form-ajax button[type="submit"]:hover,
#fav-proceed-form-modal button[type="submit"]:hover,
#fav-send-email-modal:hover {
  background: #f37312;
  color: #fff;
}

/* Εναλλακτικό "Success" στυλ (Αίτημα Προσφοράς) */
#fav-proceed-form-ajax button[value="quote"],
#fav-proceed-form-modal button[value="quote"] {
  border-color: #20c057;
  color: #20c057;
}
#fav-proceed-form-ajax button[value="quote"]:hover,
#fav-proceed-form-modal button[value="quote"]:hover {
  background: #20c057;
  color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
  #fav-send-list,
  #fav-send-email,
  #fav-proceed-form-ajax button[type="submit"],
  #fav-proceed-form-modal button[type="submit"],
  #fav-send-email-modal {
    flex: 1;
    min-width: 100%;
    font-size: 14px;
  }
}

/* 📧 EMAIL FORM - Πλήρες overlay πάνω απ’ όλα */
.fav-email-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 999999; /* ⬆️ πάνω από modal & overlay */
  border-radius: 0;
  animation: fadeIn 0.3s ease;
}

/* 🧩 Κεντρική φόρμα */
.fav-email-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 92%;
  max-width: 480px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  animation: popIn 0.3s ease;
  position: relative;
}

/* 🔘 Κουμπί κλεισίματος */
.fav-email-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  transition: 0.25s ease;
}
.fav-email-close:hover {
  color: #000;
  transform: scale(1.15);
}

/* 🖊️ Πεδία */
.fav-email-form input,
.fav-email-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}

/* ✉️ Τίτλος */
.fav-email-form h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

/* 🔘 Κουμπιά */
.fav-email-form .actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.fav-email-form button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fav-email-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 🪶 Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 Responsive για κινητά */
@media (max-width: 600px) {
  .fav-email-form form {
    width: 94%;
    padding: 18px 16px;
    max-width: 360px;
  }

  .fav-email-form h4 {
    font-size: 16px;
  }

  .fav-email-form input,
  .fav-email-form textarea {
    font-size: 14px;
  }

  .fav-email-form button {
    font-size: 13px;
    padding: 7px 12px;
  }
}

/* 🌙 DARK THEME - αυτόματο μέσω prefers-color-scheme */
@media (prefers-color-scheme: dark) {
  .fav-email-form {
    background: rgba(15, 15, 15, 0.95);
  }

  .fav-email-form form {
    background: #1e1e1e;
    border-color: #333;
    color: #f1f1f1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  }

  .fav-email-form input,
  .fav-email-form textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #f1f1f1;
  }

  .fav-email-form input::placeholder,
  .fav-email-form textarea::placeholder {
    color: #aaa;
  }

  .fav-email-form h4 {
    color: #fff;
  }

  .fav-email-form button {
    border: 1px solid #444;
  }

  .fav-email-form .btn-success {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
  }

  .fav-email-form .btn-success:hover {
    background: #34c759;
  }

  .fav-email-form .btn-secondary {
    background: #444;
    border-color: #555;
    color: #eee;
  }

  .fav-email-form .btn-secondary:hover {
    background: #555;
  }

  .fav-email-close {
    color: #aaa;
  }
  .fav-email-close:hover {
    color: #fff;
  }
}

/* ===========================================================
   📱 Mobile MODAL (Τελική & σταθερή έκδοση)
   =========================================================== */
@media (max-width: 600px) {
  .favorites-modal {
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .favorites-modal-content {
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* ✅ προστατεύει από “ξεχειλίσματα” */
    background: #fff;
    animation: slideUp 0.25s ease;
  }

  /* --- Σώμα με scroll --- */
  .favorites-modal #fav-modal-body {
    flex: 1 1 auto;
    overflow-y: auto !important;
    padding: 18px !important;
    -webkit-overflow-scrolling: touch;
  }

  /* --- Προϊόντα --- */
  .favorites-modal .fav-list-modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .favorites-modal .fav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
  }

  .favorites-modal .fav-item img {
    width: 70px;
    height: auto;
    margin-right: 10px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .favorites-modal .fav-info h5 {
    font-size: 14px;
    min-height: auto;
    color: #222;
  }

  /* ===========================================================
     🧱 Footer Buttons – κάθετα, πάντα κάτω & full width
     =========================================================== */
  .favorites-modal .fav-modal-actions {
    position: relative !important; /* ✅ sticky → relative */
    display: flex !important;
    flex-shrink: 0;
    background: #fff;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    border-top: 1px solid #eee;
    z-index: 50;
  }

  .favorites-modal .fav-modal-actions .btn,
  #fav-proceed-form-ajax button[type="submit"],
  #fav-proceed-form-modal button[type="submit"],
  #fav-send-email-modal {
    width: 100% !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 10px 0 !important;
    border-radius: 6px !important;
    transition: all 0.25s ease;
  }

  /* Reverse hover για όλα τα buttons */
  #fav-clear-all-modal:hover {
    background: #d93025;
    color: #fff;
  }
  #fav-view-list-modal:hover {
    background: #1d6db3;
    color: #fff;
  }
  #fav-share-all-modal:hover,
  #fav-send-email-modal:hover,
  #fav-proceed-form-ajax button[type="submit"]:hover {
    background: #f39c12;
    color: #fff;
  }
  #fav-add-all:hover {
    background: #20c057;
    color: #fff;
  }

  /* ===========================================================
     🌐 Social Share Overlay – πλήρης κάλυψη στο mobile
     =========================================================== */
  .fav-share-overlay-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(255,255,255,0.96) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    border-radius: 0 !important;
    z-index: 999999 !important;
    animation: favOverlayFadeIn 0.25s ease forwards;
  }

  @keyframes favOverlayFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
  }

  /* --- Κουμπί κλεισίματος --- */
  .fav-close {
    position: absolute;
    top: 24px;
    right: 18px;
    border: none;
    background: transparent;
    color: #1d6db3;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 1000000;
  }

  .fav-close:hover {
    color: #0b4e80 !important;
    transform: translateY(-2px);
  }
}

/* =============================
   ✨ Animations
   ============================= */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
