/*
 Theme Name:  Twenty Twenty-Five Child
 Theme URI:   https://example.com/
 Description: Child theme for Twenty Twenty-Five
 Author:      Nikos Melis
 Template:    twentytwentyfive
 Version:     1.0.0
 Text Domain: twentytwentyfive-child
*/


/* =========================================
   NM MEGA MENU – SAME LOOK AS BEFORE + DROPDOWN
   ========================================= */

.nm-mega-menu{
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  background: #fff;
  margin-top: 0;
}

.nm-mega-menu .nm-menu{
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nm-mega-menu .nm-menu > li{
  position: relative;
  margin: 0;
  padding: 0 16px;
}

.nm-mega-menu .nm-menu > li:not(:last-child)::after{
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  font-weight: 300;
  opacity: 0.9;
}

.nm-mega-menu .nm-menu > li > a{
  display: inline-block;
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  font-weight: 500;
  padding: 2px 0;
  transition: opacity 0.2s ease;
}

.nm-mega-menu .nm-menu > li > a:hover{
  opacity: 0.65;
}

/* Dropdown */
.nm-mega-menu .sub{
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  min-width: 260px;
  background: #fff;
  border: 1px solid #eee;
  padding: 10px 12px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 9999;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.nm-mega-menu .has-sub:hover > .sub{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nm-mega-menu .sub li{
  margin: 0;
  padding: 0;
}

.nm-mega-menu .sub a{
  display: block;
  padding: 8px 6px;
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #000;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.nm-mega-menu .sub a:hover{
  opacity: 0.65;
}

.nm-mega-menu .nm-menu > li.has-sub::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

/* Mobile dropdown behavior */
@media (max-width: 900px){
  .nm-mega-menu{
    padding: 10px 0;
  }

  .nm-mega-menu .nm-menu{
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }

  .nm-mega-menu .nm-menu > li{
    padding: 0 10px;
  }

  .nm-mega-menu .nm-menu > li:not(:last-child)::after{
    display: none;
  }

  .nm-mega-menu .sub{
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 6px 0 0;
    min-width: 0;
  }

  .nm-mega-menu .sub a{
    padding: 6px 0;
  }

  .nm-mega-menu .nm-menu > li.has-sub::before{
    display: none;
  }
}


/* =========================================
   PHONE ICON – ICON ONLY
   ========================================= */

.wp-block-button .wp-block-button__link.nm_phone_icon{
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp-block-button__link.nm_phone_icon::before{
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-image: url("https://sokoira.com/wp-content/uploads/2025/10/phone-icon.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.wp-block-button__link.nm_phone_icon::before {
    width: 18px;
    height: 18px;
    filter: invert(1);         /* makes SVG white if it's black */
}


/* =========================================
   CATEGORY BANNER TITLE
   ========================================= */

.nm_category_banner_title{
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.6),
    0 1px 3px rgba(0,0,0,0.4);
}

.nm_category_banner_title a{
  color: #fff;
  text-decoration: none;
}


/* =========================================
   SEARCH ICON → EXPAND INPUT (WORKING + VISIBLE)
   ========================================= */

.wp-block-search__inside-wrapper{
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-block-search__input{
  width: 0;
  opacity: 0;
  padding: 0;
  border: 0;
  margin: 0;
  height: 36px;
  font-size: 14px;
  background: #fff;
  color: #000;
  caret-color: #000;
  transition: width 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
  overflow: hidden;
}

.wp-block-search__inside-wrapper:has(.wp-block-search__button[aria-expanded="true"]) .wp-block-search__input{
  width: 180px;
  opacity: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
}

.wp-block-search__input:focus{
  outline: none;
  border-color: #000;
}

.wp-block-search__button.has-icon{
  background: none !important;
  border: none !important;
  padding: 0 !important;
  min-width: 0;
  min-height: 0;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wp-block-search__button.has-icon svg{
  width: 20px;
  height: 20px;
  fill: #000;
  display: block;
}


/* =========================================
   LANGUAGE SWITCHER (FREE HTML LINKS)
   ========================================= */

.nm-lang-switch{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nm-lang-switch a{
  text-decoration: none;
  color: #000;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.nm-lang-switch a:hover{
  opacity: 1;
}

html[lang="el"] .nm-lang-switch a[lang="el"],
html[lang="en"] .nm-lang-switch a[lang="en"]{
  opacity: 1;
  font-weight: 600;
}


/* =========================================
   FULL WIDTH SWIPER (HOME)
   ========================================= */

.nm-home-swiper{
  width: 100%;
  max-width: 100%;
  margin: 30px 0 0;
  border-radius: 0;
  overflow: hidden;
}

.nm-home-swiper .swiper-slide{
  width: 100% !important;
  max-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.nm-home-swiper .swiper-slide img{
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  display: block;
}

.nm-home-swiper .swiper-button-prev,
.nm-home-swiper .swiper-button-next{
  color: #fff;
  z-index: 20;
}

.nm-home-swiper .swiper-pagination-bullet{
  background: #fff;
  opacity: 0.6;
}

.nm-home-swiper .swiper-pagination-bullet-active{
  opacity: 1;
}


/* =========================================
   FOOTER TOP BORDER
   ========================================= */

footer.wp-block-template-part{
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  margin-top: 10px;
}


/* =========================================
   HOMEPAGE PRODUCT COLLECTION CAROUSEL (CARDS)
   Scope it ONLY inside the Product Collection block
   ========================================= */

.wp-block-woocommerce-product-collection{
  max-width: 1200px;
  margin: 0 auto;
}

.wp-block-woocommerce-product-collection .wc-block-product-template.is-product-collection-layout-carousel{
  justify-content: center;
  gap: 2.5rem;
}

/* Card style ONLY in product collection block */
.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product{
  list-style: none;
  flex: 0 0 260px;
  background: #fff;
  border-radius: 22px;
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product:hover{
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.10);
  background: #ffffff;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image{
  width: 100%;
  margin-bottom: 1rem;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image{
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.25s ease;
}

.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product:hover
.wc-block-components-product-image img{
  transform: scale(1.03);
}

.wp-block-woocommerce-product-collection .wc-block-product-template .wp-block-post-title{
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  margin: 0.5rem 0 0.5rem;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-price{
  margin-bottom: 0.75rem;
}

.wp-block-woocommerce-product-collection .wc-block-woocommerce-product-button .wp-block-button__link{
  border-radius: 999px;
  padding: 0.65rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.wp-block-woocommerce-product-collection h2.wp-block-heading{
  margin-top: 2rem;
  margin-bottom: 1.5rem !important;
}


/* ==================================================
   PRODUCT CATEGORY (tax-product_cat) – CLEAN GRID
   LIKE SCREENSHOT + PERFECT 1:1 SQUARE IMAGES
   ================================================== */

.tax-product_cat .wc-block-product-template__responsive.wc-block-product-template{
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 40px;
}

/* grid */
.tax-product_cat .wc-block-product-template__responsive.wc-block-product-template.columns-3{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 80px;
  row-gap: 120px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* remove card styles on category pages */
.tax-product_cat .wc-block-product-template .wc-block-product{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  transition: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* perfect 1:1 image box */
.tax-product_cat .wc-block-product-template .wc-block-components-product-image{
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  margin: 0 0 18px 0 !important;
  border-radius: 0 !important;
}

/* reserve square space */
.tax-product_cat .wc-block-product-template .wc-block-components-product-image::before{
  content: "";
  display: block;
  padding-top: 100%;
}

/* link covers square */
.tax-product_cat .wc-block-product-template .wc-block-components-product-image > a{
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
}

/* image fills square */
.tax-product_cat .wc-block-product-template .wc-block-components-product-image img{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* change to contain if you want no crop */
  border-radius: 0 !important;
  display: block !important;
  max-height: none !important;
}

/* Woo inner container */
.tax-product_cat .wc-block-product-template .wc-block-components-product-image__inner-container{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* title */
.tax-product_cat .wc-block-product-template .wp-block-post-title{
  display: block !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}

.tax-product_cat .wc-block-product-template .wp-block-post-title a{
  text-decoration: none;
  color: #000;
}

/* price */
.tax-product_cat .wc-block-product-template .wp-block-woocommerce-product-price,
.tax-product_cat .wc-block-product-template .wc-block-components-product-price{
  margin: 6px 0 0 0 !important;
  text-align: left !important;
  font-size: 11px !important;
  letter-spacing: 0.5px !important;
  color: #222 !important;
}

/* hide add to cart */
.tax-product_cat .wc-block-product-template .wp-block-woocommerce-product-button{
  display: none !important;
}

/* responsive */
@media (max-width: 1100px){
  .tax-product_cat .wc-block-product-template__responsive.wc-block-product-template.columns-3{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 50px;
    row-gap: 90px;
  }
}

@media (max-width: 700px){
  .tax-product_cat .wc-block-product-template__responsive.wc-block-product-template.columns-3{
    grid-template-columns: 1fr;
    row-gap: 70px;
  }
  .tax-product_cat .wc-block-product-template__responsive.wc-block-product-template{
    padding: 26px 18px;
  }
}

.nm-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:9999;padding:20px}
.nm-modal-content{background:#fff;max-width:900px;margin:5vh auto;padding:20px;position:relative;border-radius:10px}
.nm-modal-close{position:absolute;top:10px;right:12px;font-size:28px;line-height:1;border:0;background:transparent;cursor:pointer}
.nm-size-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:start}
.nm-size-table{width:100%;border-collapse:collapse}
.nm-size-table th,.nm-size-table td{border:1px solid #ddd;padding:10px;text-align:center}
.nm-size-table td:first-child{text-align:left}
.nm-size-img{width:100%;height:auto;display:block;border:1px solid #eee;border-radius:8px}
.nm-size-note{margin-top:10px;font-size:13px;opacity:.75}
@media (max-width:768px){.nm-size-grid{grid-template-columns:1fr}}

/* Size guide button -> looks like menu link */
.nm-size-guide-btn{
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font: inherit;              /* παίρνει font του theme */
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;

  color: currentColor;
  cursor: pointer;

  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, opacity .2s ease;
}

.nm-size-guide-btn:hover{
  border-bottom-color: currentColor;
  opacity: .85;
}

.nm-size-guide-btn:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-bottom-color: transparent;
}

/* Optional: small icon like menu arrow */
.nm-size-guide-btn::after{
  content: "↗";
  font-size: 12px;
  line-height: 1;
  opacity: .75;
}

