/*woocommerce*/

.woocommerce ul li:before{
display: none;
}

/* === BREADCRUMB === */
.woocommerce-breadcrumb-wrapp {
  background: #f8f8f8;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.4;
}

.woocommerce-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  color: #000;
}

/* === HEADER === */
.woocommerce-products-header {
  margin-bottom: 0px;
}

.page-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* === TYPOGRAPHY === */


/* === PRODUCTS GRID === */
ul.products {
  display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* === PRODUCT CARD === */
ul.products li.product {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  transition: 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* === PRODUCT IMAGE === */
ul.products li.product img {
  border-radius: 10px;
  margin-bottom: 12px;
  width: 100%;
  height: auto;
}

/* === PRODUCT TITLE === */
ul.products li.product h2 {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 8px;
  font-weight: 500;
}

/* === PRICE === */
.price {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
}

/* === BUTTON === */
.button {
  margin-top: auto;
  background: #000;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: 0.2s;
  display: block;
}

.button:hover {
  background: #333;
}


li.product .product-excerpt {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
}



/* === TOP BAR === */
.woocommerce-before-shop-loop {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
}

/* === PAGINATION === */
.woocommerce-pagination ul {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
  padding: 8px 12px;
  border-radius: 6px;
  background: #f2f2f2;
  text-decoration: none;
  color: #000;
}

.woocommerce-pagination .current {
  background: #000;
  color: #fff;
}

/* === SIDEBAR (если есть) === */
.widget {
  margin-bottom: 20px;
}

.widget-title {
  font-size: 18px;
  margin-bottom: 10px;
}








.widget_price_filter {
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
}

.widget_price_filter .price_slider_wrapper {
  margin-top: 10px;
}

.widget_price_filter .price_slider {
  height: 6px;
  background: #eee;
  border-radius: 3px;
}

.widget_price_filter .price_slider .ui-slider-range {
  background: #c29f6d;
}

.widget_price_filter .price_slider .ui-slider-handle {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #c29f6d;
  border-radius: 50%;
  top: -5px;
  cursor: pointer;
  transition: 0.2s;
}

.widget_price_filter .price_slider_amount {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.widget_price_filter .price_slider_amount input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.widget_price_filter .price_slider_amount .button {
  width: 100%;
  padding: 10px;
  font-size: 14px;
}

.widget_price_filter .price_label {
  font-size: 14px;
  color: #333;
}



.woocommerce .widget-title {

    padding: 10px 0;
}





/* === PRODUCT CATEGORIES === */

.widget_product_categories .product-categories {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

/* тонкий скролл */
.widget_product_categories .product-categories::-webkit-scrollbar {
  width: 6px;
}

.widget_product_categories .product-categories::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}


.widget_product_categories .product-categories {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* элементы */


.widget_product_categories .product-categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
        padding: 0;

}

.widget_product_categories .product-categories li > a {
  flex: 1;
  padding: 10px 0;
}

.widget_product_categories .count {
  font-size: 12px;
  color: #999;
  margin-left: 10px;
  white-space: nowrap;
}



/* ссылки */
.widget_product_categories .product-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: #333;
  border-radius: 4px;
  transition: 0.2s;
}

/* hover */
.widget_product_categories .product-categories a:hover {

  color: #5aa1e4;
}

/* активная категория */
.widget_product_categories .current-cat > a {
  color: #5aa1e4;
  font-weight: 500;
}



/* активный счетчик */
.widget_product_categories .current-cat > a .count {
  color: #fff;
}

/* вложенные */
.widget_product_categories .children {
  margin-top: 5px;
  margin-left: 0px;
  border-left: 2px solid #f2f2f2;
  padding-left: 15px;
      width: 100%;
}

/* вложенные ссылки */
.widget_product_categories .children a {
  padding: 8px 10px;
  font-size: 14px;
}

/* третий уровень */
.widget_product_categories .children .children a {
  font-size: 13px;
  opacity: 0.9;
}

/* скрыть пустые (0) */
.widget_product_categories .count:contains("(0)") {
  opacity: 0.3;
}





.shop-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.shop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.shop-top .woocommerce-result-count {
  margin: 0;
  flex: 0 0 auto;
}

.shop-top .woocommerce-ordering {
  margin-left: auto;
}

.shop-top select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}





/*карточка*/
.single-product .row {
    display: block;
}
/* ===== ОБЩИЙ КОНТЕЙНЕР ===== */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
}

.single-product .woocommerce-product-gallery {
    flex: 1 1 50%;
}

.single-product .summary {
    flex: 1 1 50%;
}

/* ===== КАРТИНКА ===== */
.single-product div.images {
    width: 45%;
}

.single-product div.images img {
    border-radius: 12px;
    width: 100%;
}

/* ===== ПРАВАЯ ЧАСТЬ ===== */
.single-product .summary {
    width: 55%;
}

/* ===== ЗАГОЛОВОК ===== */
.single-product .product_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ===== ЦЕНА ===== */
.single-product .price {
    font-size: 22px;
    font-weight: 600;
    color: #2c7be5;
    margin-bottom: 20px;
}

/* ===== КАТЕГОРИЯ ===== */
.single-product .product_meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #777;
}

/* ===== КОЛ-ВО ===== */
.single-product form.cart {
    margin: 20px 0;
}

.single-product .quantity input {
    width: 70px;
    height: 40px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* ===== КНОПКА ===== */
.single-product .single_add_to_cart_button {
    background: #2c7be5;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

.single-product .single_add_to_cart_button:hover {
    background: #1a5edb;
}

/* ===== ОПИСАНИЕ ===== */
.single-product .woocommerce-product-details__short-description {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.6;
}

/* ===== ТАБЫ ===== */
.single-product .woocommerce-tabs {
    margin-top: 40px;
}

.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.single-product .woocommerce-tabs ul.tabs li {
    list-style: none;
}

.single-product .woocommerce-tabs ul.tabs li a {
    padding: 10px 15px;
    display: block;
    border-radius: 6px 6px 0 0;
    background: #f5f5f5;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
    background: #2c7be5;
    color: #fff;
}

/* ===== ОПИСАНИЕ ВНИЗУ ===== */
.single-product .woocommerce-Tabs-panel {
    padding: 20px;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* ===== ПОХОЖИЕ ТОВАРЫ ===== */
.single-product .related.products {
    margin-top: 50px;
}

.single-product .related.products h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* ===== КАРТОЧКИ ПОХОЖИХ ===== */
.single-product ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .single-product div.product {
        flex-direction: column;
    }

    .single-product div.images,
    .single-product .summary {
        width: 100%;
    }

    .single-product ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}
