/* App-like shell shared by the shop, cart, checkout and account screens. */

.arbo-store-context {
  background: #f2f5f2;
  color: var(--arbo-ink);
}

.arbo-store-context .site-main {
  padding-block: clamp(26px, 4vw, 54px);
}

.arbo-store-context .shop-archive { padding-block: 0; }

.store-header {
  position: sticky;
  z-index: 1200;
  top: 0;
  border-bottom: 1px solid var(--arbo-line);
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 4px 18px rgb(28 67 55 / 6%);
  backdrop-filter: blur(14px);
}

body.admin-bar .store-header { top: 32px; }

.store-header__bar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(220px, 1.2fr) minmax(148px, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  min-height: 76px;
}

.store-header__back {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-self: start;
  color: var(--arbo-green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.store-header__back span:first-child {
  color: var(--arbo-orange);
  font-size: 1.15rem;
}

.store-brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-self: center;
  color: var(--arbo-green-dark);
  font-family: var(--arbo-font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.store-brand img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.store-brand__label { display: none; }

.store-breadcrumbs {
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--arbo-line);
}

.store-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 0;
  color: #65756d;
  font-size: 0.74rem;
  font-weight: 700;
  list-style: none;
}

.store-breadcrumbs li { display: inline-flex; gap: 7px; align-items: center; }
.store-breadcrumbs li + li::before { color: var(--arbo-orange); content: "›"; }
.store-breadcrumbs a { color: var(--arbo-green); text-decoration: none; }
.store-breadcrumbs a:hover,
.store-breadcrumbs a:focus-visible { color: var(--arbo-green-dark); text-decoration: underline; }
.store-breadcrumbs [aria-current="page"] { color: var(--arbo-ink); }

.store-header__nav {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: center;
}

.store-menu-group { position: relative; }

.store-menu-group summary {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 10px 8px;
  color: var(--arbo-green-dark);
  font-size: 0.86rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.store-menu-group summary::-webkit-details-marker { display: none; }
.store-menu-group summary::after { color: var(--arbo-orange); content: "⌄"; font-size: 0.9rem; }
.store-menu-group[open] summary::after { transform: rotate(180deg); }

.store-menu-group__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  width: min(360px, 82vw);
  max-height: min(64vh, 520px);
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--arbo-line);
  background: var(--arbo-white);
  box-shadow: 0 18px 45px rgb(28 67 55 / 16%);
  transform: translateX(-50%);
}

.store-menu-group__panel a {
  padding: 10px 12px;
  color: var(--arbo-green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.store-menu-group__panel a:hover,
.store-menu-group__panel a:focus-visible {
  background: #edf4ef;
  color: var(--arbo-green);
}

.store-header__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.store-cart {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  background: var(--arbo-orange);
  color: var(--arbo-white);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.store-cart:hover,
.store-cart:focus-visible { background: #b84f03; color: var(--arbo-white); }

.store-cart .site-cart__count {
  min-width: 18px;
  height: 18px;
  font-size: 0.66rem;
}

.store-menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--arbo-line);
  place-content: center;
  background: var(--arbo-white);
  color: var(--arbo-green-dark);
  cursor: pointer;
}

.store-menu-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.is-store-menu-open .store-menu-toggle > span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.is-store-menu-open .store-menu-toggle > span:nth-of-type(3) { opacity: 0; }
.is-store-menu-open .store-menu-toggle > span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

.store-drawer {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  border-top: 1px solid var(--arbo-line);
  background: var(--arbo-white);
  box-shadow: 0 22px 45px rgb(28 67 55 / 18%);
}

.store-drawer[hidden] { display: none; }

.store-drawer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 36px;
  padding-block: 28px;
}

.store-drawer__commerce { display: none; }

.store-drawer__site {
  display: grid;
  gap: 6px;
  align-content: start;
}

.store-drawer__site a {
  padding: 9px 0;
  color: var(--arbo-green-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.store-mobile-filters,
.store-filter-sheet,
.store-filter-backdrop { display: none; }

.store-cart-toast {
  position: fixed;
  z-index: 1380;
  right: 24px;
  bottom: 24px;
  display: flex;
  width: min(390px, calc(100% - 48px));
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--arbo-green-dark);
  color: var(--arbo-white);
  box-shadow: 0 16px 42px rgb(15 31 25 / 28%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.store-cart-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.store-cart-toast__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.store-cart-toast strong {
  font-size: 0.82rem;
  line-height: 1.25;
}

.store-cart-toast small {
  overflow: hidden;
  color: rgb(255 255 255 / 76%);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-cart-toast a {
  flex: 0 0 auto;
  margin-left: 14px;
  padding: 8px 11px;
  background: var(--arbo-orange);
  color: var(--arbo-white);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

/* Cart and checkout page shell. */
.arbo-store-context .layout-page {
  width: min(calc(100% - (2 * var(--arbo-gutter))), 1180px);
  max-width: none;
}

.arbo-store-context .entry--page {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.arbo-store-context .entry__page-hero {
  padding: 20px 0 22px;
  background: transparent;
  color: var(--arbo-ink);
}

.arbo-store-context .entry__page-hero .entry__title {
  margin: 0;
  color: var(--arbo-ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.arbo-store-context .entry__page-surface {
  padding: 0;
  background: transparent;
}

.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart_totals,
.woocommerce-cart .cross-sells,
.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .woocommerce-form-coupon,
.woocommerce-checkout .woocommerce-checkout,
.arbo-store-context .wc-block-checkout {
  border: 1px solid var(--arbo-line);
  background: var(--arbo-white);
  box-shadow: 0 10px 30px rgb(28 67 55 / 6%);
}

.woocommerce-cart .woocommerce-cart-form { padding: clamp(16px, 2.4vw, 28px); }

.woocommerce-cart table.shop_table {
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  font-size: 0.88rem;
}

.woocommerce-cart table.shop_table th {
  padding: 11px 10px;
  color: #607068;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.woocommerce-cart table.shop_table td {
  padding: 14px 10px;
  border-top-color: var(--arbo-line);
}

.woocommerce-cart .product-thumbnail img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.woocommerce-cart .product-name a {
  color: var(--arbo-ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.woocommerce-cart .product-remove a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #a43d2f !important;
  font-size: 1.2rem;
}

.woocommerce-cart .quantity .qty {
  width: 64px;
  min-height: 40px;
  padding: 6px;
  border: 1px solid var(--arbo-line);
  font-size: 0.88rem;
}

.woocommerce-cart .coupon {
  display: flex;
  gap: 8px;
}

.woocommerce-cart .coupon .input-text {
  width: min(220px, 100%) !important;
  min-height: 42px;
  padding: 8px 12px !important;
  border: 1px solid var(--arbo-line) !important;
  font-size: 0.82rem;
}

.arbo-store-context .woocommerce button.button,
.arbo-store-context .woocommerce a.button,
.arbo-store-context .wc-block-components-button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--arbo-green);
  border-radius: 0;
  background: var(--arbo-green);
  color: var(--arbo-white);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.arbo-store-context .woocommerce button.button:hover,
.arbo-store-context .woocommerce a.button:hover,
.arbo-store-context .wc-block-components-button:hover {
  border-color: var(--arbo-green-dark);
  background: var(--arbo-green-dark);
  color: var(--arbo-white);
}

.woocommerce-cart .cart-collaterals {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.woocommerce-cart .cart-collaterals::before,
.woocommerce-cart .cart-collaterals::after { display: none; }

.woocommerce-cart .cart_totals {
  order: 1;
  width: 100%;
  padding: clamp(18px, 2.5vw, 28px);
}

.woocommerce-cart .cross-sells {
  order: 2;
  width: 100%;
  padding: clamp(18px, 2.5vw, 28px);
}

.woocommerce-cart .cart_totals h2,
.woocommerce-cart .cross-sells h2,
.woocommerce-checkout h3,
.arbo-store-context .wc-block-components-title,
.arbo-store-context .wc-block-checkout__order-notes .wc-block-components-checkout-step__title {
  margin: 0 0 16px;
  color: var(--arbo-ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.woocommerce-cart .cart_totals table { font-size: 0.84rem; }
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td { padding: 12px 8px; }

.woocommerce-cart .wc-proceed-to-checkout { padding: 14px 0 0; }

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order,
.arbo-store-context .wc-block-components-checkout-place-order-button {
  width: 100%;
  min-height: 48px;
  margin-bottom: 0 !important;
  border-color: var(--arbo-orange);
  background: var(--arbo-orange);
  color: var(--arbo-white);
  font-size: 0.86rem;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #place_order:hover,
.arbo-store-context .wc-block-components-checkout-place-order-button:hover {
  border-color: #b84f03;
  background: #b84f03;
}

.woocommerce-cart .cross-sells ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.woocommerce-cart .cross-sells ul.products::before,
.woocommerce-cart .cross-sells ul.products::after { display: none; }

.woocommerce-cart .cross-sells ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
}

.woocommerce-cart .cross-sells .product-card__content { padding: 14px; }
.woocommerce-cart .cross-sells .product-card__title { font-size: 0.88rem !important; }
.woocommerce-cart .cross-sells .product-card__category { font-size: 0.62rem; }
.woocommerce-cart .cross-sells .product-card__price { font-size: 0.88rem; }

/* Classic and block checkout. */
.woocommerce-checkout .woocommerce-checkout { padding: clamp(18px, 3vw, 34px); }
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { float: none; width: auto; }
.woocommerce-checkout form .form-row label { font-size: 0.76rem; font-weight: 700; }
.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row textarea,
.woocommerce-checkout .select2-container .select2-selection--single {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--arbo-line);
  border-radius: 0;
  font-size: 0.86rem;
}

.arbo-store-context .wc-block-checkout {
  max-width: 1180px;
  padding: clamp(18px, 3vw, 34px);
  font-size: 0.84rem;
}

.arbo-store-context .wc-block-components-checkout-step { margin-bottom: 24px; }
.arbo-store-context .wc-block-components-checkout-step__heading { margin-bottom: 12px; }
.arbo-store-context .wc-block-components-checkout-step__title { font-size: 1.05rem; }
.arbo-store-context .wc-block-components-text-input input,
.arbo-store-context .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  min-height: 46px;
  border-radius: 0;
  font-size: 0.86rem;
}

.arbo-store-context .wc-block-components-order-summary-item__description,
.arbo-store-context .wc-block-components-order-summary-item__individual-prices,
.arbo-store-context .wc-block-components-totals-item { font-size: 0.82rem; }

/* Product detail: denser typography and the same green/orange action language. */
body.single-product .woocommerce-main .layout-container,
.single-product-page .container {
  width: min(calc(100% - (2 * var(--arbo-gutter))), 1180px);
  margin-inline: auto;
}

body.single-product div.product .product_title,
.single-product-page div.product .product_title {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
}

body.single-product div.product p.price,
body.single-product div.product span.price,
.single-product-page div.product p.price,
.single-product-page div.product span.price {
  color: var(--arbo-green);
  font-size: 1.15rem;
  font-weight: 800;
}

body.single-product div.product .woocommerce-product-details__short-description,
.single-product-page div.product .woocommerce-product-details__short-description {
  font-size: 0.92rem;
  line-height: 1.65;
}

body.single-product div.product form.cart .quantity .qty,
.single-product-page div.product form.cart .quantity .qty {
  min-height: 44px;
  border: 1px solid var(--arbo-line);
  font-size: 0.86rem;
}

body.single-product div.product form.cart .button,
body.single-product button.single_add_to_cart_button,
.arbo-store-context .woocommerce div.product form.cart .button,
.arbo-store-context .woocommerce button.single_add_to_cart_button {
  min-height: 44px !important;
  border: 1px solid var(--arbo-green) !important;
  border-radius: 0 !important;
  background: var(--arbo-green) !important;
  color: var(--arbo-white) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

body.single-product div.product form.cart .button:hover,
body.single-product button.single_add_to_cart_button:hover,
.arbo-store-context .woocommerce div.product form.cart .button:hover,
.arbo-store-context .woocommerce button.single_add_to_cart_button:hover {
  border-color: var(--arbo-green-dark) !important;
  background: var(--arbo-green-dark) !important;
}

body.single-product div.product .product_meta,
body.single-product div.product .woocommerce-tabs,
.single-product-page div.product .product_meta,
.single-product-page div.product .woocommerce-tabs {
  font-size: 0.8rem;
}

body.single-product div.product .woocommerce-tabs h2,
.single-product-page div.product .woocommerce-tabs h2 { font-size: 1.25rem; }

/* Keep recommendation cards subordinate to the main product content. */
body.single-product .related.products > h2,
body.single-product .upsells.products > h2,
.single-product-page .related.products > h2,
.single-product-page .upsells.products > h2 {
  margin-bottom: 24px;
  font-size: 1.65rem;
  line-height: 1.2;
}

body.single-product .related.products .product-card__title,
body.single-product .upsells.products .product-card__title,
.single-product-page .related.products .product-card__title,
.single-product-page .upsells.products .product-card__title {
  margin-bottom: 10px;
  font-size: 1rem !important;
  line-height: 1.35;
}

body.single-product .related.products .product-card__category,
body.single-product .upsells.products .product-card__category,
.single-product-page .related.products .product-card__category,
.single-product-page .upsells.products .product-card__category { font-size: 0.64rem; }

body.single-product .related.products .product-card__price,
body.single-product .upsells.products .product-card__price,
.single-product-page .related.products .product-card__price,
.single-product-page .upsells.products .product-card__price { font-size: 0.9rem; }

body.single-product .related.products .button--ghost,
body.single-product .upsells.products .button--ghost,
.single-product-page .related.products .button--ghost,
.single-product-page .upsells.products .button--ghost {
  display: inline-flex;
  width: 100%;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  margin: 0 !important;
  padding: 8px 10px;
  border: 1px solid var(--arbo-green) !important;
  border-radius: 0 !important;
  background: var(--arbo-green) !important;
  color: var(--arbo-white) !important;
  font-size: 0.74rem;
}

body.single-product .related.products .button--ghost:hover,
body.single-product .related.products .button--ghost:focus-visible,
body.single-product .upsells.products .button--ghost:hover,
body.single-product .upsells.products .button--ghost:focus-visible,
.single-product-page .related.products .button--ghost:hover,
.single-product-page .related.products .button--ghost:focus-visible,
.single-product-page .upsells.products .button--ghost:hover,
.single-product-page .upsells.products .button--ghost:focus-visible {
  border-color: var(--arbo-green-dark) !important;
  background: var(--arbo-green-dark) !important;
  color: var(--arbo-white) !important;
}

/* Product archive density on mobile. */
@media (max-width: 959px) {
  .store-header { backdrop-filter: none; }
  body.admin-bar .store-header { top: 46px; }

  .store-header--has-filters {
    position: relative;
    top: auto !important;
  }

  body.has-store-mobile-toolbar {
    padding-bottom: calc(54px + env(safe-area-inset-bottom));
  }

  /* The sticky category/series controls replace the duplicated filter block. */
  .shop-categories {
    display: none;
  }

  .store-header__bar {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    min-height: 66px;
  }

  .store-header__nav { display: none; }
  .store-brand img { height: 50px; }
  .store-brand__label {
    display: inline-block;
    color: var(--arbo-green-dark);
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.04em;
  }

  .store-header__actions { gap: 7px; }
  .store-header__actions .arbo-language-switcher .gt_switcher-popup {
    min-width: 42px;
    min-height: 40px;
    padding: 6px !important;
  }

  .store-header__actions .arbo-language-switcher .gt_switcher-popup > img {
    width: 22px !important;
  }

  .store-header__actions .arbo-language-switcher .gt_selector {
    width: 76px !important;
    max-width: 76px;
    min-height: 40px;
    padding: 7px 20px 7px 7px !important;
    font-size: 0.65rem !important;
  }
  .store-cart { min-height: 40px; padding: 8px 9px; }
  .store-cart__label { display: none; }
  .store-menu-toggle { width: 40px; height: 40px; }

  .store-drawer { max-height: calc(100vh - 66px); }
  .store-drawer__inner { display: block; padding-block: 16px 24px; }
  .store-drawer__commerce { display: grid; }

  .store-drawer__commerce details { border-bottom: 1px solid var(--arbo-line); }
  .store-drawer__commerce summary {
    padding: 14px 0;
    color: var(--arbo-green-dark);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
  }

  .store-drawer__commerce details > div {
    display: grid;
    padding: 0 0 12px 12px;
  }

  .store-drawer__commerce a,
  .store-drawer__site a {
    padding: 8px 0;
    color: var(--arbo-green-dark);
    font-size: 0.82rem;
    text-decoration: none;
  }

  .store-drawer__site {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
  }

  .store-header--has-filters .store-drawer__commerce { display: none; }

  .store-mobile-filters {
    position: fixed;
    z-index: 1350;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 50px;
    min-height: 54px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--arbo-line);
    background: var(--arbo-white);
    box-shadow: 0 -10px 28px rgb(15 31 25 / 14%);
  }

  .store-cart-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }

  body.has-store-mobile-toolbar .store-cart-toast {
    bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .store-mobile-filters > button,
  .store-mobile-filters > a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 54px;
    padding: 8px 12px;
    border: 0;
    border-right: 1px solid var(--arbo-line);
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    background: transparent;
    color: var(--arbo-green-dark);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .store-mobile-filters > button::after {
    position: absolute;
    align-self: flex-end;
    color: var(--arbo-orange);
    content: "⌄";
  }

  .store-mobile-filters small {
    color: #6b7c74;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .store-mobile-filters button > span {
    display: block;
    width: calc(100% - 18px);
    overflow: hidden;
    font-size: 0.74rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .store-mobile-filters > a {
    position: relative;
    align-items: center;
    border-right: 0;
  }

  .store-mobile-filters > a .site-cart__count {
    position: absolute;
    top: 7px;
    right: 7px;
  }

  .store-filter-backdrop {
    position: fixed;
    z-index: 1390;
    inset: 0;
    display: block;
    background: rgb(15 31 25 / 48%);
  }

  .store-filter-backdrop[hidden],
  .store-filter-sheet[hidden] { display: none; }

  .store-filter-sheet {
    position: fixed;
    z-index: 1400;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    max-height: min(72vh, 620px);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    border-top: 3px solid var(--arbo-green);
    background: var(--arbo-white);
    box-shadow: 0 -18px 48px rgb(15 31 25 / 24%);
  }

  .store-filter-sheet__header {
    display: flex;
    padding: 15px 18px 12px;
    align-items: center;
    justify-content: space-between;
  }

  .store-filter-sheet__header small {
    color: var(--arbo-orange-dark, #a94712);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .store-filter-sheet__header h2 { margin: 2px 0 0; font-size: 1rem; }

  .store-filter-sheet__header > button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--arbo-line);
    background: var(--arbo-white);
    color: var(--arbo-green-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
  }

  .store-filter-sheet__tabs {
    display: grid;
    padding: 0 18px;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--arbo-line);
  }

  .store-filter-sheet__tabs button {
    padding: 11px 8px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #617068;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
  }

  .store-filter-sheet__tabs button.is-active {
    border-bottom-color: var(--arbo-orange);
    color: var(--arbo-green-dark);
  }

  .store-filter-sheet__body {
    min-height: 0;
    padding: 10px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .store-filter-sheet__body [role="tabpanel"] { display: grid; gap: 6px; }
  .store-filter-sheet__body [role="tabpanel"][hidden] { display: none; }

  .store-filter-sheet .store-filter-option {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid var(--arbo-line);
    align-items: center;
    justify-content: space-between;
    background: var(--arbo-white);
    color: var(--arbo-green-dark);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
  }

  .store-filter-sheet .store-filter-option:hover,
  .store-filter-sheet .store-filter-option:focus-visible {
    border-color: var(--arbo-green-dark);
    background: #f5f8f6;
    color: var(--arbo-green-dark);
  }

  .store-filter-option small {
    min-width: 24px;
    padding: 3px 6px;
    background: #edf4ef;
    color: var(--arbo-green-dark);
    font-size: 0.64rem;
    text-align: center;
  }

  .store-filter-sheet .store-filter-option.is-active,
  .store-filter-sheet .store-filter-option.is-active:hover,
  .store-filter-sheet .store-filter-option.is-active:focus-visible {
    border-color: var(--arbo-green-dark);
    background: #edf4ef;
    box-shadow: inset 4px 0 0 var(--arbo-green-dark);
    color: var(--arbo-green-dark);
  }

  .store-filter-option.is-active::before {
    margin-right: 8px;
    color: var(--arbo-green-dark);
    content: "✓";
  }

  .store-filter-option.is-active small {
    margin-left: auto;
    background: var(--arbo-white);
    color: var(--arbo-green-dark);
  }

  .store-filter-sheet__footer {
    display: grid;
    gap: 9px;
    padding: 12px 18px max(14px, env(safe-area-inset-bottom));
    grid-template-columns: auto minmax(0, 1fr);
    border-top: 1px solid var(--arbo-line);
    background: var(--arbo-white);
  }

  .store-filter-sheet__footer button {
    min-height: 46px;
    padding: 10px 16px;
    border: 0;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
  }

  .store-filter-sheet__footer .store-filter-clear,
  .store-filter-sheet__footer .store-filter-clear:hover,
  .store-filter-sheet__footer .store-filter-clear:focus-visible {
    border-color: var(--arbo-green-dark);
    background: var(--arbo-green-dark);
    color: var(--arbo-white);
  }

  .store-filter-sheet__footer .store-filter-apply,
  .store-filter-sheet__footer .store-filter-apply:hover,
  .store-filter-sheet__footer .store-filter-apply:focus-visible {
    border-color: var(--arbo-orange);
    background: var(--arbo-orange);
    color: var(--arbo-white);
  }
  .has-store-filter-open { overflow: hidden; }

  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 600px) {
  .store-header__bar {
    width: calc(100% - 28px);
    margin-inline: 14px;
  }

  .store-header__back { gap: 5px; font-size: 0.7rem; }
  .store-header__back span:first-child { font-size: 1rem; }
  .store-brand img { height: 48px; }
  .store-brand { gap: 5px; }
  .store-brand__label { font-size: 0.64rem; }
  .store-cart svg { width: 18px; height: 18px; }

  .store-breadcrumbs { margin-bottom: 14px; padding-bottom: 11px; }
  .store-breadcrumbs ol { gap: 5px; font-size: 0.67rem; }
  .store-breadcrumbs li { gap: 5px; }

  .arbo-store-context .site-main { padding-block: 16px 30px; }
  .arbo-store-context .shop-archive { padding-block: 0; }
  .arbo-store-context .layout-page { width: calc(100% - 28px); margin-inline: 14px; }
  .arbo-store-context .entry__page-hero { padding: 10px 0 14px; }
  .arbo-store-context .entry__page-hero .entry__title { font-size: 1.45rem; }

  .woocommerce-cart .woocommerce-cart-form { padding: 12px; }

  .woocommerce-cart table.shop_table_responsive tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 8px 0;
    border-bottom: 1px solid var(--arbo-line);
  }

  .woocommerce-cart table.shop_table_responsive tr:last-child { border-bottom: 0; }
  .woocommerce-cart table.shop_table_responsive tr td {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 9px 6px;
    border: 0;
    font-size: 0.78rem;
    text-align: right !important;
  }

  .woocommerce-cart table.shop_table_responsive tr td.product-remove {
    grid-column: 2;
    grid-row: 1;
  }

  .woocommerce-cart table.shop_table_responsive tr td.product-name {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-right: 38px;
    text-align: left !important;
  }

  .woocommerce-cart table.shop_table_responsive tr td.product-name::before { display: none; }
  .woocommerce-cart .product-name a { font-size: 0.82rem; }
  .woocommerce-cart table.shop_table_responsive tr td.product-price,
  .woocommerce-cart table.shop_table_responsive tr td.product-quantity,
  .woocommerce-cart table.shop_table_responsive tr td.product-subtotal { grid-column: 1 / -1; }

  .woocommerce-cart table.shop_table_responsive tr td.actions {
    display: grid;
    grid-column: 1 / -1;
    gap: 8px;
    padding-top: 12px;
  }

  .woocommerce-cart .coupon { display: grid; grid-template-columns: 1fr auto; }
  .woocommerce-cart .coupon .input-text {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
  }
  .woocommerce-cart .coupon button.button {
    grid-column: 2;
    grid-row: 1;
    min-width: 124px;
    white-space: nowrap;
  }
  .woocommerce-cart .actions > button.button { width: 100%; }

  .woocommerce-cart .cart-collaterals { gap: 16px; margin-top: 16px; }
  .woocommerce-cart .cart_totals,
  .woocommerce-cart .cross-sells { padding: 16px; }

  .woocommerce-cart .cart_totals h2,
  .woocommerce-cart .cross-sells h2,
  .woocommerce-checkout h3,
  .arbo-store-context .wc-block-components-title { font-size: 1.02rem; }

  .woocommerce-cart .cart_totals table,
  .woocommerce-cart .cart_totals p { font-size: 0.76rem; }

  .woocommerce-cart .cart_totals tr.shipping td {
    display: block !important;
    text-align: left !important;
  }

  .woocommerce-cart .cart_totals tr.shipping td::before {
    display: block;
    float: none;
    margin-bottom: 10px;
  }

  .woocommerce-cart .woocommerce-shipping-methods li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: start;
    margin-bottom: 9px;
    text-align: left;
  }

  .woocommerce-cart .woocommerce-shipping-methods li input { margin: 3px 0 0; }
  .woocommerce-cart .woocommerce-shipping-methods li label { line-height: 1.4; }

  .woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .woocommerce-cart .cross-sells .product-card__content { padding: 10px; }
  .woocommerce-cart .cross-sells .product-card__title { font-size: 0.76rem !important; }
  .woocommerce-cart .cross-sells .product-card__category { font-size: 0.54rem; }
  .woocommerce-cart .cross-sells .product-card__price { font-size: 0.76rem; margin-bottom: 10px; }
  .woocommerce-cart .cross-sells .button--ghost { min-height: 36px; padding: 7px 9px; font-size: 0.68rem; }

  .arbo-store-context .wc-block-checkout,
  .woocommerce-checkout .woocommerce-checkout { padding: 14px; }

  body.single-product .woocommerce-main .layout-container,
  .single-product-page .container {
    width: calc(100% - 28px);
    margin-inline: 14px;
  }

  body.single-product div.product .product_title,
  .single-product-page div.product .product_title {
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 1.55rem;
    line-height: 1.18;
  }

  body.single-product div.product p.price,
  body.single-product div.product span.price,
  .single-product-page div.product p.price,
  .single-product-page div.product span.price { font-size: 1rem; }
  body.single-product div.product .woocommerce-product-details__short-description,
  .single-product-page div.product .woocommerce-product-details__short-description { font-size: 0.82rem; }
  body.single-product div.product form.cart,
  .single-product-page div.product form.cart { display: flex; gap: 8px; }
  body.single-product div.product form.cart .quantity,
  .single-product-page div.product form.cart .quantity { margin: 0; }
  body.single-product div.product form.cart .button,
  .single-product-page div.product form.cart .button { flex: 1; }
  body.single-product div.product .woocommerce-tabs ul.tabs li a,
  .single-product-page div.product .woocommerce-tabs ul.tabs li a { font-size: 0.72rem; }

  body.single-product .related.products > h2,
  body.single-product .upsells.products > h2,
  .single-product-page .related.products > h2,
  .single-product-page .upsells.products > h2 {
    margin-bottom: 16px;
    font-size: 1.3rem;
  }

  body.single-product .related.products .product-card__title,
  body.single-product .upsells.products .product-card__title,
  .single-product-page .related.products .product-card__title,
  .single-product-page .upsells.products .product-card__title {
    margin-bottom: 8px;
    font-size: 0.8rem !important;
    line-height: 1.35;
  }

  body.single-product .related.products .product-card__category,
  body.single-product .upsells.products .product-card__category,
  .single-product-page .related.products .product-card__category,
  .single-product-page .upsells.products .product-card__category { font-size: 0.54rem; }

  body.single-product .related.products .product-card__price,
  body.single-product .upsells.products .product-card__price,
  .single-product-page .related.products .product-card__price,
  .single-product-page .upsells.products .product-card__price { font-size: 0.76rem; }

  body.single-product .related.products .button--ghost,
  body.single-product .upsells.products .button--ghost,
  .single-product-page .related.products .button--ghost,
  .single-product-page .upsells.products .button--ghost {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.66rem;
  }

  .shop-hero h1 { font-size: clamp(2rem, 10.5vw, 2.8rem); }
  .shop-section-heading h2,
  .shop-products__heading h2 { font-size: 1.45rem; }
  .shop-section-heading > p,
  .shop-toolbar { font-size: 0.78rem; }
  .product-card__category { font-size: 0.62rem; }
  .products-grid ul.products li.product.product-card .product-card__title { font-size: 0.96rem; }
  .product-card__price { font-size: 0.92rem; }
  .product-card__content .button--ghost { min-height: 38px; font-size: 0.74rem; }
}

@media (prefers-reduced-motion: reduce) {
  .store-menu-toggle > span:not(.screen-reader-text) { transition: none; }
}

/* Match the shop archive typography to the native Articles page. */
body.woocommerce-shop {
  --arbo-shop-type-small: 13px;
  --arbo-shop-type-body: 16px;
  --arbo-shop-type-card: 20px;
  --arbo-shop-type-section: 36px;
  --arbo-shop-type-hero: 48px;
}

body.woocommerce-shop .shop-hero h1 {
  font-size: var(--arbo-shop-type-hero);
  line-height: 1.12;
}

body.woocommerce-shop .shop-hero__description {
  font-size: 20px;
  line-height: 1.6;
}

body.woocommerce-shop .shop-featured__header h2,
body.woocommerce-shop .shop-section-heading h2,
body.woocommerce-shop .shop-products__heading h2,
body.woocommerce-shop .shop-category-previews__intro h2 {
  font-size: var(--arbo-shop-type-section);
  line-height: 1.18;
}

body.woocommerce-shop .shop-category-preview__header h3,
body.woocommerce-shop .products-grid ul.products li.product.product-card .product-card__title {
  font-size: var(--arbo-shop-type-card);
  line-height: 1.35;
}

body.woocommerce-shop .shop-hero__description,
body.woocommerce-shop .shop-section-heading > p,
body.woocommerce-shop .shop-category-previews__intro > p:last-child,
body.woocommerce-shop .shop-category-preview__header h3 + p {
  font-size: var(--arbo-shop-type-body);
}

body.woocommerce-shop .shop-eyebrow,
body.woocommerce-shop .shop-category-preview__count {
  font-size: var(--arbo-shop-type-small);
}

@media (max-width: 700px) {
  body.woocommerce-shop {
    --arbo-shop-type-small: 13px;
    --arbo-shop-type-body: 15px;
    --arbo-shop-type-card: 18px;
    --arbo-shop-type-section: 28px;
    --arbo-shop-type-hero: 32px;
  }

  body.woocommerce-shop .shop-hero__description {
    font-size: 16px;
    line-height: 1.55;
  }
}
