/* Late WooCommerce/page polish for reference-style shop and product views. */

.charity-items-page .charity-hero h1 {
  font-family: var(--sh-body-font);
  font-size: clamp(26px, 2.9vw, 34px);
  line-height: 1.2;
}

.charity-items-page .charity-hero h1 .emoji {
  width: 1em;
  height: 1em;
  vertical-align: -.12em;
}

.charity-items-page .product-filter-row {
  align-items: center;
  color: var(--sh-deep);
  font-size: 12px;
}

.charity-items-page .charity-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 58px 44px;
  padding-top: 16px;
  padding-bottom: 82px;
}

.charity-items-page .charity-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.charity-items-page .charity-product-card__image {
  width: min(100%, 352px);
  border: 1px solid #3f3d3a;
}

.charity-items-page .charity-product-card img {
  display: block;
  aspect-ratio: 1 / 1;
}

.charity-items-page .charity-product-card h2 {
  max-width: 330px;
  margin: 20px auto 14px;
  color: var(--sh-deep);
  font-family: var(--sh-body-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.28;
}

.charity-items-page .charity-product-card h2 a {
  color: inherit;
}

.charity-items-page .charity-product-card p {
  max-width: 330px;
  min-height: 144px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.58;
}

.charity-items-page .charity-product-card__button {
  margin-top: auto;
  min-width: 118px;
  min-height: 44px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(36, 33, 29, .28);
  color: var(--sh-deep);
}

.charity-items-page .charity-product-card__button:hover {
  background: var(--sh-yellow);
}

.strayhelp-woocommerce-single .strayhelp-product-breadcrumbs {
  display: none;
}

.strayhelp-woocommerce-single .strayhelp-woocommerce-content {
  padding-top: 24px;
}

.strayhelp-woocommerce-single div.product .summary {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
}

.strayhelp-woocommerce-single div.product .product_title {
  margin: 0;
}

.strayhelp-woocommerce-single div.product .woocommerce-product-details__short-description {
  order: 3;
}

.strayhelp-woocommerce-single div.product .summary > .price {
  order: 4;
}

.strayhelp-woocommerce-single div.product form.cart {
  order: 5;
}

.strayhelp-woocommerce-single div.product .product_meta {
  display: none;
}

.strayhelp-woocommerce-single .related.products ul.products li.product:nth-child(n+3) {
  display: none !important;
}

.strayhelp-woocommerce-archive ul.products li.product {
  order: 10;
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-medical {
  order: 1;
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-tnr {
  order: 2;
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food {
  order: 3;
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-cat-food {
  order: 4;
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food img,
.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food .strayhelp-product-card > a.button {
  display: none !important;
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food .strayhelp-product-card {
  justify-content: center;
  min-height: clamp(150px, 16vw, 176px);
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food .woocommerce-loop-product__title {
  min-height: 0;
  margin-bottom: 18px;
}

.strayhelp-woocommerce-page .container {
  width: min(1160px, calc(100% - 40px));
}

.strayhelp-woocommerce-page .woocommerce-result-count,
.strayhelp-woocommerce-page .woocommerce-ordering {
  margin-bottom: 36px;
}

.strayhelp-woocommerce-page .woocommerce-ordering select {
  min-width: 218px;
  color: var(--sh-muted);
}

.strayhelp-shop-filter-row {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 36px;
  color: var(--sh-deep);
  font-size: 14px;
}

.strayhelp-shop-filter-row__current,
.strayhelp-shop-filter-row__status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strayhelp-shop-filter-row__current {
  justify-self: start;
  font-weight: 600;
}

.strayhelp-shop-filter-row__status {
  justify-self: end;
  color: var(--sh-muted);
}

.strayhelp-product-category-filter {
  position: relative;
  justify-self: center;
}

.strayhelp-product-category-filter__button {
  display: grid;
  width: 48px;
  height: 42px;
  place-items: center;
  border-radius: 4px;
  background: var(--sh-yellow);
  box-shadow: 0 2px 6px rgba(36, 33, 29, .18);
  cursor: pointer;
  list-style: none;
}

.strayhelp-product-category-filter__button::-webkit-details-marker {
  display: none;
}

.strayhelp-product-category-filter__button::marker {
  content: "";
}

.strayhelp-product-category-filter__button::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid var(--sh-deep);
  border-bottom: 2px solid var(--sh-deep);
  transform: rotate(45deg);
  transition: transform .18s ease, margin .18s ease;
}

.strayhelp-product-category-filter[open] .strayhelp-product-category-filter__button::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.strayhelp-product-category-filter__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: grid;
  width: max-content;
  min-width: 232px;
  max-width: min(320px, calc(100vw - 40px));
  max-height: min(360px, 62vh);
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid #d9d5d0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(36, 33, 29, .16);
  padding: 8px;
}

.strayhelp-product-category-filter__option {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  color: var(--sh-deep);
  font-size: 13px;
  line-height: 1.25;
}

.strayhelp-product-category-filter__option:hover,
.strayhelp-product-category-filter__option:focus,
.strayhelp-product-category-filter__option.is-current {
  background: #f6f1ed;
  color: var(--sh-green);
}

.strayhelp-woocommerce-page.woocommerce ul.products,
.strayhelp-woocommerce-page .woocommerce ul.products,
.strayhelp-woocommerce-page ul.products {
  gap: 34px 32px;
}

.strayhelp-woocommerce-page ul.products li.product .strayhelp-product-card > a.button {
  left: 28px;
  right: 28px;
  transform: translateY(calc(clamp(160px, 20vw, 238px) - 56px));
}

.strayhelp-woocommerce-single div.product {
  gap: 58px;
}

.strayhelp-woocommerce-single div.product div.images {
  border: 1px solid #3f3d3a;
  border-radius: 0;
}

.strayhelp-woocommerce-single div.product div.images img {
  background: #fff;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  max-width: 1120px;
  margin-inline: auto;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  align-items: stretch;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  width: 100%;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
  width: 100%;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  min-height: 52px;
  color: var(--sh-deep);
  font-size: 13px;
  line-height: 1.25;
}

.woocommerce-account .site-main {
  background: var(--sh-cream);
}

.woocommerce-account .content-layout {
  max-width: 860px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.woocommerce-account .woocommerce h2 {
  margin: 0 0 28px;
  color: var(--sh-deep);
  font-family: "Merriweather Local", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
}

.woocommerce-account .woocommerce-form-login {
  border-color: #d9d5d0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .54);
  padding: 28px 24px;
}

.woocommerce-account .woocommerce-form-login .button {
  min-height: 42px;
  padding-inline: 22px;
}

.woocommerce-cart > .page-hero,
.woocommerce-account > .page-hero {
  position: relative;
  display: block;
  width: min(var(--sh-page-width), 100%);
  min-height: 430px;
  margin: 0 auto;
  padding: 86px max(40px, calc((100vw - 1200px) / 2)) 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(250, 246, 242, .18), rgba(250, 246, 242, .88) 58%, rgba(250, 246, 242, .96)),
    url("../../images/home-1.jpg") center 27% / cover no-repeat;
  color: #fff;
}

.woocommerce-cart > .page-hero .container,
.woocommerce-account > .page-hero .container {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0;
}

.woocommerce-cart > .page-hero .breadcrumbs,
.woocommerce-cart > .page-hero h1,
.woocommerce-account > .page-hero .breadcrumbs,
.woocommerce-account > .page-hero h1 {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.woocommerce-cart > .page-hero .container::before,
.woocommerce-account > .page-hero .container::before {
  content: "Protecting Life \00d7  Walking Together with Hope\A Save Animals\A Every act of kindness can provide shelter for homeless lives.";
  display: block;
  max-width: 340px;
  white-space: pre-line;
  color: rgba(255, 255, 255, .92);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(36, 33, 29, .18);
}

.woocommerce-cart > .page-hero .container::after,
.woocommerce-account > .page-hero .container::after {
  content: "Participate now";
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 18px;
  padding: 0 20px;
  border-radius: 3px;
  background: var(--sh-yellow);
  color: var(--sh-deep);
  font-size: 12px;
  font-weight: 700;
}

.woocommerce-cart .site-main,
.woocommerce-account .site-main {
  position: relative;
  margin-top: 0;
  overflow: visible;
  background: #86243f;
}

.woocommerce-cart .site-main::before,
.woocommerce-account .site-main::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -72px;
  height: 112px;
  background: #86243f;
  clip-path: polygon(0 36%, 50% 0, 100% 36%, 100% 100%, 0 100%);
}

.woocommerce-cart .content-layout,
.woocommerce-account .content-layout {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 80px));
  max-width: none;
  padding-top: 58px;
  padding-bottom: 82px;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: #fff;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block::before,
.woocommerce-account .content-layout::before {
  content: "Safeguarding Life\A Goods are not the endpoint of goodwill, but rather a brand-new starting point for life stories.\A Connecting stories through products, making every purchase meaningful.";
  display: block;
  max-width: 1020px;
  margin: 0 auto 38px;
  white-space: pre-line;
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block::before {
  font-size: 15px;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block::before::first-line,
.woocommerce-account .content-layout::before::first-line {
  font-size: 28px;
  font-weight: 600;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-separator {
  display: none;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 34px;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: rgba(255, 255, 255, .86);
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
  aspect-ratio: 1.06 / 1;
  border-radius: 0;
  object-fit: cover;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  min-height: 54px;
  color: #fff;
  font-size: 15px;
  line-height: 1.22;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
  color: var(--sh-yellow);
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
  max-width: 150px;
  min-height: 40px;
  padding-inline: 18px;
}

.woocommerce-account .woocommerce {
  width: min(860px, 100%);
  margin: 0 auto;
  border-radius: 4px;
  background: var(--sh-cream);
  color: var(--sh-ink);
  padding: 34px;
}

@media (min-width: 901px) {
  .strayhelp-woocommerce-single .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(790px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .charity-items-page .charity-hero {
    height: 356px;
  }

  .charity-items-page .charity-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 28px;
  }

  .charity-items-page .charity-product-card__image {
    width: min(100%, 216px);
  }

  .charity-items-page .charity-product-card h2 {
    font-size: 17px;
  }

  .charity-items-page .charity-product-card p {
    min-height: 270px;
    font-size: 13px;
  }

  .strayhelp-woocommerce-single .strayhelp-woocommerce-content {
    padding-top: 14px;
  }

  .strayhelp-woocommerce-single div.product {
    gap: 28px;
  }

  .strayhelp-woocommerce-single div.product div.images {
    order: 1;
    width: min(100%, 708px);
    margin-inline: auto;
  }

  .strayhelp-woocommerce-single div.product .summary {
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px 8px;
    align-items: center;
    padding-top: 0;
  }

  .strayhelp-single-product-category {
    grid-column: 1 / -1;
    order: 1;
    margin-bottom: 2px;
    font-size: 12px;
  }

  .strayhelp-woocommerce-single div.product .product_title {
    grid-column: 1 / -1;
    order: 2;
    max-width: 720px;
    font-size: clamp(25px, 4.5vw, 32px);
    line-height: 1.22;
  }

  .strayhelp-woocommerce-single div.product .woocommerce-product-details__short-description {
    grid-column: 1 / -1;
    max-width: 720px;
    margin: 0;
    font-size: 14px;
    line-height: 1.58;
  }

  .strayhelp-woocommerce-single div.product .summary > .price {
    grid-column: 1;
    margin: 8px 0 0;
    font-size: 13px;
  }

  .strayhelp-woocommerce-single div.product form.cart {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: 64px 128px;
    gap: 8px;
    justify-content: end;
    width: auto;
    margin: 8px 0 0;
  }

  .strayhelp-woocommerce-single div.product form.cart .qty {
    width: 64px;
    min-height: 46px;
  }

  .strayhelp-woocommerce-single div.product form.cart div.quantity {
    grid-column: 1;
    width: 64px !important;
  }

  .strayhelp-woocommerce-single div.product form.cart .button {
    grid-column: 2;
    width: 128px;
    min-width: 0;
    min-height: 46px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .strayhelp-woocommerce-single div.product .woocommerce-tabs {
    margin-top: 34px;
    padding-top: 66px;
  }

  .strayhelp-woocommerce-single .woocommerce-tabs ul.tabs {
    gap: 34px;
    margin-bottom: 32px;
  }

  .strayhelp-woocommerce-single .related.products,
  .strayhelp-woocommerce-single .upsells.products {
    margin-top: 54px;
  }

  .strayhelp-woocommerce-single .related.products ul.products,
  .strayhelp-woocommerce-single .upsells.products ul.products {
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .strayhelp-woocommerce-page ul.products li.product .strayhelp-product-card > a.button {
    position: absolute;
    left: 31px;
    right: 31px;
    top: calc(30px + (100% - 60px) / 1.14 - 54px);
    transform: none;
    width: auto;
    margin-top: 0;
    box-shadow: 0 2px 7px rgba(36, 33, 29, .18);
  }

  .woocommerce-cart .wc-block-grid__products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px;
  }

  .strayhelp-woocommerce-single div.product .woocommerce-tabs {
    order: 3;
  }

  .strayhelp-woocommerce-single .related.products,
  .strayhelp-woocommerce-single .upsells.products {
    order: 4;
  }
}

@media (max-width: 560px) {
  .strayhelp-woocommerce-archive .page-hero,
  .strayhelp-woocommerce-page .page-hero {
    min-height: 198px;
    padding-top: 54px;
    padding-bottom: 72px;
  }

  .strayhelp-woocommerce-archive .page-hero .breadcrumbs,
  .strayhelp-woocommerce-page .page-hero .breadcrumbs {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .strayhelp-woocommerce-archive .page-hero h1,
  .strayhelp-woocommerce-page .page-hero h1 {
    font-family: var(--sh-body-font);
    font-size: 26px;
    font-weight: 400;
  }

  .strayhelp-woocommerce-page .page-hero-wave::after {
    height: 28px;
  }

  .strayhelp-woocommerce-page ul.products li.product .strayhelp-product-card {
    position: relative;
    padding: 18px;
    overflow: hidden;
  }

  .strayhelp-woocommerce-page ul.products li.product .strayhelp-product-card > a:first-child {
    display: block;
    position: relative;
    overflow: hidden;
  }

  .charity-items-page .charity-top-spacer {
    height: 0;
    margin-bottom: 28px;
  }

  .charity-items-page .charity-hero {
    height: 262px;
  }

  .charity-items-page .charity-hero h1 {
    max-width: 300px;
    font-size: 22px;
  }

  .charity-items-page .product-filter-row {
    gap: 52px;
    justify-content: center;
    margin-top: 26px;
    margin-bottom: 26px;
  }

  .charity-items-page .charity-product-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 0;
  }

  .charity-items-page .charity-product-card__image {
    width: 100%;
  }

  .charity-items-page .charity-product-card h2 {
    max-width: 310px;
    font-size: 18px;
  }

  .charity-items-page .charity-product-card p {
    min-height: 0;
    font-size: 13px;
  }

  .strayhelp-woocommerce-single .strayhelp-woocommerce-content {
    padding-top: 12px;
    padding-bottom: 64px;
  }

  .strayhelp-woocommerce-single div.product {
    gap: 24px;
  }

  .strayhelp-woocommerce-single div.product div.images {
    width: min(100%, 370px);
  }

  .strayhelp-woocommerce-single div.product div.images img {
    border-radius: 0;
  }

  .strayhelp-woocommerce-single div.product .summary {
    grid-template-columns: minmax(0, 1fr) 56px 112px;
    gap: 13px 6px;
  }

  .strayhelp-woocommerce-single div.product .product_title {
    font-size: 24px;
    line-height: 1.24;
  }

  .strayhelp-woocommerce-single div.product .woocommerce-product-details__short-description {
    font-size: 12px;
    line-height: 1.56;
  }

  .strayhelp-woocommerce-single div.product .summary > .price {
    font-size: 12px;
  }

  .strayhelp-woocommerce-single div.product form.cart {
    grid-template-columns: 56px 112px;
    gap: 6px;
  }

  .strayhelp-woocommerce-single div.product form.cart div.quantity {
    width: 56px !important;
  }

  .strayhelp-woocommerce-single div.product form.cart .qty {
    width: 56px;
    min-height: 44px;
  }

  .strayhelp-woocommerce-single div.product form.cart .button {
    width: 112px !important;
    min-height: 44px;
    padding-inline: 8px;
    white-space: normal;
  }

  .strayhelp-woocommerce-single div.product .woocommerce-tabs {
    margin-top: 28px;
    padding: 58px 22px 0;
  }

  .strayhelp-woocommerce-single .woocommerce-tabs ul.tabs {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 28px;
  }

  .strayhelp-woocommerce-single .woocommerce-tabs ul.tabs li a {
    font-size: 11px;
  }

  .strayhelp-woocommerce-single .woocommerce-Tabs-panel {
    font-size: 12px;
    line-height: 1.55;
  }

  .strayhelp-woocommerce-single .related.products,
  .strayhelp-woocommerce-single .upsells.products {
    margin-top: 48px;
    padding-bottom: 56px;
  }

  .strayhelp-woocommerce-single .related.products > h2,
  .strayhelp-woocommerce-single .upsells.products > h2 {
    margin-bottom: 28px;
    font-size: 20px;
  }

  .strayhelp-woocommerce-single .related.products ul.products li.product:nth-child(n+2),
  .strayhelp-woocommerce-single .upsells.products ul.products li.product:nth-child(n+2) {
    display: none !important;
  }

  .strayhelp-product-card {
    padding: 18px;
  }

  .strayhelp-woocommerce-page ul.products li.product a img {
    margin-bottom: 16px;
  }

  .strayhelp-woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.22;
    margin-bottom: 12px;
  }

  .strayhelp-product-card__category,
  .strayhelp-product-card__category a {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
  }

  .strayhelp-woocommerce-page ul.products li.product .price {
    font-size: 10px;
  }

  .strayhelp-woocommerce-page ul.products li.product .strayhelp-product-card > a.button {
    left: 30px;
    right: 30px;
    top: calc(18px + (100vw - 78px) / 1.08 - 54px);
    min-height: 40px;
    padding-block: 9px;
    z-index: 3;
    border-radius: 6px;
    transform: none !important;
  }

  .strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food .strayhelp-product-card {
    min-height: 158px;
  }

  .strayhelp-woocommerce-archive .strayhelp-woocommerce-content {
    margin-top: -18px;
  }

  .strayhelp-woocommerce-page .woocommerce-result-count,
  .strayhelp-woocommerce-page .woocommerce-ordering {
    margin-bottom: 20px;
  }

  .strayhelp-woocommerce-page .woocommerce-ordering select {
    min-height: 54px;
    font-size: 14px;
  }

  .strayhelp-shop-filter-row {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    font-size: 12px;
  }

  .strayhelp-product-category-filter__button {
    width: 44px;
    height: 40px;
  }

  .strayhelp-woocommerce-page ul.products li.product a img {
    aspect-ratio: 1.08 / 1;
  }

  .woocommerce-cart .content-layout {
    width: min(100% - 28px, 1180px);
  }

  .woocommerce-cart .wc-block-grid__products {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-account .content-layout {
    width: min(100% - 28px, 1180px);
    padding-top: 46px;
  }

  .woocommerce-account .woocommerce h2 {
    font-size: 28px;
  }
}

.strayhelp-woocommerce-archive .strayhelp-woocommerce-content {
  padding-top: 58px;
}

.strayhelp-woocommerce-archive ul.products,
.strayhelp-woocommerce-archive.woocommerce ul.products,
.strayhelp-woocommerce-archive .woocommerce ul.products,
.strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

.strayhelp-woocommerce-archive ul.products li.product {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.strayhelp-woocommerce-archive .strayhelp-product-card {
  padding: 0;
  background: transparent;
}

.strayhelp-woocommerce-archive ul.products li.product a img {
  aspect-ratio: 1 / 1;
  border: 1px solid #3f3d3a;
  background: #fff;
}

.strayhelp-woocommerce-archive ul.products li.product .strayhelp-product-card > a.button {
  position: static;
  width: min(132px, 100%);
  min-height: 42px;
  margin: 16px auto 0;
  transform: none !important;
  box-shadow: 0 2px 6px rgba(36, 33, 29, .24);
}

.strayhelp-woocommerce-archive ul.products li.product .woocommerce-loop-product__title {
  min-height: 58px;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
}

.strayhelp-woocommerce-archive .strayhelp-product-card__category,
.strayhelp-woocommerce-archive ul.products li.product .price {
  display: block;
  text-align: center;
}

.strayhelp-woocommerce-archive .strayhelp-product-card .woocommerce-LoopProduct-link {
  display: block;
}

@media (max-width: 900px) {
  .strayhelp-woocommerce-archive ul.products,
  .strayhelp-woocommerce-archive.woocommerce ul.products,
  .strayhelp-woocommerce-archive .woocommerce ul.products,
  .strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 34px 28px !important;
  }

  .strayhelp-woocommerce-archive ul.products li.product .woocommerce-loop-product__title {
    min-height: 48px;
  }
}

@media (max-width: 560px) {
  .strayhelp-woocommerce-archive .strayhelp-woocommerce-content {
    padding-top: 34px;
  }

  .strayhelp-woocommerce-archive ul.products,
  .strayhelp-woocommerce-archive.woocommerce ul.products,
  .strayhelp-woocommerce-archive .woocommerce ul.products,
  .strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .strayhelp-woocommerce-archive ul.products li.product .woocommerce-loop-product__title {
    min-height: 58px;
    font-size: 14px;
    line-height: 1.26;
  }

  .strayhelp-woocommerce-archive .strayhelp-product-card__category,
  .strayhelp-woocommerce-archive ul.products li.product .price {
    font-size: 11px;
  }

  .strayhelp-woocommerce-archive ul.products li.product .strayhelp-product-card > a.button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .strayhelp-woocommerce-archive ul.products,
  .strayhelp-woocommerce-archive.woocommerce ul.products,
  .strayhelp-woocommerce-archive .woocommerce ul.products,
  .strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
    grid-template-columns: 1fr !important;
  }
}

/* Charity Items archive: compact filter and reference-style product cards. */
.strayhelp-woocommerce-archive .strayhelp-shop-filter-row {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  gap: 28px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 38px;
  color: var(--sh-deep);
  font-size: 16px;
  line-height: 1.5;
}

.strayhelp-woocommerce-archive .woocommerce-notices-wrapper,
.strayhelp-woocommerce-archive .woocommerce {
  text-align: center;
}

.strayhelp-woocommerce-archive .strayhelp-shop-filter-row__current,
.strayhelp-woocommerce-archive .strayhelp-shop-filter-row__status {
  flex: 0 0 auto;
  max-width: 42vw;
  font-weight: 400;
}

.strayhelp-woocommerce-archive .strayhelp-shop-filter-row__status {
  color: var(--sh-deep);
}

.strayhelp-woocommerce-archive .strayhelp-product-category-filter {
  flex: 0 0 auto;
  margin-left: -22px;
}

.strayhelp-woocommerce-archive .strayhelp-product-category-filter__button {
  width: 18px;
  height: 24px;
  border-radius: 6px;
  background: var(--sh-yellow);
  box-shadow: none;
}

.strayhelp-woocommerce-archive .strayhelp-product-category-filter__button::after {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.strayhelp-woocommerce-archive .strayhelp-product-category-filter__menu {
  left: 0;
  min-width: 220px;
  transform: none;
  text-align: left;
}

.strayhelp-woocommerce-archive .strayhelp-woocommerce-content {
  padding-top: 60px;
}

.strayhelp-woocommerce-archive ul.products,
.strayhelp-woocommerce-archive.woocommerce ul.products,
.strayhelp-woocommerce-archive .woocommerce ul.products,
.strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 56px 34px !important;
  text-align: center;
}

.strayhelp-woocommerce-archive ul.products li.product,
.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food {
  display: flex !important;
}

.strayhelp-woocommerce-archive .strayhelp-product-card,
.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food .strayhelp-product-card {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  color: var(--sh-muted);
  text-align: center;
}

.strayhelp-woocommerce-archive .strayhelp-product-card .woocommerce-LoopProduct-link,
.strayhelp-woocommerce-page.strayhelp-woocommerce-archive .strayhelp-product-card .woocommerce-LoopProduct-link {
  display: block;
  width: 100%;
}

.strayhelp-woocommerce-archive ul.products li.product a img,
.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food img {
  display: block !important;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 20px;
  border: 1px solid #3f3d3a;
  background: #fff;
  object-fit: cover;
}

.strayhelp-woocommerce-archive ul.products li.product .woocommerce-loop-product__title,
.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food .woocommerce-loop-product__title {
  min-height: 56px;
  margin: 0 auto 12px;
  padding: 0;
  color: #000;
  font-family: var(--sh-body-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.strayhelp-woocommerce-archive .strayhelp-product-card__category {
  display: none;
}

.strayhelp-woocommerce-archive .strayhelp-product-card__excerpt {
  width: min(100%, 340px);
  min-height: 168px;
  margin: 0 auto 18px;
  color: var(--sh-muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.strayhelp-woocommerce-archive ul.products li.product .price {
  display: block;
  margin: auto auto 14px;
  color: var(--sh-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.strayhelp-woocommerce-archive ul.products li.product .strayhelp-product-card > a.button,
.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food .strayhelp-product-card > a.button {
  display: inline-flex !important;
  position: static;
  width: auto;
  min-width: 134px;
  min-height: 52px;
  margin: 0 auto;
  padding: 13px 22px;
  transform: none !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #ece7e1 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 2px 4px rgba(36, 33, 29, .28);
  color: #000 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.strayhelp-woocommerce-archive ul.products li.product .strayhelp-product-card > a.button::before {
  content: "$";
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-right: 9px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

.strayhelp-woocommerce-archive ul.products li.product .strayhelp-product-card > a.button:hover {
  background: var(--sh-yellow) !important;
}

@media (max-width: 900px) {
  .strayhelp-woocommerce-archive ul.products,
  .strayhelp-woocommerce-archive.woocommerce ul.products,
  .strayhelp-woocommerce-archive .woocommerce ul.products,
  .strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 48px 28px !important;
  }

  .strayhelp-woocommerce-archive .strayhelp-product-card__excerpt {
    min-height: 144px;
  }
}

@media (max-width: 560px) {
  .strayhelp-woocommerce-archive .strayhelp-shop-filter-row {
    gap: 22px;
    margin-bottom: 30px;
    font-size: 14px;
  }

  .strayhelp-woocommerce-archive .strayhelp-product-category-filter {
    margin-left: -18px;
  }

  .strayhelp-woocommerce-archive ul.products,
  .strayhelp-woocommerce-archive.woocommerce ul.products,
  .strayhelp-woocommerce-archive .woocommerce ul.products,
  .strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
    grid-template-columns: 1fr !important;
    gap: 44px !important;
  }

  .strayhelp-woocommerce-archive ul.products li.product .woocommerce-loop-product__title {
    min-height: 0;
    font-size: 20px;
  }

  .strayhelp-woocommerce-archive .strayhelp-product-card__excerpt {
    min-height: 0;
    font-size: 15px;
  }
}

/* Codex pass 0.1.11: center the category filter group like the reference. */
.strayhelp-woocommerce-archive .strayhelp-shop-filter-row {
  display: flex !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

.strayhelp-woocommerce-archive .strayhelp-product-category-filter {
  margin-left: 0 !important;
}

@media (max-width: 560px) {
  .strayhelp-woocommerce-archive .strayhelp-shop-filter-row {
    width: max-content !important;
    max-width: calc(100% - 24px) !important;
  }

  .strayhelp-woocommerce-archive .strayhelp-product-category-filter {
    margin-left: 0 !important;
  }
}

/* Codex pass 0.1.12: Charity Items responsive grid must match the reference breakpoints. */
.strayhelp-woocommerce-archive ul.products,
.strayhelp-woocommerce-archive.woocommerce ul.products,
.strayhelp-woocommerce-archive .woocommerce ul.products,
.strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (min-width: 561px) and (max-width: 1024px) {
  .strayhelp-woocommerce-archive ul.products,
  .strayhelp-woocommerce-archive.woocommerce ul.products,
  .strayhelp-woocommerce-archive .woocommerce ul.products,
  .strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 44px 20px !important;
  }

  .strayhelp-woocommerce-archive ul.products li.product .woocommerce-loop-product__title {
    min-height: 68px;
    font-size: 17px;
    line-height: 1.32;
  }

  .strayhelp-woocommerce-archive .strayhelp-product-card__excerpt {
    min-height: 190px;
    font-size: 14px;
    line-height: 1.48;
  }

  .strayhelp-woocommerce-archive ul.products li.product .strayhelp-product-card > a.button,
  .strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food .strayhelp-product-card > a.button {
    min-width: 124px;
    min-height: 48px;
    padding: 11px 18px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .strayhelp-woocommerce-archive ul.products,
  .strayhelp-woocommerce-archive.woocommerce ul.products,
  .strayhelp-woocommerce-archive .woocommerce ul.products,
  .strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
    grid-template-columns: 1fr !important;
  }
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-cat-food {
  order: 1;
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-dog-food {
  order: 2;
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-tnr {
  order: 3;
}

.strayhelp-woocommerce-archive ul.products li.product.strayhelp-product-medical {
  order: 4;
}

/* Charity Items standalone page: reference grid is 4 columns desktop, 3 tablet, 1 mobile. */
.charity-items-page .charity-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 56px 34px !important;
}

.charity-items-page .product-filter-row.strayhelp-shop-filter-row {
  display: flex !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
  text-align: center;
}

@media (min-width: 561px) and (max-width: 1024px) {
  .charity-items-page .charity-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 44px 20px !important;
  }

  .charity-items-page .charity-product-card h2 {
    min-height: 68px;
    font-size: 17px;
    line-height: 1.32;
  }

  .charity-items-page .charity-product-card p {
    min-height: 190px;
    font-size: 14px;
    line-height: 1.48;
  }
}

@media (max-width: 560px) {
  .charity-items-page .charity-product-grid {
    grid-template-columns: 1fr !important;
    gap: 44px !important;
  }

  .charity-items-page .product-filter-row.strayhelp-shop-filter-row {
    max-width: calc(100% - 24px) !important;
  }

  .charity-items-page .charity-product-card h2,
  .charity-items-page .charity-product-card p {
    min-height: 0;
  }
}

/* Shop is the WooCommerce sales archive, separate from Charity Items. */
.woocommerce-shop .strayhelp-shop-hero .container {
  text-align: center;
}

.woocommerce-shop .strayhelp-woocommerce-archive ul.products,
.woocommerce-shop .strayhelp-woocommerce-archive.woocommerce ul.products,
.woocommerce-shop .strayhelp-woocommerce-archive .woocommerce ul.products,
.woocommerce-shop .strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 56px 34px !important;
}

.woocommerce-shop .strayhelp-woocommerce-archive .strayhelp-product-card__excerpt {
  display: none;
}

.woocommerce-shop .strayhelp-woocommerce-archive ul.products li.product .strayhelp-product-card > a.button {
  display: inline-flex !important;
}

.woocommerce-shop .strayhelp-woocommerce-content .woocommerce {
  text-align: left;
}

.woocommerce-shop .strayhelp-woocommerce-page .woocommerce-result-count,
.woocommerce-shop .strayhelp-woocommerce-page .woocommerce-ordering,
.woocommerce-shop .woocommerce-result-count,
.woocommerce-shop .woocommerce-ordering {
  display: block;
  margin: 0 0 34px;
}

.woocommerce-shop .woocommerce-result-count {
  float: left;
  color: var(--sh-muted);
  font-size: 14px;
}

.woocommerce-shop .woocommerce-ordering {
  float: right;
}

.woocommerce-shop .woocommerce-ordering select {
  min-width: 218px;
  min-height: 42px;
  border: 1px solid var(--sh-line);
  border-radius: 4px;
  background: #fff;
  color: var(--sh-muted);
  padding: 0 38px 0 14px;
  font: inherit;
}

@media (min-width: 561px) and (max-width: 1024px) {
  .woocommerce-shop .strayhelp-woocommerce-archive ul.products,
  .woocommerce-shop .strayhelp-woocommerce-archive.woocommerce ul.products,
  .woocommerce-shop .strayhelp-woocommerce-archive .woocommerce ul.products,
  .woocommerce-shop .strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px !important;
  }
}

@media (max-width: 560px) {
  .woocommerce-shop .strayhelp-woocommerce-archive ul.products,
  .woocommerce-shop .strayhelp-woocommerce-archive.woocommerce ul.products,
  .woocommerce-shop .strayhelp-woocommerce-archive .woocommerce ul.products,
  .woocommerce-shop .strayhelp-woocommerce-page.strayhelp-woocommerce-archive ul.products.columns-4 {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* Codex pass 0.1.15: Cart/checkout/account follow the reference inner-page Woo layout. */
body.woocommerce-cart > .page-hero,
body.woocommerce-checkout > .page-hero,
body.woocommerce-account > .page-hero {
  position: relative !important;
  min-height: 294px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 74px 0 92px !important;
  background: #ddd7d2 !important;
  background-image: none !important;
  color: var(--sh-deep, #151515) !important;
}

body.woocommerce-cart > .page-hero::after,
body.woocommerce-checkout > .page-hero::after,
body.woocommerce-account > .page-hero::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: -1px !important;
  left: 0 !important;
  height: 64px !important;
  background: var(--sh-cream, #faf6f2) !important;
  clip-path: polygon(0 100%, 50% 0, 100% 100%) !important;
}

body.woocommerce-cart > .page-hero .container,
body.woocommerce-checkout > .page-hero .container,
body.woocommerce-account > .page-hero .container {
  position: relative !important;
  z-index: 1 !important;
  width: min(1200px, calc(100% - 80px)) !important;
  margin: 0 auto !important;
  text-align: center !important;
}

body.woocommerce-cart > .page-hero .container::before,
body.woocommerce-cart > .page-hero .container::after,
body.woocommerce-checkout > .page-hero .container::before,
body.woocommerce-checkout > .page-hero .container::after,
body.woocommerce-account > .page-hero .container::before,
body.woocommerce-account > .page-hero .container::after {
  content: none !important;
  display: none !important;
}

body.woocommerce-cart > .page-hero .breadcrumbs,
body.woocommerce-cart > .page-hero h1,
body.woocommerce-checkout > .page-hero .breadcrumbs,
body.woocommerce-checkout > .page-hero h1,
body.woocommerce-account > .page-hero .breadcrumbs,
body.woocommerce-account > .page-hero h1 {
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.woocommerce-cart > .page-hero .breadcrumbs,
body.woocommerce-checkout > .page-hero .breadcrumbs,
body.woocommerce-account > .page-hero .breadcrumbs {
  margin: 0 0 26px !important;
  color: var(--sh-deep, #151515) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

body.woocommerce-cart > .page-hero h1,
body.woocommerce-checkout > .page-hero h1,
body.woocommerce-account > .page-hero h1 {
  margin: 0 !important;
  color: var(--sh-deep, #151515) !important;
  font-family: var(--sh-body-font, "Work Sans Local", Arial, sans-serif) !important;
  font-size: 42px !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  text-transform: none !important;
}

body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-account .site-main {
  position: relative !important;
  margin-top: 0 !important;
  overflow: visible !important;
  background: var(--sh-cream, #faf6f2) !important;
}

body.woocommerce-cart .site-main::before,
body.woocommerce-checkout .site-main::before,
body.woocommerce-account .site-main::before {
  content: none !important;
  display: none !important;
}

body.woocommerce-cart .content-layout,
body.woocommerce-checkout .content-layout,
body.woocommerce-account .content-layout {
  position: relative !important;
  z-index: 1 !important;
  width: min(1240px, calc(100% - 80px)) !important;
  max-width: none !important;
  padding: 82px 0 112px !important;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-account .woocommerce {
  background: transparent !important;
  color: var(--sh-ink, #5e5652) !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block::before,
body.woocommerce-account .content-layout::before {
  content: none !important;
  display: none !important;
}

body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .cart-empty.woocommerce-info {
  display: flex !important;
  align-items: center !important;
  min-height: 84px !important;
  margin: 0 0 34px !important;
  border-top: 3px solid var(--global-footer-bg, #78263c) !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sh-ink, #5e5652) !important;
  box-shadow: none !important;
  padding: 24px !important;
  font-size: 16px !important;
}

body.woocommerce-cart .return-to-shop .button,
body.woocommerce-cart a.button.wc-backward {
  min-width: 159px !important;
  min-height: 75px !important;
  border-radius: 6px !important;
  background: var(--sh-yellow, #ffb735) !important;
  color: var(--sh-deep, #151515) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

@media (max-width: 640px) {
  body.woocommerce-cart > .page-hero,
  body.woocommerce-checkout > .page-hero,
  body.woocommerce-account > .page-hero {
    min-height: 200px !important;
    padding: 58px 0 70px !important;
  }

  body.woocommerce-cart > .page-hero::after,
  body.woocommerce-checkout > .page-hero::after,
  body.woocommerce-account > .page-hero::after {
    height: 34px !important;
  }

  body.woocommerce-cart > .page-hero .container,
  body.woocommerce-checkout > .page-hero .container,
  body.woocommerce-account > .page-hero .container,
  body.woocommerce-cart .content-layout,
  body.woocommerce-checkout .content-layout,
  body.woocommerce-account .content-layout {
    width: min(100% - 40px, 1240px) !important;
  }

  body.woocommerce-cart > .page-hero h1,
  body.woocommerce-checkout > .page-hero h1,
  body.woocommerce-account > .page-hero h1 {
    font-size: 26px !important;
  }
}
