.woocommerce .page-shell,
.woocommerce-page .page-shell {
	width: min(calc(100% - (var(--epoch-gutter) * 2)), 1440px);
}

.woocommerce .woocommerce-breadcrumb {
	margin: 0 0 32px;
	font-family: var(--epoch-font-display);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.woocommerce .woocommerce-products-header__title,
.woocommerce div.product .product_title,
.woocommerce-account .woocommerce h2,
.woocommerce-checkout .woocommerce h3 {
	font-family: var(--epoch-font-display);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 0.9;
	text-transform: uppercase;
}

.woocommerce .woocommerce-products-header__title {
	margin: 0 0 clamp(48px, 8vw, 110px);
	font-size: clamp(3.7rem, 10vw, 10rem);
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 70px) clamp(12px, 2vw, 28px);
}

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

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

.woocommerce ul.products li.product a img {
	aspect-ratio: 4 / 5;
	margin: 0 0 17px;
	background: var(--epoch-paper);
	object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0;
	font-family: var(--epoch-font-display);
	font-size: clamp(1rem, 1.6vw, 1.5rem);
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--epoch-ink);
	font-size: 0.85rem;
	font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	padding: 15px 20px;
	background: var(--epoch-ink);
	border-radius: 0;
	color: var(--epoch-white);
	font-family: var(--epoch-font-display);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--epoch-blue);
	color: var(--epoch-white);
}

.woocommerce div.product {
	display: block !important;
	width: 100%;
	max-width: 100%;
}

.woocommerce div.product::before,
.woocommerce div.product::after {
	display: none;
}

.woocommerce div.product > * {
	min-width: 0;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	float: none !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 900px !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

.woocommerce div.product div.images {
	margin-bottom: clamp(48px, 7vw, 96px) !important;
}

.woocommerce div.product div.images img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto;
}

.woocommerce div.product div.summary {
	margin-bottom: clamp(70px, 10vw, 140px) !important;
	overflow-wrap: anywhere;
}

.woocommerce div.product .product_title {
	margin: 0 0 24px;
	font-size: clamp(2.7rem, 4.5vw, 5.5rem);
	overflow-wrap: anywhere;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
	width: 100%;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .quantity .qty {
	padding: 12px;
	border: 1px solid var(--epoch-border);
	border-radius: 0;
	background: var(--epoch-white);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--epoch-blue);
	background: var(--epoch-paper);
}

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

	.woocommerce div.product .product_title {
		font-size: clamp(2.5rem, 13vw, 4.5rem);
	}
}

@media (max-width: 520px) {
	.woocommerce ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}
.woocommerce-price-suffix {
	font-size: 0.55em;
	font-weight: 700;
	letter-spacing: 0.04em;
	opacity: 0.55;
	white-space: nowrap;
}


/* EPOCH: keep the single-product purchase action on-brand. */
.single-product .woocommerce button.single_add_to_cart_button.button.alt,
.single-product .woocommerce button.single_add_to_cart_button,
.single-product .woocommerce .single_add_to_cart_button.button.alt {
	background: var(--epoch-ink) !important;
	border: 1px solid var(--epoch-ink) !important;
	border-radius: 0 !important;
	color: var(--epoch-white) !important;
}

.single-product .woocommerce button.single_add_to_cart_button.button.alt:hover,
.single-product .woocommerce button.single_add_to_cart_button.button.alt:focus,
.single-product .woocommerce button.single_add_to_cart_button:hover,
.single-product .woocommerce button.single_add_to_cart_button:focus,
.single-product .woocommerce .single_add_to_cart_button.button.alt:hover,
.single-product .woocommerce .single_add_to_cart_button.button.alt:focus {
	background: var(--epoch-blue) !important;
	border-color: var(--epoch-blue) !important;
	color: var(--epoch-white) !important;
}


/* Single-product pages put the WooCommerce class on body, not a child wrapper. */
body.single-product.woocommerce button.single_add_to_cart_button.button.alt,
body.single-product.woocommerce button.single_add_to_cart_button,
body.single-product.woocommerce .single_add_to_cart_button.button.alt {
	background: var(--epoch-ink) !important;
	border: 1px solid var(--epoch-ink) !important;
	border-radius: 0 !important;
	color: var(--epoch-white) !important;
}

body.single-product.woocommerce button.single_add_to_cart_button.button.alt:hover,
body.single-product.woocommerce button.single_add_to_cart_button.button.alt:focus,
body.single-product.woocommerce button.single_add_to_cart_button:hover,
body.single-product.woocommerce button.single_add_to_cart_button:focus,
body.single-product.woocommerce .single_add_to_cart_button.button.alt:hover,
body.single-product.woocommerce .single_add_to_cart_button.button.alt:focus {
	background: var(--epoch-blue) !important;
	border-color: var(--epoch-blue) !important;
	color: var(--epoch-white) !important;
}

/* EPOCH SHOP: refined responsive product grid and horizontal pagination. */
body.post-type-archive-product .epoch-shop .woocommerce-result-count {
  float: none;
  margin: 0 0 12px;
  font-family: var(--epoch-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.post-type-archive-product .epoch-shop .woocommerce-ordering {
  float: none;
  margin: 0 0 clamp(30px, 5vw, 52px);
}

body.post-type-archive-product .epoch-shop .woocommerce-ordering select {
  width: 100%;
  min-height: 44px;
  padding: 10px 38px 10px 12px;
  border: 1px solid var(--epoch-ink);
  border-radius: 0;
  background-color: var(--epoch-white);
  color: var(--epoch-ink);
  font-family: var(--epoch-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.post-type-archive-product .epoch-shop ul.products li.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.post-type-archive-product .epoch-shop ul.products li.product > a.woocommerce-LoopProduct-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  color: inherit;
}

body.post-type-archive-product .epoch-shop ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 2em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.post-type-archive-product .epoch-shop ul.products li.product .price {
  margin-top: 8px;
}

body.post-type-archive-product .epoch-shop ul.products li.product .epoch-view-item {
  align-self: flex-start;
  margin-top: 12px;
}

.woocommerce nav.woocommerce-pagination {
  clear: both;
  width: 100%;
  margin: clamp(42px, 7vw, 80px) 0 0;
  text-align: left;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  gap: clamp(10px, 2vw, 18px);
  list-style: none !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li {
  display: block !important;
  float: none !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li::before,
.woocommerce nav.woocommerce-pagination ul.page-numbers > li::after,
.woocommerce nav.woocommerce-pagination ul.page-numbers > li::marker {
  display: none !important;
  content: none !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li > a,
.woocommerce nav.woocommerce-pagination ul.page-numbers > li > span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 32px;
  height: 44px;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--epoch-ink) !important;
  box-shadow: none !important;
  font-family: var(--epoch-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.woocommerce nav.woocommerce-pagination .page-numbers.current,
.woocommerce nav.woocommerce-pagination a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination a.page-numbers:focus-visible {
  background: transparent !important;
  color: var(--epoch-ink) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.woocommerce nav.woocommerce-pagination a.page-numbers:focus-visible {
  outline: 0;
}

@media (max-width: 767px) {
  body.post-type-archive-product .epoch-shop {
    width: auto;
    margin-inline: 16px;
    padding-top: 108px;
  }

  body.post-type-archive-product .epoch-shop .woocommerce-products-header__title {
    margin-bottom: 28px;
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  body.post-type-archive-product .epoch-shop .page-description {
    margin-bottom: 28px;
    font-size: 0.72rem;
    line-height: 1.85;
  }

  body.post-type-archive-product .epoch-shop ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 38px 10px;
  }

  body.post-type-archive-product .epoch-shop ul.products li.product a img {
    margin-bottom: 12px;
  }

  body.post-type-archive-product .epoch-shop ul.products li.product .woocommerce-loop-product__title {
    font-size: clamp(0.93rem, 4.5vw, 1.08rem);
    line-height: 1.02;
  }

  body.post-type-archive-product .epoch-shop ul.products li.product .price {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  body.post-type-archive-product .epoch-shop ul.products li.product .epoch-view-item {
    width: 100%;
    padding: 14px 8px;
    text-align: center;
  }

  body.post-type-archive-product .epoch-shop .woocommerce-ordering select {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  body.post-type-archive-product .epoch-shop {
    margin-inline: 12px;
  }

  body.post-type-archive-product .epoch-shop ul.products {
    gap: 32px 8px;
  }
}


/* EPOCH SHOP SOLD OUT BADGE: automatic for WooCommerce out-of-stock products. */
.woocommerce ul.products li.product.outofstock > a.woocommerce-LoopProduct-link {
  position: relative;
}

.woocommerce ul.products li.product.outofstock > a.woocommerce-LoopProduct-link::before {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  content: "SOLD OUT";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  background: var(--epoch-ink);
  color: var(--epoch-white);
  font-family: var(--epoch-font-display);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.woocommerce ul.products li.product.outofstock > a.woocommerce-LoopProduct-link img {
  opacity: 0.62;
  filter: grayscale(18%);
}

@media (max-width: 767px) {
  .woocommerce ul.products li.product.outofstock > a.woocommerce-LoopProduct-link::before {
    top: 9px;
    left: 9px;
    min-height: 31px;
    padding: 0 10px;
    font-size: 0.65rem;
  }
}
