/* EZGATION · Products archive / category catalog — client polish 2026-10-14
 * Loaded on shop + product_cat. Tokens only (no hard hex for brand colors). */

/* Width: site --ez-container is 1440 (ez-tokens.css). Archive inherits it. */

/* ===== Hero ===== */
body.post-type-archive-product .eza-hero,
body.tax-product_cat .eza-hero {
  padding-block: 36px 48px !important;
  background: #fff !important;
  border-bottom: 0 !important;
}
body.post-type-archive-product .eza-hero h1.elementor-heading-title,
body.tax-product_cat .eza-hero h1.elementor-heading-title {
  font-size: clamp(2rem, 2.6vw, 2.75rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem !important;
  color: var(--ez-ink, #1a1a1a) !important;
}
body.post-type-archive-product .eza-hero .woocommerce-archive-description,
body.tax-product_cat .eza-hero .term-description,
body.post-type-archive-product .eza-hero .page-description {
  max-width: 48rem;
  color: var(--ez-ink-soft, #3d4a47) !important;
  font-size: 1.125rem !important;
  line-height: 1.55 !important;
  margin: 0 0 1.15rem !important;
}
body.post-type-archive-product .eza-crumbs,
body.tax-product_cat .eza-crumbs {
  margin-bottom: 0.75rem !important;
}
body.post-type-archive-product .eza-hero .ez-search,
body.tax-product_cat .eza-hero .ez-search {
  max-width: 44rem;
  margin-top: 0.35rem;
  box-shadow: 0 1px 2px rgba(22, 63, 57, 0.04);
}
body.post-type-archive-product .eza-hero .ez-search input[type="search"],
body.tax-product_cat .eza-hero .ez-search input[type="search"] {
  border-radius: 10px !important;
  min-height: 52px;
  font-size: 1rem !important;
}
body.post-type-archive-product .eza-hero .ez-search button,
body.tax-product_cat .eza-hero .ez-search button,
body.post-type-archive-product .eza-hero .ez-search .ez-btn--primary,
body.tax-product_cat .eza-hero .ez-search .ez-btn--primary {
  border-radius: 10px !important;
  min-height: 52px;
  padding-inline: 1.5rem !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  background: var(--ez-primary, #009383) !important;
  border-color: var(--ez-primary, #009383) !important;
  color: #fff !important;
}
body.post-type-archive-product .eza-hero .ez-search button:hover,
body.tax-product_cat .eza-hero .ez-search button:hover,
body.post-type-archive-product .eza-hero .ez-search .ez-btn--primary:hover,
body.tax-product_cat .eza-hero .ez-search .ez-btn--primary:hover {
  background: #007a6e !important;
  border-color: #007a6e !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(0, 122, 110, 0.22);
}

/* Client 2026-10-19: drop the category strip under search */
body.post-type-archive-product .eza-subwrap,
body.tax-product_cat .eza-subwrap,
body.post-type-archive-product .eza-subcats,
body.tax-product_cat .eza-subcats {
  display: none !important;
}

/* ===== Category tiles (shop + category children) ===== */
body.post-type-archive-product .eza-subwrap,
body.tax-product_cat .eza-subwrap {
  padding-block: 28px 12px !important;
  background: #fff !important;
}
body.post-type-archive-product .eza-subcats ul.products,
body.tax-product_cat .eza-subcats ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.post-type-archive-product .eza-subcats li.product-category,
body.tax-product_cat .eza-subcats li.product-category {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #e8eeec !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
body.post-type-archive-product .eza-subcats li.product-category:hover,
body.tax-product_cat .eza-subcats li.product-category:hover {
  border-color: var(--ez-primary, #009383) !important;
  box-shadow: 0 8px 20px rgba(22, 63, 57, 0.1);
  transform: translateY(-2px);
}
body.post-type-archive-product .eza-subcats li.product-category > a,
body.tax-product_cat .eza-subcats li.product-category > a {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  color: var(--ez-ink, #1a1a1a) !important;
  height: 100%;
}
body.post-type-archive-product .eza-subcats li.product-category img,
body.tax-product_cat .eza-subcats li.product-category img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  background: #fff !important;
  border-radius: 0 !important;
  display: block !important;
}
/* still hide woo placeholder if a term somehow has none */
body.post-type-archive-product .eza-subcats li.product-category img[src*="woocommerce-placeholder"],
body.tax-product_cat .eza-subcats li.product-category img[src*="woocommerce-placeholder"] {
  display: none !important;
}
body.post-type-archive-product .eza-subcats .woocommerce-loop-category__title,
body.tax-product_cat .eza-subcats .woocommerce-loop-category__title {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 !important;
  padding: 14px 16px 16px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--ez-ink, #1a1a1a) !important;
  background: #fff;
}
body.post-type-archive-product .eza-subcats .woocommerce-loop-category__title .count,
body.tax-product_cat .eza-subcats .woocommerce-loop-category__title .count {
  background: var(--ez-primary-50, #e6f5f2) !important;
  color: var(--ez-color-primary-deep, #007a6e) !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  flex: none;
}

/* ===== Body: sidebar + grid ===== */
/* Catalog band: mint, one step under the white hero. Wave sits on the join. */
body.post-type-archive-product .ez-sec:has(.eza-body__in),
body.tax-product_cat .ez-sec:has(.eza-body__in) {
  position: relative;
  background: #f3f8f7 !important;
}
body.post-type-archive-product .ez-sec:has(.eza-body__in)::before,
body.tax-product_cat .ez-sec:has(.eza-body__in)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f8f7' d='M0 32c180 28 360-28 540-16s360 36 540 8 240-36 360-8v32H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
body.post-type-archive-product .eza-body__in,
body.tax-product_cat .eza-body__in {
  display: grid !important;
  grid-template-columns: 17rem minmax(0, 1fr) !important;
  gap: 2rem !important;
  align-items: start !important;
  padding-block: 16px 48px !important;
}
body.post-type-archive-product .eza-side,
body.tax-product_cat .eza-side {
  position: sticky;
  top: 1rem;
  gap: 1rem !important;
}
body.post-type-archive-product .eza-box,
body.tax-product_cat .eza-box {
  background: #fff !important;
  border: 1px solid var(--ez-border, #e2ebe9) !important;
  border-radius: 12px !important;
  overflow: hidden;
  padding: 1rem 1.05rem !important;
  box-shadow: 0 1px 2px rgba(22, 63, 57, 0.03);
}
body.post-type-archive-product .eza-side ul.product-categories > li > .ez-cats-row,
body.tax-product_cat .eza-side ul.product-categories > li > .ez-cats-row {
  border-radius: 8px;
}
body.post-type-archive-product .eza-side .ez-side-title .elementor-heading-title,
body.tax-product_cat .eza-side .ez-side-title .elementor-heading-title {
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  color: var(--ez-ink, #1a1a1a) !important;
  margin: 0 0 0.65rem !important;
}
body.post-type-archive-product .eza-side ul.product-categories,
body.tax-product_cat .eza-side ul.product-categories {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.post-type-archive-product .eza-side ul.product-categories > li,
body.tax-product_cat .eza-side ul.product-categories > li {
  border-bottom: 1px solid var(--ez-border, #e2ebe9);
}
body.post-type-archive-product .eza-side ul.product-categories > li:last-child,
body.tax-product_cat .eza-side ul.product-categories > li:last-child {
  border-bottom: 0;
}
body.post-type-archive-product .eza-side ul.product-categories a,
body.tax-product_cat .eza-side ul.product-categories a {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.15rem !important;
  color: var(--ez-ink, #1a1a1a) !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.35;
}
body.post-type-archive-product .eza-side ul.product-categories a:hover,
body.tax-product_cat .eza-side ul.product-categories a:hover {
  color: var(--ez-primary, #009383) !important;
}
body.post-type-archive-product .eza-side ul.product-categories .children,
body.tax-product_cat .eza-side ul.product-categories .children {
  list-style: none !important;
  padding: 0.15rem 0 0.45rem 0.7rem !important;
  margin: 0 0 0.15rem !important;
  border-inline-start: 2px solid var(--ez-primary-100, #d6f0ec) !important;
}
body.post-type-archive-product .eza-side ul.product-categories .children a,
body.tax-product_cat .eza-side ul.product-categories .children a {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--ez-ink-soft, #3d4a47) !important;
  padding: 0.28rem 0.2rem !important;
  border-radius: 4px;
}
body.post-type-archive-product .eza-side ul.product-categories .children a:hover,
body.tax-product_cat .eza-side ul.product-categories .children a:hover {
  background: var(--ez-primary-50, #e6f5f2) !important;
  color: var(--ez-color-primary-deep, #007a6e) !important;
}
body.post-type-archive-product .eza-side ul.product-categories .current-cat > a,
body.tax-product_cat .eza-side ul.product-categories .current-cat > a {
  font-weight: 800 !important;
  color: var(--ez-color-primary-deep, #007a6e) !important;
}
body.post-type-archive-product .eza-side ul.product-categories .current-cat-parent > a,
body.tax-product_cat .eza-side ul.product-categories .current-cat-parent > a {
  font-weight: 700 !important;
  color: var(--ez-header-dark, #163f39) !important;
}
body.post-type-archive-product .eza-side ul.product-categories .children .current-cat > a,
body.tax-product_cat .eza-side ul.product-categories .children .current-cat > a {
  background: var(--ez-primary-50, #e6f5f2) !important;
}
body.post-type-archive-product .eza-side ul.product-categories .count,
body.tax-product_cat .eza-side ul.product-categories .count {
  display: none !important;
}
body.post-type-archive-product .eza-side .ez-btn,
body.tax-product_cat .eza-side .ez-btn {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

/* ===== Product categories accordion (ez-archive-cats.js) ===== */
body.post-type-archive-product .eza-side .ez-cats-acc,
body.tax-product_cat .eza-side .ez-cats-acc {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
body.post-type-archive-product .eza-side ul.product-categories > li,
body.tax-product_cat .eza-side ul.product-categories > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "row count"
    "kids kids";
  align-items: center;
  column-gap: 0.35rem;
  padding: 0.15rem 0;
}
body.post-type-archive-product .eza-side ul.product-categories > li > .ez-cats-row,
body.tax-product_cat .eza-side ul.product-categories > li > .ez-cats-row {
  grid-area: row;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
body.post-type-archive-product .eza-side ul.product-categories > li > .ez-cats-row > a,
body.tax-product_cat .eza-side ul.product-categories > li > .ez-cats-row > a {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.45rem 0.1rem !important;
  justify-content: flex-start;
}
body.post-type-archive-product .eza-side ul.product-categories > li > .count,
body.tax-product_cat .eza-side ul.product-categories > li > .count {
  grid-area: count;
  justify-self: end;
  white-space: nowrap;
}
body.post-type-archive-product .eza-side ul.product-categories > li > .children,
body.tax-product_cat .eza-side ul.product-categories > li > .children {
  grid-area: kids;
}
body.post-type-archive-product .eza-side .ez-cats-branch-toggle,
body.tax-product_cat .eza-side .ez-cats-branch-toggle {
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ez-border, #e2ebe9);
  border-radius: 6px;
  background: #fff;
  color: var(--ez-header-dark, #163f39);
  cursor: pointer;
  position: relative;
  line-height: 1;
}
body.post-type-archive-product .eza-side .ez-cats-branch-toggle::before,
body.tax-product_cat .eza-side .ez-cats-branch-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.15s ease;
}
body.post-type-archive-product .eza-side li.ez-cats-has-kids.is-open > .ez-cats-row .ez-cats-branch-toggle::before,
body.tax-product_cat .eza-side li.ez-cats-has-kids.is-open > .ez-cats-row .ez-cats-branch-toggle::before {
  transform: rotate(225deg) translate(-1px, -1px);
}
body.post-type-archive-product .eza-side .ez-cats-branch-toggle:hover,
body.tax-product_cat .eza-side .ez-cats-branch-toggle:hover {
  border-color: var(--ez-primary, #009383);
  color: var(--ez-primary, #009383);
  background: var(--ez-primary-50, #e6f5f2);
}
/* Collapse children until branch opened (JS adds .is-open) */
body.post-type-archive-product .eza-side ul.product-categories .children,
body.tax-product_cat .eza-side ul.product-categories .children {
  display: none !important;
}
body.post-type-archive-product .eza-side li.ez-cats-has-kids.is-open > .children,
body.tax-product_cat .eza-side li.ez-cats-has-kids.is-open > .children {
  display: block !important;
}
/* Flat top-level items without kids still use the <a> directly */
body.post-type-archive-product .eza-side ul.product-categories > li:not(.ez-cats-has-kids) > a,
body.tax-product_cat .eza-side ul.product-categories > li:not(.ez-cats-has-kids) > a {
  grid-area: row;
}
/* Mobile: whole list collapses under title until .is-open on box */
@media (max-width: 1024px) {
  body.post-type-archive-product .eza-side .ez-cats-acc:not(.is-open) ul.product-categories,
  body.tax-product_cat .eza-side .ez-cats-acc:not(.is-open) ul.product-categories {
    display: none !important;
  }
  body.post-type-archive-product .eza-side .ez-cats-acc__title,
  body.tax-product_cat .eza-side .ez-cats-acc__title {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  body.post-type-archive-product .eza-side .ez-cats-acc__title::after,
  body.tax-product_cat .eza-side .ez-cats-acc__title::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
  }
  body.post-type-archive-product .eza-side .ez-cats-acc.is-open .ez-cats-acc__title::after,
  body.tax-product_cat .eza-side .ez-cats-acc.is-open .ez-cats-acc__title::after {
    transform: rotate(225deg);
  }
}

/* Category accordion — three layers, Rainfaun pattern in EZ greens:
   page (light) / parent bar #1b6b61 / open pocket #0c2824.
   Closed = plus. Open = same parent bar, icon becomes ×, children sit in the dark pocket. */
body.post-type-archive-product .eza-side .eza-box:has(ul.product-categories),
body.tax-product_cat .eza-side .eza-box:has(ul.product-categories) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
body.post-type-archive-product .eza-side .ez-cats-acc,
body.tax-product_cat .eza-side .ez-cats-acc {
  gap: 0;
}
body.post-type-archive-product .eza-side ul.product-categories > li,
body.tax-product_cat .eza-side ul.product-categories > li {
  border-bottom: 1px solid #14564e !important;
  padding: 0 !important;
  background: #1b6b61;
}
body.post-type-archive-product .eza-side ul.product-categories > li:last-child,
body.tax-product_cat .eza-side ul.product-categories > li:last-child {
  border-bottom: 0 !important;
}
body.post-type-archive-product .eza-side ul.product-categories > li > .ez-cats-row,
body.tax-product_cat .eza-side ul.product-categories > li > .ez-cats-row,
body.post-type-archive-product .eza-side ul.product-categories > li:not(.ez-cats-has-kids) > a,
body.tax-product_cat .eza-side ul.product-categories > li:not(.ez-cats-has-kids) > a {
  background: #1b6b61;
  min-height: 2.7rem;
}
body.post-type-archive-product .eza-side ul.product-categories > li > .ez-cats-row > a,
body.tax-product_cat .eza-side ul.product-categories > li > .ez-cats-row > a,
body.post-type-archive-product .eza-side ul.product-categories > li:not(.ez-cats-has-kids) > a,
body.tax-product_cat .eza-side ul.product-categories > li:not(.ez-cats-has-kids) > a,
body.post-type-archive-product .eza-side ul.product-categories > li.current-cat > a,
body.tax-product_cat .eza-side ul.product-categories > li.current-cat > a,
body.post-type-archive-product .eza-side ul.product-categories > li.current-cat-parent > .ez-cats-row > a,
body.tax-product_cat .eza-side ul.product-categories > li.current-cat-parent > .ez-cats-row > a {
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0.7rem 2.2rem 0.7rem 0.9rem !important;
  background: transparent !important;
}
body.post-type-archive-product .eza-side ul.product-categories > li:hover > .ez-cats-row,
body.tax-product_cat .eza-side ul.product-categories > li:hover > .ez-cats-row,
body.post-type-archive-product .eza-side ul.product-categories > li:not(.ez-cats-has-kids):hover > a,
body.tax-product_cat .eza-side ul.product-categories > li:not(.ez-cats-has-kids):hover > a {
  background: #145e56;
}
body.post-type-archive-product .eza-side ul.product-categories > li > .ez-cats-row > a:hover,
body.tax-product_cat .eza-side ul.product-categories > li > .ez-cats-row > a:hover {
  color: #fff !important;
  background: transparent !important;
}
body.post-type-archive-product .eza-side .ez-cats-branch-toggle,
body.tax-product_cat .eza-side .ez-cats-branch-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}
body.post-type-archive-product .eza-side ul.product-categories > li > .ez-cats-row,
body.tax-product_cat .eza-side ul.product-categories > li > .ez-cats-row {
  position: relative;
}
body.post-type-archive-product .eza-side .ez-cats-branch-toggle::before,
body.tax-product_cat .eza-side .ez-cats-branch-toggle::before,
body.post-type-archive-product .eza-side .ez-cats-branch-toggle::after,
body.tax-product_cat .eza-side .ez-cats-branch-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  margin: 0;
  border: 0;
  background: #fff;
  transform: translate(-50%, -50%);
}
body.post-type-archive-product .eza-side .ez-cats-branch-toggle::after,
body.tax-product_cat .eza-side .ez-cats-branch-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
body.post-type-archive-product .eza-side li.ez-cats-has-kids.is-open > .ez-cats-row .ez-cats-branch-toggle::before,
body.tax-product_cat .eza-side li.ez-cats-has-kids.is-open > .ez-cats-row .ez-cats-branch-toggle::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
body.post-type-archive-product .eza-side li.ez-cats-has-kids.is-open > .ez-cats-row .ez-cats-branch-toggle::after,
body.tax-product_cat .eza-side li.ez-cats-has-kids.is-open > .ez-cats-row .ez-cats-branch-toggle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
body.post-type-archive-product .eza-side .ez-cats-branch-toggle:hover,
body.tax-product_cat .eza-side .ez-cats-branch-toggle:hover {
  border: 0;
  background: transparent;
  color: #fff;
}
body.post-type-archive-product .eza-side ul.product-categories .children,
body.tax-product_cat .eza-side ul.product-categories .children {
  background: #0c2824 !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0.3rem 0 0.45rem !important;
}
body.post-type-archive-product .eza-side ul.product-categories .children a,
body.tax-product_cat .eza-side ul.product-categories .children a,
body.post-type-archive-product .eza-side ul.product-categories .children .current-cat > a,
body.tax-product_cat .eza-side ul.product-categories .children .current-cat > a {
  color: rgba(255, 255, 255, 0.9) !important;
  background: transparent !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  padding: 0.42rem 0.95rem 0.42rem 1.15rem !important;
  border-radius: 0;
}
body.post-type-archive-product .eza-side ul.product-categories .children a:hover,
body.tax-product_cat .eza-side ul.product-categories .children a:hover,
body.post-type-archive-product .eza-side ul.product-categories .children .current-cat > a,
body.tax-product_cat .eza-side ul.product-categories .children .current-cat > a {
  color: #fff !important;
  background: #163f39 !important;
}
/* Empty filter slot (no layered-nav UI yet) */
body.post-type-archive-product .ez-filter-slot,
body.tax-product_cat .ez-filter-slot {
  display: none !important;
}

/* ===== Product cards ===== */
body.post-type-archive-product .ez-card,
body.tax-product_cat .ez-card,
body.post-type-archive-product .e-loop-item .ez-card,
body.tax-product_cat .e-loop-item .ez-card {
  background: #e6f5f2 !important;
  border: 1px solid #d3ebe6 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(22, 63, 57, 0.05) !important;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  height: 100%;
}
body.post-type-archive-product .ez-card:hover,
body.tax-product_cat .ez-card:hover {
  border-color: var(--ez-primary-200, #9ad9cf) !important;
  box-shadow: 0 10px 28px rgba(22, 63, 57, 0.12) !important;
  transform: translateY(-3px);
}
body.post-type-archive-product .ez-card .ez-card__media,
body.tax-product_cat .ez-card .ez-card__media,
body.post-type-archive-product .ez-card .elementor-widget-image,
body.tax-product_cat .ez-card .elementor-widget-image {
  background: #fff !important;
}
body.post-type-archive-product .ez-card .ez-card__media img,
body.tax-product_cat .ez-card .ez-card__media img,
body.post-type-archive-product .ez-card .elementor-widget-image img,
body.tax-product_cat .ez-card .elementor-widget-image img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  padding: 1rem !important;
  background: #fff !important;
  display: block !important;
  box-shadow: 0 10px 18px rgba(22, 63, 57, 0.1);
}
body.post-type-archive-product .ez-card .ez-card__body,
body.tax-product_cat .ez-card .ez-card__body {
  padding: 1rem 1.15rem 1.15rem !important;
  gap: 0.45rem !important;
  background: #e6f5f2 !important;
}
body.post-type-archive-product .ez-card .ez-model .elementor-heading-title,
body.tax-product_cat .ez-card .ez-model .elementor-heading-title,
body.post-type-archive-product .ez-card .ez-model,
body.tax-product_cat .ez-card .ez-model {
  font-family: var(--ez-font-mono, ui-monospace, monospace) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--ez-color-primary-deep, #007a6e) !important;
  letter-spacing: 0.02em;
  margin: 0 !important;
}
body.post-type-archive-product .ez-card .ez-card__title .elementor-heading-title,
body.tax-product_cat .ez-card .ez-card__title .elementor-heading-title,
body.post-type-archive-product .ez-card .ez-card__title,
body.tax-product_cat .ez-card .ez-card__title {
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--ez-ink, #1a1a1a) !important;
  margin: 0 !important;
  min-height: 2.7em;
}
body.post-type-archive-product .ez-card .ez-card__title a,
body.tax-product_cat .ez-card .ez-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}
body.post-type-archive-product .ez-card .ez-card__title a:hover,
body.tax-product_cat .ez-card .ez-card__title a:hover {
  color: var(--ez-primary, #009383) !important;
}
body.post-type-archive-product .ez-card .ez-card__actions,
body.tax-product_cat .ez-card .ez-card__actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.4rem !important;
  margin-top: 0.65rem !important;
  padding-top: 0 !important;
  align-items: stretch !important;
}
body.post-type-archive-product .ez-card .ez-card__actions .ez-btn,
body.tax-product_cat .ez-card .ez-card__actions .ez-btn {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  padding: 0.55rem 0.45rem !important;
  border-radius: 8px !important;
  line-height: 1.2 !important;
  min-height: 2.35rem !important;
  white-space: nowrap;
  box-sizing: border-box;
}
/* Button label is plain text — do not dual-render via ::before (was duplicating). */
body.post-type-archive-product .ez-card .ez-card-add::before,
body.tax-product_cat .ez-card .ez-card-add::before {
  content: none !important;
}
/* Product loop: prefer 3 wide cards; at ≥1400 allow breathing room */
body.post-type-archive-product .eza-grid .elementor-grid,
body.tax-product_cat .eza-grid .elementor-grid,
body.post-type-archive-product .eza-grid .e-loop,
body.tax-product_cat .eza-grid .e-loop {
  gap: 1.25rem !important;
}
body.post-type-archive-product .ez-card .ez-card-quote,
body.tax-product_cat .ez-card .ez-card-quote {
  background: var(--ez-primary, #009383) !important;
  border-color: var(--ez-primary, #009383) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(0, 147, 131, 0.28);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
body.post-type-archive-product .ez-card .ez-card-quote:hover,
body.tax-product_cat .ez-card .ez-card-quote:hover {
  background: #007a6e !important;
  border-color: #007a6e !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(0, 122, 110, 0.28);
}
body.post-type-archive-product .ez-card .ez-card-add,
body.tax-product_cat .ez-card .ez-card-add {
  background: #fff !important;
  border: 1.5px solid var(--ez-header-dark, #163f39) !important;
  color: var(--ez-header-dark, #163f39) !important;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
body.post-type-archive-product .ez-card .ez-card-add:hover,
body.tax-product_cat .ez-card .ez-card-add:hover {
  background: #009383 !important;
  border-color: #009383 !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(0, 147, 131, 0.25);
}
body.post-type-archive-product .ez-card .ez-card-add[hidden],
body.tax-product_cat .ez-card .ez-card-add[hidden] {
  display: none !important;
}

/* Loop grid denser */
body.post-type-archive-product .eza-grid .e-loop,
body.tax-product_cat .eza-grid .e-loop,
body.post-type-archive-product .eza-grid .elementor-grid,
body.tax-product_cat .eza-grid .elementor-grid {
  gap: 1rem !important;
}

/* Pagination */
body.post-type-archive-product .eza-grid .elementor-pagination .page-numbers,
body.tax-product_cat .eza-grid .elementor-pagination .page-numbers {
  min-width: 2.25rem;
  text-align: center;
  border-radius: 8px !important;
}

/* Hide price/cart leftovers */
body.post-type-archive-product .price,
body.tax-product_cat .price,
body.post-type-archive-product .add_to_cart_button,
body.tax-product_cat .add_to_cart_button {
  display: none !important;
}

@media (max-width: 1024px) {
  body.post-type-archive-product .eza-body__in,
  body.tax-product_cat .eza-body__in {
    grid-template-columns: 1fr !important;
  }
  body.post-type-archive-product .eza-side,
  body.tax-product_cat .eza-side {
    position: static;
  }
  body.post-type-archive-product .eza-subcats ul.products,
  body.tax-product_cat .eza-subcats ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  body.post-type-archive-product .eza-subcats ul.products,
  body.tax-product_cat .eza-subcats ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
