body {
  padding-top: 86px;
}

#topHeader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  background-color: #0f1d2d;
  color: white;
  position: fixed; /* ÃƒÂ¢Ã…â€œÃ¢â‚¬Â¦ ÃƒÅ½Ã‚Â±ÃƒÅ½Ã‚Â»ÃƒÅ½Ã‚Â»ÃƒÅ½Ã‚Â±ÃƒÅ½Ã‚Â³ÃƒÅ½Ã‚Â® */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
#searchWrapper {
  position: fixed; /* ÃƒÂ¢Ã…â€œÃ¢â‚¬Â¦ ÃƒÅ½Ã‚Â³ÃƒÅ½Ã‚Â¹ÃƒÅ½Ã‚Â± ÃƒÅ½Ã‚Â½ÃƒÅ½Ã‚Â± ÃƒÅ½Ã‚ÂµÃƒÅ½Ã‚Â¯ÃƒÅ½Ã‚Â½ÃƒÅ½Ã‚Â±ÃƒÅ½Ã‚Â¹ ÃƒÂÃ¢â€šÂ¬ÃƒÅ½Ã‚Â¬ÃƒÅ½Ã‚Â½ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Â± ÃƒÅ½Ã‚Â±ÃƒÂÃ¢â€šÂ¬ÃƒÂÃ…â€™ ÃƒÅ½Ã‚ÂºÃƒÅ½Ã‚Â¬ÃƒÂÃ¢â‚¬Å¾ÃƒÂÃ¢â‚¬Â° */
  top: 70px;        /* ÃƒÂ¢Ã…â€œÃ¢â‚¬Â¦ ÃƒÅ½Ã‚Â±ÃƒÅ½Ã‚ÂºÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¹ÃƒÅ½Ã‚Â²ÃƒÂÃ…Â½ÃƒÂÃ¢â‚¬Å¡ ÃƒÅ½Ã‚ÂºÃƒÅ½Ã‚Â¬ÃƒÂÃ¢â‚¬Å¾ÃƒÂÃ¢â‚¬Â° ÃƒÅ½Ã‚Â±ÃƒÂÃ¢â€šÂ¬ÃƒÂÃ…â€™ ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Â¿ header */
  left: 0;
  width: 100%;
  background: white;
  z-index: 999;
  padding: 10px 0;
  transition: transform 0.3s ease-in-out;
}
/* ÃƒÅ½Ã‚Â ÃƒÅ½Ã‚ÂµÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¹ÃƒÅ½Ã‚Â¿ÃƒÂÃ¢â‚¬Â¡ÃƒÅ½Ã‚Â® ÃƒÅ½Ã‚Â±ÃƒÅ½Ã‚Â½ÃƒÅ½Ã‚Â±ÃƒÅ½Ã‚Â¶ÃƒÅ½Ã‚Â®ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Â·ÃƒÂÃ†â€™ÃƒÅ½Ã‚Â·ÃƒÂÃ¢â‚¬Å¡ */
#searchBar {
  position: relative;
  width: 100%;
  max-width: 400px;
}
#searchInput {
  width: 95%;
  padding: 6px 10px;       /* ÃƒÅ½Ã…â€œÃƒÅ½Ã‚ÂµÃƒÅ½Ã‚Â¯ÃƒÂÃ¢â‚¬Â°ÃƒÂÃ†â€™ÃƒÅ½Ã‚Âµ padding */
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  height: 36px;            /* ÃƒÅ½Ã‚Â ÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¿ÃƒÂÃ†â€™ÃƒÅ½Ã‚Â¸ÃƒÅ½Ã‚Â®ÃƒÅ½Ã‚ÂºÃƒÅ½Ã‚Â· ÃƒÂÃ†â€™ÃƒÂÃ¢â‚¬Â¦ÃƒÅ½Ã‚Â³ÃƒÅ½Ã‚ÂºÃƒÅ½Ã‚ÂµÃƒÅ½Ã‚ÂºÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¹ÃƒÅ½Ã‚Â¼ÃƒÅ½Ã‚Â­ÃƒÅ½Ã‚Â½ÃƒÅ½Ã‚Â¿ÃƒÂÃ¢â‚¬Â¦ ÃƒÂÃ‚ÂÃƒÂÃ‹â€ ÃƒÅ½Ã‚Â¿ÃƒÂÃ¢â‚¬Â¦ÃƒÂÃ¢â‚¬Å¡ */
}
/* Î’Î±ÏƒÎ¹ÎºÏŒ layout */
#searchResults {
  position: absolute;
  top: calc(100% + 2px);
  /* left: 0; */
  width: 100%;
  max-height: 400px;              /* desktop Ï€ÎµÏÎ¯Ï€Î¿Ï… */
  overflow-y: auto;
  background: #294763db;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 18px 16px rgba(0,0,0,0.1);
  padding: 9px;
  z-index: 1050;

  /* ÎšÎ»ÎµÎ¹Î´Î¯ Î³Î¹Î± Ï„Î¿ scroll Î¼Î­ÏƒÎ± ÏƒÏ„Î¿ box */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;          /* <<< Î Î¡ÎŸÎ£Î˜Î—ÎšÎ— */
}


/* ÎŒÏ„Î±Î½ Ï„Î¿ body ÎµÎ¯Î½Î±Î¹ ÎºÎ»ÎµÎ¹Î´Ï‰Î¼Î­Î½Î¿ Î³Î¹Î± search (Î¸Î± Ï„Î¿ ÎºÎ¬Î½ÎµÎ¹ JS) */
body.search-scroll-locked {
  overflow: hidden;
}



.results-box {
  display: none; /* ÃƒÅ½Ã‚Â±ÃƒÂÃ‚ÂÃƒÂÃ¢â‚¬Â¡ÃƒÅ½Ã‚Â¹ÃƒÅ½Ã‚ÂºÃƒÅ½Ã‚Â¬ ÃƒÅ½Ã‚ÂºÃƒÂÃ‚ÂÃƒÂÃ¢â‚¬Â¦ÃƒÂÃ¢â‚¬Â ÃƒÂÃ…â€™ */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  padding: 10px;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}
/* Wrapper ÃƒÅ½Ã‚Â³ÃƒÅ½Ã‚Â¹ÃƒÅ½Ã‚Â± ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Â± ÃƒÂÃ¢â€šÂ¬ÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¿ÃƒÂÃ…Â ÃƒÂÃ…â€™ÃƒÅ½Ã‚Â½ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Â± */
.search-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  margin-bottom: 10
    px;
}
/* ÃƒÅ½Ã‚Â ÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¿ÃƒÂÃ…Â ÃƒÂÃ…â€™ÃƒÅ½Ã‚Â½ */
.search-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  background: #00000069;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-align: center;
}
.search-product:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}


@media (pointer: coarse), (hover: none) {
  .search-product {
    transition: box-shadow 0.2s ease;
  }
  .search-product:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  }

  .subcategory-result:hover {
    background-color: #f8f8f8;
  }

  .search-main-categories .category-result:hover {
    transform: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  }

  /* See more */
  .see-more {
    transition: none;
    touch-action: manipulation;
  }
  .see-more:hover {
    color: #007bff;
  }
}


/* ÃƒÅ½Ã¢â‚¬Â¢ÃƒÅ½Ã‚Â¹ÃƒÅ½Ã‚ÂºÃƒÂÃ…â€™ÃƒÅ½Ã‚Â½ÃƒÅ½Ã‚Â± */
.search-product img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 100px;
  margin-bottom: 6px;
}
/* ÃƒÅ½Ã…â€™ÃƒÅ½Ã‚Â½ÃƒÅ½Ã‚Â¿ÃƒÅ½Ã‚Â¼ÃƒÅ½Ã‚Â± ÃƒÂÃ¢â€šÂ¬ÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¿ÃƒÂÃ…Â ÃƒÂÃ…â€™ÃƒÅ½Ã‚Â½ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Â¿ÃƒÂÃ¢â‚¬Å¡ */
.search-product span {
  display: block;
  font-size: 14px;
  color: #ffffff;
  overflow-wrap: break-word;
}
/* ÃƒÅ½Ã…Â¡ÃƒÅ½Ã‚Â¿ÃƒÂÃ¢â‚¬Â¦ÃƒÅ½Ã‚Â¼ÃƒÂÃ¢â€šÂ¬ÃƒÅ½Ã‚Â¯ "ÃƒÅ½Ã¢â‚¬ÂÃƒÅ½Ã‚ÂµÃƒÅ½Ã‚Â¯ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Âµ ÃƒÂÃ¢â€šÂ¬ÃƒÅ½Ã‚ÂµÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¹ÃƒÂÃ†â€™ÃƒÂÃ†â€™ÃƒÂÃ…â€™ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚ÂµÃƒÂÃ‚ÂÃƒÅ½Ã‚Â±" */
/* ===== SEE MORE: neon premium (works on dark/grey) ===== */
.see-more,
.see-more-group div{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-top: 12px !important;
  padding: 10px 14px !important;

  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .2px;

  color: #f4f9ff !important;
  text-transform: none;

  border-radius: 999px !important;
  border: 1px solid rgba(120,180,255,.35) !important;

  background:
    linear-gradient(135deg, rgba(40,120,255,.85), rgba(140,70,255,.72)) !important;

  box-shadow:
    0 10px 26px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 18px rgba(60,140,255,.35),
    0 0 26px rgba(140,70,255,.22) !important;

  cursor: pointer;
  user-select: none;

  position: relative;
  overflow: hidden;

  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

/* Shine sweep */
.see-more::before,
.see-more-group div::before{
  content: "";
  position: absolute;
  top: -70%;
  left: -40%;
  width: 70%;
  height: 260%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(22deg) translateX(-140%);
  transition: transform .55s ease;
  pointer-events: none;
}

/* Arrow */
.see-more::after,
.see-more-group div::after{
  content: "➜";
  font-size: 16px;
  font-weight: 900;
  opacity: .98;
  transform: translateX(0);
  transition: transform .16s ease;
}

.see-more:hover,
.see-more-group div:hover{
  transform: translateY(-1px) scale(1.01);
  filter: saturate(1.15) brightness(1.08);
  box-shadow:
    0 14px 34px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.14) inset,
    0 0 26px rgba(60,140,255,.55),
    0 0 38px rgba(140,70,255,.35) !important;
}

.see-more:hover::before,
.see-more-group div:hover::before{
  transform: rotate(22deg) translateX(260%);
}

.see-more:hover::after,
.see-more-group div:hover::after{
  transform: translateX(3px);
}

.see-more:active,
.see-more-group div:active{
  transform: translateY(0) scale(.99);
}

/* Mobile πιο compact */
@media (max-width: 768px){
  .see-more,
  .see-more-group div{
    padding: 4px 6px !important;
    font-size: 12px !important;
    margin: 10px
  }
}

/* Touch devices: no hover drama */
@media (pointer: coarse), (hover: none){
  .see-more:hover,
  .see-more-group div:hover{
    transform: none;
    filter: none;
  }
  .see-more:hover::before,
  .see-more-group div:hover::before{
    transform: rotate(22deg) translateX(-140%);
  }
}

/* ÃƒÅ½Ã…â€œÃƒÅ½Ã‚Â®ÃƒÅ½Ã‚Â½ÃƒÂÃ¢â‚¬Â¦ÃƒÅ½Ã‚Â¼ÃƒÅ½Ã‚Â± ÃƒÂÃ¢â‚¬Â¡ÃƒÂÃ¢â‚¬Â°ÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¯ÃƒÂÃ¢â‚¬Å¡ ÃƒÅ½Ã‚Â±ÃƒÂÃ¢â€šÂ¬ÃƒÅ½Ã‚Â¿ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚ÂµÃƒÅ½Ã‚Â»ÃƒÅ½Ã‚Â­ÃƒÂÃ†â€™ÃƒÅ½Ã‚Â¼ÃƒÅ½Ã‚Â±ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Â± */
.no-results {
  padding: 3px;
  font-size: 14px;
  color: #888;
  text-align: center;
}
#searchResults.active {
  display: block;
}


.search-category-title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 10px;
  color: white;
  background: #82818175;
}

.close-results-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff0000;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  z-index: 10000;
}

/* wrapper γύρω από το input */
.search-input-wrap{
  position: relative;
  width: 100%;
}

/* δώσε χώρο δεξιά για το κουμπί */
.search-input-wrap #searchInput{
  width: 100%;
  padding-right: 44px; /* χώρο για το X */
}



/* το X */
.search-clear-btn{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #191919;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: none;        /* εμφανίζεται μόνο όταν έχει κείμενο */
  z-index: 10;
}

.search-clear-btn:hover{
  filter: brightness(1.1);
}


.logo img {
  height: 40px;
  max-height: 200px;
}
.logo-right {
  position: absolute;
  top: 10px;
  right: -15px;
  z-index: 1000;
}
.logo-right img {
  height: 80px;
  max-height: 400px;
  
}
.animated-logo {
  animation: logoEntrance 1.2s ease-out;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(1.6) rotate(-20deg);
    filter: blur(2px);
  }
  60% {
    opacity: 1;
    transform: scale(2.05) rotate(5deg);
    filter: blur(0);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 768px) {
  #topHeader {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding-top: 20px;
  }

  .logo-right {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    margin-bottom: -10px;
  }

  #searchBar {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  #searchInput {
    font-size: 18px;
    height: 15px;
    padding: 12px 10px;
  }

  .search-only {
    width: 100%;
  }
}
.product-info {
  display: flex;
  flex-direction: column;
}
.product-name {
  font-weight: bold;
  font-size: 14px;
}
.stock-status {
  font-size: 12px;
  margin-top: 6px;
  font-weight: bold;
}

.in-stock {
  color: #28a745;
}

.low-stock {
  color: #ffc107;
}

.out-of-stock {
  color: #dc3545;
}
.search-subcategories {
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.search-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}
.subcategory-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.2s ease;
}
.subcategory-result:hover {
  background-color: #f8f8f8;
}
.subcategory-result img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 60px;
  border: 1px solid #ccc;
}
.subcategory-result span {
  font-size: 18px;
  color: #333;
  font-weight: 500;
}


@media (max-width: 768px) {
  body {
    padding-top: 125px;
  }
}


#topHeader,
#searchWrapper {
  transition: transform 1.4s ease, opacity 2.4s ease;
  will-change: transform, opacity;
}

.hide-header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}


.language-dropdown {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 999;
}

.dropbtn {
  background-color: #00058f;
  color: white;
  padding: 6px 10px;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #fff;
  min-width: 140px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 6px;
  overflow: hidden;
  z-index: 9999;
}


.dropdown-content a {
  color: black;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  left: 0;
  transform: none;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.language-dropdown:hover .dropdown-content {
  display: block;
}

/* ÃƒÅ½Ã‚Â ÃƒÅ½Ã‚ÂµÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¹ÃƒÅ½Ã‚Â¿ÃƒÂÃ‚ÂÃƒÅ½Ã‚Â¹ÃƒÂÃ†â€™ÃƒÅ½Ã‚Â¼ÃƒÂÃ…â€™ÃƒÂÃ¢â‚¬Å¡ ÃƒÅ½Ã‚Â¼ÃƒÅ½Ã‚ÂµÃƒÅ½Ã‚Â³ÃƒÅ½Ã‚Â­ÃƒÅ½Ã‚Â¸ÃƒÅ½Ã‚Â¿ÃƒÂÃ¢â‚¬Â¦ÃƒÂÃ¢â‚¬Å¡ thumbnails ÃƒÂÃ†â€™ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Â± ÃƒÅ½Ã‚Â±ÃƒÂÃ¢â€šÂ¬ÃƒÅ½Ã‚Â¿ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚ÂµÃƒÅ½Ã‚Â»ÃƒÅ½Ã‚Â­ÃƒÂÃ†â€™ÃƒÅ½Ã‚Â¼ÃƒÅ½Ã‚Â±ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Â± ÃƒÅ½Ã‚Â±ÃƒÅ½Ã‚Â½ÃƒÅ½Ã‚Â±ÃƒÅ½Ã‚Â¶ÃƒÅ½Ã‚Â®ÃƒÂÃ¢â‚¬Å¾ÃƒÅ½Ã‚Â·ÃƒÂÃ†â€™ÃƒÅ½Ã‚Â·ÃƒÂÃ¢â‚¬Å¡ */
.search-main-categories .category-result img,
.search-subcategories .subcategory-result img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* 1. Horizontal scroll container ÃŽÂ¼ÃŽÂµ snap */
.search-main-categories {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* 2. ÃŽÅ¡ÃÂÃÂÃË†ÃŽÂµ Ãâ€žÃŽÂ¿ÃŽÂ½ scrollbar (Webkit) */
.search-main-categories::-webkit-scrollbar {
  display: none;
}

/* 3. Fade edges ÃŽÂ³ÃŽÂ¹ÃŽÂ± smoother UI */
.search-main-categories::before,
.search-main-categories::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 24px;
  pointer-events: none;
}
.search-main-categories::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}
.search-main-categories::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

/* 4. ÃŽÅ¡ÃŽÂ¬ÃÂÃâ€žÃŽÂ± ÃŽÂºÃŽÂ±Ãâ€žÃŽÂ·ÃŽÂ³ÃŽÂ¿ÃÂÃŽÂ¯ÃŽÂ±Ãâ€š ÃŽÂ¼ÃŽÂµ snap-alignment */
.search-main-categories .category-result {
  flex: 0 0 auto;                /* no shrink, fixed width by content */
  scroll-snap-align: start;      /* ÃŽÂºÃŽÂ¬ÃŽÂ¸ÃŽÂµ item Ã¢â‚¬Å“ÃŽÂºÃŽÂ¿ÃŽÂ»ÃŽÂ»ÃŽÂ¬ÃŽÂµÃŽÂ¹Ã¢â‚¬Â ÃÆ’Ãâ€žÃŽÂ·ÃŽÂ½ ÃŽÂ±ÃÂÃâ€¡ÃŽÂ® Ãâ€žÃŽÂ¿Ãâ€¦ viewport */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #363636;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 5. Hover & Active */
.search-main-categories .category-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.search-main-categories .category-result.active {
  border-color: #007bff;
  background: #043b76;
}

/* 6. Responsive: ÃŽÂ´ÃŽÂµÃŽÂ¯Ãâ€¡ÃŽÂ½ÃŽÂµÃŽÂ¹ ÃŽÂ»ÃŽÂ¹ÃŽÂ³ÃÅ’Ãâ€žÃŽÂµÃÂÃŽÂ¿ padding ÃÆ’ÃŽÂµ ÃŽÂ¼ÃŽÂ¹ÃŽÂºÃÂÃŽÂ­Ãâ€š ÃŽÂ¿ÃŽÂ¸ÃÅ’ÃŽÂ½ÃŽÂµÃâ€š */
@media (max-width: 600px) {
  .search-main-categories {
    padding: 4px 0;
  }
  .search-main-categories .category-result {
    padding: 4px 8px;
  }
}

#topHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#topHeader .language-dropdown {
  flex-shrink: 0;
}

#topHeader .logo-right {
  flex-shrink: 0;
}

/* ÎšÎ¿Ï…Î¼Ï€Î¯ ÎŒÎ»ÎµÏ‚ Î¿Î¹ ÎºÎ±Ï„Î·Î³Î¿ÏÎ¯ÎµÏ‚ Î¼Î­ÏƒÎ± ÏƒÏ„Î¿ header */
.header-all-cats-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Î‘Î½ Î¸ÎµÏ‚ Î½Î± ÎºÎ»Î·ÏÎ¿Î½Î¿Î¼Î®ÏƒÎµÎ¹ Ï‡ÏÏŽÎ¼Î±Ï„Î± Î±Ï€ÏŒ Ï„Î¿ theme: */
.header-all-cats-btn {
  background: #ffffff;
  color: #0f1d2d;
}

#searchBar {
  flex: 1;
  display: flex;
}


/* Desktop: ÎºÎµÎ½Ï„ÏÎ¬ÏÎ¹ÏƒÎ¼Î± Ï€ÎµÏÎ¹ÎµÏ‡Î¿Î¼Î­Î½Î¿Ï… header */
@media (min-width: 768px) {
  #topHeader {
    display: flex;
    align-items: center;
    justify-content: center;  /* ÎŸÎ›Î‘ Î¼Î±Î¶Î¯ ÏƒÏ„Î¿ ÎºÎ­Î½Ï„ÏÎ¿ */
    gap: 10px;
  }

  /* Î¤Î¿ search Î½Î± Î¼Î·Î½ Î±Î½Î¿Î¯Î³ÎµÎ¹ Î¬Ï€ÎµÎ¹ÏÎ± */
  #topHeader #searchBar {
    flex: 0 1 480px;   /* max ~480px */
  }

  /* Î ÏÎ¿Î±Î¹ÏÎµÏ„Î¹ÎºÎ¬, Î»Î¯Î³Î¿ â€œÎ¼Î±Î¶ÎµÎ¼Î­Î½Î±â€ Ï„Î± Î¬Î»Î»Î± */
  #topHeader .language-dropdown,
  #topHeader .logo-right,
  #topHeader #allCategoriesBtn {
    flex-shrink: 0;
  }
}

/* ========= COMPACT MOBILE HEADER LAYOUT ========= */
@media (max-width: 768px) {

  /* ÎÎ± Ï‡Ï‰ÏÎ¬Î½Îµ header + search + ÎºÎ¿Ï…Î¼Ï€Î¯ Ï‡Ï‰ÏÎ¯Ï‚ Î½Î± ÏƒÎºÎµÏ€Î¬Î¶Î¿Ï…Î½ Ï„Î± Ï€ÏÎ¿ÏŠÏŒÎ½Ï„Î± */
  body {
    padding-top: 100px; /* ÏÏ…Î¸Î¼Î¯Î¶ÎµÎ¹Ï‚ + / - Î±Î½ Î¸Î­Î»ÎµÎ¹Ï‚ Ï€Î¹Î¿ Ï€Î¬Î½Ï‰/ÎºÎ¬Ï„Ï‰ Ï„Î± Ï€ÏÎ¿ÏŠÏŒÎ½Ï„Î± */
  }

  /* Header Ï€Î¹Î¿ Ï‡Î±Î¼Î·Î»ÏŒÏ‚, Î³Î¹Î± Î½Î± Î¼Î·Î½ ÎºÎ±Ï„ÎµÎ²Î±Î¯Î½ÎµÎ¹ ÏŒÎ»Î· Î· ÏƒÎµÎ»Î¯Î´Î± */
  #topHeader {
    height: 70px;
    padding: 40px 8px 0;
    justify-content: center;
  }

  /* Î“Î›Î©Î£Î£Î‘ â€“ â€œÎ®Î»Î¹Î¿Ï‚â€ ÏƒÏ„Î· Î³Ï‰Î½Î¯Î± */
  .language-dropdown {
    position: fixed;
    top: 6px;
    left: 6px;
    z-index: 1100;
  }

  .language-dropdown .dropbtn {
    border-radius: 999px;       /* ÏƒÏ„ÏÎ¿Î³Î³Ï…Î»ÏŒ, ÏŒÏ‡Î¹ Ï„ÎµÏ„ÏÎ¬Î³Ï‰Î½Î¿ */
    padding: 8px 10px;
    font-size: 14px;
    background: radial-gradient(circle at 30% 30%, #00000000, #000000);
    box-shadow: 0 0 8px rgba(0,0,0,0.25);
  }

  /* LOGO Î´ÎµÎ¾Î¹Î¬ Ï€Î¬Î½Ï‰ */
  .logo-right {
    position: fixed;
    top: 2px;
    right: 15px;
    z-index: 1100;
    margin: 0;
  }

  .logo-right img {
    height: 38px;
    max-height: 38px;
  }

  /* SEARCH â€“ ÏƒÏ„Î¿ ÎºÎ­Î½Ï„ÏÎ¿ */
  #searchWrapper {
    top: 54px;                /* Î±ÎºÏÎ¹Î²ÏŽÏ‚ ÎºÎ¬Ï„Ï‰ Î±Ï€ÏŒ Ï„Î¿Î½ header */
    padding: 6px 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #searchBar {
    width: 100%;
    max-width: 360px;
    display: flex;
    justify-content: center;
  }

   #searchInput {
    width: 100%;
    font-size: 11px;
    height: 25px;
    padding: 5px 40px 5px 10px;  /* Ï€Î¬Î½Ï‰, Î´ÎµÎ¾Î¹Î¬, ÎºÎ¬Ï„Ï‰, Î±ÏÎ¹ÏƒÏ„ÎµÏÎ¬ */
    box-sizing: border-box;
   }
  }

  /* ÎšÎŸÎ¥ÎœÎ Î™ â€œÎŒÎ»ÎµÏ‚ Î¿Î¹ ÎºÎ±Ï„Î·Î³Î¿ÏÎ¯ÎµÏ‚â€ ÎºÎ¬Ï„Ï‰ Î±Ï€ÏŒ Ï„Î·Î½ Î±Î½Î±Î¶Î®Ï„Î·ÏƒÎ·, ÏƒÏ„Î¿ ÎºÎ­Î½Ï„ÏÎ¿ */
  .header-all-cats-btn,
  #allCategoriesBtn {
    position: fixed;
    top: 6px;
    left: 0;
    right: 0;           /* ÎºÎµÎ½Ï„ÏÎ¬ÏÎ¹ÏƒÎ¼Î± Ï‡Ï‰ÏÎ¯Ï‚ transform */
    margin: 0 auto;
    transform: none;    /* Î³Î¹Î± Î½Î± Î¼Î·Î½ Ï€Î±Î¯Î¶ÎµÎ¹ ÏÏŒÎ»Î¿ ÎºÎ±Î¸ÏŒÎ»Î¿Ï… */
    width: max-content; /* Î® min-content / fixed px Î±Î½ Î¸ÎµÏ‚ */
    z-index: 1005;
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    background: #ffffff;
    color: #0f1d2d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}
@media (pointer: coarse), (hover: none) {
  *:hover {
    transform: none !important;
  }

  .header-all-cats-btn:hover,
  #allCategoriesBtn:hover {
    transform: none !important; /* Î®Î´Î· none, Î±Ï€Î»Î¬ Î´ÎµÎ½ Ï„Î¿ Ï€ÎµÎ¹ÏÎ¬Î¶Î¿Ï…Î¼Îµ Î¬Î»Î»Î¿ */
  }
}


    /* Î¤Î± Î±Ï€Î¿Ï„ÎµÎ»Î­ÏƒÎ¼Î±Ï„Î± ÏƒÏ„Î¿ ÎºÎ¹Î½Î·Ï„ÏŒ: Ï€Î¹Î¿ ÎºÎ¿Î½Ï„ÏŒ box + ÎºÎµÎ½ÏŒ Î³Î¹Î± bottom nav */
  #searchResults {
    max-height: calc(100vh - 220px);  /* header + ÎºÎ¿Ï…Î¼Ï€Î¯ + bottom nav + safe area */
    padding-bottom: 90px;             /* ÏÏˆÎ¿Ï‚ bottom nav + Î»Î¯Î³Î· Î±Î½Î¬ÏƒÎ± */
  }

  .results-box {
    max-height: calc(100vh - 320px);
  }
}


/* default / ÎºÎ±Î½Î¿Î½Î¹ÎºÏŒ desktop */
.logo-right img {
  height: 80px !important;
  max-height: none !important;
}

/* mobile */
@media (max-width: 768px) {
  .logo-right img {
    height: 65px !important;
    max-height: none !important;
    margin-top: 30px
  }
}

/* ÎœÎ•Î“Î‘Î›Î•Î£ ÎŸÎ˜ÎŸÎÎ•Î£ (Ï€.Ï‡. laptop 15"+, desktop) */
@media (min-width: 1200px) {
  .logo-right img {
    height: 110px !important;   /* ÏŒÏƒÎ¿ Î¸ÎµÏ‚: 100, 120 ÎºÏ„Î» */
    max-height: none !important;
    margin: -15px
  }
}


/* DESKTOP â€“ Î½Î± Î±Î½Î­Î²ÎµÎ¹ Ï€Î¹Î¿ ÏˆÎ·Î»Î¬ */
@media (min-width: 769px) {
  .logo-right {
    top: -5px;   /* Ï€Î±Î¯Î¾Îµ: 0, -5, -10 Î¼Î­Ï‡ÏÎ¹ Î½Î± ÏƒÎ¿Ï… ÎºÎ¬Ï„ÏƒÎµÎ¹ */
  }
}

/* MOBILE â€“ Î»Î¯Î³Î¿ Ï€Î¹Î¿ Ï€Î¬Î½Ï‰ ÎºÎ¹ ÎµÎ´ÏŽ Î±Î½ Î¸ÎµÏ‚ */
@media (max-width: 768px) {
  .logo-right {
    top: -18px;
    right: -4px/* Î±Ï€ÏŒ 2px -> -2px = Ï€Î¹Î¿ Ï€Î¬Î½Ï‰ */
  }
}

/* container που έχει τα προϊόντα σε κάθε group */
.search-products {
  display: flex;
  flex-direction: row;
  gap: 8px;              /* απόσταση μεταξύ προϊόντων */
  overflow-x: auto;      /* οριζόντιο scroll */
  padding-bottom: 6px;
  scroll-snap-type: x mandatory; /* προαιρετικό για ωραίο "κούμπωμα" */
}

/* κάθε tile προϊόντος */
.search-product {
  flex: 0 0 auto;        /* να μην μικραίνει, να είναι σαν "καρτέλα" */
  width: 130px;          /* παίξε με αυτό ανάλογα με το design σου */
  scroll-snap-align: start;
  border-radius: 6px;
  padding: 4px;
  box-sizing: border-box;
}

/* εικόνα προϊόντος */
.search-product img {
  width: 100%;
  height: 100px;         /* ή auto */
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* κείμενα μέσα στο tile */
.search-product .product-info {
  margin-top: 4px;
}

.search-product .product-name {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  max-height: 32px;
  overflow: hidden;
}

.search-product .stock-status {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  font-size: 13px;
}

.search-loading-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: rgba(255,255,255,0.9);
  animation: searchSpinner 0.6s linear infinite;
}

/* αν το modal έχει σκούρο background, είσαι οκ.
   αν είναι άσπρο, άλλαξε τα χρώματα (π.χ. σε #333). */

@keyframes searchSpinner {
  to {
    transform: rotate(360deg);
  }
}



.random-home-btn {
  margin: 8px 10px 4px auto;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgb(56 189 209);
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  line-height: 1.2;
  text-decoration: none;
  border-left: 10px
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 6px 16px rgba(15, 23, 42, 0.9);
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.1s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.random-home-btn::before {
  content: '★';
  font-size: 11px;
}

.random-home-btn:hover {
  background: rgba(30, 64, 175, 0.98);
  border-color: #facc15;
  color: #fefce8;
  transform: translateY(-1px);
}

/* ===== UNIFIED LAYOUT: header -> all cats -> random -> search ===== */

/* πιο μεγάλο κενό πάνω γιατί έχουμε header + wrapper */
body {
  padding-top: 170px;   /* αν κόβονται προϊόντα, παίξε 160/180 */
}

/* header μένει όπως είναι: fixed, 70px */
#topHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #0f1d2d;
  z-index: 1000;
}

/* container κάτω από το header για τα 2 κουμπιά + search */
#searchWrapper {
  position: fixed;
  top: 0px;          /* ακριβώς κάτω από header */
  left: 0;
  width: 100%;
  z-index: 999;
  background: #0f1d2d;
  padding: 8px 0 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* καθάρισμα από τα παλιά fixed/absolute */
#allCategoriesBtn,
.header-all-cats-btn,
#randomHomeBtn {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0;
}

/* Όλες οι κατηγορίες – λευκό pill */
#allCategoriesBtn,
.header-all-cats-btn {
  padding: 6px 18px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: #ffffff;
  color: #0f1d2d;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Τυχαία προϊόντα – όπως πριν, αλλά κεντραρισμένο */
#randomHomeBtn {
  padding: 5px 14px;
  font-size: 12px;
}

/* search κάτω από τα δύο κουμπιά */
#searchBar {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
}

#searchInput {
  width: 100%;
}

/* Μόνο μικρές αλλαγές σε μικρές οθόνες (όΧΙ άλλη θέση) */
@media (max-width: 768px) {
  body {
    padding-top: 160px;
  }

  #allCategoriesBtn,
  .header-all-cats-btn {
    font-size: 13px;
    padding: 6px 14px;
  }

  #randomHomeBtn {
    font-size: 11px;
    padding: 5px 12px;
  }

  #searchBar {
    max-width: 360px;
  }

  #searchInput {
    font-size: 13px;
    height: 32px;
  }
}


/* === RESPONSIVE HEIGHT FIX FOR SMALLER SCREENS === */

/* default desktop look — δεν αλλάζουμε τίποτα */
@media (min-width: 769px) {
  #searchWrapper {
    top: 0px; /* κάτω από το header */
  }
}

/* tablets / μικρές οθόνες */
@media (max-width: 1024px) and (min-width: 769px) {
  #searchWrapper {
    top: 0px; /* λίγο πιο κάτω */
  }
}

/* κινητά portrait */
@media (max-width: 768px) {
  #searchWrapper {
    top: 40px;   /* κατεβαίνει λίγο για να μην ακουμπά logo ή language */
  }

  body {
    padding-top: 145px; /* κρατά απόσταση ώστε τα προϊόντα να μη σκεπάζονται */
  }
}

/* πολύ μικρά κινητά (<=400px πλάτος) */


/* ===== MOBILE: 3 tiles visible + smaller height ===== */
@media (max-width: 768px) {

  /* λιγότερο “φούσκωμα” στο results box */
  #searchResults{
    padding: 8px !important;
  }

  /* πιο σφιχτά κενά */
  .search-products{
    gap: 1px !important;
    padding-bottom: 4px !important;
  }

  /* 3 tiles να χωράνε σίγουρα στο πλάτος (χωρίς να αλλάξεις το scroll behavior) */
  .search-product{
    width: calc((100vw - 16px - (6px * 2)) / 3) !important;
    padding: 4px !important;
    border-radius: 8px !important;
  }

  /* μικρότερη εικόνα για να “κοντύνει” το tile */
  .search-product img{
    height: 78px !important;     /* παίξε 72–88 αν θες */
    border-radius: 8px !important;
  }

  /* μικρότερα κείμενα για να μη μεγαλώνει */
  .search-product .product-name{
    font-size: 11px !important;
    line-height: 1.25 !important;
    max-height: 28px !important;
  }

  .search-product .stock-status{
    font-size: 10px !important;
    margin-top: 2px !important;
  }
}
@media (max-width: 768px) {

  /* το wrapper του search να πιάνει όλο το πλάτος */
  #searchBar{
    width: calc(100vw - 16px);   /* 8px margin αριστερά/δεξιά */
    max-width: none;
    margin: 0 auto;
  }

  /* input full width */
  #searchInput{
    width: 100%;
  }

  /* results full width όπως το searchBar */
  #searchResults{
    width: 100%;
    left: 0;
    right: 0;
  }
}

@media (min-width: 769px) {
  #searchBar{
    width: min(1100px, calc(100vw - 80px)); /* 40px margin δεξιά/αριστερά */
    max-width: none;
    margin: 0 auto;
  }
}

/* ========= EMERGENCY FIX: searchResults να φαίνεται ΠΑΝΩ ΑΠΟ ΟΛΑ ========= */

/* 1) ΜΗΝ κλειδώνεις scroll με body position:fixed (σπάει overlays).
   Αν το JS σου βάζει inline position:fixed, αυτό το override το ακυρώνει. */
body.search-scroll-locked{
  overflow: hidden !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: auto !important;
}

/* 2) Κόψε stacking-context παγίδες */
#topHeader,
#searchWrapper{
  transform: none !important;
  will-change: auto !important;
}

/* 3) Κάνε το results overlay fixed + τεράστιο z-index */
#searchResults{
  position: fixed !important;
  display: none; /* ανοίγει μόνο με .active */

  left: 50% !important;
  transform: translateX(-50%) !important;

  /* κάτω από header + wrapper */
  top: calc(var(--header-h, 70px) + var(--wrapper-h, 110px) + 6px) !important;

  /* να μην κρύβεται από bottom nav */
  bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;

  width: min(1100px, calc(100vw - 16px)) !important;

  z-index: 2147483647 !important; /* πάνω απ’ όλα */
  max-height: none !important;
  overflow-y: auto !important;
}

#searchResults.active{
  display: block !important;
}


/* LOGO: base */
.logo-right{
  position: fixed !important;
  right: 8px !important;
  top: 12px !important;     /* default desktop */
  z-index: 1100 !important;
}

/* Large screens: κατέβασέ το */
@media (min-width: 1200px){
  .logo-right{ top: 22px !important; }  /* παίξε 18-40 */
}