body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
  --csb-catalog-ink: var(--csb-color-ink);
  --csb-catalog-muted: var(--csb-color-muted);
  --csb-catalog-line: var(--csb-color-line);
  --csb-catalog-soft: var(--csb-color-surface);
  --csb-catalog-blue: var(--csb-color-accent);
  --csb-catalog-navy: var(--csb-color-primary-dark);
}

.post-type-archive-product .content-shell,
.tax-product_cat .content-shell,
.tax-product_tag .content-shell {
  width: min(1240px, calc(100% - 40px));
  padding-top: 30px;
  padding-bottom: 72px;
}

.post-type-archive-product .ast-breadcrumbs-wrapper,
.tax-product_cat .ast-breadcrumbs-wrapper,
.tax-product_tag .ast-breadcrumbs-wrapper {
  display: none !important;
}

.csb-catalog-header { margin-bottom: 22px; }
.csb-catalog-breadcrumb { margin-bottom: 14px; color: var(--csb-catalog-muted); font-size: 12px; font-weight: 700; }
.csb-catalog-breadcrumb a { color: #40515e; text-decoration: none; }
.csb-catalog-breadcrumb span { margin: 0 8px; color: #9aa8b2; }
.csb-catalog-header h1 { margin: 0; color: var(--csb-catalog-navy); font-size: 34px; font-weight: 850; line-height: 1.18; letter-spacing: 0; }
.csb-catalog-description { max-width: 850px; margin-top: 13px; color: var(--csb-catalog-muted); font-size: 14px; line-height: 1.7; }
.csb-catalog-description > :first-child { margin-top: 0; }
.csb-catalog-description > :last-child { margin-bottom: 0; }

.csb-child-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 30px; }
.csb-child-categories a { position: relative; min-height: 78px; padding: 14px 40px 13px 15px; display: flex; flex-direction: column; justify-content: center; color: var(--csb-catalog-ink); background: #fff; border: 1px solid var(--csb-catalog-line); text-decoration: none; }
.csb-child-categories a:hover, .csb-child-categories a:focus-visible { border-color: var(--csb-catalog-blue); box-shadow: inset 3px 0 0 var(--csb-catalog-blue); }
.csb-child-categories span { font-size: 14px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.csb-child-categories small { margin-top: 4px; color: var(--csb-catalog-muted); font-size: 11px; }
.csb-child-categories svg { position: absolute; right: 14px; width: 17px; height: 17px; color: var(--csb-catalog-blue); }

.woocommerce .woocommerce-result-count { margin: 9px 0 20px; color: var(--csb-catalog-muted); font-size: 13px; }
.woocommerce .woocommerce-ordering { margin: 0 0 20px; }
.woocommerce .woocommerce-ordering select { min-height: 42px; padding: 8px 34px 8px 12px; color: var(--csb-catalog-ink); background: #fff; border: 1px solid #b9c7d1; border-radius: 2px; font-size: 13px; }
.woocommerce ul.products { clear: both; gap: 18px; }
.woocommerce ul.products li.product { display: flex !important; min-width: 0; height: 100%; flex-direction: column; overflow: visible; padding: 12px; background: #fff; border-color: var(--csb-catalog-line); border-radius: 6px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.woocommerce ul.products li.product:hover { border-color: #b7c8d3; box-shadow: 0 8px 22px rgba(11, 41, 66, 0.08); }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { display: grid; height: 220px; place-items: center; overflow: hidden; background: #fff; }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a { display: grid; width: 100%; height: 100%; place-items: center; }
.woocommerce ul.products li.product img { width: auto !important; height: auto !important; max-width: 100%; max-height: 210px; margin: 0 !important; object-fit: contain; }
.woocommerce ul.products li.product .astra-shop-summary-wrap { display: flex; min-height: 0; flex: 1; flex-direction: column; padding-top: 12px; }
.woocommerce ul.products li.product .ast-woo-product-category { color: var(--csb-catalog-muted); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 4.2em; margin: 4px 0 12px; color: var(--csb-catalog-ink); font-size: 14px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.woocommerce ul.products li.product .price del { color: #7f8b94; font-size: 12px; font-weight: 700; opacity: 1; }
.woocommerce ul.products li.product .price ins { color: var(--csb-color-sale); background: transparent; font-size: 18px; font-weight: 850; text-decoration: none; }
.woocommerce ul.products li.product .ast-on-card-button.ast-select-options-trigger { display: none !important; }

.woocommerce nav.woocommerce-pagination { margin-top: 36px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { margin: 0 3px; border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { display: grid; min-width: 42px; min-height: 42px; padding: 8px; place-items: center; color: var(--csb-catalog-ink); background: #fff; border: 1px solid var(--csb-catalog-line); }
.woocommerce nav.woocommerce-pagination ul li span.current { color: #fff; background: var(--csb-catalog-navy); border-color: var(--csb-catalog-navy); }

.csb-category-faq { clear: both; max-width: 900px; margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--csb-catalog-line); }
.csb-category-faq h2 { margin: 0 0 18px; color: var(--csb-catalog-navy); font-size: 25px; }
.csb-category-faq details { border-bottom: 1px solid var(--csb-catalog-line); }
.csb-category-faq summary { position: relative; padding: 15px 34px 15px 0; color: var(--csb-catalog-ink); font-weight: 800; cursor: pointer; list-style: none; }
.csb-category-faq summary::-webkit-details-marker { display: none; }
.csb-category-faq summary::after { position: absolute; right: 6px; content: "+"; color: var(--csb-catalog-blue); font-size: 21px; font-weight: 500; }
.csb-category-faq details[open] summary::after { content: "-"; }
.csb-category-faq details > div { padding: 0 0 16px; color: var(--csb-catalog-muted); font-size: 14px; line-height: 1.7; }

@media (max-width: 920px) {
  .csb-child-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .post-type-archive-product .content-shell,
  .tax-product_cat .content-shell,
  .tax-product_tag .content-shell { width: min(calc(100% - 28px), 1240px); padding-top: 22px; }
  .csb-catalog-header h1 { font-size: 28px; }
  .csb-child-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .csb-child-categories a { min-height: 72px; padding: 12px 32px 11px 11px; }
  .csb-child-categories svg { right: 9px; }
  .woocommerce .woocommerce-result-count { float: none; margin-bottom: 10px; }
  .woocommerce .woocommerce-ordering { float: none; width: 100%; }
  .woocommerce .woocommerce-ordering select { width: 100%; }
  .woocommerce ul.products li.product .astra-shop-thumbnail-wrap { height: 150px; }
  .woocommerce ul.products li.product .astra-shop-thumbnail-wrap img { max-height: 150px; }
  .woocommerce ul.products li.product .astra-shop-summary-wrap { min-height: 0; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 5.6em; font-size: 13px; }
}
