/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/* ======================================================================
   CATEGORY ARCHIVE
   ====================================================================== */

/**** category archive template *****/
body.archive.tax-product_cat {
  background: #fff;
  color: #0f172a;
}

body.archive.tax-product_cat #main.site-main {
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
  padding: 45px 18px;
}

/* breadcrumbs */
body.archive.tax-product_cat .woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  opacity: 0.85;
  margin: 0 0 18px;
}

body.archive.tax-product_cat .woocommerce-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

body.archive.tax-product_cat .woocommerce-breadcrumb a:hover {
  border-bottom-color: rgba(15, 23, 42, 0.55);
  color:#F37731!important;
}

/* archive header */
body.archive.tax-product_cat .woocommerce-products-header {
  margin: 0 0 22px;
}

body.archive.tax-product_cat .woocommerce-products-header__title {
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

body.archive.tax-product_cat .woocommerce-products-header .addInfo {
  justify-content: center;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.archive.tax-product_cat .woocommerce-products-header .addInfo p {
  margin: 0 0 12px;
  color: rgba(15, 23, 42, 0.86);
}

body.archive.tax-product_cat .woocommerce-products-header .addInfo p:last-child {
  margin-bottom: 0;
}

body.archive.tax-product_cat .woocommerce-products-header .addInfo a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* notices */
body.archive.tax-product_cat .woocommerce-notices-wrapper:empty {
  display: none;
}

/* result count / ordering area (if enabled) */
body.archive.tax-product_cat .woocommerce-result-count {
  margin: 18px 0 10px;
  opacity: 0.8;
}

body.archive.tax-product_cat .woocommerce-ordering {
  margin: 18px 0 10px;
}

body.archive.tax-product_cat .woocommerce-ordering select {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

/* products grid (overrides woo columns-* classes) */
body.archive.tax-product_cat ul.products {
  list-style: none;
  padding: 0 !important;
  margin: 25px 0px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

/* responsive columns */
@media (max-width: 1100px) {
  body.archive.tax-product_cat ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.archive.tax-product_cat ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.archive.tax-product_cat ul.products {
    grid-template-columns: 1fr;
  }
}

/* cards: categories + products */
body.archive.tax-product_cat ul.products > li.product,
body.archive.tax-product_cat ul.products > li.product-category {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
}

.tax-product_cat .woocommerce-pagination {
  justify-content: center;
}

body.archive.tax-product_cat .wa-sale-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #161616;
  color: #fff;
  border-radius: 4px;
  padding: 6px 10px;
  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

/* Rating badge container */
body.archive.tax-product_cat .wa-rating-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--Color-2, #F37731);
  background: rgba(243, 119, 49, 0.10);

  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1;
}

/* Star icon stays orange */
body.archive.tax-product_cat .wa-rating-star{
  width: 14px;
  height: 14px;
  fill: var(--Color-2, #F37731);
  display: block;
}

/* Rating number styling */
body.archive.tax-product_cat .wa-rating-badge .wa-rating-num{
  color: var(--Color-2, #F37731);
  text-align: center;
  font-family: "Albert Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; /* fallback if var isn't set */
  font-size: var(--Static-Body-Large-Size, 16px);
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 19.2px */
}

body.archive.tax-product_cat .wa-rating-star{
  width: 14px;
  height: 14px;
  fill: #F37731;
  display: block;
}

/* make the whole card clickable nicely */
body.archive.tax-product_cat ul.products > li.product > a,
body.archive.tax-product_cat ul.products > li.product-category > a {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

/* images: consistent sizing */
body.archive.tax-product_cat ul.products img {
  width: 100% !important;
  height: auto !important;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f1f5f9;
}

/* titles */
body.archive.tax-product_cat .woocommerce-loop-category__title,
body.archive.tax-product_cat .woocommerce-loop-product__title {
  padding: 14px 16px 16px;
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* woo count inside category titles */
body.archive.tax-product_cat .woocommerce-loop-category__title .count {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.65;
  margin-left: 6px;
  background: transparent;
}

/* prices / ratings / buttons if products show on this archive */
body.archive.tax-product_cat ul.products li.product .price {
  padding: 0 16px 14px;
  margin: -6px 0 0;
  font-weight: 700;
  opacity: 0.9;
}

body.archive.tax-product_cat ul.products li.product .star-rating {
  margin: 0 16px 10px;
}

body.archive.tax-product_cat ul.products li.product .button,
body.archive.tax-product_cat ul.products li.product a.button {
  margin: 0 16px 16px;
  border-radius: 8px;
  padding: 20px 14px;
  background-color: #ffffff00;
  color: #D3D3D3;
  text-align: center;
  font-weight: 700;
  transition: transform 150ms ease, opacity 150ms ease;
  font-family: "Albert Sans";
  font-size: 20px;
}

body.archive.tax-product_cat ul.products li.product .button:hover,
body.archive.tax-product_cat ul.products li.product a.button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* sale badge */
body.archive.tax-product_cat ul.products li.product .onsale {
  margin: 12px !important;
  border-radius: 999px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  background: #16a34a !important;
  color: #fff !important;
}

/* pagination (if enabled) */
body.archive.tax-product_cat .woocommerce-pagination {
  margin: 26px 0;
}

body.archive.tax-product_cat .woocommerce-pagination ul.page-numbers {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0;
  border: 0;
}

body.archive.tax-product_cat .woocommerce-pagination .page-numbers li {
  border: 0;
}

body.archive.tax-product_cat .woocommerce-pagination .page-numbers a,
body.archive.tax-product_cat .woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

body.archive.tax-product_cat .woocommerce-pagination .page-numbers .current {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}


/* ======================================================================
   CUSTOM CATEGORY TEMPLATE
   ====================================================================== */

/*** new custom category templates ***/
.tax-product_cat .wa-cat-page {
  /* design tokens */
  --wa-bg: #ffffff;
  --wa-surface: #ffffff;
  --wa-surface-2: #f7f8fb;
  --wa-text: #0f172a;
  --wa-muted: #64748b;
  --wa-border: rgba(15, 23, 42, 0.12);
  --wa-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --wa-shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.12);
  --wa-radius: 16px;
  --wa-radius-sm: 12px;

  /* primary (change these to match your brand) */
  --wa-primary: #204ce5;
  --wa-primary-2: #001ab3;
  --wa-on-primary: #ffffff;

  /* spacing */
  --wa-pad: clamp(16px, 2.5vw, 28px);
  --wa-gap: clamp(14px, 2vw, 22px);

  color: var(--wa-text);
  background: #fff;
  max-width: 1250px;
  margin: 0 auto;
  padding: var(--wa-pad);
}

/* If your theme forces weird widths, this helps keep it consistent */
.tax-product_cat .wa-cat-page * {
  box-sizing: border-box;
}

.tax-product_cat .wa-cat-page .wa-cat-hero {
  background: linear-gradient(180deg, var(--wa-surface-2), var(--wa-bg));
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius);
  padding: calc(var(--wa-pad) + 6px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  margin-bottom: calc(var(--wa-pad) + 4px);
}

.tax-product_cat .wa-cat-page .wa-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  line-height: 1.3;
  color: var(--wa-muted);
  margin-bottom: 10px;
}

.tax-product_cat .wa-cat-page .wa-breadcrumbs a {
  color: var(--wa-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.tax-product_cat .wa-cat-page .wa-breadcrumbs a:hover {
  color: var(--wa-text);
  border-bottom-color: rgba(15, 23, 42, 0.25);
}

.tax-product_cat .wa-cat-page .wa-sep {
  opacity: 0.6;
}

.tax-product_cat .wa-cat-page .wa-cat-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tax-product_cat .wa-cat-page .wa-cat-content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--wa-gap) + 8px);
}

.tax-product_cat .wa-cat-page .wa-section-title {
  margin: 0 0 15px;
  font-size: 32px;
  letter-spacing: -0.01em;
  text-align: center;
}

.tax-product_cat .wa-cat-page .wa-grid-4 {
  display: grid;
  gap: var(--wa-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 1100px) {
  .tax-product_cat .wa-cat-page .wa-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tax-product_cat .wa-cat-page .wa-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .tax-product_cat .wa-cat-page .wa-grid-4 {
    grid-template-columns: 1fr;
  }
}

.tax-product_cat .wa-cat-page .wa-subcat-card,
.tax-product_cat .wa-cat-page .wa-product-card {
  background: var(--wa-surface);
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tax-product_cat .wa-cat-page .wa-subcat-card:hover,
.tax-product_cat .wa-cat-page .wa-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wa-shadow-hover);
  border-color: rgba(32, 76, 229, 0.25);
}

/* Make the whole card clickable cleanly */
.tax-product_cat .wa-cat-page .wa-subcat-link,
.tax-product_cat .wa-cat-page .wa-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tax-product_cat .wa-cat-page .wa-subcat-media,
.tax-product_cat .wa-cat-page .wa-product-media{
  position: relative;
  background: var(--wa-surface-2);
  aspect-ratio: 5 / 6;
  overflow: hidden;

  /* centers "contained" images nicely */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px; 
}

.tax-product_cat .wa-cat-page .wa-subcat-media img,
.tax-product_cat .wa-cat-page .wa-product-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  max-width: 100%;
  max-height: 100%;
  transform: scale(1.001);
  transition: transform 220ms ease;
}

/* hover zoom still works, but won't crop badly */
.tax-product_cat .wa-cat-page .wa-subcat-card:hover .wa-subcat-media img,
.tax-product_cat .wa-cat-page .wa-product-card:hover .wa-product-media img{
  transform: scale(1.045);
}

.tax-product_cat .wa-cat-page .wa-subcat-body,
.tax-product_cat .wa-cat-page .wa-product-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Names / titles */
.tax-product_cat .wa-cat-page .wa-subcat-name,
.tax-product_cat .wa-cat-page .wa-product-title {
    font-family: "Albert Sans", sans-serif;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.tax-product_cat .wa-cat-page .wa-product-title {
  font-family: "Albert Sans", sans-serif;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.tax-product_cat .wa-cat-page .wa-product-title:hover {
  text-decoration: underline!important;
  color: #F37731!important;
}

/* Meta */
.tax-product_cat .wa-cat-page .wa-subcat-meta {
  font-size: 13px;
  color: var(--wa-muted);
}

.tax-product_cat .wa-cat-page .wa-subcat-count {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* Price block (Woo markup can be annoying, so we harden it) */
.tax-product_cat .wa-cat-page .wa-product-price {
    font-family: "Albert Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.tax-product_cat .wa-cat-page .wa-product-price .woocommerce-Price-amount {
	font-weight: 700;
}

.tax-product_cat .wa-cat-page .wa-product-price .price {
  margin: 0 !important;
}

.tax-product_cat .wa-cat-page .wa-product-price ins {
  text-decoration: none !important;
  font-weight: 700;
  color: var(--wa-text);
}

.tax-product_cat .wa-cat-page .wa-product-price del {
  opacity: 0.6;
  margin-right: 8px;
}

.tax-product_cat .wa-cat-page .wa-product-price .woocommerce-Price-amount {
  letter-spacing: -0.01em;
}

/* SKU */
.tax-product_cat .wa-cat-page .wa-product-sku {
  font-size: 13px;
  line-height: 1.35;
  opacity: .9;
}

.tax-product_cat .wa-cat-page .wa-product-brand {
  font-size: 13px;
  line-height: 1.35;
  opacity: .9;
}

.tax-product_cat .wa-cat-page .wa-product-sku-value {
    font-size: 13px;
    line-height: 1.35;
    opacity: .9;
}

.tax-product_cat .wa-cat-page .wa-subcat-actions,
.tax-product_cat .wa-cat-page .wa-product-actions {
  margin-top: 2px;
}

.tax-product_cat .wa-cat-page .wa-subcat-btn,
.tax-product_cat .wa-cat-page .wa-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--wa-primary);
  color: var(--wa-on-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 18px rgba(32, 76, 229, 0.18);
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.tax-product_cat .wa-cat-page .wa-subcat-card:hover .wa-subcat-btn,
.tax-product_cat .wa-cat-page .wa-product-card:hover .wa-product-btn {
  background: var(--wa-primary-2);
  box-shadow: 0 12px 28px rgba(0, 26, 179, 0.22);
  transform: translateY(-1px);
background-color: #F37731!important;
}

/* Optional: add a subtle arrow without changing markup */
.tax-product_cat .wa-cat-page .wa-product-btn::after,
.tax-product_cat .wa-cat-page .wa-subcat-btn::after {
  content: "→";
  font-weight: 900;
  opacity: 0.95;
}

.tax-product_cat .wa-cat-page .wa-empty {
  margin: 0;
  padding: 16px;
  background: var(--wa-surface-2);
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius-sm);
  color: var(--wa-muted);
}

.tax-product_cat .wa-cat-page .wa-cat-description-bottom {
  margin-top: 4px;
}

.tax-product_cat .wa-cat-page .wa-cat-description {
  padding: 16px 18px;
  background: var(--wa-surface);
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius);
  color: rgba(15, 23, 42, 0.86);
  line-height: 1.65;
}

.tax-product_cat .wa-cat-page .wa-cat-description p:first-child {
  margin-top: 0;
}

.tax-product_cat .wa-cat-page .wa-cat-description p:last-child {
  margin-bottom: 0;
}

/* Some themes add UL padding/margins globally */
.tax-product_cat .wa-cat-page ul.wa-subcats-grid,
.tax-product_cat .wa-cat-page ul.wa-products-grid {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Some themes force images max-width but not height */
.tax-product_cat .wa-cat-page img {
  max-width: 100%;
  height: auto;
}

/* Prevent link styles from theme overriding inside cards */
.tax-product_cat .wa-cat-page .wa-subcat-link:hover,
.tax-product_cat .wa-cat-page .wa-product-link:hover {
  text-decoration: none !important;
}

/* WA buttons — match template */
.tax-product_cat .wa-cat-page .wa-subcat-btn,
.tax-product_cat .wa-cat-page .wa-product-btn{
  font-family: "Albert Sans", sans-serif !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  background-color: #44949c !important;
  border-radius: 8px !important;
  width: 100% !important;
  padding: 20px 14px!important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  line-height: 1.1;
  box-shadow: none !important;
}

/* Remove the arrow I added earlier (optional) */
.tax-product_cat .wa-cat-page .wa-product-btn::after,
.tax-product_cat .wa-cat-page .wa-subcat-btn::after{
  content: "" !important;
}

/* --- Equal-height subcategory cards + aligned buttons --- */
.tax-product_cat .wa-subcats-grid{
  display: grid; 
}

.tax-product_cat .wa-subcats-grid .wa-subcat-card{
  height: 100%;
}

.tax-product_cat .wa-subcats-grid .wa-subcat-link{
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tax-product_cat .wa-subcats-grid .wa-subcat-media{
  width: 100%;
  aspect-ratio: 5 / 6;  
  overflow: hidden;
  border-radius: 12px;    
  flex: 0 0 auto;
}

.tax-product_cat .wa-subcats-grid .wa-subcat-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;    
  display: block;
}

.tax-product_cat .wa-subcats-grid .wa-subcat-body{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.tax-product_cat .wa-subcats-grid .wa-subcat-actions{
  margin-top: auto;
}

/* --- Equal-height PRODUCT cards + aligned buttons --- */
/* ensure each grid item can stretch */
.tax-product_cat .wa-products-grid .wa-product-card{
  height: 100%;
}

/* make the card link fill the whole card height */
.tax-product_cat .wa-products-grid .wa-product-link{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* consistent image area */
.tax-product_cat .wa-products-grid .wa-product-media{
  width: 100%;
  aspect-ratio: 5 / 6;   /* change to 3/4 if you want taller images */
  overflow: hidden;
  border-radius: 12px;  /* optional */
  flex: 0 0 auto;
}

@media (max-width: 1199.98px){
  .tax-product_cat .wa-products-grid .wa-product-media{
    aspect-ratio: 7 / 6;
  }
}

/* normalize WooCommerce img sizing inside */
.tax-product_cat .wa-products-grid .wa-product-media img{
  width: 100%;
  height: 100%;
  /*object-fit: cover;*/
  display: block;
}

/* body fills remaining space */
.tax-product_cat .wa-products-grid .wa-product-body{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* pin button to bottom of the card */
.tax-product_cat .wa-products-grid .wa-product-actions{
  margin-top: auto;
}

.tax-product_cat .wa-subcat-btn,
.tax-product_cat .wa-product-btn{
  font-family: "Albert Sans";
  color: #ffffff;
  font-weight: 600;
  background-color: #44949c;
  border-radius: 8px;
  padding: 20px 14px;
  width: 100%;
  display: block;
  text-align: center;
  line-height: 1.2;
}

.tax-product_cat .wa-subcat-btn,
.tax-product_cat .wa-product-btn{
     
  display: flex;        
  align-items: center;
  justify-content: center;
  padding-top: 0;      
  padding-bottom: 0;
  padding: 20px 14px;
  white-space: normal;
  text-align: center;
}

body.page:not(.home):not(.front-page) .wa-page {
  --wa-bg: #ffffff;
  --wa-surface: #ffffff;
  --wa-surface-2: #f7f8fb;
  --wa-text: #0f172a;
  --wa-muted: #64748b;
  --wa-border: rgba(15, 23, 42, 0.12);
  --wa-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --wa-shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.12);
  --wa-radius: 16px;
  --wa-radius-sm: 12px;
  --wa-primary: #204ce5;
  --wa-primary-2: #001ab3;
  --wa-on-primary: #ffffff;
  --wa-pad: clamp(16px, 2.5vw, 28px);
  --wa-gap: clamp(14px, 2vw, 22px);

  color: var(--wa-text);
  background: #fff;
  max-width: 1250px;
  width: calc(100% - 30px);
  margin-left: auto;
  margin-right: auto;
  padding: var(--wa-pad);
}

.page .wa-page .wa-cat-hero {
  background: linear-gradient(180deg, var(--wa-surface-2), var(--wa-bg));
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius);
  padding: calc(var(--wa-pad) + 6px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.page .wa-page .wa-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  line-height: 1.3;
  color: var(--wa-muted);
  margin-bottom: 10px;
}

.page .wa-page .wa-sep {
  opacity: .7;
}

.page .wa-page .top-bar-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.page .wa-page .wa-cat-title {
  margin: 0;
}

.top-bar-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wa-acf-additional-content {
	justify-content: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 25px;
}

.hero-text {
	display: flex;
	flex-direction: column;
	text-align: flex-start;
	width: 65%;
	gap: 12px;
}

.wa-acf-additional-content {
	text-align: start!important;
}

.wa-acf-icon-badges {
	width: 40%;
	display: flex;
	justify-content: flex-end;
}

/* in case you want the "card" on the header itself instead */
#hero-blog .wa-blog-hero .wa-cat-hero{
  width: 100% !important;
}

/* breadcrumbs + title */
#hero-blog .wa-breadcrumbs{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 12px 0 !important;
  color: var(--wa-muted) !important;
  font-size: 13px!important;
}

#hero-blog .wa-breadcrumbs a{
  color: inherit !important;
}


#hero-blog .wa-sep{
  opacity: .6 !important;
}

#hero-blog .wa-cat-title{
  margin: 0 !important;
  line-height: 1.15 !important;
  font-size: 32px!important;
  font-family: "Albert Sans";
}

#brxe-jzojlk {
	padding: 0;
}

#brxe-okryvp {
	display: none!important;
}

/* 1) Stop "off-center" caused by overflow / widths */
.wa-cat-page,
.wa-cat-page * {
  box-sizing: border-box;
}

.wa-cat-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* prevents slight sideways drift */
}

/* If your theme has a centered content wrapper, this keeps WA sections aligned */
.wa-cat-page .wa-cat-hero,
.wa-cat-page .wa-cat-content,
.wa-cat-page .wa-subcats,
.wa-cat-page .wa-products,
.wa-cat-page .wa-cat-description-bottom,
.wa-cat-page .wa-shortcode-products {
  width: 100%;
  max-width: 100%;
}

/* Optional: create consistent page gutters */
.wa-cat-page {
  padding-left: clamp(14px, 3.5vw, 28px);
  padding-right: clamp(14px, 3.5vw, 28px);
}

/* 2) Breadcrumbs: avoid weird nesting + spacing */
.wa-cat-page .wa-breadcrumbs {
  width: 100%;
  max-width: 100%;
}

.wa-cat-page .wa-breadcrumbs .wa-breadcrumbs {
  /* you have a .wa-breadcrumbs inside .wa-breadcrumbs */
  width: 100%;
}

/* 3) Hero layout */
.wa-cat-page .top-bar-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 28px);
  width: 100%;
  max-width: 100%;
}

.wa-cat-page .hero-text {
  flex: 1 1 520px;
  min-width: 0; /* prevents flex children from forcing overflow */
}

.wa-cat-page .wa-acf-icon-badges {
  flex: 0 1 380px;
  min-width: 0;
}

/* Make badge images behave */
.wa-cat-page .wa-acf-icon-badges img {
  max-width: 110px;
  width: 100%;
  height: auto;
  display: block;
}

/* Put badges in a neat row that wraps */
.wa-cat-page .wa-acf-icon-badges p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.wa-cat-page .wa-acf-icon-badges a {
  display: inline-flex;
}

/* 4) Grids: ensure true full-width + responsive columns */
.wa-cat-page .wa-subcats-grid,
.wa-cat-page .wa-products-grid {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(12px, 2vw, 20px);
}

/* Desktop default for "wa-grid-4" */
.wa-cat-page .wa-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Cards should never add extra width */
.wa-cat-page .wa-subcat-card,
.wa-cat-page .wa-product-card {
  min-width: 0;
}

.wa-cat-page .wa-subcat-link,
.wa-cat-page .wa-product-link {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Media should not overflow */
.wa-cat-page .wa-subcat-media,
.wa-cat-page .wa-product-media {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.wa-cat-page .wa-subcat-media img,
.wa-cat-page .wa-product-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* 5) Mobile + Tablet breakpoints */
@media (max-width: 1024px) {
  .wa-cat-page .wa-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Hero stacks + centers */
  .wa-cat-page .top-bar-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .wa-cat-page .wa-acf-icon-badges p {
    justify-content: center;
  }

  .wa-cat-page .wa-cat-title,
  .wa-cat-page .wa-section-title {
    text-align: left; /* change to center if you want */
  }

  /* 1 column grids */
  .wa-cat-page .wa-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  /* tiny phones: tighter gutters */
  .wa-cat-page {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* MOBILE ONLY: top-bar-hero layout */
@media (max-width: 768px){

  .top-bar-hero{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;       
  }

  .top-bar-hero .hero-text,
  .top-bar-hero .wa-acf.wa-acf-icon-badges{
    width: 100%;
  }

  .top-bar-hero .wa-acf.wa-acf-icon-badges{
    display: flex;
    justify-content: center;
  }

  .top-bar-hero .wa-acf.wa-acf-icon-badges p{
    margin: 0;
    display: flex;
    gap: 8px;       
    flex-wrap: wrap;     
    justify-content: flex-start;
  }

  .top-bar-hero .wa-acf.wa-acf-icon-badges a{
    display: inline-flex;
    line-height: 0;
  }

  .top-bar-hero .wa-acf.wa-acf-icon-badges img{
    width: clamp(64px, 18vw, 110px);
    height: auto;
    display: block;
  }

  .top-bar-hero .hero-text > *:first-child{ margin-top: 0; }
  .top-bar-hero .hero-text > *:last-child{ margin-bottom: 0; }
  .top-bar-hero .hero-text .wa-acf-additional-content p{ margin: 0; }
}

@media (max-width: 768px){
  .top-bar-hero .hero-text{
    flex: unset !important;   
  }

  .top-bar-hero .wa-acf.wa-acf-icon-badges{
    flex: unset !important; 
  }
}

.woocommerce-checkout .wa-cat-hero {
	display: none;
}

.woocommerce-cart .wa-cat-hero {
	display: none;
}

/**** shop page ****/
.wa-products-grid .wa-product-card{
  position: relative;
  overflow: visible;
}

.wa-products-grid .wa-product-card > .discounted-card__status-badge{
  position: absolute;
  top: 0px;
  left: -10px;
  z-index: 9;
  pointer-events: none;
}

.wa-products-grid,
.wa-products-grid *{
  overflow: visible !important;
}

/* card surface */
.wa-subcat-card .wa-subcat-link{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px;

  border-radius: 24px;
  background: #fff;
  text-decoration: none;
  height: 100%;
  box-sizing: border-box;
}

/* media area */
.wa-subcat-card .wa-subcat-media{
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* image */
.wa-subcat-card .wa-subcat-media img{
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

/* placeholder */
.wa-subcat-card .wa-subcat-placeholder{
  width: 100%;
  min-height: 220px;
  border-radius: 18px;
  background: #f2f4f7;
}

/* bottom area */
.wa-subcat-card .wa-subcat-body{
  width: 100%;
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.wa-subcat-card .wa-subcat-actions{
  width: 100%;
  display: flex;
  justify-content: center;
}

.wa-subcat-card .wa-subcat-btn{
  width: 100%;
  text-align: center;
  font-weight: 700;
}

main#main.site-main .page-description h2,
main#main.site-main .page-description h3,
main#main.site-main .wa-cat-description h2,
main#main.site-main .wa-cat-description h3{
  margin: 18px 0 10px;
  line-height: 1.2;
}

main#main.site-main .page-description p,
main#main.site-main .wa-cat-description p{
  margin: 0 0 12px;
	text-align: left;
}

main#main.site-main .woocommerce-products-header + .wa-cat-page{
  margin-top: 18px;
}

.wa-cat-page .wa-subcats{
  margin: 18px 0 42px;
}

.wa-cat-page .wa-cat-description-bottom{
  margin-top: 28px;
}

main#main.site-main .page-description ul,
main#main.site-main .wa-cat-description ul{
  margin: 25px 0;
  padding: 0;
  list-style: none;
	text-align: left;
  gap: 10px;
}

main#main.site-main .page-description ul > li,
main#main.site-main .wa-cat-description ul > li{
  position: relative;
  padding-left: 34px;
  margin: 0;       
  line-height: 200%;
}

main#main.site-main .page-description ul > li::before,
main#main.site-main .wa-cat-description ul > li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #98a2b3;
  background: #ffffff;
  font-size: 14px;
  line-height: 1;
  box-shadow: 2px 2px 8px 0 #e0e0e0;
}

.wa-cat-page .wa-cat-title{
  margin: 0 0 14px;
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1.12;
}

/* shop archive ---------- */
.post-type-archive-product .wa-cat-page .wa-cat-hero,
.tax-product_cat .wa-cat-page .wa-cat-hero {
  background: linear-gradient(180deg, var(--wa-surface-2), var(--wa-bg));
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius);
  padding: calc(var(--wa-pad) + 6px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  margin-bottom: calc(var(--wa-pad) + 4px);
}

.post-type-archive-product .wa-cat-page .wa-breadcrumbs,
.tax-product_cat .wa-cat-page .wa-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  line-height: 1.3;
  color: var(--wa-muted);
  margin-bottom: 10px;
}

.post-type-archive-product .wa-cat-page .wa-breadcrumbs a,
.tax-product_cat .wa-cat-page .wa-breadcrumbs a {
  color: var(--wa-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.post-type-archive-product .wa-cat-page .wa-breadcrumbs a:hover,
.tax-product_cat .wa-cat-page .wa-breadcrumbs a:hover {
  color: var(--wa-text);
  border-bottom-color: rgba(15, 23, 42, 0.25);
}

.post-type-archive-product .wa-cat-page .wa-sep,
.tax-product_cat .wa-cat-page .wa-sep {
  opacity: 0.6;
}

.post-type-archive-product .wa-cat-page .wa-cat-title,
.tax-product_cat .wa-cat-page .wa-cat-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* 
.wa-shop-page
 */
.wa-shop-page .wa-subcat-link{
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--wa-border, rgba(15,23,42,.12));
  border-radius: var(--wa-radius, 16px);
  background: var(--wa-surface, #fff);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.wa-shop-page .wa-subcat-link:hover{
  transform: translateY(-2px);
  box-shadow: var(--wa-shadow-hover, 0 18px 45px rgba(15, 23, 42, 0.12));
  border-color: rgba(15, 23, 42, 0.18);
}

.wa-shop-page .wa-subcat-media{
  background: var(--wa-surface-2, #f7f8fb);
}

.wa-shop-page .wa-subcat-media img{
  width: 100%;
  height: auto;
  display: block;
}

.wa-shop-page .wa-subcat-media img{
  transition: transform 200ms ease;
}

.wa-shop-page .wa-subcat-link:hover .wa-subcat-media img{
  transform: scale(1.02);
}

.wa-shop-page .wa-subcat-btn{
  transition: filter 160ms ease, transform 160ms ease;
}

.wa-shop-page .wa-subcat-link:hover .wa-subcat-btn{
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.wa-shop-page .wa-subcat-link:focus-visible{
  outline: 3px solid rgba(32, 76, 229, 0.25);
  outline-offset: 3px;
}



main#main.site-main{
  padding-top: 36px;
  padding-bottom: 64px;
}

main#main.site-main .woocommerce-breadcrumb{
  margin: 0 0 18px;
}


/* ======================================================================
   TERM DESCRIPTION AND CATEGORY HEADER
   ====================================================================== */

/* category archive header intro links */
/* product category header intro links (archive only) */
body.tax-product_cat .woocommerce-products-header .addInfo a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]),
body.tax-product-cat .woocommerce-products-header .addInfo a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]),
body.tax-product_cat .woocommerce-products-header .addInfo a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]):visited,
body.tax-product-cat .woocommerce-products-header .addInfo a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]):visited {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.tax-product_cat .woocommerce-products-header .addInfo a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]):hover,
body.tax-product-cat .woocommerce-products-header .addInfo a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]):hover {
  color: #F97929;
}

/* term description styling (background + albert sans) */
.term-description {
  background: #EFEFEF;
  font-family: "Albert Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: clamp(1.25rem, 2vw, 2.25rem);
  border-radius: 18px;
  margin: 1.5rem 0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  color: #111827;
}

.term-description h2 {
  font-size: 24px;
  line-height: 1.15;
  margin: 1.1rem 0 0.6rem;
}

.term-description p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.term-description a {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.term-description ul,
.term-description ol {
  margin: 0.25rem 0 1.25rem 3rem;
  padding: 0;
}

.term-description li {
  margin: 0.55rem 0;
  line-height: 1.65;
}

/* make the inline image block look intentional */
.term-description img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 2rem auto;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

/* if wp wraps image in <h2>, reduce the weird spacing */
.term-description h2:has(img) {
  margin: 1.25rem 0;
}

/* woo category header "card" styling (albert sans + #efefef) */
.woocommerce-products-header {
  font-family: "Albert Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: clamp(1.25rem, 2vw, 2.5rem);
  border-radius: 18px;
  margin: 1.5rem 0 2rem;
  color: #111827;
  text-align: center;
}

/* title */
.woocommerce-products-header__title.page-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* make the intro paragraphs full width + 18px */
.woocommerce-products-header .addInfo {
  max-width: none;
  width: 100%;
}

.woocommerce-products-header .addInfo p {
  max-width: none;
  width: 100%;
  font-size: 18px;
}

/* links inside intro */
.woocommerce-products-header .addInfo a {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* optional: tighten spacing on mobile */
@media (max-width: 768px) {
  .woocommerce-products-header {
    margin: 1rem 0 1.25rem;
    border-radius: 16px;
  }
}

main#main.site-main .woocommerce-products-header{
  margin: 0 0 26px;
}

main#main.site-main .woocommerce-products-header__title.page-title{
  margin: 0 0 14px;
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1.12;
}


/* ======================================================================
   SIDEBAR LISTS
   ====================================================================== */

/* wrapper spacing (optional) */
.brxe-related-posts.bricks-related-categories {
  margin: 24px 0;
}

/* title */
.brxe-related-posts.bricks-related-categories .related-posts-title {
  font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 8px;
}

/* force ul to behave like a list, not a grid */
.brxe-related-posts.bricks-related-categories .related-posts.related-categories {
  display: block !important;
  gap: 0 !important;
  grid-auto-columns: auto !important;
  grid-auto-flow: row !important;
  list-style: none !important;
  margin: 0;
}

/* each li as a normal list item */
.brxe-related-posts.bricks-related-categories .related-posts.related-categories li {
  display: list-item !important;
  margin: 0 0 4px;
}

/* link text styling */
.brxe-related-posts.bricks-related-categories .related-posts.related-categories a {
  font-size: 16px;
  font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.5;
}

/* optional hover */
.brxe-related-posts.bricks-related-categories .related-posts.related-categories a:hover {
  text-decoration: underline;
}

/* wrapper spacing */
.brxe-related-posts.bricks-archives-list {
  margin: 24px 0;
}

/* title */
.brxe-related-posts.bricks-archives-list .related-posts-title {
  font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 8px;
}

/* force ul to behave like a list, not a grid */
.brxe-related-posts.bricks-archives-list .related-posts.related-archives {
  display: block !important;
  gap: 0 !important;
  grid-auto-columns: auto !important;
  grid-auto-flow: row !important;
  list-style: none !important;
  margin: 0;
}

/* each li as a normal list item */
.brxe-related-posts.bricks-archives-list .related-posts.related-archives li {
  display: list-item !important;
  margin: 0 0 4px;
}

/* link text styling */
.brxe-related-posts.bricks-archives-list .related-posts.related-archives a {
  font-size: 16px;
  font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.5;
}

/* optional hover */
.brxe-related-posts.bricks-archives-list .related-posts.related-archives a:hover {
  text-decoration: underline;
}
