/* =============================================================
   Page styles: Shop / Product Categories
   ============================================================= */

.shop-page{
  background:var(--bg);
}

.shop-categories{
  padding-block:68px 74px;
  text-align:center;
}

.shop-categories .container,
.shop-products .container,
.category-products .container,
.other-categories .container,
.product-category-hero .container{
  max-width:var(--content);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.shop-categories h1{
  color:var(--rose-deep);
  font-size:41px;
  font-weight:var(--fw-semibold);
  line-height:1.12;
  margin:0 0 48px;
}

.shop-categories__grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:21px;
}

.shop-category-card,
.other-category-card{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  border-radius:var(--radius-category);
  background:var(--surface);
  text-decoration:none;
}

.shop-category-card{
  min-height:311px;
}

.shop-category-card img,
.other-category-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform var(--t-category);
}

.shop-category-card::after,
.other-category-card::after{
  content:'';
  position:absolute;
  inset:auto 0 0;
  background:var(--overlay);
}

.shop-category-card::after{
  height:58px;
}

.shop-category-card span,
.other-category-card span{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  color:var(--white);
  font-weight:var(--fw-bold);
  line-height:.95;
  text-align:center;
  text-transform:uppercase;
}

.shop-category-card span{
  min-height:58px;
  font-size:20px;
}

.shop-category-card:hover img,
.other-category-card:hover img{
  transform:scale(1.03);
}

.shop-category-card.is-placeholder{
  background:linear-gradient(135deg,var(--secondary),var(--white));
}

.product-category-hero{
  position:relative;
  z-index:5;
  background:var(--gray, #8f8f8f);
  min-height:67px;
  display:flex;
  align-items:center;
  text-align:center;
}

.product-category-switcher{
  position:relative;
  width:max-content;
  margin-inline:auto;
}

.product-category-switcher summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  cursor:pointer;
  color:var(--white);
  font-size:43px;
  font-weight:var(--fw-semibold);
  line-height:1;
  user-select:none;
}

.product-category-switcher summary::-webkit-details-marker{
  display:none;
}

.product-category-switcher summary svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform var(--transition);
}

.product-category-switcher[open] summary svg{
  transform:rotate(180deg);
}

.product-category-dropdown{
  position:absolute;
  top:calc(100% + 14px);
  left:100%;
  width:220px;
  padding:27px 26px 28px;
  background:var(--taupe, #b7b3ad);
  text-align:left;
}

.product-category-dropdown a{
  display:block;
  color:var(--white);
  font-size:20px;
  font-weight:var(--fw-bold);
  line-height:1.12;
  text-decoration:none;
  margin-bottom:18px;
}

.product-category-dropdown a:last-child{
  margin-bottom:0;
}

.product-category-dropdown a:hover,
.product-category-dropdown a.is-current{
  opacity:.78;
}

.category-products{
  background:var(--bg);
  padding-block:84px 42px;
}

.category-products .woocommerce-products-header,
.category-products .woocommerce-result-count,
.category-products .woocommerce-ordering,
.category-products .woocommerce-notices-wrapper:empty{
  display:none;
}

.category-products ul.products{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  column-gap:64px;
  row-gap:0;
  margin:0;
  padding:0;
  list-style:none;
}

.category-products ul.products::before,
.category-products ul.products::after{
  display:none;
}

.category-products ul.products li.product{
  float:none!important;
  width:auto!important;
  margin:0!important;
  padding:0 0 64px!important;
  position:relative;
}

.category-products ul.products li.product a.woocommerce-LoopProduct-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

.category-products ul.products li.product img{
  width:100%;
  aspect-ratio:1 / 1;
  height:auto;
  object-fit:cover;
  margin:0 0 13px!important;
}

.category-products .woocommerce-loop-product__title{
  min-height:52px;
  padding:0!important;
  margin:0 0 8px!important;
  color:var(--black);
  font-size:25px!important;
  font-weight:var(--fw-medium)!important;
  line-height:.95!important;
}

.category-products ul.products li.product .price{
  display:block;
  color:var(--rose)!important;
  font-size:24px!important;
  font-weight:var(--fw-medium)!important;
  line-height:1;
  margin:0!important;
}

.category-products ul.products li.product .button{
  position:absolute;
  right:0;
  bottom:64px;
  width:34px;
  height:34px;
  min-width:0;
  display:inline-grid;
  place-items:center;
  padding:0!important;
  margin:0!important;
  border:0;
  background:transparent!important;
  color:var(--black)!important;
  font-size:0!important;
  line-height:1;
  overflow:visible;
  box-shadow:none!important;
  transition:color .2s ease, opacity .2s ease;
}

/* το αυτόματο «Προβολή καλαθιού» link μετά το AJAX — κρυφό */
.category-products ul.products li.product .added_to_cart{
  display:none!important;
}

/* Το injected SVG bag (ohmh_bag_icon από inc/woocommerce.php) — ίδιο με αρχική */
.category-products ul.products li.product .button .ohmh-bag{
  width:28px;
  height:28px;
  display:block;
  overflow:visible;
}
.category-products ul.products li.product .button .ohmh-bag__body,
.category-products ul.products li.product .button .ohmh-bag__handle{
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linejoin:round;
  stroke-linecap:round;
  transition:fill .2s ease, stroke .2s ease;
}
.category-products ul.products li.product .button .ohmh-bag__plus{
  fill:none;
  stroke:var(--white);
  stroke-width:2;
  stroke-linecap:round;
  opacity:0;
  transition:opacity .2s ease;
}

/* hover/focus → γεμάτο mauve bag + λευκό «+» */
.category-products ul.products li.product .button:hover,
.category-products ul.products li.product .button:focus-visible{
  color:var(--rose-deep)!important;
}
.category-products ul.products li.product .button:hover .ohmh-bag__body,
.category-products ul.products li.product .button:focus-visible .ohmh-bag__body{
  fill:currentColor;
}
.category-products ul.products li.product .button:hover .ohmh-bag__plus,
.category-products ul.products li.product .button:focus-visible .ohmh-bag__plus{
  opacity:1;
}

/* AJAX states */
.category-products ul.products li.product .button.loading{
  opacity:.55;
  pointer-events:none;
}
.category-products ul.products li.product .button.added{
  color:var(--rose-deep)!important;
}
.category-products ul.products li.product .button.added .ohmh-bag__body{
  fill:currentColor;
}
.category-products ul.products li.product .button.added .ohmh-bag__plus{
  opacity:1;
}

.other-categories{
  background:var(--bg);
  padding-block:10px 85px;
}

.other-categories h2{
  color:var(--rose);
  font-size:36px;
  font-weight:var(--fw-bold);
  line-height:1.1;
  margin:0 0 45px;
}

.other-categories__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:21px;
  max-width:880px;
}

.other-category-card{
  min-height:294px;
}

.other-category-card::after{
  height:48px;
}

.other-category-card span{
  min-height:48px;
  font-size:18px;
}

.shop-products{
  background:var(--bg);
  padding-block:64px;
}

.shop-products .page-title{
  color:var(--rose);
  font-size:41px;
  font-weight:var(--fw-semibold);
  line-height:1.1;
  margin:0 0 32px;
}

.shop-products .woocommerce-result-count,
.shop-products .woocommerce-ordering{
  margin-bottom:32px;
}

.shop-products ul.products{
  margin:0;
}

@media (max-width:1100px){
  .shop-categories__grid{
    grid-template-columns:repeat(3,1fr);
  }

  .category-products ul.products{
    grid-template-columns:repeat(3,1fr);
    column-gap:34px;
  }
}

@media (max-width:767px){
  .shop-categories{
    padding-block:42px 48px;
  }

  .shop-categories h1{
    font-size:30px;
    margin-bottom:30px;
  }

  .shop-categories__grid,
  .category-products ul.products,
  .other-categories__grid{
    grid-template-columns:1fr 1fr;
    gap:24px 18px;
  }

  .shop-category-card{
    min-height:250px;
  }

  .shop-category-card span{
    font-size:18px;
  }

  .product-category-hero{
    min-height:58px;
  }

  .product-category-switcher summary{
    font-size:30px;
    gap:10px;
  }

  .product-category-dropdown{
    left:50%;
    transform:translateX(-50%);
    width:210px;
    padding:22px;
  }

  .product-category-dropdown a{
    font-size:18px;
  }

  .category-products{
    padding-block:50px 25px;
  }

  .category-products ul.products li.product,
  .category-products ul.products li.product:nth-child(n+3),
  .category-products ul.products li.product:nth-child(4){
    padding-top:0!important;
    padding-bottom:42px!important;
    border-top:0;
  }

  .category-products .woocommerce-loop-product__title{
    min-height:42px;
    font-size:20px!important;
  }

  .category-products ul.products li.product .price{
    font-size:20px!important;
  }

  .category-products ul.products li.product .button,
  .category-products ul.products li.product .added_to_cart{
    bottom:42px;
  }

  .other-categories{
    padding-block:20px 58px;
  }

  .other-categories h2{
    font-size:30px;
    margin-bottom:28px;
  }

  .other-category-card{
    min-height:230px;
  }

  .other-category-card span{
    font-size:15px;
  }
}