* { 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;
  padding: 20px;
}


  .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;
  }
.product-info {
    flex: 1 1 300px;
}

.price {
    font-size: 28px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.original-price {
    text-decoration: line-through;
    color: gray;
    margin-right: 10px;
}

.discount-price {
    color: red;
    font-weight: bold;
}





    .product-container {
    display: flex;
    gap: 40px;
    padding: 20px 30px 30px; 30px;
    max-width:1300px;
    margin:auto;
}

.product-gallery-wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex: 1;
    max-width: 600px;
}

.product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-thumbs img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-thumbs img.active {
    border-color: #000;
}

.product-main-image img {
    width: 100%;
    min-width:500px;
    height: auto;
    object-fit: contain;
    border: 1px solid #ddd;
    cursor: zoom-in;
    margin:auto;
}

.product-info {
    flex: 1;
}
#customLightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}



.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-direction: column;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    box-shadow: 0 0 10px #000;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.lightbox-prev { left: 20px; transform: translateY(-50%); }
.lightbox-next { right: 20px; transform: translateY(-50%); }

.color-dot {
    display: inline-block;
    width: 30px;
    height: 30px;
 
    margin-right: 8px;
    border: 1px solid #e8e8e8;
    padding:2px;
    cursor: pointer;
    transition: transform 0.2s;
}




.color-dot:hover {
    transform: scale(1.1);
}
.variant-sizes {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-top:10px;
}

.size-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid #333;
    background: white;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.size-btn:hover:not(.disabled) {
    background-color: #333;
    color: white;
}

.size-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.size-btn.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

a { text-decoration:none }


.breadcrumb {
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 0px;
    color: #555;
}

.breadcrumb a {
    color: #007BFF;  /* μπλε link */
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #0056b3; /* πιο σκούρο μπλε στο hover */
}

.breadcrumb > a:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #999;
}

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

.product-main-image img
{
      min-width: unset;
}

    .product-gallery-wrapper,
    .product-info {
        width: 100%;
    }

    .product-gallery-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .product-main-image img {
        width: 100%;
        max-width: 100%;
            order: 0; /* ΜΕΝΕΙ πάνω */
    }

    .product-thumbs {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
           order: 1; /* ΠΑΝΕ κάτω */
    }

    .product-thumbs img {
        width: 50px;
        height: 70px;
    }
}
.pagemenu{max-width:1300px; margin:10px auto 0px auto; padding:0px 30px;}
.toast {
margin-top:10px;
  max-width:600px;
  color: #333;
  padding: 12px 20px;
  border-radius: 0px;
  font-size: 16px;
  display: none;
  z-index: 9999;
}

.toast-success {
  background: #ffffff;
  color: #28a745;
  border: 0px solid #ccc;
}

.toast-error {
  background: #fff;
  color: #dc3545;
    border: 0px solid #ccc;
}
.add-to-cart-btn {
  background-color: #28a745;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.25s ease, transform 0.15s ease;
  -webkit-appearance: none; /* Fix για iOS Safari */
  -moz-appearance: none;
  appearance: none;
}

.add-to-cart-btn:hover {
  background-color: #218838;
  transform: translateY(-1px);
}

.add-to-cart-btn:active {
  background-color: #1e7e34;
  transform: translateY(0px);
}

.add-to-cart-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 180, 97, 0.5);
}


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;
  }
}
.mainbody{margin-top:30px; margin-bottom:30px;}
.add-to-wishlist {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}
.add-to-wishlist:hover {
    color: red;
}
.cart-and-wishlist {
  display: flex;
  align-items: center;
  gap: 10px;
}

#toasth.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#toasth.show {
  opacity: 1;
  pointer-events: auto;
}
 /* Το modal καλύπτει όλη την οθόνη */
 .modal-size {
  display: none; /* Απόκρυψη αρχικά */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* ημιδιαφανές φόντο */
}

/* Το περιεχόμενο του modal */
.modal-content-size {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 750px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

/* Κουμπί κλεισίματος */
.modal-content-size .close-size {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}

.modal-content-size .close-size:hover {
  color: #000;
}

.sizeopenbtn{border:none; background-color:transparent; padding:0px 0px; margin-bottom:15px; font-size:18px; color:green;   cursor: pointer; }
.sizeopenbtn:hover {color: darkgreen;}

  /* Highlight επιλεγμένου κουμπιού μεγέθους */
  .size-btn.selected {
    border-color: #007bff !important;
    background-color: #e7f1ff !important;
  }

  /* Disabled κουμπιά */
  .size-btn.disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
  }