/*
 * SANUMCOR Shop archive product-selection field.
 * Scope: Shop-owned WooCommerce archive only.
 */

body.post-type-archive-product.woocommerce-shop {
  --shop-canvas: var(--sanumcor-canvas, #F5ECE0);
  --shop-surface: var(--sanumcor-surface, #FBF9F5);
  --shop-elevated: var(--sanumcor-surface-elevated, #FFFDFC);
  --shop-ink: var(--sanumcor-ink, #171916);
  --shop-muted: var(--sanumcor-muted, #59615B);
  --shop-anchor: var(--sanumcor-anchor, #26372E);
  --shop-anchor-hover: var(--sanumcor-anchor-hover, #1D2A24);
  --shop-accent: var(--sanumcor-accent, #C09334);
  --shop-border: var(--sanumcor-border, #DED3C4);
  --shop-border-strong: var(--sanumcor-border-strong, #CDBB9F);
  --shop-focus: var(--sanumcor-focus, #8A672C);
  overflow-x: hidden;
  color: var(--shop-ink);
  background: var(--shop-canvas);
}

body.post-type-archive-product.woocommerce-shop *,
body.post-type-archive-product.woocommerce-shop *::before,
body.post-type-archive-product.woocommerce-shop *::after {
  box-sizing: border-box;
}

body.post-type-archive-product.woocommerce-shop .entry-hero.product-archive-hero-section,
body.post-type-archive-product.woocommerce-shop .woocommerce-products-header,
body.post-type-archive-product.woocommerce-shop .woocommerce-result-count,
body.post-type-archive-product.woocommerce-shop .woocommerce-ordering,
body.post-type-archive-product.woocommerce-shop .kadence-shop-top-row,
body.post-type-archive-product.woocommerce-shop .kadence-shop-toggle,
body.post-type-archive-product.woocommerce-shop .gridlist-toggle,
body.post-type-archive-product.woocommerce-shop .woocommerce-viewing,
body.post-type-archive-product.woocommerce-shop .woocommerce-products-header__title {
  display: none;
}

body.post-type-archive-product.woocommerce-shop .content-area,
body.post-type-archive-product.woocommerce-shop .site-main,
body.post-type-archive-product.woocommerce-shop .entry-content-wrap {
  margin-top: 0;
  margin-bottom: 0;
}

body.post-type-archive-product.woocommerce-shop .content-container.site-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.post-type-archive-product.woocommerce-shop .content-bg,
body.post-type-archive-product.woocommerce-shop .content-style-unboxed .entry-content-wrap {
  background: transparent;
}

body.post-type-archive-product.woocommerce-shop .site-main {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 72vh, 860px);
  padding: clamp(28px, 5vw, 54px) 0 clamp(42px, 6vw, 78px);
  background:
    linear-gradient(180deg, rgba(245, 236, 224, 0.58) 0%, rgba(251, 249, 245, 0.54) 48%, rgba(245, 236, 224, 0.62) 100%),
    radial-gradient(ellipse at 50% 34%, rgba(255, 253, 248, 0.2) 0%, rgba(255, 253, 248, 0) 62%),
    url("../images/home/sanumcore-Sunlit-Beige-Studio.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.post-type-archive-product.woocommerce-shop .woocommerce-notices-wrapper {
  width: min(100% - 40px, 1200px);
  margin: 0 auto 18px;
}

body.post-type-archive-product.woocommerce-shop ul.products,
body.post-type-archive-product.woocommerce-shop ul.products.content-wrap {
  display: grid;
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 0;
  grid-template-columns: 1fr;
  gap: 18px;
  list-style: none;
}

body.post-type-archive-product.woocommerce-shop ul.products::before,
body.post-type-archive-product.woocommerce-shop ul.products::after {
  display: none;
}

body.post-type-archive-product.woocommerce-shop ul.products li.product,
body.post-type-archive-product.woocommerce-shop ul.products li.product.entry {
  float: none;
  display: flex;
  width: auto;
  min-width: 0;
  min-height: 100%;
  clear: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--shop-border-strong) 72%, transparent);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      var(--shop-elevated) 0%,
      color-mix(in srgb, var(--shop-surface) 82%, var(--shop-canvas)) 58%,
      var(--shop-canvas) 100%
    );
  box-shadow: 0 16px 42px rgba(69, 45, 19, 0.07);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile:hover,
body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile:focus-within {
  border-color: color-mix(in srgb, var(--shop-border-strong) 92%, transparent);
  box-shadow: 0 20px 52px rgba(69, 45, 19, 0.085);
  transform: translateY(-1px);
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile__pdp-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 20px;
  text-decoration: none;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-image {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 0;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--shop-canvas) 72%, var(--shop-border));
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-image__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-calm .sanumcor-shop-tile-image img {
  object-position: 28% center;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-body {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(22px, 4.8vw, 28px) clamp(20px, 4.6vw, 28px) 0;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-title {
  margin: 0 0 11px;
  color: var(--shop-ink);
  font-size: clamp(1.32rem, 5.1vw, 1.5rem);
  font-weight: 820;
  letter-spacing: 0.035em;
  line-height: 1.12;
  text-transform: uppercase;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-title a {
  color: inherit;
  text-decoration: none;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-line {
  margin: 0 0 8px;
  color: var(--shop-anchor);
  font-size: clamp(1rem, 3vw, 1.12rem);
  font-weight: 720;
  line-height: 1.38;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-support {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.97rem;
  line-height: 1.62;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-commerce {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 14px;
  align-self: end;
  padding: 18px clamp(20px, 4.6vw, 28px) clamp(22px, 4.8vw, 28px);
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-price {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--shop-ink);
  font-size: 1.04rem;
  font-weight: 820;
  line-height: 1.35;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-actions {
  display: grid;
  gap: 0;
  min-width: 0;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-add-to-cart,
body.post-type-archive-product.woocommerce-shop.woocommerce ul.products li.product .sanumcor-shop-add-to-cart.button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shop-anchor);
  border-radius: 7px;
  background: var(--shop-anchor);
  box-shadow: none;
  color: var(--sanumcor-light-text, #FFFDFC);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-add-to-cart:hover,
body.post-type-archive-product.woocommerce-shop .sanumcor-shop-add-to-cart:focus-visible,
body.post-type-archive-product.woocommerce-shop.woocommerce ul.products li.product .sanumcor-shop-add-to-cart.button:hover,
body.post-type-archive-product.woocommerce-shop.woocommerce ul.products li.product .sanumcor-shop-add-to-cart.button:focus-visible {
  border-color: var(--shop-anchor-hover);
  background: var(--shop-anchor-hover);
  color: var(--sanumcor-light-text, #FFFDFC);
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-add-to-cart.loading {
  cursor: wait;
  opacity: 0.68;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-add-to-cart.added,
body.post-type-archive-product.woocommerce-shop.woocommerce ul.products li.product .sanumcor-shop-add-to-cart.button.added {
  border-color: color-mix(in srgb, var(--shop-anchor) 82%, var(--shop-accent));
  background: color-mix(in srgb, var(--shop-anchor) 82%, var(--shop-accent));
  color: var(--sanumcor-light-text, #FFFDFC);
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-actions .added_to_cart {
  display: none;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-view-cart {
  position: relative;
  z-index: 3;
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--shop-anchor) 22%, var(--shop-border));
  border-radius: 7px;
  color: var(--shop-anchor);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-view-cart.is-visible {
  display: inline-flex;
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-view-cart:hover,
body.post-type-archive-product.woocommerce-shop .sanumcor-shop-view-cart:focus-visible {
  border-color: color-mix(in srgb, var(--shop-anchor) 34%, var(--shop-border-strong));
  color: var(--shop-anchor-hover);
}

body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-title a:focus-visible,
body.post-type-archive-product.woocommerce-shop .sanumcor-shop-tile-image__link:focus-visible,
body.post-type-archive-product.woocommerce-shop .sanumcor-shop-add-to-cart:focus-visible,
body.post-type-archive-product.woocommerce-shop .sanumcor-shop-view-cart:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--shop-focus) 72%, transparent);
  outline-offset: 4px;
}

@media (min-width: 760px) {
  body.post-type-archive-product.woocommerce-shop ul.products,
  body.post-type-archive-product.woocommerce-shop ul.products.content-wrap {
    width: min(100% - 64px, 1200px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 1080px) {
  body.post-type-archive-product.woocommerce-shop ul.products,
  body.post-type-archive-product.woocommerce-shop ul.products.content-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
