/* КТАЛОГ */
main {
  flex-grow: 1;
  background-color: transparent;
}

.catalog {
  background-color: transparent;
}

body.catalog {
  background-image: url(../img/bg/1440px-bg-Catalog-row.png);
  background-repeat: repeat-y;
  background-position: top center;
}

.catalog_header.wrapper {
  padding-top: 0;
}

.header_catalog {
  background-color: #fff;
  height: 120px;
}

.products_section .container {
  background: transparent;
}

.products_section {
  background: transparent;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog_text_wrapper {
  height: 360px;
  margin-top: 120px;
  padding: 40px;
  background-color: var(--bg-gray);
}

.catalog_description {
  margin-top: 40px;
}

.amts_products_wrapper {
  display: grid;
  grid-template-columns: repeat(12, 120px);
  grid-template-rows: 119px 1fr;
  background-color: #fff;
  /*margin-bottom: 120px;*/
  min-height: 360px;
}
.woocommerce-no-products-found{
  grid-column: 4 / 13;
  grid-row: 2 / 3;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.search_form {
  grid-column: 4 / 13;
  grid-row: 1 / 2;
  border: 1px solid #e0e0e0;
  width: 100%;
}

.aws-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.aws-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--orange-accent);
  width: 132px;
  height: 120px;
  cursor: pointer;
  margin-left: auto;
}

.aws-search-form {
  display: flex;
  align-items: center;
  /* height: 120px; */
  width: 100%;
}

.aws-wrapper {
  width: 100%;
}

.aws-search-label {
  width: 100%;
}

.aws-search-field {
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
}

.sidebar_filters {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  min-height: 400px;
  padding-bottom: 40px;
}

.products_wrapper {
  grid-column: 4 / 13;
  grid-row: 2 / 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(600px, 600px);  /* Авто-строки для контента */
  grid-auto-flow: row;  /* Новые строки добавляются вниз */
}
.pagination_wrapper{
  grid-column: 4/13;
  grid-row: 3/4;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 120px;
}
nav.pagination{
  grid-column: 2/5;
}
.product_card {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  /*width: 33.33%;*/
  /*height: 600px;*/
  background-color: #ffffff;
  padding: 24px;
  border: 1px solid var(--grid-gray);
}

.product_image_wrapper {
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background-color: #ffffff;
}

.product_image_wrapper img {
  object-fit: cover;
}

.product_image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product_title{
  margin-bottom: auto;
}

.product_title a{
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  text-align: left;

  line-height: 1.4;
  min-height: 40px;
  text-transform: uppercase;
}

.product_price_block {
  display: flex;
}

.cart_button {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  justify-content: center;
}

.cart_button:hover {
  background-color: var(--orange-accent);
  color: var(--white);
}

.cart_icon {
  width: 24px;
  height: 24px;
}

.price_text {
  font-weight: 600;
}

.quantity_selector {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  width: 100%;
  justify-content: center;
}

.quantity_button {
  background: none;
  border: none;
  padding: 16px 24px;
  cursor: pointer;
  font-size: 24px;
  color: #000000;
  transition: background-color 0.2s ease;
}

.quantity_button:hover {
  background-color: #f5f5f5;
}

.quantity_value {
  padding: 16px 24px;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  min-width: 100px;
}

.quantity_amount {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  display: block;
}

.quantity_unit {
  font-size: 12px;
  color: #666666;
}


/* PAGINATION */

nav.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  /*background: #ffffff;*/
  overflow: hidden;
  height: 120px;

  >a.page-numbers {
    background: var(--orange-accent);
    border: none;
    color: #ffffff;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;

    >svg {
      width: 40px;
      height: 40px;
    }

    &:hover {
      background: var(--black);
    }
  }

  .page-numbers-list{
    height: 100%;
    background-color: #fff;
  }
  
  a.page-numbers{
    padding: 20px;
  }
  >div.page-numbers-list {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px;

    >span {
      min-width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 8px;
      cursor: pointer;
      font-size: 16px;

      &:hover:not(.active):not(.dots) {
        background: #f5f5f5;
      }

      &.active {
        color: var(--orange-accent);
        font-weight: 600;
      }

      &.dots {
        cursor: default;
        color: #999999;
      }
    }
  }
}

/* Скрыть уведомление о добавлении в корзину */
.added_to_cart.wc-forward {
  display: none !important;
}
.aws-container .aws-search-form .aws-form-btn{
  width: 133px;
  background-color: var(--orange-accent);
}
.aws-container .aws-search-form .aws-form-btn:hover{
  background-color: var(--black);
}
.aws-container .aws-search-form .aws-search-btn svg{
fill: var(--white);
}

.aws-search-btn_icon{
  width: 100%;
}
.aws-container .aws-search-field{
  border: none;
  font-size: 16px;
}
.aws-container .aws-search-field:active .search_form{
  border: 1px solid #d8d8d8;
  box-sizing: border-box;
}
.aws-container .aws-search-form .aws-loader{
  border: none;
}
.amts_products_wrapper .search_form{
  border: 1px solid #e0e0e0;

}
.aws-container .aws-show-clear .aws-search-field{
  margin-top: auto;
  height: 90px;
  border: none;
}
.amts_accordion_header{
  font-weight: 700;
}
.aws-container .aws-search-form .aws-wrapper{
  max-height: 100%;
  display: flex;
  align-items: center;
}

.cart_button.add {
  background-color: var(--orange-accent);
}

