/* ======================================================================
   GREENEASE SHOP — category tiles, filter bar, product grid
   Rendered by [ge_shop_tiles] and [ge_products]
   (inc/frontend/shop/ge-shop.php). Script: js/ge-shop.js.
   Loaded only on pages that use one of the shortcodes.
   Look follows the header, login and TotalEase pages.
   ====================================================================== */

.ge-shopcats, .ge-prods, .ge-shopsearch {
  --gs-primary: #1a5c38;
  --gs-deep: #124228;
  --gs-accent: #46b266;
  --gs-ink: #1f2d26;
  --gs-muted: #5b6b63;
  --gs-line: #dfe7e2;
  --gs-soft: #f1f8f3;
  --gs-soft-line: #cfe6d6;
  --gs-shadow: 0 10px 28px rgba(15, 45, 30, .08);
  --gs-shadow-lift: 0 18px 44px rgba(15, 45, 30, .16);
  color-scheme: only light;
  font-family: Nunito, "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--gs-ink);
}
.ge-prods, .ge-prods * { box-sizing: border-box; }

/* ---- 1) CATEGORY TILES ------------------------------------------------ */
/* Picture-led cards: the category image is the tile. */

.ge-shopcats, .ge-shopcats * { box-sizing: border-box; }
.ge-shopcats { margin: 0 0 8px; }
.ge-shopcats .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ge-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));   /* five tall tiles across at full width */
  gap: 18px;
}
.ge-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gs-line);
  border-radius: 22px;
  box-shadow: var(--gs-shadow);
  overflow: hidden;
  color: var(--gs-ink);
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ge-tile:hover { transform: translateY(-5px); box-shadow: var(--gs-shadow-lift); border-color: var(--gs-soft-line); }
.ge-tile:focus-visible { outline: 3px solid var(--gs-accent); outline-offset: 3px; }
.ge-tile__img {
  display: block;
  aspect-ratio: 4 / 5;      /* tall, poster-style */
  background: #fff;
  border-bottom: 1px solid var(--gs-line);
  overflow: hidden;
}
.ge-tile__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;      /* whole picture, never cropped, whatever its shape */
  transition: transform .3s ease;
}
.ge-tile:hover .ge-tile__img img { transform: scale(1.07) rotate(-1.5deg); }
.ge-tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  padding: 12px 12px 12px 16px;
  background: var(--gs-primary);
  color: #fff;
  transition: background-color .18s ease;
}
.ge-tile:hover .ge-tile__foot { background: var(--gs-deep); }
.ge-tile__text { min-width: 0; }
.ge-tile__title { display: block; font-size: 16px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.ge-tile__count { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.ge-tile__arrow {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gs-accent);
  color: #fff;
  transition: transform .18s ease;
}
.ge-tile__arrow svg { width: 14px; height: 14px; }
.ge-tile:hover .ge-tile__arrow { transform: translateX(3px); }

/* Carousel layout (default): one swipeable row */
.ge-tiles-wrap { position: relative; }
.ge-tiles.ge-tiles--carousel {
  display: flex;
  gap: 18px;
  padding: 6px 2px 22px;
  margin-bottom: -10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ge-tiles--carousel::-webkit-scrollbar { display: none; }
.ge-tiles--carousel .ge-tile { flex: 0 0 calc((100% - 18px * 4) / 5); scroll-snap-align: start; }   /* five in view */
@media (max-width: 1100px) { .ge-tiles--carousel .ge-tile { flex-basis: calc((100% - 18px * 2) / 3.4); } }
.ge-scrollnav {
  position: absolute;
  top: 40%;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gs-line);
  border-radius: 999px;
  background: #fff;
  color: var(--gs-primary);
  box-shadow: var(--gs-shadow-lift);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.ge-scrollnav[hidden] { display: none; }
.ge-scrollnav:hover { background: var(--gs-primary); color: #fff; }
.ge-scrollnav svg { width: 16px; height: 16px; }
.ge-scrollnav--prev { left: -14px; }
.ge-scrollnav--prev svg { transform: rotate(180deg); }
.ge-scrollnav--next { right: -14px; }

/* Browse all categories */
.ge-cats { margin-top: 16px; }
.ge-cats__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1.5px solid var(--gs-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--gs-primary);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color .15s ease, color .15s ease;
}
.ge-cats__toggle::-webkit-details-marker { display: none; }
.ge-cats__toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.ge-cats__toggle:hover, .ge-cats[open] .ge-cats__toggle { background: var(--gs-primary); color: #fff; }
.ge-cats[open] .ge-cats__toggle svg { transform: rotate(180deg); }
.ge-cats__toggle:focus-visible { outline: 3px solid var(--gs-accent); outline-offset: 3px; }
.ge-cats__panel {
  margin-top: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--gs-line);
  border-radius: 20px;
  box-shadow: var(--gs-shadow);
}
.ge-cats__search { position: relative; display: block; max-width: 420px; margin: 0 0 12px; }
.ge-cats__search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gs-muted); pointer-events: none; }
.ge-shopcats .ge-cats__search input {
  display: block; width: 100%; height: 44px; margin: 0; padding: 0 14px 0 42px;
  border: 1.5px solid var(--gs-line); border-radius: 999px; background: #f8faf9; color: var(--gs-ink);
  font-family: inherit; font-size: 16px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.ge-shopcats .ge-cats__search input:focus { outline: none; border-color: var(--gs-accent); background: #fff; box-shadow: 0 0 0 4px rgba(70, 178, 102, .25); }
/* Groups: one block per top-level category, sub-categories nested beneath */
.ge-cats__groups {
  columns: 4 240px;
  column-gap: 14px;
  max-height: 440px;
  padding: 2px;
  overflow-y: auto;
}
.ge-cats__group {
  break-inside: avoid;
  margin: 0 0 14px;
  border: 1px solid var(--gs-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.ge-cats__group[hidden] { display: none; }
.ge-cats__group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease;
}
.ge-cats__parent {
  padding: 11px 12px 11px 14px;
  background: var(--gs-soft);
  color: var(--gs-primary);
  font-size: 15px;
  font-weight: 800;
}
.ge-cats__parent:hover { background: var(--gs-primary); color: #fff; }
.ge-shopcats .ge-cats__kids { margin: 0; padding: 4px 0 6px; list-style: none; border-top: 1px solid var(--gs-line); }
.ge-shopcats .ge-cats__kid { margin: 0; padding: 0; }
.ge-shopcats .ge-cats__kid[hidden] { display: none; }
.ge-cats__kid a { padding: 7px 12px 7px 18px; color: var(--gs-ink); font-size: 14px; font-weight: 600; }
.ge-cats__kid--deep a { padding-left: 34px; font-size: 13.5px; color: var(--gs-muted); }
.ge-cats__kid a:hover { background: var(--gs-soft); color: var(--gs-primary); }
.ge-cats__n { flex: 0 0 auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--gs-primary); font-size: 12px; font-weight: 800; text-align: center; }
.ge-cats__kid .ge-cats__n { background: var(--gs-soft); }
.ge-cats__none { margin: 6px 4px 0; font-size: 14.5px; font-weight: 600; color: var(--gs-muted); }
.ge-cats__none[hidden] { display: none; }

.ge-prods__anchor { display: block; height: 0; scroll-margin-top: 130px; }

@media (max-width: 600px) {
  .ge-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ge-tiles.ge-tiles--carousel { gap: 10px; }
  .ge-tiles--carousel .ge-tile { flex-basis: 44%; }   /* two and a bit in view, so it reads as swipeable */
  .ge-scrollnav { display: none; }
  .ge-tile { border-radius: 18px; }
  .ge-tile__foot { padding: 10px 10px 10px 12px; }
  .ge-tile__title { font-size: 14px; }
  .ge-tile__count { font-size: 11.5px; }
  .ge-tile__arrow { flex-basis: 24px; width: 24px; height: 24px; }
  .ge-tile__arrow svg { width: 12px; height: 12px; }
  .ge-cats__toggle { display: flex; justify-content: center; }
  .ge-cats__groups { columns: 1; max-height: 360px; }
}

/* ---- 0) SHOP SEARCH BAR ----------------------------------------------- */

.ge-shopsearch, .ge-shopsearch * { box-sizing: border-box; }
.ge-shopsearch {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 820px;
  margin: 0 auto 8px;
  padding: 5px;
  background: #fff;
  border: 2px solid var(--gs-primary);
  border-radius: 999px;
  box-shadow: var(--gs-shadow);
}
.ge-shopsearch:focus-within { box-shadow: 0 0 0 4px rgba(70, 178, 102, .28), var(--gs-shadow); }
.ge-shopsearch label { position: relative; flex: 1; min-width: 0; margin: 0; }
.ge-shopsearch .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ge-shopsearch svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--gs-muted); pointer-events: none; }
.ge-shopsearch input[type="search"] {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 12px 0 46px;
  border: 0 !important; border-radius: 999px; background: transparent !important; color: var(--gs-ink);
  font-family: inherit; font-size: 17px; box-shadow: none !important; outline: none; -webkit-appearance: none; appearance: none;
}
.ge-shopsearch button {
  flex: 0 0 auto; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--gs-primary); color: #fff; font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
  transition: background-color .15s ease;
}
.ge-shopsearch button:hover { background: var(--gs-deep); }
@media (max-width: 600px) { .ge-shopsearch button { padding: 0 16px; font-size: 15px; } .ge-shopsearch input[type="search"] { height: 44px; font-size: 16px; } }

/* ---- 1b) CATEGORY PAGE (/product-category/…) -------------------------- */

.ge-shop-archive {
  --gs-primary: #1a5c38; --gs-muted: #5b6b63; --gs-soft: #f1f8f3; --gs-soft-line: #cfe6d6;
  max-width: 1220px;
  margin: 0 auto 40px;
  font-family: Nunito, "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* belt and braces for the category template: never wider than the screen */
.ge-shop-archive { min-width: 0; overflow-wrap: anywhere; }
.ge-shop-archive__back { margin: 0 0 14px; }
.ge-shop-archive__back a { display: inline-flex; align-items: center; gap: 6px; color: var(--gs-primary); font-size: 14.5px; font-weight: 800; text-decoration: none; }
.ge-shop-archive__back a:hover { text-decoration: underline; }
.ge-shop-archive__back svg { width: 16px; height: 16px; }
/* "About this category" card, above the products */
.ge-shop-archive__about {
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #dfe7e2;
  border-radius: 22px;
  background: var(--gs-soft);
}
.ge-shop-archive .ge-shop-archive__abouttitle {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--gs-primary);
}
.ge-shop-archive__desc { position: relative; max-width: 78ch; color: #33423b; font-size: 16px; line-height: 1.65; }
.ge-shop-archive__desc p { margin: 0 0 .9em; }
.ge-shop-archive__desc p:last-child { margin-bottom: 0; }
/* collapsed: first few lines with a fade (only once the script confirms there is more to show) */
.ge-shop-archive__desc.is-clamped { max-height: 5em; overflow: hidden; }   /* about three lines, so products stay near the top */
.ge-shop-archive__desc.is-clamped::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3.2em;
  background: linear-gradient(to bottom, rgba(241, 248, 243, 0), var(--gs-soft));
  pointer-events: none;
}
.ge-shop-archive .ge-shop-archive__more {
  margin: 12px 0 0;
  padding: 9px 18px;
  border: 1.5px solid var(--gs-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--gs-primary);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.ge-shop-archive .ge-shop-archive__more:hover { background: var(--gs-primary); color: #fff; }
.ge-shop-archive .ge-shop-archive__more[hidden] { display: none; }
.ge-shop-archive__others { margin: 30px 0 0; }
.ge-shop-archive__others .ge-shop-archive__kids { margin-bottom: 0; }
/* any other copy of the description a theme prints on the page */
.tax-product_cat .term-description:not(.ge-shop-archive__desc) { display: none; }
.ge-shop-archive__kids { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ge-shop-archive__kids a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--gs-soft-line); border-radius: 999px; background: var(--gs-soft);
  color: var(--gs-primary); font-size: 14.5px; font-weight: 800; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.ge-shop-archive__kids a:hover { background: var(--gs-primary); color: #fff; }
.ge-shop-archive__kids span { padding: 1px 8px; border-radius: 999px; background: #fff; color: var(--gs-primary); font-size: 12px; }
/* the native product loop is intentionally empty on these pages */
.tax-product_cat .woocommerce-info, .tax-product_cat .woocommerce-no-products-found { display: none; }

/* ---- 2) FILTER BAR ---------------------------------------------------- */

.ge-prods { margin: 0 0 8px; }
.ge-prods .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.ge-prods__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--gs-line);
  border-radius: 20px;
  box-shadow: var(--gs-shadow);
}
.ge-prods__search {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
}
.ge-prods__search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gs-muted);
  pointer-events: none;
}
.ge-prods .ge-prods__search input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px 0 42px;
  border: 1.5px solid var(--gs-line);
  border-radius: 999px;
  background: #f8faf9;
  color: var(--gs-ink);
  font-family: inherit;
  font-size: 16px;   /* 16px stops iPhones zooming in on focus */
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.ge-prods__selects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ge-prods__select { position: relative; margin: 0; }  /* keeps the hidden label inside the scrolling row */
.ge-prods .ge-prods__select select {
  height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 0 34px 0 14px;
  border: 1.5px solid var(--gs-line);
  border-radius: 999px;
  background: #f8faf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%231a5c38' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  color: var(--gs-ink);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ge-prods .ge-prods__search input:focus,
.ge-prods .ge-prods__select select:focus {
  outline: none;
  border-color: var(--gs-accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(70, 178, 102, .25);
}
.ge-prods .ge-prods__select select.is-set { border-color: var(--gs-primary); background-color: var(--gs-soft); color: var(--gs-primary); }

.ge-prods__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--gs-line);
  border-radius: 999px;
  background: #f8faf9;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.ge-prods__check input { width: 17px; height: 17px; margin: 0; accent-color: var(--gs-primary); }
.ge-prods__check:has(input:checked) { border-color: var(--gs-primary); background: var(--gs-soft); color: var(--gs-primary); }

.ge-prods .ge-prods__clear {
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--gs-primary);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.ge-prods .ge-prods__clear[hidden] { display: none; }

.ge-prods__count { min-height: 20px; margin: 0 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--gs-muted); }

@media (max-width: 700px) {
  .ge-prods__bar { padding: 8px; border-radius: 18px; gap: 8px; }
  .ge-prods__search { flex-basis: 100%; }
  /* one swipeable row of filters instead of a tall stack */
  .ge-prods__selects { flex: 1 1 100%; min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ge-prods__selects::-webkit-scrollbar { display: none; }
  /* The row scrolls sideways, so its full width must not count towards the page's
     minimum width. Without this, any wrapper that sizes itself to its content (the
     theme's /product-category/ layout does) grows to fit the whole filter row and
     the page runs off the right edge on phones. Builder pages already contained it. */
  .ge-prods__selects { contain: inline-size; }
  .ge-prods__select, .ge-prods__check { flex: 0 0 auto; }
  .ge-prods .ge-prods__select select, .ge-prods__check { height: 40px; font-size: 14px; }
  .ge-prods .ge-prods__clear { height: 32px; margin-left: auto; }
}

/* ---- 3) PRODUCT GRID -------------------------------------------------- */

.ge-prods .ge-prods__grid {
  display: grid;
  grid-template-columns: repeat(var(--ge-cols, 4), minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: opacity .15s ease;
}
.ge-prods.is-loading .ge-prods__grid { opacity: .45; pointer-events: none; }
@media (max-width: 1100px) { .ge-prods .ge-prods__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .ge-prods .ge-prods__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.ge-prods .ge-prod {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--gs-line);
  border-radius: 20px;
  box-shadow: var(--gs-shadow);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ge-prods .ge-prod:hover { transform: translateY(-3px); box-shadow: var(--gs-shadow-lift); border-color: var(--gs-soft-line); }

.ge-prod__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;       /* most product photos have a white background, so the frame matches */
  overflow: hidden;
  /* a soft shaded edge under the photo, so the picture reads as sitting forward of the text below */
  border-bottom: 1px solid var(--gs-line);
  box-shadow: 0 8px 14px -8px rgba(15, 45, 30, .22);
  z-index: 1;
}
.ge-prods .ge-prod__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 12px;
  object-fit: contain;
  transition: transform .25s ease;
}
.ge-prod:hover .ge-prod__media img { transform: scale(1.05); }
.ge-prod--out .ge-prod__media img { opacity: .55; }

.ge-prod__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5b301;      /* savings flag: the one warm colour in the shop, so deals stand out */
  color: #1f2d26;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}
.ge-prod__badge--out { background: #6b7280; color: #fff; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }

.ge-prod__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.ge-prods .ge-prod__title { margin: 0; padding: 0; min-height: 2.5em; font-family: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.ge-prods .ge-prod__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--gs-ink);
  font-size: inherit;
  text-decoration: none;
}
.ge-prods .ge-prod__title a:hover { color: var(--gs-primary); }
/* whole card is one tap target for the product page; the button sits above it */
.ge-prod__title a::after { content: ""; position: absolute; inset: 0; }
.ge-prods .ge-prod__price { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: var(--gs-primary); }
.ge-prods .ge-prod__price del { display: block; margin: 0 0 1px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: #93a39b; }
.ge-prods .ge-prod__price del::before { content: "Was"; display: inline-block; margin-right: .3em; text-decoration: none; }
.ge-prods .ge-prod__price ins { text-decoration: none; background: none; }

.ge-prod__action { position: relative; z-index: 1; margin-top: auto; padding-top: 6px; }
.ge-prods .ge-prod__action a.button,
.ge-prods .ge-prod__action .button {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--gs-primary) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 20px rgba(26, 92, 56, .22);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ge-prods .ge-prod__action a.button:hover { background: var(--gs-deep) !important; transform: translateY(-2px); box-shadow: 0 14px 26px rgba(70, 178, 102, .38); }
/* Out of stock: a flat grey button that doesn't lift or glow */
.ge-prods .ge-prod--out .ge-prod__action a.button,
.ge-prods .ge-prod__action a.button.disabled,
.ge-prods .ge-prod__action a.button[aria-disabled="true"] {
  background: #e9edeb !important;
  color: #6b7a72 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: default;
}
.ge-prods .ge-prod__action a.button.loading { opacity: .7; }
.ge-prods .ge-prod__action a.button.added::after { content: " \2713"; font-family: inherit; }
.ge-prods .ge-prod__action a.added_to_cart {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  background: none !important;
  border: 0 !important;
  color: var(--gs-primary) !important;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: underline;
}

.ge-prods .ge-prods__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px 18px;
  border: 1.5px dashed var(--gs-soft-line);
  border-radius: 20px;
  background: var(--gs-soft);
  color: var(--gs-muted);
  font-size: 15.5px;
  font-weight: 600;
  text-align: center;
}

.ge-prods__more { margin: 22px 0 0; text-align: center; }
.ge-prods__more[hidden] { display: none; }
.ge-prods .ge-prods__morebtn {
  min-width: 200px;
  padding: 13px 26px;
  border: 1.5px solid var(--gs-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--gs-primary);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.ge-prods .ge-prods__morebtn:hover { background: var(--gs-primary); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px rgba(70, 178, 102, .32); }
.ge-prods .ge-prods__morebtn[disabled] { opacity: .6; cursor: default; transform: none; }

@media (max-width: 800px) {
  .ge-prods .ge-prod { border-radius: 16px; }
  .ge-prods .ge-prod__media img { padding: 8px; }
  .ge-prod__body { padding: 10px 10px 12px; gap: 4px; }
  .ge-prods .ge-prod__title { font-size: 13.5px; }
  .ge-prods .ge-prod__price { font-size: 18px; }
  .ge-prods .ge-prod__action a.button, .ge-prods .ge-prod__action .button { padding: 10px 6px !important; font-size: 12.5px !important; }
  .ge-prod__badge { top: 8px; left: 8px; font-size: 10.5px; padding: 3px 8px; }
}

/* ---- 4) ROW LAYOUT (layout="row") -------------------------------------- */

.ge-prods--row { position: relative; }
.ge-prods.ge-prods--row .ge-prods__grid {
  display: flex;
  gap: 16px;
  padding: 6px 2px 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ge-prods--row .ge-prods__grid::-webkit-scrollbar { display: none; }
.ge-prods.ge-prods--row .ge-prod { flex: 0 0 calc((100% - 16px * 4) / 5); scroll-snap-align: start; }
@media (max-width: 1100px) { .ge-prods.ge-prods--row .ge-prod { flex-basis: calc((100% - 16px * 2) / 3.3); } }
@media (max-width: 800px)  { .ge-prods.ge-prods--row .ge-prods__grid { gap: 10px; } .ge-prods.ge-prods--row .ge-prod { flex-basis: 44%; } }
.ge-prods .ge-prods__nav {
  position: absolute;
  top: 38%;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--gs-line);
  border-radius: 999px;
  background: #fff;
  color: var(--gs-primary);
  box-shadow: var(--gs-shadow-lift);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.ge-prods .ge-prods__nav[hidden] { display: none; }
.ge-prods .ge-prods__nav:hover { background: var(--gs-primary); color: #fff; }
.ge-prods .ge-prods__nav svg { width: 16px; height: 16px; }
.ge-prods__nav--prev { left: -12px; }
.ge-prods__nav--prev svg { transform: rotate(180deg); }
.ge-prods__nav--next { right: -12px; }
@media (max-width: 800px) { .ge-prods .ge-prods__nav { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ge-shopcats *, .ge-prods * { transition: none !important; }
  .ge-tile:hover, .ge-prods .ge-prod:hover { transform: none; }
}
