.catalog {
    padding: 25px 0px;
}

.woocommerce-breadcrumb-wrapper {
    margin-bottom: 15px;
    font-size: 14px;
}

/* ===== КАРТОЧКА ТОВАРА  ===== */

.single-goods {
    padding: 25px 0px;
}

.product-page {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ===== ГАЛЕРЕЯ ===== */

.product-page__gallery {
    flex: 1 1 50%;
    max-width: 50%;
}

.product-page__gallery img {
    width: 100%;
    height: auto;-
}

@media (max-width: 992px) {
    .product-page {
        flex-direction: column;
        align-items: center;
    }

    .product-page__gallery,
    .product-page__info {
        max-width: 100%;
    }
}

/* ===== БЛОК ИНФОРМАЦИИ О ТОВАРЕ ===== */

.product-page__info {
    flex: 1 1 50%;
    max-width: 50%;
}

.product-page__title {
    margin-bottom: 25px;
    font-size: 32px;
    line-height: 40px;
}

.product-page__price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--black);
    line-height: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-page__description {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
    margin-top: 35px;
}

.product-page__cart {
    margin-top: 20px;
}

.single_add_to_cart_button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease-in-out;
}

.single_add_to_cart_button:hover {
    opacity: 0.7;
}

.product-size {
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-text);
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
}

.product-types__list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-types__list .product-type {
    display: inline-block;
    min-width: 45px;
    padding: 6px 8px;
    border: 1px solid #D8DEE4;
    border-radius: 6px;
    background: transparent;
    color: var(--text-color);
    font-weight: 400;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    font-size: 16px;
    line-height: 20px;
}

.product-types__list .product-type.active {
    border: 2px solid #F14791;
}

.product-page__button:hover {
    opacity: 0.7;
}

.product-page__button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease-in-out;
}

.product-page__price-and-btn-buy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 25px;
}

.product-page__delivery-date {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    color: var(--black);
    font-size: 12px;
    line-height: 15px;
}

.variations_form table.variations {
    display: none;
}

.variations_form .quantity {
    display: none;
}


/* ===== КАТЕГОРИИ ТОВАРОВ ===== */

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0px;
}


.product {
    flex: 1 1 calc(25% - 15px);
    max-width: calc(25% - 15px);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

@media (max-width: 1200px) {
    .products {
        gap: 15px;
    }

    .product {
        flex: 1 1 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
}

@media (max-width: 992px) {
    .products {
       gap: 20px;
    }

    .product {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .product {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.product:hover {
    transform: translateY(-5px);
}

.product__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product__image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product__title {
    font-size: 16px;
    line-height: 22px;
    padding: 15px 10px 0px 10px;
    font-weight: 500;
    color: var(--text-color);
}

.product__bottom {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    flex-direction: column;
    gap: 5px;
}

.product__price {
    font-size: 1.2rem; 
    font-weight: bold;
    color: var(--text-color);
}

.product__cart {
    margin: 0;
}

.product__button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease-in-out;
    width: 100%;
}

.product__button:hover {
    opacity: 0.7;
}



/* ===== ПАГИНАЦИЯ КАТЕГОРИЙ ===== */

.page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-numbers li {
    margin: 0 5px;
}

.page-numbers a,
.page-numbers span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-numbers a:hover {
    background-color: #f5f5f5;
}

.page-numbers .current {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-numbers .next,
.page-numbers .prev {
    font-weight: bold;
}

/* ===== ФИЛЬТР ТОВАРОВ ===== */

.custom-filter {
  background: #fff;
  padding: 15px;
}

.filter-section {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.filter-title {
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #222;
  font-size: 16px;
  position: relative;
}

.filter-title::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  transition: transform 0.3s;
}

.filter-section.open .filter-title::after {
  transform: rotate(-135deg);
}

.filter-content {
  display: none;
  margin-top: 10px;
  animation: fadeIn 0.3s ease-in-out;
}

.filter-section.open .filter-content {
  display: block;
}

.filter-content input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #d23c78;
}

.price-range input {
  width: 48%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

#price-slider {
  margin-top: 10px;
  margin-bottom: 5px;
}

#price-slider .noUi-connect {
  background-color: var(--primary-hover);
}
