.catalog-page.site-container {
  width: 100%;
  max-width: none;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.catalog-page {
  padding: 10px 0 24px;
  overflow-x: hidden;
}

.catalog-page__header {
  margin-bottom: 10px;
  padding: 0 0 4px;
}

.catalog-page__eyebrow,
.catalog-page__description,
.catalog-breadcrumbs {
  display: none;
}

.page-title {
  margin: 0 0 10px;
  padding: 0 8px;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.term-description,
.woocommerce-products-header__description,
.catalog-page__description {
  max-width: 70ch;
  color: var(--batya-text-soft);
  font-size: 0.95rem;
}

.catalog-breadcrumbs {
  padding: 0 8px 6px;
  color: var(--batya-text-soft);
  font-size: 13px;
  line-height: 1.3;
}

.catalog-breadcrumbs__link {
  color: inherit;
}

.catalog-breadcrumbs__link.is-current {
  color: var(--batya-text);
}

.catalog-breadcrumbs__sep {
  margin: 0 6px;
  color: #a3a8b3;
}

.catalog-primary-nav,
.catalog-section-nav,
.catalog-quick-links,
.catalog-subcats {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 8px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-primary-nav::-webkit-scrollbar,
.catalog-section-nav::-webkit-scrollbar,
.catalog-quick-links::-webkit-scrollbar,
.catalog-subcats::-webkit-scrollbar {
  display: none;
}

.catalog-quick-links__item,
.catalog-subcats__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e4dbd2;
  border-radius: 999px;
  background: #fffdfa;
  color: #23201d;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.catalog-quick-links__item:hover,
.catalog-subcats__link:hover {
  border-color: #d7cabd;
  background: #fff8f2;
}

.catalog-subcats {
  gap: 8px;
}

.catalog-quick-links__item {
  background: #fffdfb;
}

.catalog-quick-links__item:hover {
  color: #171411;
}

.catalog-subcats__link.is-current {
  border-color: #efc6a7;
  background: #fff7f0;
  color: #1c1a18;
  box-shadow: none;
}

.catalog-subcats__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border: 0 !important;
  border-radius: 999px;
  background: rgba(123, 122, 121, 0.08);
  color: #726b64;
  font-size: 11.5px;
  font-weight: 600;
}

.catalog-subcats__link.is-current .catalog-subcats__count {
  background: #f8ede3;
  color: #ba6c2c;
}

.catalog-toolbar-wrap {
  margin-top: 4px;
  margin-bottom: 6px;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
  padding: 0 8px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.catalog-toolbar .woocommerce-notices-wrapper,
.catalog-toolbar__ordering,
.catalog-toolbar__row:empty,
.catalog-tools-slot:empty {
  display: none;
}

.catalog-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.catalog-toolbar__count {
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.catalog-toolbar__count .woocommerce-result-count,
.woocommerce-result-count {
  margin: 0;
  padding: 0 2px;
  color: var(--batya-text-soft);
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
}

.catalog-tool-button,
.catalog-icon-button,
.catalog-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--batya-border);
  border-radius: 14px;
  background: #fff;
  color: var(--batya-text);
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
}

.catalog-tool-button:hover,
.catalog-icon-button:hover,
.catalog-filter-toggle:hover {
  border-color: #d6dae1;
  background: #fff;
}

.catalog-tool-button__icon,
.catalog-icon-button__icon,
.catalog-filter-toggle__icon {
  font-size: 17px;
  line-height: 1;
}

.catalog-tool-button--sort,
.catalog-tool-button--nav {
  min-width: 148px;
}

.woocommerce-ordering {
  margin: 0;
}

.woocommerce-ordering select {
  width: 100%;
  min-height: 46px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--batya-border);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
}

.catalog-tools-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  column-gap: 0;
  row-gap: 10px;
  padding: 2px 0 12px;
}

.catalog-tools-slot__main,
.catalog-tools-slot__aside {
  width: 100%;
  min-width: 0;
}

.catalog-tools-slot__main > * {
  min-width: 0;
}

.catalog-tools-slot__main {
  grid-column: 1;
  grid-row: 1;
}

.catalog-tools-slot__aside {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
}

.catalog-tools-slot__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #ece2d8;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.92);
  color: #7a7066;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.catalog-tools-slot__count .woocommerce-result-count {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.woocommerce ul.products,
.woocommerce-page ul.products,
.single-product-related__grid,
.single-product-related .products,
.single-product-related__skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 3px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  border-radius: 16px;
  overflow: hidden;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 6px;
  border: 0 !important;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: none !important;
}

.product-card__media {
  position: relative;
  margin-bottom: 6px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--batya-surface);
}

.product-card__media a,
.product-card__media img {
  display: block;
}

.product-card__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.product-badges {
  pointer-events: none;
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.product-badge--sale {
  background: rgba(185, 28, 28, 0.94);
}

.product-badge--out {
  background: rgba(75, 85, 99, 0.94);
}

.product-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
}

.product-card__meta-row,
.product-card__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.product-card__stock,
.product-card__sku,
.product-card__chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.product-card__stock.is-in-stock {
  background: #ecfdf5;
  color: #047857;
}

.product-card__stock.is-out-stock {
  background: #f3f4f6;
  color: #6b7280;
}

.product-card__sku,
.product-card__chip {
  background: var(--batya-surface);
  color: var(--batya-text-soft);
}

.product-card__title {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-top: auto;
  margin-bottom: 4px;
  font-size: 14px;
}

.product-card__price .price {
  color: var(--batya-text);
  font-size: 16px;
  font-weight: 800;
}

.product-card__price del {
  color: var(--batya-text-soft);
  opacity: 0.75;
}

.product-card__actions {
  margin-top: 4px;
}

.product-card__actions .button,
.product-card__actions .added_to_cart,
.product-card__button,
.product-card .added_to_cart {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
}

.woocommerce nav.woocommerce-pagination {
  margin-top: 10px;
  padding: 0 8px;
}

.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--batya-border);
  border-radius: 12px;
  background: #fff;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  border-color: var(--batya-text);
  background: var(--batya-text);
  color: #fff;
}

html.catalog-panel-open,
body.catalog-panel-open,
body.catalog-sort-open,
body.catalog-filter-open {
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .site-main.site-container,
  .catalog-page.site-container,
  .catalog-page,
  .catalog-page__header,
  .catalog-page__title-wrap,
  .woocommerce-products-header,
  .term-description,
  .woocommerce-products-header__description,
  .catalog-page__description,
  .catalog-toolbar-wrap,
  .woocommerce nav.woocommerce-pagination {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .catalog-page__header {
    margin-bottom: 6px;
  }

  .page-title {
    margin: 0 0 10px;
    padding: 0 8px;
    font-size: 1.82rem;
  }

  .catalog-primary-nav,
  .catalog-section-nav,
  .catalog-quick-links,
  .catalog-subcats {
    gap: 8px;
    padding-bottom: 6px;
  }

  .catalog-subcats {
    gap: 7px;
  }

  .catalog-quick-links__item,
  .catalog-subcats__link {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13.5px;
  }

  .catalog-toolbar-wrap {
    margin-bottom: 4px;
  }

  .catalog-toolbar {
    padding: 0 6px 2px;
  }

  .catalog-toolbar__count .woocommerce-result-count {
    padding: 0 1px;
    font-size: 11px;
  }

  .catalog-tool-button,
  .catalog-icon-button,
  .catalog-filter-toggle {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 14px;
  }

  .catalog-tool-button__icon,
  .catalog-icon-button__icon,
  .catalog-filter-toggle__icon {
    font-size: 16px;
  }

  .catalog-tools-slot,
  .catalog-tools-slot__main,
  .catalog-tools-slot__aside {
    width: 100%;
    overflow: visible;
  }

  .catalog-tools-slot {
    row-gap: 8px;
    padding-bottom: 10px;
  }

  .catalog-tools-slot__aside {
    margin-top: 0;
    padding: 0 8px;
  }

  .catalog-tools-slot__count {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
    text-align: left;
  }

  .product-badges {
    top: 6px;
    right: 6px;
    left: 6px;
    gap: 4px;
  }

  .product-badge,
  .product-card__stock,
  .product-card__sku,
  .product-card__chip {
    min-height: 20px;
    padding: 0 6px;
    font-size: 11px;
  }

  .product-card__content {
    gap: 3px;
  }

  .product-card__meta-row,
  .product-card__chips,
  .product-card__price {
    gap: 4px;
  }

  .product-card__title {
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.3;
  }

  .product-card__price .price {
    font-size: 15px;
  }

  .product-card__actions .button,
  .product-card__actions .added_to_cart,
  .product-card__button,
  .product-card .added_to_cart {
    min-height: 36px;
    padding-inline: 6px;
    border-radius: 10px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .catalog-toolbar__row {
    gap: 6px;
  }

  .catalog-tool-button,
  .catalog-icon-button,
  .catalog-filter-toggle {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .catalog-quick-links__item,
  .catalog-subcats__link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .catalog-filter-toggle span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .woocommerce-ordering select {
    font-size: 12px;
  }

  .product-card {
    padding: 2px;
  }

  .product-card__media {
    border-radius: 7px;
  }

  .product-card__title {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .catalog-page {
    padding: 24px 0 36px;
  }

  .catalog-page__header {
    margin-bottom: 16px;
    padding: 0;
  }

  .catalog-page__eyebrow,
  .catalog-page__description,
  .catalog-breadcrumbs {
    display: revert;
  }


  .catalog-primary-nav,
  .catalog-section-nav,
  .catalog-quick-links,
  .catalog-subcats {
    padding: 0 0 10px;
  }

  .catalog-quick-links__item,
  .catalog-subcats__link {
    min-height: 40px;
    padding: 0 16px;
  }

  .catalog-toolbar-wrap {
    position: sticky;
    top: 72px;
  }

  .catalog-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid var(--batya-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
  }

  .catalog-toolbar__row {
    flex-wrap: nowrap;
  }

  .catalog-tool-button--nav {
    display: none;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px !important;
  }

  .product-card {
    padding: 10px;
  }

  .product-card__media {
    margin-bottom: 10px;
  }

  .catalog-tools-slot,
  .catalog-tools-slot__main {
    overflow: visible;
  }


  .catalog-tools-slot {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    row-gap: 8px;
    padding: 2px 0 10px;
  }

  .catalog-tools-slot__aside {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    padding: 0;
  }

  .catalog-tools-slot__count {
    min-height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .catalog-page.site-container {
    width: min(100% - 8px, var(--batya-container));
  }

  .catalog-toolbar {
    padding: 8px 10px;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    gap: 6px !important;
  }

  .product-card {
    padding: 6px;
  }
}

@media (min-width: 1100px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
