/* ================= ΓΕΝΙΚΑ & CURSORS ================= */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

button, .cart-icon, .admin-icon, select {
  cursor: pointer;
}

/* ================= HEADER (TOPBAR) ================= */
/* Διόρθωση: Προσθήκη height και σταθερού layout */
.topbar {
  background: #1f1f1f;
  color: white;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px; /* Σταθερό ύψος για να μην αλλάζει όταν ανοίγει το καλάθι */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.topbar h1 {
  margin: 0;
  font-size: 1.5rem;
  flex-grow: 1; /* Κεντράρει τον τίτλο */
  text-align: center;
}

/* ================= ΚΑΛΑΘΙ (CART DROPDOWN) ================= */
.cart-wrapper {
  position: relative;
}

.cart-icon {
  font-size: 1.3rem;
  position: relative;
}

#cartCount {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #e63946;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Διόρθωση: position absolute για να μην "σπρώχνει" το topbar */
.cart-dropdown {
  position: absolute;
  right: 0;
  top: 55px; /* Εμφανίζεται ακριβώς κάτω από τη μαύρη μπάρα */
  background: white;
  width: 320px;
  padding: 20px;
  border-radius: 12px;
  display: none; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 1001;
  color: #1f1f1f;
}

#checkoutBtn {
  width: 100%;
  padding: 14px;
  background: #1d3557; 
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
}

/* ================= SIDEBAR (ΔΙΟΡΘΩΣΗ) ================= */
/* Προσθήκη για να λειτουργεί το μενού που είδαμε στην εικόνα */
.menu-toggle {
  position: fixed;
  top: 15px;
  left: 20px;
  font-size: 24px;
  color: white;
  z-index: 1005;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -320px; /* Κρυμμένο αριστερά */
  width: 280px;
  height: 100%;
  background: white;
  z-index: 1010;
  transition: 0.4s;
  box-shadow: 5px 0 15px rgba(28, 192, 13, 0.788);
}

.sidebar.active {
  left: 0; /* Εμφανίζεται όταν πατάμε το εικονίδιο */
}

.sidebar-links {
  list-style: none;
  padding: 20px;
}

.sidebar-links li {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  border-radius: 8px;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(48, 197, 80, 0.4);
  display: none;
  z-index: 1009;
}

.sidebar-overlay.active { display: block; }

