/* Green Upshot NZ Shop Archive 2.0.0
   PAGE / FILTER / GRID LAYOUT ONLY.
   Product card visuals are owned by Green Upshot NZ Card System.
*/
.gu-custom-shop-archive,
.gu-custom-shop-archive button,
.gu-custom-shop-archive input,
.gu-custom-shop-archive select {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.gu-shop {
  --gu-teal: #004653;
  --gu-aqua: #008f8a;
  --gu-brand: #056983;
  --gu-brand-hover: #034f63;
  --gu-ink: #173f47;
  --gu-muted: #73858a;
  --gu-line: #e5eeec;
  --gu-soft: #f7faf9;
  background: #fff;
  color: var(--gu-ink);
}

.gu-shop * { box-sizing: border-box; }
.gu-shop-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.gu-shop-hero {
  background: var(--gu-teal);
  color: #fff;
  padding: 58px 0 54px;
}
.gu-shop-hero h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #fff;
}
.gu-shop-hero p { margin: 0; color: #c6ddda; font-size: 15px; }

.gu-shop-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  padding-top: 42px;
  padding-bottom: 72px;
}

.gu-filter-panel { min-width: 0; }
.gu-filter-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.gu-filter-title-row h2 { font-family: "Outfit", sans-serif; color: var(--gu-teal); font-size: 22px; margin: 0; }
.gu-clear-all { border: 0; background: transparent; color: var(--gu-aqua); font-size: 12px; padding: 0; cursor: pointer; }
.gu-filter-group { margin-bottom: 28px; }
.gu-filter-group h3 { color: #8b97ad; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.gu-filter-group h3 strong { color: var(--gu-teal); }

.gu-category-list,
.gu-subcategory-list { display: grid; gap: 4px; }
.gu-category-list button,
.gu-subcategory-list button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52666b;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.gu-category-list button:hover,
.gu-subcategory-list button:hover { color: var(--gu-teal); background: #f2f8f7; }
.gu-category-list button.is-active { background: var(--gu-brand); color: #fff; font-weight: 700; }
.gu-subcategory-list button.is-active { color: var(--gu-aqua); font-weight: 700; }

.gu-checkbox-list { display: grid; gap: 9px; }
.gu-checkbox-list label { display: flex; align-items: center; gap: 9px; color: #65777c; font-size: 13px; cursor: pointer; }
.gu-checkbox-list input { width: 16px; height: 16px; accent-color: var(--gu-aqua); }

.gu-range-wrap { position: relative; height: 22px; margin-top: 16px; }
.gu-range-track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 99px; background: #dce8e6; overflow: hidden; }
.gu-range-track span { display: block; height: 100%; background: var(--gu-aqua); }
.gu-range-wrap input[type="range"] { position: absolute; inset: 0; width: 100%; margin: 0; background: transparent; pointer-events: none; appearance: none; -webkit-appearance: none; }
.gu-range-wrap input[type="range"]::-webkit-slider-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--gu-aqua); border: 0; appearance: none; -webkit-appearance: none; cursor: pointer; }
.gu-range-wrap input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--gu-aqua); border: 0; cursor: pointer; }
.gu-range-values { display: flex; justify-content: space-between; color: #95a2a5; font-size: 11px; }

.gu-products-area { min-width: 0; }
.gu-products-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.gu-active-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gu-chip { border: 1px solid #dbe8e6; background: #fff; color: #557075; border-radius: 999px; padding: 7px 12px; font-size: 12px; cursor: pointer; }
.gu-chip.is-active,
.gu-chip-all.is-active { background: var(--gu-brand); color: #fff; border-color: var(--gu-brand); }
.gu-sort-control { display: flex; align-items: center; gap: 9px; color: #9aa6a9; font-size: 13px; white-space: nowrap; }
.gu-sort-control select { min-width: 184px; height: 42px; border: 1px solid #dce7e5; border-radius: 999px; padding: 0 48px 0 18px; appearance: none; -webkit-appearance: none; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23004653' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 14px; color: var(--gu-teal); font-size: 13px; outline: none; cursor: pointer; }

.gu-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; }





















.gu-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.gu-pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #dbe8e6; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--gu-teal); text-decoration: none; font-size: 13px; }
.gu-pagination .current { background: var(--gu-brand); color: #fff; border-color: var(--gu-brand); }
.gu-no-products { grid-column: 1 / -1; padding: 70px 20px; text-align: center; background: var(--gu-soft); border-radius: 12px; }
.gu-no-products h3 { font-family: "Outfit", sans-serif; color: var(--gu-teal); }

.gu-mobile-filter-open,
.gu-filter-mobile-head,
.gu-filter-mobile-actions,
.gu-filter-backdrop { display: none; }
.gu-shop.is-loading #gu-products-results { opacity: .45; pointer-events: none; }
.gu-shop.is-loading::after { content: ""; position: fixed; z-index: 99999; width: 34px; height: 34px; border: 3px solid #dce8e6; border-top-color: var(--gu-aqua); border-radius: 50%; left: 50%; top: 50%; margin: -17px; animation: gu-spin .65s linear infinite; }
@keyframes gu-spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .gu-shop-main { grid-template-columns: 190px minmax(0, 1fr); gap: 26px; }
  .gu-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .gu-shop-shell { width: min(100% - 28px, 1180px); }
  .gu-shop-hero { padding: 34px 0 32px; }
  .gu-shop-hero h1 { font-size: 30px; }
  .gu-shop-hero p { font-size: 12px; }
  .gu-shop-main { display: block; padding-top: 20px; padding-bottom: 44px; }
  .gu-mobile-filter-open { width: 100%; height: 42px; border: 1px solid #dbe8e6; border-radius: 8px; background: #fff; color: var(--gu-teal); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-weight: 700; margin-bottom: 14px; }
  .gu-filter-panel { position: fixed; z-index: 100002; left: 0; top: 0; bottom: 0; width: min(88vw, 360px); padding: 18px; background: #fff; overflow-y: auto; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 18px 0 50px rgba(0,0,0,.14); }
  .gu-shop.filter-open .gu-filter-panel { transform: translateX(0); }
  .gu-filter-mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .gu-filter-mobile-head strong { font-family: "Outfit", sans-serif; font-size: 22px; color: var(--gu-teal); }
  .gu-mobile-filter-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef6f4; color: var(--gu-teal); font-size: 22px; line-height: 1; }
  .gu-filter-title-row { display: none; }
  .gu-filter-mobile-actions { position: sticky; bottom: -18px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin: 28px -18px -18px; padding: 14px 18px; background: #fff; border-top: 1px solid var(--gu-line); }
  .gu-filter-mobile-actions button { height: 42px; border-radius: 999px; font-weight: 700; }
  .gu-filter-clear-mobile { background: #fff; color: var(--gu-teal); border: 1px solid #cfe0dd; }
  .gu-filter-apply-mobile { background: var(--gu-brand); color: #fff; border: 0; }
  .gu-filter-backdrop { position: fixed; z-index: 100001; inset: 0; background: rgba(0, 39, 47, .48); }
  .gu-shop.filter-open .gu-filter-backdrop { display: block; }
  body.gu-filter-lock { overflow: hidden; }
  .gu-products-toolbar { align-items: flex-start; flex-direction: column-reverse; gap: 12px; }
  .gu-sort-control { width: 100%; justify-content: flex-end; }
  .gu-sort-control select { min-width: 0; flex: 1; }
  .gu-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  
  
  
  
  
  
  
  
  
  
}

/* v1.0.5 dynamic brand and review filters */
.gu-brand-list {
  max-height: 220px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bfd3cf transparent;
}

.gu-checkbox-list label,
.gu-rating-filter-list label {
  width: 100%;
}

.gu-filter-option-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gu-filter-count {
  margin-left: auto;
  color: #7e9296;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.gu-rating-filter-list {
  display: grid;
  gap: 9px;
}

.gu-rating-filter-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #315660;
  font-size: 12px;
  cursor: pointer;
}

.gu-rating-filter-list input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  border: 1px solid #cbd8d6;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
  cursor: pointer;
}

.gu-rating-filter-list input[type="radio"]:checked {
  border-color: var(--gu-aqua);
  background: var(--gu-aqua);
}

.gu-filter-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #c8a15a;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -1px;
  white-space: nowrap;
}

.gu-filter-stars span {
  color: #c9a15a;
}

.gu-filter-stars span.is-filled {
  color: #c48718;
}

.gu-rating-up {
  white-space: nowrap;
}

.gu-sort-control select::-ms-expand {
  display: none;
}

/* v1.0.3 card spacing and filter polish */
.gu-category-list button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52666b;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.gu-category-list button:hover { color: var(--gu-teal); background: #f2f8f7; }
.gu-category-list button.is-active { background: var(--gu-brand); color: #fff; font-weight: 700; }













@media (max-width: 767px) {
  .gu-category-list button { font-size: 13px; padding: 9px 10px; }
  
  
  
  
  
  
  
  
  
  
  
}


/* =========================================================
   V1.0.8 NZ — SAFE CARD + COLOUR CHOOSER + RUNNING LOW
   ========================================================= */

















/* =========================================================
   V1.0.9 NZ — ARCHIVE INTERACTION REPAIR
   ========================================================= */

/* Card itself is clickable; controls sit above its click surface. */






/*
 * V1.0.8 accidentally allowed the hidden variation panel to inherit
 * position:relative/pointer-events:auto. That could distort or intercept the
 * archive action area. The panel belongs absolutely over the product image.
 */








/* Keep NZ card action geometry exactly as before. */




/* Running Low remains the strong teal badge. */





/* Hide only a truly empty row. New reviewed stars intentionally do not use
   the legacy .star-rating class. */



/* =========================================================
   V1.0.12 NZ — EXACT PK EMPTY REVIEW STYLE
   ========================================================= */









/* Same as the proven PK archive: zero-review OUTLINES are orange. */






#gu-shop .gu-rating-text {
  display: inline-block !important;
  flex: 0 0 auto !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #829397 !important;

  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 500 !important;

  white-space: nowrap !important;
}

/* =========================================================
   V1.0.13 NZ — CONTAINED ARCHIVE COLOUR CHOOSER
   The shared product plugin creates the chooser; the archive owns its bounds.
   ========================================================= */

























/* =========================================================
   v1.0.17 — Eco Gifting visual category switcher
   Scoped only to the Eco Gifting parent + 4 requested children.
   ========================================================= */
.gu-gifting-switcher {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 4px;
  border: 1px solid #dce9e6;
  border-radius: 15px;
  background: #f8fbfa;
}

.gu-gifting-switcher.is-context-hidden { display: none !important; }

.gu-gifting-tab {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #31575e;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gu-gifting-tab:hover {
  border-color: #cae0dc;
  background: #fff;
  color: var(--gu-teal);
  transform: translateY(-1px);
}

.gu-gifting-tab.is-active {
  border-color: var(--gu-brand);
  background: var(--gu-brand);
  color: #fff;
  box-shadow: 0 5px 14px rgba(0, 111, 133, .16);
}

.gu-gifting-tab-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 111, 133, .08);
}

.gu-gifting-tab.is-active .gu-gifting-tab-icon { background: rgba(255,255,255,.18); }
.gu-gifting-tab-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* On these five archives, the new switcher replaces the redundant category chips.
   Brand/rating/price chips still remain visible when used. */
.gu-gifting-archive #gu-active-chips .gu-chip-all,
.gu-gifting-archive #gu-active-chips [data-gu-remove="archive_category"],
.gu-gifting-archive #gu-active-chips [data-gu-remove="subcategory"] {
  display: none !important;
}

@media (max-width: 900px) {
  .gu-gifting-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gu-gifting-switcher {
    display: flex;
    gap: 8px;
    width: calc(100% + 16px);
    margin: 0 -8px 15px;
    padding: 4px 8px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gu-gifting-switcher::-webkit-scrollbar { display: none; }

  .gu-gifting-tab {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 42px;
    padding: 8px 12px;
    border-color: #d7e6e3;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .gu-gifting-tab-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .gu-gifting-tab-icon svg { width: 12px; height: 12px; }

  .gu-gifting-tab.is-active {
    border-color: var(--gu-brand);
    background: var(--gu-brand);
    color: #fff;
  }
}


/* =========================================================
   v1.0.18 — Mobile Filters + Sort compact control row
   ========================================================= */
.gu-mobile-controls { display: none; }
.gu-sort-control-mobile { display: none; }

@media (max-width: 767px) {
  .gu-mobile-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0 0 12px;
  }

  .gu-mobile-controls .gu-mobile-filter-open {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #dbe8e6;
    border-radius: 8px;
    background: #fff;
    color: var(--gu-teal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    box-sizing: border-box;
  }

  .gu-sort-control-mobile {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .gu-sort-control-mobile select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 36px 0 13px;
    border: 1px solid #dbe8e6;
    border-radius: 8px;
    background-position: right 12px center;
    color: var(--gu-teal);
    font-size: 12px;
    font-weight: 500;
    box-sizing: border-box;
  }

  /* Desktop toolbar still owns active chips; its sort is redundant on mobile. */
  .gu-products-toolbar > .gu-sort-control:not(.gu-sort-control-mobile) {
    display: none !important;
  }

  .gu-products-toolbar {
    display: block;
    margin-bottom: 12px;
  }

  #gu-active-chips:empty {
    display: none;
  }

  .gu-gifting-switcher {
    margin-bottom: 12px;
  }
}


/* =========================================================
   v1.0.22 NZ — MOBILE ACTION BOTTOM + GUARANTEED BREATHING SPACE
   ---------------------------------------------------------
   Archive pricing is intentionally untouched.
   Title, rating and price remain in natural flow.
   A flexible spacer absorbs spare height but never becomes
   smaller than 10px, so two-line titles cannot make the
   price touch the action button.
   ========================================================= */
@media (max-width: 767px) {
  #gu-shop .gu-product-grid {
    align-items: stretch !important;
  }

  

  

  

  /* Price remains completely unchanged. */
  

  /*
   * This is the important piece: it expands when a short title leaves
   * spare card height, but always keeps at least 10px between price
   * and action on a full two-line title card.
   */
  

  
}
