.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: 550px;
  min-width: 480px;
  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;          /* 🧱 έως 70% ύψος οθόνης */
  overflow-y: auto;           /* ✅ ενεργό scroll */
  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 * {
  color: #222;
  font-size: 14px;
  line-height: 1.4;
}

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

.fav-item img {
  width: 100px;
  height: auto;
  border-radius: 6px;
  margin-right: 10px;
}

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

.fav-info h5 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  line-height: 1.3em;
}
/* ===== FAVORITES DROPDOWN TEXT COLOR ===== */
.fav-dropdown,
.fav-dropdown * {
  color: #222 !important; /* πιο σκούρο απ’ το default gray */
}

/* τίτλοι προϊόντων */
.fav-info h4,
.fav-info h4 a {
  color: #111 !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

/* τιμές */
.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.2s ease;
}

.fav-remove:hover {
  background: #333;
  border-color: #aaa;
}

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

/* === 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;
}

/* Quantity box */
.fav-actions .fav-qty {
  width: 55px !important;
  text-align: center !important;
  height: 30px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  padding: 3px !important;
  line-height: 1.2 !important;
}

/* Button δίπλα στο quantity */
.fav-actions .fav-add-cart {
  flex-shrink: 0 !important;
  margin-left: 4px !important;
}

/* --- Quantity box / Cart button: παίρνουν template στυλ --- */
/* --- Quantity + Cart row --- */
.fav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 6px !important;
  flex-wrap: nowrap !important;
}

/* quantity box */
.fav-info input.fav-qty {
  color: #333;
  width: 55px !important;
  text-align: center !important;
  height: 30px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  padding: 3px !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

/* ========== FAVORITES ADD TO CART BUTTON ========== */
.fav-add-cart {
  display: inline-block !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  text-shadow: none !important;
  font-weight: 500 !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;
}

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

.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;
}
.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;
}
.fav-page.active {
  background: #1d6db3;
  color: #fff;
}

.fav-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background: #1d6db3; /* ή ό,τι είναι το primary σου */
  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;
}

/* Αν το κουμπί έχει relative, η φουσκίτσα θα “κάτσει” σωστά */
.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;
}

/* --- 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;
}

/* Διαγραφή Όλων */
#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-share-all {
  border-color: #f39c12;
  color: #f39c12;
  transition: all 0.2s ease;
}
#fav-share-all:hover {
  background: #f39c12;
  color: #fff;
}

/* =============================
   ΚΟΙΝΑ 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;
}

/* ============================================================
   🌐 Κουτί Κοινής Χρήσης (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);
}

/* Τίτλος */
.fav-share-inner h5 {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin-bottom: 18px;
}

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

.fav-share-buttons 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-share-buttons a:hover,
.fav-share-buttons 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); }
}


/* =============================
   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); }
}




.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) */
.favorites-modal .fav-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #444;
  border: none;
  color: #fff;
  width: 18px;
  height: 18px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, transform .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.favorites-modal .fav-remove:hover {
  color: #e63946;
  transform: scale(1.2);
}

/* EMAIL FORM - Κεντραρισμένη επικάλυψη μέσα στο modal */
.fav-email-form {
  position: fixed; /* ✅ από absolute → fixed */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; /* ✅ καλύπτει ολόκληρη την οθόνη */
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999; /* ✅ πάνω από modal overlay */
  border-radius: 0;
  animation: fadeIn 0.3s ease;
}

/* Φόρμα */
.fav-email-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 520px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Πεδία */
.fav-email-form input,
.fav-email-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

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

.fav-email-form button {
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
}

/* Εφέ εμφάνισης */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/*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 κουμπιών */
.favorites-modal .fav-modal-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 15px 25px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.08);
  z-index: 10;
}

.favorites-modal .fav-modal-actions .btn {
  flex: 1 1 calc(33.33% - 10px);
  border-radius: 8px;
  font-weight: 600;
  padding: 10px;
  font-size: 0.9rem;
}

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

/* =============================
   RESPONSIVE BREAKPOINTS
   ============================= 
@media (max-width: 992px) {
  .favorites-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  .favorites-modal .fav-list-modal {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}*/

/* Mobile */
@media (max-width: 600px) {
  .favorites-modal {
    align-items: center; /* ✅ πάντα στο κέντρο */
    justify-content: center;
    padding: 10px;
  }

  .favorites-modal-content {
    width: 95%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  }

  .favorites-modal #fav-modal-body {
    padding: 18px;
  }

  .favorites-modal .fav-list-modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .favorites-modal .fav-item {
    flex-direction: row;
    align-items: center;
    padding: 10px;
  }

  .favorites-modal .fav-item img {
    width: 70px;
    height: auto;
    margin-right: 10px;
  }

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

  /* Sticky footer κάθετα */
  .favorites-modal .fav-modal-actions {
    flex-direction: column;
  }

  .favorites-modal .fav-modal-actions .btn {
    width: 100%;
  }
}

/* =============================
   Animations
   ============================= */
@keyframes slideUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}
  to { 
    /* Εφαρμόζουμε μόνο το τελικό transform του κεντραρίσματος */
    transform: translate(-50%, -50%); 
    opacity: 1; 
  }
}

/* === Mobile View (70% ύψος, centered roll-down) === */
@media (max-width: 991px) {
  .favorites-dropdown {
    position: fixed;
    top: 65px;
    right: 50%;
    left: 50%;
    transform: translate(-50%, -5px) scaleY(0.96);
    width: 92%;
    min-width: unset;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.25);
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.55s cubic-bezier(0.19, 1, 0.22, 1),
      opacity 0.4s ease,
      transform 0.45s ease;
  }

  .favorites-dropdown.open {
    max-height: 70vh;        /* 📱 ίδιο ύψος λογικής — 70% οθόνης */
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scaleY(1);
  }

	
	
	/* =============================
   FULL-SCREEN FAVORITES LIST
   ============================= */

.fav-list-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Επικεφαλίδα */
.fav-list-wrapper h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
}

/* Grid διάταξη προϊόντων */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-content: start;
}

/* Κάρτα προϊόντος */
.fav-card {
  position: relative;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}

.fav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Εικόνα */
.fav-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Πληροφορίες */
.fav-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fav-card .card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #222;
  line-height: 1.3;
}

.fav-card .card-text {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

/* Ποσότητα + κουμπί */
.addtocart-area {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.fav-qty {
  width: 45px;
  padding: 5px;
  text-align: center;
  font-size: 13px;
}

.addtocart-area .btn {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

/* Κουμπί διαγραφής */
.fav-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #444;
  border: none;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.fav-remove:hover {
  background: #e63946;
  transform: scale(1.15);
}

/* Empty state */
.fav-empty {
  text-align: center;
  color: #777;
  padding: 50px 10px;
  font-size: 1.1rem;
}

/* Sticky footer με κουμπιά */
.sticky-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.05);
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.sticky-footer .btn {
  flex: 1 1 calc(50% - 10px);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px;
}

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

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

  .sticky-footer {
    flex-direction: column;
  }

  .sticky-footer .btn {
    flex: 1 1 100%;
  }
}

