/* ================================================================
   STELLAS PLANTS — shop.css
   ================================================================ */

/* ── NUCLEAR LAYOUT RESET: force WC full-width ── */
body.woocommerce #page,
body.woocommerce-page #page,
body.page-shop #page,
body.page-single-product #page { display: block !important }

body.woocommerce #primary,
body.woocommerce-page #primary,
body.woocommerce #content,
body.woocommerce-page #content,
body.woocommerce .site-main,
body.woocommerce-page .site-main,
body.page-shop #primary,
body.page-shop .content-area,
body.page-shop .site-main,
body.page-single-product #primary,
body.page-single-product .content-area,
body.page-single-product .site-main {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.woocommerce #secondary,
body.woocommerce-page #secondary,
body.page-shop #secondary,
body.page-single-product #secondary,
.woocommerce-sidebar { display: none !important }

/* Kill WC default header/breadcrumb */
.woocommerce-breadcrumb,
.woocommerce-products-header,
.woocommerce-products-header__title,
.woocommerce-result-count + .woocommerce-ordering { margin: 0 !important }

/* ── SHOP HERO ── */
.shop-hero {
  padding: calc(var(--hh) + 70px) 0 60px;
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
}
.shop-hero__orb {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.shop-hero__orb--1 {
  bottom: -140px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(107,143,94,.14), transparent 65%);
}
.shop-hero__orb--2 {
  top: -60px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(201,169,110,.07), transparent 65%);
}
.shop-hero .container { position: relative; z-index: 1; }

.shop-hero__breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 14px;
}
.shop-hero__breadcrumb a {
  color: rgba(255,255,255,.4); text-decoration: none; transition: color .3s;
}
.shop-hero__breadcrumb a:hover { color: var(--gold); }
.shop-hero__breadcrumb span { color: rgba(255,255,255,.25); }
.shop-hero__breadcrumb .current { color: rgba(255,255,255,.7); }

.shop-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  color: var(--white); font-weight: 400;
  line-height: 1; margin-bottom: 12px;
  animation: fadeUp .8s .1s ease both;
}
.shop-hero__sub {
  font-family: var(--font-display);
  font-size: 1.05rem; font-style: italic;
  color: rgba(255,255,255,.35);
  animation: fadeUp .8s .2s ease both;
}

/* ── SHOP BODY ── */
.shop-body {
  background: var(--cream);
  padding: 64px 0 100px;
}

/* ── TOOLBAR ── */
.shop-toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.shop-toolbar__count,
.woocommerce-result-count {
  font-size: .78rem; color: var(--muted); margin: 0 !important;
}
.shop-toolbar__sort { display: flex; }

.woocommerce-ordering,
.woocommerce-ordering form { margin: 0 !important; }

.woocommerce-ordering select {
  font-family: var(--font-body); font-size: .78rem;
  border: 1px solid rgba(0,0,0,.12); background: var(--white);
  padding: 9px 36px 9px 14px; color: var(--charcoal);
  outline: none; cursor: pointer;
  border-radius: 0; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7066' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

/* ════════════════════════════════
   PRODUCT GRID — equal height cards
   ════════════════════════════════ */
.sp-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 3px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  /* each row same height */
  grid-auto-rows: 1fr;
}

/* ── CARD ── */
.sp-card {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  /* equal height: stretch to fill row */
  display: flex;
}

.sp-card__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  background: var(--white);
  transition: box-shadow .35s;
  overflow: hidden;
}
.sp-card__inner:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

/* Image: fixed ratio, consistent across all cards */
.sp-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.sp-card__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .75s var(--ease);
}
.sp-card__inner:hover .sp-card__img { transform: scale(1.06); }

.sp-card__no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center;
  justify-content: center;
  font-size: 3rem; color: rgba(0,0,0,.15);
}

/* Hover overlay */
.sp-card__overlay {
  position: absolute; inset: 0;
  background: rgba(10,20,13,0);
  transition: background .4s;
  display: flex; align-items: flex-end;
  justify-content: center; padding-bottom: 20px;
}
.sp-card__inner:hover .sp-card__overlay {
  background: rgba(10,20,13,.28);
}
.sp-card__view {
  font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--white);
  font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.sp-card__inner:hover .sp-card__view { opacity: 1; transform: translateY(0); }

/* Info block: grows to fill remaining height so all cards align */
.sp-card__info {
  display: flex;
  flex-direction: column;
  flex: 1;                  /* takes all remaining height */
  padding: 20px 22px 24px;
}
.sp-card__cat {
  font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 6px;
}
.sp-card__title {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 400;
  color: var(--green-deep);
  line-height: 1.2; margin: 0 0 auto !important;
  padding: 0 !important;
  /* auto margin pushes CTA to bottom */
}
.sp-card__cta {
  display: block;
  font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  border-top: 1px solid rgba(0,0,0,.07);
  padding-top: 10px; margin-top: 14px;
  transition: color .3s;
}
.sp-card__inner:hover .sp-card__cta { color: var(--green-mid); }

/* Kill any WC default button/price */
.sp-card .button,
.sp-card .price,
.sp-card .woocommerce-Price-amount { display: none !important; }

/* ── PAGINATION ── */
.sp-pagination{
  margin-top:64px;
  display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap
}
.sp-pagination .page-numbers{
  min-width:44px;height:44px;padding:0 8px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(26,43,31,.14);
  font-family:var(--font-body);font-size:.82rem;font-weight:500;
  color:var(--green-deep);text-decoration:none;
  transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease)
}
.sp-pagination .page-numbers.current,
.sp-pagination a.page-numbers:hover{
  background:var(--green-deep);color:var(--white);border-color:var(--green-deep)
}
.sp-pagination .page-numbers.dots{border:none;min-width:auto;color:var(--muted)}
.sp-pagination .prev.page-numbers,
.sp-pagination .next.page-numbers{
  padding:0 20px;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase
}

/* ── EMPTY ── */
.shop-empty { text-align: center; padding: 100px 20px; }
.shop-empty__icon { font-size: 3rem; margin-bottom: 18px; }
.shop-empty__title {
  font-family: var(--font-display); font-size: 2rem;
  color: var(--green-deep); margin-bottom: 12px;
}
.shop-empty__sub { font-size: .9rem; color: var(--muted); margin-bottom: 28px; }


/* ═══════════════════════════════════════════════
   SINGLE PRODUCT
   ═══════════════════════════════════════════════ */

.sp-single__breadcrumb {
  padding: calc(var(--hh) + 18px) 0 0;
  background: var(--cream);
}
.sp-single__breadcrumb nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; font-size: .72rem; color: var(--muted);
}
.sp-single__breadcrumb a {
  color: var(--muted); text-decoration: none; transition: color .3s;
}
.sp-single__breadcrumb a:hover { color: var(--green-mid); }
.sp-single__breadcrumb span:last-child { color: var(--green-deep); font-weight: 500; }

.sp-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 52px 0 100px;
  align-items: start;
  background: var(--cream);
}

/* Gallery */
.sp-single__gallery { position: sticky; top: calc(var(--hh) + 24px); }

.sp-single__main-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5; background: var(--white); cursor: zoom-in;
}
.sp-single__main-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block; transition: opacity .3s;
}
.sp-single__no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,.15);
}
.sp-single__no-img svg { width: 60px; height: 60px; }

.sp-single__zoom-hint {
  position: absolute; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(10,20,13,.55); color: var(--white);
  padding: 7px 12px; font-size: .58rem;
  letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.sp-single__main-img-wrap:hover .sp-single__zoom-hint { opacity: 1; }
.sp-single__zoom-hint svg { width: 13px; height: 13px; }

.sp-single__thumbs {
  display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap;
}
.sp-single__thumb {
  width: calc(25% - 5px); aspect-ratio: 1; overflow: hidden;
  cursor: pointer; opacity: .6; transition: opacity .3s;
  border: 2px solid transparent; padding: 0; background: none;
}
.sp-single__thumb:hover { opacity: .85; }
.sp-single__thumb.active { opacity: 1; border-color: var(--gold); }
.sp-single__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Info */
.sp-single__cat {
  display: block; font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.sp-single__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--green-deep); line-height: 1.05;
  margin-bottom: 22px; font-weight: 400;
}
.sp-single__divider { height: 1px; background: rgba(0,0,0,.08); margin-bottom: 24px; }
.sp-single__short-desc {
  font-size: .9rem; font-weight: 300;
  color: var(--muted); line-height: 1.92; margin-bottom: 24px;
}

.sp-single__pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.sp-single__pills span {
  font-size: .7rem; letter-spacing: .06em;
  padding: 7px 14px; background: var(--white);
  color: var(--green-deep); border: 1px solid rgba(0,0,0,.08);
}

.sp-single__cta-block {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px;
}
.sp-single__cta-main {
  flex: 1; min-width: 160px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sp-single__cta-phone { flex-shrink: 0; padding: 14px 20px; white-space: nowrap; }

.sp-single__store-info {
  background: var(--white); padding: 18px 20px;
  margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px;
}
.sp-single__store-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .8rem; font-weight: 300; color: var(--muted);
}
.sp-single__store-row svg {
  width: 15px; height: 15px; flex-shrink: 0;
  stroke: var(--gold); margin-top: 1px;
}

.sp-single__details { border: 1px solid rgba(0,0,0,.08); }
.sp-single__details-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-deep); cursor: pointer;
  list-style: none; user-select: none;
}
.sp-single__details-toggle::-webkit-details-marker { display: none; }
.sp-single__details-toggle::after { content: '+'; font-size: 1.1rem; font-weight: 300; }
details[open] .sp-single__details-toggle::after { content: '−'; }
.sp-single__details-body {
  padding: 0 18px 18px;
  font-size: .88rem; font-weight: 300;
  color: var(--muted); line-height: 1.88;
}

/* Related */
.sp-related { background: var(--cream-dark); }
.sp-related__header { margin-bottom: 44px; }
.sp-related__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 3px !important;
  list-style: none !important;
  margin: 0 !important; padding: 0 !important;
  grid-auto-rows: 1fr;
}

/* Lightbox */
.sp-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
}
.sp-lightbox.active { display: flex; animation: fadeIn .3s ease; }
.sp-lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(4,8,5,.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sp-lightbox__close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.sp-lightbox__close:hover { border-color: var(--gold); color: var(--gold); }
.sp-lightbox__close svg { width: 18px; height: 18px; }
.sp-lightbox__img-wrap {
  position: relative; z-index: 1;
  max-width: min(90vw,1100px); max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.sp-lightbox__img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.7);
}


/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .sp-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .sp-related__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .sp-single { grid-template-columns: 1fr; gap: 48px; }
  .sp-single__gallery { position: relative; top: 0; }
}
@media (max-width: 680px) {
  .sp-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 2px !important; }
  .sp-single { padding: 36px 0 72px; }
  .sp-single__cta-block { flex-direction: column; }
  .sp-single__cta-phone { text-align: center; }
}
@media (max-width: 400px) {
  .sp-grid { grid-template-columns: 1fr !important; }
}
/* ── RELATED PRODUCTS SECTION ── */
.sp-related {
  background: var(--cream-dark); /* Διακριτική εναλλαγή φόντου */
  padding: 100px 0;
}

.sp-related__header {
  text-align: center;
  margin-bottom: 52px;
}

.sp-related__header .eyebrow {
  justify-content: center; /* Κεντράρισμα για την ενότητα αυτή */
}

/* ── PRODUCT GRID ── */
.sp-related__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important; /* 4 προϊόντα ανά σειρά */
  gap: 4px !important; /* Minimal κενό μεταξύ των καρτών */
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── PRODUCT CARD ── */
.sp-product-card {
  background: var(--white);
  transition: transform 0.4s var(--ease);
}

.sp-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* Image Wrapper & Overlay */
.sp-product-card__img-wrap {
  position: relative;
  aspect-ratio: 3/4; /* Σταθερό ratio για ομοιομορφία */
  overflow: hidden;
  background: var(--cream);
}

.sp-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

/* Hover Effects */
.sp-product-card:hover .sp-product-card__img {
  transform: scale(1.08);
}

.sp-product-card__hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 31, 0); /* Green-deep με opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s var(--ease);
}

.sp-product-card:hover .sp-product-card__hover-overlay {
  background: rgba(26, 43, 31, 0.25);
}

.sp-product-card__view {
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
}

.sp-product-card:hover .sp-product-card__view {
  opacity: 1;
  transform: translateY(0);
}

/* ── CARD INFO ── */
.sp-product-card__info {
  padding: 24px 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sp-product-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-deep);
  margin-bottom: 12px;
  line-height: 1.2;
}

.sp-product-card__cta {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold); /* Gold χρώμα για το CTA */
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 12px;
  margin-top: auto;
  transition: color 0.3s;
}

.sp-product-card:hover .sp-product-card__cta {
  color: var(--green-mid);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .sp-related__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .sp-related {
    padding: 60px 0;
  }
  .sp-related__grid {
    gap: 2px !important;
  }
}

/* ── UPDATED PILLS STYLING ── */
.sp-single__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.sp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--white);
  color: var(--green-deep);
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 400;
}

.pill-icon {
  width: 14px;
  height: 14px;
  stroke: var(--gold); /* Χρήση του χρυσού χρώματος για τα εικονίδια */
  flex-shrink: 0;
}

/* Hover effect για τα pills */
.sp-pill:hover {
  border-color: var(--green-sage);
  background: var(--cream);
  transition: all 0.3s ease;
}
/* ── SINGLE PRODUCT DETAILS (ACCORDION) ── */
.sp-single__details {
  border: 1px solid rgba(0,0,0,0.08);
  margin-top: 30px;
}

.sp-single__details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  cursor: pointer;
  list-style: none;
  background: var(--white);
  transition: background 0.3s ease;
}

.sp-single__details-toggle:hover {
  background: var(--cream-dark);
}

/* Αφαίρεση του default βέλους του browser */
.sp-single__details-toggle::-webkit-details-marker {
  display: none;
}

/* Προσθήκη custom συμβόλου +/- */
.sp-single__details-toggle::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
}

details[open] .sp-single__details-toggle::after {
  content: '−';
}

/* Το σώμα του κειμένου */
.sp-single__details-body {
  padding: 24px 24px 32px;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8; /* Αυξημένο διάστιχο για ευκολότερη ανάγνωση */
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* Διαχωρισμός παραγράφων για να μην είναι "κόλλα" */
.sp-single__details-body p,
.sp-single__details-body .gt-block {
  margin-bottom: 1.5rem; /* Κενό ανάμεσα στις παραγράφους */
  display: block;
}

.sp-single__details-body p:last-child {
  margin-bottom: 0;
}

/* Έμφαση στα πλάγια γράμματα */
.sp-single__details-body em {
  font-style: italic;
  color: var(--green-mid);
}
/* ── Single catalog item: force the solid (scrolled) header, since the page
   has no dark hero at the top (nav would be invisible otherwise). ────────── */
body.page-single-product #site-header{
  height:66px;
  background:rgba(253,250,245,.96);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  box-shadow:0 1px 0 rgba(0,0,0,.07)
}
body.page-single-product #site-header .site-logo img{filter:none;height:44px}
body.page-single-product #site-header .nav-primary a{color:var(--charcoal)}
body.page-single-product #site-header .nav-primary a:hover{color:var(--green-mid)}
body.page-single-product #site-header .header-phone{color:var(--muted)}
body.page-single-product #site-header .nav-toggle span{background:var(--charcoal)}
body.page-single-product .sp-single__breadcrumb{padding-top:calc(66px + 24px)}
