:root {
  --bg: #fff8f0;
  --text: #333;
  --primary: #f39c12;
  --primary-dark: #e67e22;
  --card: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Dark mode variables */
body.dark {
  --bg: #1e1e1e;
  --text: #f1f1f1;
  --primary: #f39c12;
  --primary-dark: #d35400;
  --card: #2c2c2c;
  --shadow: rgba(0, 0, 0, 0.6);
}

body {
  font-family: "Tinos", serif;
  background: var(--bg);
  margin: 0;
  padding: 0;
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  padding-bottom: 80px;
  /* Χώρος για το mobile dock */
}

header {
  background: #2c2c2c;
  /* Σταθερό σκούρο φόντο ώστε το λογότυπο να φαίνεται σωστά σε light & dark mode */
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px var(--shadow);
}

header img {
  max-height: 150px;
}

/* --- Top bar (desktop) --- */
.top-bar {
  background: var(--primary);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-bar {
  display: flex;
  gap: 0.5rem;
}

.lang-bar img {
  width: 35px;
  height: 25px;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid #fff;
  transition: transform 0.2s;
}

.lang-bar img:hover {
  transform: scale(1.1);
}

#dark-toggle {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #fff;
}

.menu {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.accordion {
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  transition: background 0.3s;
  display: flex;
  /* Για ευθυγράμμιση αν χρειαστεί εικονίδιο */
  justify-content: space-between;
  align-items: center;
}

.accordion:after {
  content: '+';
  /* Ένδειξη ότι ανοίγει */
  font-size: 1.4rem;
  font-weight: bold;
}

.accordion.active:after {
  content: '-';
}

.accordion:hover {
  background: var(--primary-dark);
}

.panel {
  background: var(--card);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 6px var(--shadow);
  margin-bottom: 1rem;
}

.item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px dashed #ddd;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.item:last-child {
  border-bottom: none;
}

.item.show {
  opacity: 1;
  transform: translateY(0);
}

.name {
  font-weight: 500;
}

.price {
  font-weight: bold;
  color: var(--primary-dark);
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

/* --- Mobile Dock (Αντικαθιστά τα παλιά Floating Buttons) --- */
.mobile-dock {
  display: none;
  /* Κρυφό σε μεγάλα PC */
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  /* Το νέο Dock System */
  .mobile-dock {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: env(safe-area-inset-left);
    right: env(safe-area-inset-right);
    z-index: 1000;
    pointer-events: none;
    /* Επιτρέπει τα κλικ ανάμεσα στα κουμπιά */
  }

  .dock-item {
    position: relative;
    pointer-events: auto;
    /* Ενεργοποιεί τα κλικ στα κουμπιά */
  }

  .dock-item button,
  .dock-item .dock-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s, background 0.3s;
  }

  .dock-item button:active,
  .dock-item .dock-link:active {
    transform: scale(0.9);
  }

  /* Popup Γλώσσας */
  .lang-popup {
    display: none;
    position: absolute;
    bottom: 70px;
    /* Πάνω από το dock */
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
  }

  .lang-popup img {
    width: 40px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.2s;
  }

  .lang-popup img:active {
    transform: scale(0.95);
  }
}

/* --- PWA Install Banner (Android) --- */
.install-banner {
  display: none;
  position: fixed;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  box-shadow: 0 5px 20px var(--shadow);
  padding: 12px 15px;
  border-radius: 15px;
  z-index: 9999;
  align-items: center;
  gap: 12px;
  width: 90%;
  max-width: 400px;
  border: 2px solid var(--primary);
}

.install-banner.show {
  display: flex;
  animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* ΝΕΟ animation */
}

.install-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 0.95rem;
  flex: 1;
}

.install-content img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: cover;
}

#install-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#close-install {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text);
  cursor: pointer;
  padding: 0 5px;
}

/* --- Το Νέο Animation (Γλιστράει από πάνω) --- */
@keyframes slideDown {
  from {
    top: -100px;
    opacity: 0;
  }

  to {
    top: 160px;
    opacity: 1;
  }
}

/* --- iOS PWA Install Popup --- */
.ios-install-popup {
  display: none;
  position: fixed;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 15px;
  z-index: 10000;
  width: 90%;
  max-width: 400px;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Προσαρμογή για Dark Mode */
body.dark .ios-install-popup {
  background: rgba(40, 40, 40, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-install-popup.show {
  display: block;
  animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* ΝΕΟ animation */
}

.ios-install-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
}

body.dark .ios-install-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-install-header img {
  width: 35px;
  height: 35px;
  border-radius: 8px;
}

.ios-install-header span {
  flex: 1;
  font-size: 1.1rem;
}

#close-ios-install {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
}

.ios-install-body {
  font-size: 0.95rem;
  line-height: 1.4;
}

.ios-share-icon {
  font-size: 1.4rem;
  vertical-align: middle;
  font-weight: bold;
  color: #007aff;
  /* Το μπλε της Apple */
}