 * { box-sizing: border-box; }
  body {font-family: Arial, sans-serif;}
  
  /* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Το body γεμίζει όλο το ύψος */
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Flex κοντέινερ για σελίδα */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
}

/* Το main παίρνει όλο τον διαθέσιμο χώρο */
.content {
  flex: 1;
}

  .cart-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
  }
  .cart-items {
    flex: 1 1 600px;
    min-width: 300px;
  }
  .cart-summary {
    flex: 0 0 300px;
    border: 1px solid #ddd;
    padding: 20px;
    height: fit-content;
    background: #f9f9f9;
    border-radius: 6px;
  }
  

    .main-container {
      display: flex;
      width: 100%;
      margin: 40px auto;
      padding: 0 0px;
      gap: 30px;
    }

    .sidebar {
      width: 250px;
      min-width: 220px;
      border: 1px solid #eee;
      padding: 20px;
      height: fit-content;
    }

    .product-grid {
    padding:20px;
      flex: 1;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 30px;
    }

    .product-item {
      text-decoration: none;
      color: inherit;
      border: 1px solid #eee;
      transition: box-shadow 0.3s ease;
      background: #fff;
    }

    .product-item:hover {
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .product-thumb {
      width: 100%;
      height: 280px;
      background: #fafafa;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .product-thumb img {
      max-height: 100%;
      max-width: 100%;
      object-fit: contain;
      transition: transform 0.3s ease;
    }

    .product-item:hover img {
      transform: scale(1.05);
    }

    .product-info {
      padding: 15px;
      text-align: center;
    }

    .product-info h2 {
      font-size: 1rem;
      font-weight: normal;
      margin: 0 0 10px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .product-info p.price {
      color: #c20000;
      font-size: 1.1rem;
      font-weight: bold;
      margin: 0 0 10px;
    }

    .color-dots {
      display: flex;
      justify-content: center;
      gap: 6px;
      margin-top: 10px;
    }

    .color-dot {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 1px solid #ccc;
      cursor: pointer;
    }

    .color-dot.active {
      border: 2px solid #000;
    }

    @media (max-width: 1665px) {
      .product-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    @media (max-width: 1310px) {
      .product-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 995px) {
      .product-grid {
        grid-template-columns: repeat(1, 1fr);
      }
    }



   .filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  width:300px;
  margin-bottom: 10px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 0px;
  height:750px;
}


    @media (max-width: 768px) {
      .main-container {
        flex-direction: column;
      }

      .sidebar {
        width: 100%;
        
      }

   .filters-container {
     height:470px;
     width:100%;
}
   
   
      .product-grid {
        grid-template-columns: repeat(1, 1fr);
      }
    }

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

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group select,
.filter-group input[type="range"],
.filter-actions button {
  padding: 8px;
  border-radius: 0px;
  border: 1px solid #ccc;
  min-width: 180px;
  font-size: 14px;
}

.yellow {
  appearance: none;
  -webkit-appearance: none;  /* Safari/Chrome */
  -moz-appearance: none;     /* Firefox */
  -webkit-border-radius: 2px;
  -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  -webkit-padding-end: 20px;
  -webkit-padding-start: 2px;
  -webkit-user-select: none;
  background-image: url(/img/sel.png);
  background-color: rgba(255, 255, 0, 0.3);
  background-position: 97% center;
  background-repeat: no-repeat;
  border: 1px solid #e8e8e8;
  color: #555;
  font-size: 18px;
  height: 40px;
  min-width: 180px;
  padding: 5px 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
  margin-bottom: 0;
}


.white {
  appearance: none;
  -webkit-appearance: none;  /* Safari/Chrome */
  -moz-appearance: none;     /* Firefox */
  -webkit-border-radius: 2px;
  -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  -webkit-padding-end: 20px;
  -webkit-padding-start: 2px;
  -webkit-user-select: none;
  background-image: url(/img/sel.png);
  background-color: rgba(255, 255, 255, 0);
  background-position: 97% center;
  background-repeat: no-repeat;
  border: 1px solid #e8e8e8;
  color: #555;
  font-size: 18px;
  height: 40px;
  min-width: 180px;
  padding: 5px 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
  margin-bottom: 0;
}

.color-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
     border: 1px solid #e8e8e8;
  cursor: pointer;
}


.color-dot.selected {
  border-color: #000;
}

.filter-actions {
  align-self: flex-end;
}

#clearFilters {
  background: #e74c3c;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

#clearFilters:hover {
  background: #c0392b;
}

.no-results {
  background: #f9f9f9;
  border: 2px dashed #ddd;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.no-results .emoji {
  font-size: 60px;
  margin-bottom: 15px;
  animation: shake 0.6s ease-in-out;
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
  75% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}

.no-results p {
  font-size: 1.1em;
  color: #555;
  margin-top: 0;
}

  .products-wrapper {
    width: 100%;
  }
  .products-header {
    display: flex;
    justify-content: flex-end; /* Ευθυγράμμιση δεξιά */
    margin-bottom: 10px;       /* Απόσταση από κάτω */
    align-items: center;
    margin-right:20px;
  }
  #sort-select {
    padding: 5px 10px;
    font-size: 1rem;
    padding: 8px;
  border-radius: 0px;
  border: 1px solid #ccc;
  min-width: 180px;
  font-size: 15px;
}
}

a { text-decoration:none }

.header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 10px 20px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left .logo {
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.header-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-item {
  font-size: 18px;
  color: #333;
  text-decoration: none;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.cart-icon span#cart-count {
  background-color: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  position: absolute;
  top: -8px;
  right: -10px;
}

.search-popup {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 999;
}

.search-popup input {
  padding: 8px 10px;
  font-size: 16px;
  width: 250px;
}

.search-popup button {
  background: none;
  border: none;
  font-size: 18px;
  margin-left: 10px;
  cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .header {
    position: relative;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .header-right {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Απόκρυψη φίλτρων σε κινητά */
@media (max-width: 768px) {
  .filters-container {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
  }

  .filters-container.show {
    display: flex;
  }

  .toggle-filters-btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    margin: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
  }
}

/* Απόκρυψη κουμπιού σε desktop */
@media (min-width: 769px) {
  .toggle-filters-btn {
    display: none;
  }

  .filters-container {
    display: flex !important;
    gap: 2rem;
  }
}

/* Το κουμπί φίλτρων */
    .toggle-filters-btn {
      display: none;
      background-color: #333;
      color: white;
      border: none;
      padding: 10px 15px;
      cursor: pointer;
      font-size: 16px;
    }

    /* Container φίλτρων */
    .filters-container {
      background: #f9f9f9;
      border: 1px solid #ccc;
      padding: 15px;
    }

    /* Απόκρυψη σε μικρές οθόνες */
    @media (max-width: 768px) {
      .filters-container {
        display: none;
      }

      .filters-container.visible {
        display: block;
      }

      .toggle-filters-btn {
        display: block;
      }
    }

    .filter-group {
      margin-bottom: 5px;
    }
    #pagination button {
  margin: 0 5px;
  padding: 5px 10px;
}
#pagination .active {
  background-color: black;
  color: white;
}
.products-header {
  display: flex;
  justify-content: space-between; /* αριστερά-δεξιά */
  align-items: center;
  flex-wrap: wrap; /* για να πάει κάτω αν δεν χωράει */
  gap: 20px;
}

/* Κάθε "ομάδα" label+select θα τα βάλουμε σε wrapper */
.products-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive για μικρές οθόνες */
@media (max-width: 600px) {
  .products-header {
    flex-direction: column;
    align-items: stretch;
  }

  .products-header > div {
    width: 100%;
    justify-content: flex-start; /* αριστερή στοίχιση */
  }

  /* Labels & selects να γεμίζουν το πλάτος */
  .products-header label,
  .products-header select {
    width: 100%;
  }
}
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#products-container {
  min-height: 300px; /* ύψος μόνο για loader */

  position: relative; /* για να είναι η βάση το container */
}


.spinner {
  animation: rotate 2s linear infinite;
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}
.spinner .path {
  stroke: #333;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}