/* Mobile-first WooCommerce catalogue. */

.shop-archive { background: var(--arbo-mist); }

.shop-hero {
  padding: 190px 0 82px;
  background: radial-gradient(circle at 85% 15%, rgb(255 255 255 / 14%), transparent 34%), linear-gradient(135deg, var(--arbo-green-dark), var(--arbo-green));
  color: var(--arbo-white);
}

.shop-hero__inner {
  max-width: 920px;
  margin-left: max(var(--arbo-gutter), calc((100% - var(--arbo-wide)) / 2));
}

.shop-eyebrow {
  margin: 0 0 12px;
  color: var(--arbo-orange);
  font-family: var(--arbo-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.shop-hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--arbo-white);
  font-size: clamp(2.55rem, 6.2vw, 5rem);
}

.shop-hero__description {
  max-width: 680px;
  color: rgb(255 255 255 / 82%);
  font-size: 1.08rem;
}

.shop-hero__description > :last-child { margin-bottom: 0; }

.shop-hero__jump {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 10px 18px;
  border: 1px solid rgb(255 255 255 / 42%);
  color: var(--arbo-white);
  font-weight: 700;
  text-decoration: none;
}

.shop-hero__jump:hover,
.shop-hero__jump:focus-visible {
  border-color: var(--arbo-white);
  background: var(--arbo-white);
  color: var(--arbo-green-dark);
}

.shop-hero__jump span { font-size: 1.3em; }

.shop-categories,
.shop-products { padding-block: clamp(54px, 7vw, 88px); }

.shop-categories { background: var(--arbo-white); }

.shop-featured {
  padding-block: clamp(52px, 6vw, 78px);
  border-bottom: 1px solid var(--arbo-line);
  background: var(--arbo-white);
}

.shop-featured__header {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.shop-featured__header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

.shop-featured__controls { display: flex; gap: 8px; }

.shop-featured__controls button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--arbo-green);
  place-items: center;
  background: var(--arbo-white);
  color: var(--arbo-green);
  font-size: 1.1rem;
  cursor: pointer;
}

.shop-featured__controls button:hover,
.shop-featured__controls button:focus-visible {
  background: var(--arbo-green);
  color: var(--arbo-white);
}

.shop-featured__viewport { overflow: hidden; }

.shop-featured__viewport.products-grid ul.products {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 0;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.shop-featured__viewport.products-grid ul.products::-webkit-scrollbar { display: none; }

.shop-featured__viewport.products-grid ul.products li.product.product-card {
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
}

.shop-overview-shell {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(64px, 8vw, 100px);
}

.shop-overview-shell > .shop-categories,
.shop-overview-shell > .shop-category-previews {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.shop-overview-shell > .shop-categories {
  position: sticky;
  z-index: 3;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--arbo-green) #e4ebe6;
  scrollbar-width: thin;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--arbo-line);
  background: var(--arbo-white);
  box-shadow: 0 10px 30px rgb(28 67 55 / 6%);
}

.shop-overview-shell > .shop-categories > .layout-container,
.shop-overview-shell > .shop-category-previews > .layout-container {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.shop-category-preview,
.shop-category-preview__grid { min-width: 0; }

.shop-category-preview__grid { max-width: 100%; overflow: hidden; }

.shop-overview-shell .shop-section-heading { display: block; margin-bottom: 18px; }
.shop-overview-shell .shop-section-heading h2 { font-size: 1.35rem; }
.shop-overview-shell .shop-section-heading > p { margin-top: 10px; font-size: 0.75rem; }
.shop-overview-shell .shop-category-list { grid-template-columns: 1fr; gap: 7px; }
.shop-overview-shell .shop-category-link { min-height: 48px; padding: 10px 11px; font-size: 0.8rem; }
.shop-overview-shell .shop-category-link small { min-width: 24px; height: 24px; font-size: 0.68rem; }
.shop-overview-shell .shop-filter-group + .shop-filter-group {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--arbo-line);
}
.shop-overview-shell .shop-filter-group h3 {
  margin: 0 0 12px;
  color: var(--arbo-green-dark);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shop-filter-reset {
  display: inline-flex;
  margin-top: 22px;
  color: var(--arbo-orange-dark, #a94712);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.shop-filter-reset:hover,
.shop-filter-reset:focus-visible { color: var(--arbo-green-dark); }
.shop-overview-shell .shop-category-previews__intro { margin-bottom: 44px; }
.shop-overview-shell .shop-category-preview__grid.products-grid ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.shop-section-heading,
.shop-products__heading {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.shop-section-heading h2,
.shop-products__heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.shop-section-heading > p {
  max-width: 420px;
  margin-bottom: 4px;
  color: #5d6762;
  font-size: 0.95rem;
}

.shop-category-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.shop-category-link {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid var(--arbo-line);
  background: #f8faf8;
  color: var(--arbo-green-dark);
  font-family: var(--arbo-font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.shop-category-link:hover,
.shop-category-link:focus-visible {
  border-color: var(--arbo-green);
  color: var(--arbo-green);
  transform: translateY(-2px);
}

.shop-category-link small {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgb(19 102 72 / 10%);
  font-size: 0.75rem;
}

.shop-category-link.is-active {
  border-color: var(--arbo-green-dark);
  background: var(--arbo-green-dark);
  color: var(--arbo-white);
  box-shadow: 0 10px 24px rgb(28 67 55 / 20%);
}

.shop-category-link.is-active::before {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--arbo-orange);
  color: var(--arbo-white);
  content: "✓";
  font-size: 0.76rem;
}

.shop-category-link.is-active small { background: rgb(255 255 255 / 16%); }

.shop-products,
.shop-category-previews { scroll-margin-top: 96px; }

.shop-category-previews {
  padding-block: clamp(54px, 7vw, 88px);
  scroll-margin-top: 90px;
  background: var(--arbo-mist);
}

.shop-category-previews__intro {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.shop-category-previews__intro h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.shop-category-previews__intro > p:last-child {
  max-width: 660px;
  margin: 0;
  color: #5d6762;
}

.shop-filter-results__intro { margin-bottom: 32px; }

.shop-filter-results.products-grid ul.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.shop-filter-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}

.shop-filter-pagination .page-numbers {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  place-items: center;
  border: 1px solid var(--arbo-line);
  background: var(--arbo-white);
  color: var(--arbo-green-dark);
  font-weight: 700;
  text-decoration: none;
}

.shop-filter-pagination .page-numbers.current {
  border-color: var(--arbo-green-dark);
  background: var(--arbo-green-dark);
  color: var(--arbo-white);
}

.shop-filter-empty {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--arbo-line);
  background: var(--arbo-white);
}

.shop-filter-empty h3 { margin-bottom: 10px; }
.shop-filter-empty p { margin-bottom: 22px; color: #5d6762; }

.shop-category-preview {
  padding-block: clamp(34px, 5vw, 58px);
  border-top: 1px solid rgb(19 102 72 / 25%);
}

.shop-category-preview:first-of-type { border-top-color: var(--arbo-green); }

.shop-category-preview__header {
  display: flex;
  gap: 30px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.shop-category-preview__header > div { max-width: 720px; }

.shop-category-preview__count {
  margin: 0 0 7px;
  color: var(--arbo-orange);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shop-category-preview__header h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.shop-category-preview__header h3 + p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #5d6762;
  font-size: 0.88rem;
}

.shop-category-preview__header > a {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--arbo-green);
  color: var(--arbo-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.shop-category-preview__header > a:hover,
.shop-category-preview__header > a:focus-visible {
  background: var(--arbo-green);
  color: var(--arbo-white);
}

.shop-category-preview__grid.products-grid ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.shop-category-preview__grid .product-card__content { padding: 16px 16px 0; }
.shop-category-preview__grid .product-card__category { font-size: 0.64rem; }
.shop-category-preview__grid ul.products li.product.product-card .product-card__title { font-size: 1rem; }
.shop-category-preview__grid .product-card__price { font-size: 0.92rem; }
.shop-category-preview__grid .product-card__content .button--ghost {
  width: calc(100% + 32px);
  min-height: 38px;
  margin-inline: -16px !important;
  font-size: 0.74rem;
}

.shop-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.9rem;
}

.shop-toolbar::after { display: table; clear: both; content: ""; }

.shop-toolbar .woocommerce-result-count,
.shop-toolbar .woocommerce-ordering { float: none; margin: 0; }

.shop-toolbar select {
  min-height: 46px;
  padding: 8px 42px 8px 14px;
  border: 1px solid var(--arbo-line);
  border-radius: 0;
  background-color: var(--arbo-white);
  color: var(--arbo-ink);
}

.products-grid ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
}

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

.products-grid ul.products li.product.product-card {
  display: flex;
  float: none;
  flex-direction: column;
  width: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--arbo-line);
  background: var(--arbo-white);
  box-shadow: 0 8px 24px rgb(28 67 55 / 6%);
}

.product-card__image {
  display: block;
  overflow: hidden;
  background: #f7f8f6;
}

.products-grid ul.products li.product.product-card .product-card__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  object-fit: contain;
  transition: transform 220ms ease;
}

.product-card__image:hover img { transform: scale(1.025); }

.product-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 20px 0;
}

.product-card__category {
  margin-bottom: 9px;
  color: var(--arbo-green);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.product-card__category a { color: inherit; text-decoration: none; }

.products-grid ul.products li.product.product-card .product-card__title {
  margin: 0 0 14px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.3;
}

.product-card__title a { color: var(--arbo-ink); text-decoration: none; }
.product-card__title a:hover { color: var(--arbo-green); }

.product-card__price {
  margin: auto 0 18px;
  color: var(--arbo-green-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.products-grid ul.products li.product.product-card .price { color: inherit; }

.product-card__content .button--ghost {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
  width: calc(100% + 40px);
  margin: 0 -20px !important;
  padding: 9px 14px;
  border: 1px solid var(--arbo-green);
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: var(--arbo-green);
  font-size: 0.9rem;
  text-decoration: none;
}

.product-card__content .button--ghost:hover,
.product-card__content .button--ghost:focus-visible { background: var(--arbo-green); color: var(--arbo-white); }

.arbo-store-context .products-grid .product-card__content .button--ghost {
  border-color: var(--arbo-green);
  background: var(--arbo-green) !important;
  color: var(--arbo-white) !important;
}

.arbo-store-context .products-grid .product-card__content .button--ghost:hover,
.arbo-store-context .products-grid .product-card__content .button--ghost:focus-visible {
  border-color: var(--arbo-green-dark);
  background: var(--arbo-green-dark) !important;
}

.shop-products .woocommerce-info {
  border-top-color: var(--arbo-green);
  background: var(--arbo-white);
}

.shop-products .woocommerce-info::before { color: var(--arbo-green); }

.shop-products .page-numbers {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0;
  border: 0;
}

.shop-products .page-numbers li { border: 0; }

.shop-products .page-numbers a,
.shop-products .page-numbers span {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--arbo-line);
  background: var(--arbo-white);
}

.shop-products .page-numbers .current {
  border-color: var(--arbo-green-dark);
  background: var(--arbo-green-dark);
  color: var(--arbo-white);
}

@media (max-width: 959px) {
  .shop-category-list,
  .products-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .shop-products__heading { align-items: flex-start; }
  .shop-toolbar { align-items: flex-end; flex-direction: column; }

  .shop-category-preview__grid.products-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .shop-featured__viewport.products-grid ul.products li.product.product-card { flex-basis: calc((100% - 20px) / 2); }

  .shop-overview-shell {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .shop-overview-shell > .shop-categories { position: static; max-height: none; overflow: visible; }

  .shop-filter-results.products-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .shop-category-previews { scroll-margin-top: 138px; }
}

@media (max-width: 600px) {
  .shop-hero { padding: 132px 0 58px; }

  .shop-hero__inner,
  .shop-categories .layout-container,
  .shop-products .layout-container {
    width: calc(100% - 48px);
    margin-inline: 24px;
  }

  .shop-hero h1 { font-size: clamp(2.25rem, 12vw, 3.25rem); }

  .shop-hero__jump {
    width: 100%;
    justify-content: space-between;
  }

  .shop-categories,
  .shop-products,
  .shop-category-previews { padding-block: 48px; }

  .shop-featured { padding-block: 42px; }
  .shop-featured .layout-container { width: calc(100% - 28px); margin-inline: 14px; }
  .shop-featured__header h2 { font-size: 1.45rem; }
  .shop-featured__controls button { width: 38px; height: 38px; }
  .shop-featured__viewport.products-grid ul.products li.product.product-card { flex-basis: 76%; }

  .shop-overview-shell {
    width: calc(100% - 28px);
    margin-inline: 14px;
    padding-block: 44px;
  }

  .shop-overview-shell > .shop-categories { padding: 16px; }

  .shop-section-heading,
  .shop-products__heading { display: block; margin-bottom: 24px; }

  .shop-section-heading > p { margin-top: 14px; }

  .shop-category-list { grid-template-columns: 1fr; gap: 9px; }
  .shop-category-link { min-height: 56px; }
  .shop-category-link.is-active { order: -1; }

  .shop-overview-shell .shop-filter-group .shop-category-list {
    display: flex;
    width: calc(100% + 32px);
    gap: 8px;
    margin-inline: -16px;
    padding: 0 16px 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .shop-overview-shell .shop-filter-group .shop-category-list::-webkit-scrollbar { display: none; }

  .shop-overview-shell .shop-filter-group .shop-category-link {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 11px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .shop-overview-shell .shop-filter-group .shop-category-link.is-active { order: 0; }

  .shop-filter-results.products-grid ul.products { grid-template-columns: 1fr; }

  .shop-toolbar { align-items: stretch; margin-top: 20px; }
  .shop-toolbar .woocommerce-result-count { margin: 0; }
  .shop-toolbar .woocommerce-ordering,
  .shop-toolbar select { width: 100%; }

  .products-grid ul.products { grid-template-columns: 1fr; gap: 20px; }

  .shop-category-previews .layout-container {
    width: calc(100% - 28px);
    margin-inline: 14px;
  }

  .shop-category-previews__intro { margin-bottom: 34px; }
  .shop-category-previews__intro h2 { font-size: 1.55rem; }
  .shop-category-previews__intro > p:last-child { font-size: 0.8rem; }

  .shop-category-preview { padding-block: 32px; }
  .shop-category-preview__header { display: block; margin-bottom: 18px; }
  .shop-category-preview__header h3 { font-size: 1.3rem; }
  .shop-category-preview__header h3 + p { font-size: 0.76rem; }
  .shop-category-preview__header > a {
    width: 100%;
    justify-content: space-between;
    margin-top: 14px;
  }

  .shop-category-preview__grid.products-grid ul.products {
    display: flex !important;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding: 0 1px 4px 0;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 0;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .shop-category-preview__grid.products-grid ul.products::-webkit-scrollbar { display: none; }

  .shop-category-preview__grid.products-grid ul.products li.product.product-card {
    display: flex;
    width: 84% !important;
    min-width: 0;
    flex: 0 0 84%;
    margin: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .shop-category-preview__grid .product-card__content { padding: 10px 10px 0; }
  .shop-category-preview__grid .product-card__category { font-size: 0.6rem; }
  .shop-category-preview__grid ul.products li.product.product-card .product-card__title { font-size: 0.94rem; }
  .shop-category-preview__grid .product-card__price { margin-bottom: 12px; font-size: 0.86rem; }
  .shop-category-preview__grid .product-card__content .button--ghost {
    width: calc(100% + 20px);
    min-height: 40px;
    margin-inline: -10px !important;
    padding: 7px 8px;
    font-size: 0.72rem;
  }

  .products-grid ul.products li.product.product-card .product-card__image img { aspect-ratio: 4 / 3; }
  .product-card__content { padding: 20px 20px 0; }

  .product-card__content .button--ghost {
    width: calc(100% + 40px);
    justify-content: space-between;
  }
}
