/* Club Shop category archive â€” reskins WooCommerce's own archive markup to
   match the nhome design system. Scoped to .clubshop-category-content so it
   never affects the shop page, other categories, cart, or checkout. */

/*.clubshop-category-logo {
  max-height: 90px;
  width: auto;
}
*/
/* WooCommerce prints its own <h1 class="page-title"> â€” we already show the
   category name in the hero above, so hide the duplicate without touching
   the markup (keeps woocommerce_content() fully intact/functional). */
/*.clubshop-category-content h1.page-title {
  display: none;
}

.clubshop-category-content .woocommerce-notices-wrapper:empty {
  display: none;
}

.clubshop-category-content .storefront-sorting,
.clubshop-category-content .woocommerce-ordering,
.clubshop-category-content .woocommerce-result-count {
  font-family: var(--inter);
}

.clubshop-category-content .storefront-sorting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.clubshop-category-content .woocommerce-ordering .orderby {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: .5rem .75rem;
  font-size: 14px;
}

.clubshop-category-content .woocommerce-result-count {
  color: var(--text);
  opacity: .65;
  font-size: 14px;
  margin: 0;
}

.clubshop-category-content ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: start;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.clubshop-category-content ul.products li.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  transition: var(--tr);
  position: relative;
}

.clubshop-category-content ul.products li.product:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  border-color: #ddd;
}

.clubshop-category-content ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.clubshop-category-content ul.products li.product img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: .75rem;
}

.clubshop-category-content ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--inter);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin: 0 0 .5rem;
}

.clubshop-category-content ul.products li.product .price {
  font-family: var(--inter);
  font-weight: 600;
  color: var(--text);
}

.clubshop-category-content ul.products li.product .price del {
  opacity: .5;
  font-weight: 400;
}

.clubshop-category-content ul.products li.product .price ins {
  text-decoration: none;
  color: var(--brand-red);
}

.clubshop-category-content ul.products li.product .onsale {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--brand-red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .25rem .6rem;
  border-radius: 3px;
  text-transform: uppercase;
  min-height: 0;
  min-width: 0;
  line-height: normal;
  margin: 0;
}

.clubshop-category-content ul.products li.product .button {
  display: inline-block;
  margin-top: .75rem;
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 2px;
  padding: .5rem 1rem;
  font-size: 13px;
  text-transform: uppercase;
  transition: var(--tr);
}

.clubshop-category-content ul.products li.product .button:hover {
  background: #b90410;
  border-color: #b90410;
  color: var(--white);
}

.clubshop-category-content .woocommerce-pagination {
  margin-top: 2.5rem;
}

.clubshop-category-content .woocommerce-pagination ul.page-numbers {
  display: flex;
  list-style: none;
  gap: .5rem;
  padding: 0;
  justify-content: center;
}

.clubshop-category-content .woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--inter);
  font-size: 14px;
}

.clubshop-category-content .woocommerce-pagination .page-numbers.current {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}*/


.clubshop-category-content .woocommerce-ordering .orderby {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: .5rem .75rem;
  font-size: 14px;
}
.clubshop-category-content .woocommerce-result-count {
  color: var(--text);
  opacity: .65;
  font-size: 14px;
  margin: 0;
}
.storefront-sorting:last-child > p, .storefront-sorting:last-child > form {
    display: none;
}
.clubshop-category-content ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
    margin: 50px 0;
}
.clubshop-category-content ul.products > li {
    flex: 0 0 18%;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 11px;
    padding: 0;
    transition: var(--tr);
    position: relative !important;
    overflow: hidden;
    text-align: left !important;
    margin: 0 !important;
}
.clubshop-category-content ul.products > li:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
	border-color: #ddd;
}
.clubshop-category-content ul.products > li a img {
    width: 100%;
    object-fit: cover;
}
.clubshop-category-content ul.products > li .woocommerce-LoopProduct-link img {
    aspect-ratio: 1/2;
}
.clubshop-category-content span.onsale {
    position: absolute;
    top: 15px;
    right: 15px;
    margin: 0;
    background: #e41a01;
    border: 1px solid #e41a01;
    color: #fff !important;
    font-size: 12px;
}
.clubshop-category-content ul.products::before, .clubshop-category-content ul.products::after, .clubshop-category-content .storefront-sorting .woocommerce-notices-wrapper, .clubshop-category-content .storefront-sorting::before, .clubshop-category-content .storefront-sorting::after {
	position: absolute;
}
.clubshop-category-content a.woocommerce-LoopProduct-link {
    position: relative;
}
.clubshop-category-content h2.woocommerce-loop-product__title {
    text-align: left;
    padding: 0 20px;
    font-size: 16px !important;
    font-weight: 600 !important;
}
.clubshop-category-content .price {
    text-align: left;
    padding: 0 20px;
}
.clubshop-category-content .price ins {
    font-family: 'Kensmark', sans-serif;
    color: #e41a01;
    font-size: 16px;
    margin-left: 5px !important;
}
.clubshop-category-content .price del {
    font-size: 12px;
}
.clubshop-category-content .add_to_cart_button {
    margin: 20px 20px 20px !important;
    background: #e41a01 !important;
    border-radius: 10px !important;
    color: #fff !important;
}
.clubshop-category-content .page-title {
    display: none;
}
.clubshop-category-content .storefront-sorting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.clubshop-category-content form.woocommerce-ordering {
    margin: 0;
}
.clubshop-category-content .storefront-sorting:first-of-type nav {
    display: none;
}
.clubshop-category-content .storefront-sorting:last-child {
    justify-content: center;
}
.clubshop-category-content .storefront-sorting span.page-numbers.current {
    background-color: #000;
    color: #fff;
}
.clubshop-category-content .storefront-sorting a.page-numbers:hover {
    background: #e41a01 !important;
    color: #fff;
}

@media (max-width: 1365px) {
	.clubshop-category-content ul.products > li {
		flex: 0 0 23%;
	}
}
@media (max-width: 1199px) {
	.clubshop-category-content ul.products > li {
		flex: 0 0 31%;
	}
}
@media (max-width: 991px) {
	.clubshop-category-content ul.products > li {
		flex: 0 0 48%;
	}
}
@media (max-width: 575px) {
	.clubshop-category-content ul.products > li {
		flex: 0 0 100%;
	}
}

/* ------------------------------------------------------------------
   2026-09-21 — shared by ALL product categories (club shops, schools, ...).
   The card design above is unchanged; this only aligns the cards. Each card is
   a flex column whose product link grows to fill it, so the "Select options" /
   "Add to cart" button always sits at the bottom edge of its card. Before, a
   title wrapping to 3 lines instead of 2 pushed that card's button lower than
   its neighbours'. align-self keeps the button its natural width (a flex column
   would otherwise stretch it to the full card width).
   ------------------------------------------------------------------ */
.clubshop-category-content ul.products > li {
	display: flex;
	flex-direction: column;
}
.clubshop-category-content ul.products > li > a.woocommerce-LoopProduct-link {
	flex: 1 1 auto;
}
.clubshop-category-content ul.products > li > .button,
.clubshop-category-content ul.products > li > .add_to_cart_button {
	align-self: flex-start;
}

/* ------------------------------------------------------------------
   2026-09-21 — SHOP page (/shop, product tags, product search) — archive-product.php.
   Same hero / card design as the category pages above; everything below is scoped to
   body.nhome-shop-archive so category pages are unchanged. The card grid is a real
   CSS grid here (12 products per page divides evenly into 4 / 3 / 2 columns), images
   share one aspect ratio so cards line up, and the sorting bar + pagination get the
   same rounded, brand-red controls as the rest of the new design.
   ------------------------------------------------------------------ */
body.nhome-shop-archive .clubshop-category-content { font-family: var(--inter); }

/* sorting bar */
body.nhome-shop-archive .clubshop-category-content .storefront-sorting { margin: 0; gap: 12px 20px; }
body.nhome-shop-archive .clubshop-category-content .woocommerce-ordering select.orderby {
  min-height: 44px;
  padding: .55rem 2.25rem .55rem .95rem;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  color: var(--text);
  font: 500 14px/1.3 var(--inter);
  box-shadow: none;
  cursor: pointer;
  transition: var(--tr);
}
body.nhome-shop-archive .clubshop-category-content .woocommerce-ordering select.orderby:hover { border-color: #b9b9b9; }
body.nhome-shop-archive .clubshop-category-content .woocommerce-ordering select.orderby:focus {
  outline: 0;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(228, 26, 1, .12);
}
body.nhome-shop-archive .clubshop-category-content .woocommerce-result-count { margin: 0; opacity: 1; color: #666; font: 500 14px/1.4 var(--inter); }

/* product grid */
body.nhome-shop-archive .clubshop-category-content ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 1.75rem 0 2.5rem;
}
body.nhome-shop-archive .clubshop-category-content ul.products > li {
  flex: none;
  float: none;
  width: auto !important;
  min-width: 0;
}
body.nhome-shop-archive .clubshop-category-content ul.products > li a.woocommerce-LoopProduct-link img {
  display: block;
  width: 100%;
  height: 310px;         /* same image height as the category cards (Storefront caps loop images at 310px); every card lines up */
  aspect-ratio: auto;
  object-fit: cover;
  margin: 0;
}
body.nhome-shop-archive .clubshop-category-content ul.products > li h2.woocommerce-loop-product__title {
  margin: 14px 0 6px;
  padding: 0 20px;
  color: var(--text);
  font-family: var(--inter);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.nhome-shop-archive .clubshop-category-content ul.products > li .price { margin: 0; color: var(--text); font-family: var(--inter); font-weight: 600; }
body.nhome-shop-archive .clubshop-category-content ul.products > li .price del { font-weight: 400; opacity: .5; }
body.nhome-shop-archive .clubshop-category-content ul.products > li .price ins { text-decoration: none; background: none; }
body.nhome-shop-archive .clubshop-category-content ul.products > li .button,
body.nhome-shop-archive .clubshop-category-content ul.products > li .add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 0;
  font: 700 14px/1 var(--inter);
  letter-spacing: .2px;
  text-transform: none;
  transition: var(--tr);
}
body.nhome-shop-archive .clubshop-category-content ul.products > li .button:hover,
body.nhome-shop-archive .clubshop-category-content ul.products > li .add_to_cart_button:hover,
body.nhome-shop-archive .clubshop-category-content ul.products > li .button:focus-visible { background: #b90410 !important; color: #fff !important; }
body.nhome-shop-archive .clubshop-category-content ul.products > li:hover a.woocommerce-LoopProduct-link h2.woocommerce-loop-product__title { color: var(--brand-red); }
body.nhome-shop-archive .clubshop-category-content ul.products > li .added_to_cart { align-self: flex-start; margin: 0 20px 20px; color: var(--brand-red); font: 600 13px var(--inter); }
body.nhome-shop-archive .clubshop-category-content span.onsale { top: 12px; right: 12px; padding: .3rem .65rem; border-radius: 3px; font: 700 11px/1.3 var(--inter); letter-spacing: .5px; text-transform: uppercase; min-height: 0; min-width: 0; }

/* pagination */
body.nhome-shop-archive .clubshop-category-content .storefront-sorting:last-child { margin-top: 0; }
body.nhome-shop-archive .clubshop-category-content .woocommerce-pagination { margin: 0; padding: 0; }
body.nhome-shop-archive .clubshop-category-content .woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
}
body.nhome-shop-archive .clubshop-category-content .woocommerce-pagination ul.page-numbers li { float: none; display: block; margin: 0; padding: 0; border: 0; }
body.nhome-shop-archive .clubshop-category-content .woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .8rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: var(--text);
  font: 600 14px/1 var(--inter);
  text-decoration: none;
  transition: var(--tr);
}
body.nhome-shop-archive .clubshop-category-content .woocommerce-pagination a.page-numbers:hover { background: var(--brand-red) !important; border-color: var(--brand-red); color: #fff; }
body.nhome-shop-archive .clubshop-category-content .woocommerce-pagination .page-numbers.current { background: #000; border-color: #000; color: #fff; }
body.nhome-shop-archive .clubshop-category-content .woocommerce-pagination .page-numbers.dots { min-width: 0; padding: 0 .25rem; background: none; border-color: transparent; }
body.nhome-shop-archive .clubshop-category-content .woocommerce-pagination .page-numbers.dots:hover { background: none !important; color: var(--text); }

/* no results */
body.nhome-shop-archive .clubshop-category-content .woocommerce-info { margin: 2rem 0; padding: 1rem 1.25rem 1rem 3.4rem; background: #f6f6f6; border: 0; border-left: 4px solid var(--brand-red); border-radius: 6px; color: var(--text); font: 500 14px/1.5 var(--inter); }
body.nhome-shop-archive .clubshop-category-content .woocommerce-info::before { color: var(--brand-red); }

/* responsive: 4 -> 3 -> 2 -> 1 columns */
@media (max-width: 1199px) {
  body.nhome-shop-archive .clubshop-category-content ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 991px) {
  body.nhome-shop-archive .clubshop-category-content ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  body.nhome-shop-archive .clubshop-category-content ul.products { grid-template-columns: minmax(0, 1fr); margin: 1.25rem 0 2rem; }
  body.nhome-shop-archive .clubshop-category-content .storefront-sorting { flex-direction: column; align-items: stretch; }
  body.nhome-shop-archive .clubshop-category-content .woocommerce-ordering select.orderby { width: 100%; }
  body.nhome-shop-archive .clubshop-category-content .woocommerce-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 .6rem; }
}
