/*
Theme Name: CustomHeaderTheme
Theme URI: https://example.com
Author: Το Όνομά σου
Author URI: https://example.com
Description: Προσαρμοσμένο theme με header με logo στο κέντρο και μενού δεξιά-αριστερά
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* Topbar */
.topbar {
  background-color: #2b2b2b;
  padding: 5px 20px;
  color: #fff;
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  padding-left: 350px; /* Ρύθμισε αυτή την τιμή για να πας την αναζήτηση πιο δεξιά */
}




.search-wrapper {
  position: relative;
}

.search-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: white;
}

.search-toggle .dashicons {
  font-size: 18px;
}

.search-box {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  padding: 10px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  z-index: 9999;
  display: none;
}

.search-box.show {
  display: block;
}

.search-form {
  display: flex;
  gap: 5px;
}

.search-field {
  padding: 6px 10px;
  border: none;
  background-color: #111;
  color: #fff;
  width: 200px;
  border-radius: 4px;
}

.search-button {
  background-color: #b4942a;
  border: none;
  color: white;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
}

.search-button:hover {
  background-color: #e0b84e;
}

/* Main Header */
#main-header {
  background-color: #c4beb9;
  position: relative;
  height: 50px;
  z-index: 10;
}

.header-inner {
  position: relative;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.header-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.left-menu {
  left: 19%;
}

.right-menu {
  right: 19%;
}


.site-logo {
  position: absolute;
  top: 0; /* ξεκινά από την κορυφή του #main-header */
  left: 50%;
  transform: translate(-50%, -50%); /* πάει στη μέση και ανεβαίνει */
  z-index: 9999; /* πάνω από topbar */
}

.site-logo img {
  height: 90px;
  margin-top: 40px;
  width: auto;
}


/* Menu */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  display: inline-block;
  margin: 0 20px; /* απόσταση ανάμεσα στα items */
  position: relative;
}


.menu li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: 0.3s ease;
}

.menu li a:hover {
  color: #b4942a;
}

.menu li.current-menu-item > a,
.menu li.current_page_item > a {
  color: #b4942a;
}

/* Dropdown */
.menu li ul {
  display: none;
  position: absolute;
  background: #f1f1f1;
  padding: 10px 0;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 999;
}

.menu li:hover > ul {
  display: block;
}

.menu li ul li {
  display: block;
  margin: 0;
}

.menu li ul li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.menu li ul li a:hover {
  background-color: #eaeaea;
}

/* Responsive (βασικό) */
@media screen and (max-width: 768px) {
  .header-nav,
  .site-logo {
    position: static;
    transform: none;
    text-align: center;
  }

  .menu li {
    display: block;
    margin: 5px 0;
  }

  .search-field {
    width: 140px;
  }
}


.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
  padding: 10px;
  z-index: 10000;
  position: absolute;
  right: 20px;
  top: 10px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: 0.4s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: white;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 9999;
  text-align: center;
}

.mobile-menu a {
  display: block;
  padding: 10px;
  color: black;
  font-weight: bold;
  text-decoration: none;
}
@media screen and (max-width: 992px) {
  .header-nav,
  .site-logo {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu.show {
    display: flex;
  }

  #main-header {
    height: auto;
  }
}
