



/*  Стили страницы товара  */

section.product-page {
    padding: 60px 40px;
}

.product-layout {
    display: flex;
	gap: 30px;
}

.product-gallery-col {
    width: 40%;
	 
}

.product-info-col {
    width: 60%;
}

.product-gallery-col img {
    width: 100%;
    height: auto;
    max-height: 500px; /* не выше родителя */
    object-fit: contain; /* вся картинка видна, могут быть полосы */
}

h1.product_title.entry-title, .woocommerce-products-header__title.page-title {
    padding: 30px 0px;
    font-family: var(--ifont500);
    font-size: 3rem;
    color: var(--black);
    text-transform: uppercase;
}

.reset_variations, .added_to_cart {
	display:none !important;
}

form.cart {
    display: flex;
    gap: 20px;
	flex-wrap: wrap;
}


@media (max-width: 768px) {
.product-layout, .single_variation_wrap { flex-direction: column;}
.product-gallery-col, .product-info-col  {width:100%; }
h1.product_title.entry-title, .woocommerce-products-header__title.page-title {font-size: 1.6rem;}
button.single_add_to_cart_button { padding: 10px 20px;}
}

select.orderby {
    border-radius: 10px;
    padding: 10px;
    margin-top: -50px;
    margin-bottom: 30px;
    font-family: var(--ifont100);
}

button.single_add_to_cart_button {
    padding: 10px 40px;
    font-family: var(--ifont300);
    font-size: 1rem;
    color: var(--white);
    background: var(--black);
    border-radius: 40px;
	transition: all 0.3s ease;
}

button.single_add_to_cart_button:hover {
    opacity:0.7;   
	transform: translateY(-2px);
}

.product-info-col p.price {
    padding: 10px 0px;
    font-family: var(--ifont300);
    font-size: 1.4rem;
    color: var(--black);
    text-transform: uppercase;
}

.product-info-col span.price {
    padding: 20px 0px;
    font-family: var(--ifont300);
    font-size: 2rem;
    color: var(--orange);
    text-transform: uppercase;
}

.woocommerce-product-details__short-description {
    padding: 20px 0px;
    font-family: var(--ifont100);
    font-size: 1.4rem;
    color: var(--black);
     
}

@media (max-width: 768px) {
.woocommerce-product-details__short-description { font-size: 1.1rem;}
}


/* Контейнер для группы кнопок */
.variation-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

/* Стили кнопок */
.variation-button {
   padding: 5px 15px;
     font-family: var(--ifont300);
    border: 2px solid #e0e0e0;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Эффект при наведении */
.variation-button:hover {
    background: #e8e8e8;
    border-color: #ccc;
    transform: translateY(-2px);
}

/* Активная кнопка (выбранная опция) */
.variation-button.active {
    background: #515151;
    border-color: #515151;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Для товара не в наличии */
.variation-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.variations .label, .reset_variations {
	display:none;
	
}

/* Скрываем оригинальный селект сразу */
#gruppa-pokupatelej {
    display: none !important;
}

/* Показываем контейнер с кнопками */
.variation-button-group {
   display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .variation-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}


 
    .systems-container {
        max-width: 100%;
        font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
        font-size: 14px;
        line-height: 1.4;
    }

    .systems-title {
        font-weight: bold;
        margin-bottom: 12px;
        color: #1f4e79;
    }

    /* Сетка таблицы */
    .systems-grid {
        display: grid;
        grid-template-columns: 60px repeat(5, 1fr);
        border: 1px solid #ccc;
        margin-bottom: 16px;
    }

    /* Общие стили для ячеек */
    .systems-grid > div {
        padding: 8px 6px;
        text-align: center;
        border-bottom: 1px solid #eee;
        border-right: 1px solid #eee;
        background-color: #fff;
    }

    /* Убираем правую границу у последних ячеек в строке */
    .systems-grid > div:last-child {
        border-right: none;
    }

    /* Стили для заголовков и меток строк */
    .grid-header,
    .grid-row-label {
        background-color: #f5f7fa;
        font-weight: bold;
        border-right: 1px solid #ddd;
    }

    .grid-header {
        background-color: #e9ecef;
        font-weight: bold;
    }

    /* Цвет для заголовка первой колонки (пустой) */
    .grid-header:first-child {
        background-color: #e9ecef;
    }

    /* Бонусная строка */
    .systems-bonus {
        margin-top: 12px;
        padding-top: 8px;
        border-top: 1px dashed #ccc;
        color: #2c6e2c;
    }

    .systems-price {
        margin: 12px 0 4px;
        font-weight: 500;
    }

    /* Подсветка пустых ячеек */
    .systems-grid > div:empty::before {
        content: "—";
        color: #aaa;
    }
 





/* ========== ГОРИЗОНТАЛЬНАЯ ГАЛЕРЕЯ СНИЗУ ========== */

 

/* 1. Главный контейнер галереи — вертикальная колонка */
.woocommerce-product-gallery {
    display: flex;
    flex-direction: column;
}

 

/* 4. Контейнер для миниатюр (горизонтальный скролл) */
.flex-control-nav {
    order: 2;
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    
    /* Красивый скролл */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.flex-control-nav::-webkit-scrollbar {
    height: 6px;
}

.flex-control-nav::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.flex-control-nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.flex-control-nav::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 5. Каждая миниатюра */
.flex-control-nav li {
    flex-shrink: 0;
    width: 80px;
    margin: 0;
    cursor: pointer;
}

/* 6. Картинка миниатюры */
.flex-control-nav li img {
    width: 100%;
    height: 80px;
    object-fit: contain; /* для миниатюр cover лучше, чтобы они были одинакового размера */
    border-radius: 8px;
    border: 1px solid #e5e5e5; /* еле заметный бордюр */
    transition: all 0.3s ease;
    background: #fafafa;
}

/* 7. Эффект при наведении */
.flex-control-nav li img:hover {
    border-color: #aaa;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 8. Активная миниатюра (более заметный бордюр) */
.flex-control-nav li img.flex-active {
    border-color: var(--orange);
    border-width: 2px;
    box-shadow: 0 0 0 2px var(--orange);
}

/* 9. Адаптив для мобильных */
@media (max-width: 768px) {
    .flex-control-nav li {
        width: 60px;
    }
    
    .flex-control-nav li img {
        height: 60px;
    }
    
    .woocommerce-product-gallery__wrapper {
        min-height: 300px;
    }
    
    .woocommerce-product-gallery__wrapper img {
        max-height: 350px;
    }
}




/* ========== МИНИМАЛИСТИЧНЫЕ ТАБЫ ========== */

.woocommerce-tabs {
    margin-top: 50px;
}

/* Список вкладок */
.woocommerce-tabs .tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 0px solid #e0e0e0;
}

/* Каждая вкладка */
.woocommerce-tabs .tabs li {
    margin: 0;
}

/* Ссылка */
.woocommerce-tabs .tabs li a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s ease;
	 font-family: var(--ifont300);
	  background: #f5f5f5;
}

/* Наведение */
.woocommerce-tabs .tabs li a:hover {
    color: #333;
    background: #d1d1d1;
}

/* Активная вкладка */
.woocommerce-tabs .tabs li.active a {
   color: var(--white);
    background: var(--orange);
}

/* Контент */
.woocommerce-tabs .panel {
  padding: 30px 0;
    background: transparent;
    font-family: var(--ifont200);
}





/* Контейнер для поля и кнопок */
.custom-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 56px;
    overflow: hidden;
    background: #fff;
}

/* Общие стили для кнопок и поля ввода */
.custom-quantity-wrapper .qty-btn,
.custom-quantity-wrapper .qty {
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    text-align: center;
    height: auto;
    width: auto;
    margin: 0;
    box-shadow: none;
}

/* Стили для кнопок */
.custom-quantity-wrapper .qty-btn {
    cursor: pointer;
    background: #f8f8f8;
    color: #333;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 44px;
}

.custom-quantity-wrapper .qty-btn:hover {
    background: #e9e9e9;
}

/* Стили для поля ввода */
.custom-quantity-wrapper .qty {
    width: 60px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    -moz-appearance: textfield;
	 font-family: var(--ifont300);
}

.custom-quantity-wrapper .qty::-webkit-outer-spin-button,
.custom-quantity-wrapper .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.woocommerce-variation-add-to-cart {
    display: flex;
    gap: 20px;
}

.single_variation_wrap {
    display: flex;
    gap: 20px;
	padding: 20px 0px;
}

.product_meta {
    font-family: var(--ifont100);
}

/*  Стили для списка товаров  */


form.woocommerce-ordering {
    display: flex;
    justify-content: flex-end;
}

nav.woocommerce-breadcrumb {
    font-family: var(--ifont100);
}

.products  img {
	height: 400px;
    width: 100%;
    object-fit: cover;
}


.products.columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    display: grid;
	gap:20px;
}

@media (max-width: 768px) {
.products.columns-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));}
}

.products.columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    display: grid;
	gap:20px;
}

a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
	position: relative;
    z-index: 3;
	 
}

li.product.type-product   {
	 position: relative;
background: -webkit-linear-gradient(180deg, rgb(214, 218, 207), rgb(186, 192, 176));
background: -moz-linear-gradient(180deg, rgb(214, 218, 207), rgb(186, 192, 176));
background: linear-gradient(180deg, rgb(214, 218, 207), rgb(186, 192, 176));
border-radius: 70px;
    overflow: hidden;
	padding-bottom: 30px;
	display: flex;
    flex-direction: column;
     height: 100%;
	justify-content: space-between;
}

.swiper-slide {
	 
}


li.product.type-product:before {
    content: "";
    width: 100%;
    height: 100%;
    box-shadow: inset -5px 7px 20px rgba(255, 255, 255, 0.8);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 70px;
	    z-index: 1;
		background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(/wp-content/imgs/drops1.png);
    opacity: 0.5;
}

li.product.type-product:after {
    content: "";
    width: 100%;
    height: 100%;
      z-index: 1;
 box-shadow: inset 3px -4px 11px rgb(135 135 135 / 52%);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 70px;
}


.products span.price {
    background: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-family: var(--ifont300);
    margin-top: -30px;
}

h2.woocommerce-loop-product__title {
    font-family: var(--ifont500);
    font-size: 1.3rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--white);
	 padding: 5px 40px;
	 min-height: 80px;
}

.woocommerce-loop-product__short-description {
    font-family: var(--ifont100);
    font-size: 1rem;
    /* text-transform: uppercase; */
    text-align: center;
    color: var(--white);
    padding: 5px 40px;
	height: 90px;
    overflow: hidden;
}

.wprs_variations {
    z-index: 33;
    position: relative;
	display: flex;
    flex-direction: column;
    align-items: center;
}

.add_to_cart_button {
    padding: 15px 50px;
    border-radius: 50px;
   background: var(--orange);
    color: var(--white);
    font-family: var(--ifont200), sans-serif;
    font-weight: 500;
    font-size: 1rem;
    width: 200px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    display: block;
	z-index: 2;
	margin:0 auto;
}

.add_to_cart_button:hover {
     
	transform: translateY(-2px);
}


.wishlist-btn, .wishlist-btn.active {
	position: absolute;
	width: 40px;
    height: 40px; 
	background:#fff;
 top: 30px;
    right: 30px;	
	z-index: 3;
    border-radius: 50%;
}

.wishlist-btn.active {
background:#fff5f5;
}

.wishlist-btn:before, .wishlist-btn.active:before {
	content:"";
    z-index: 22;
    position: absolute;
     
    margin: 1px 0;
	    display: inline-block; 
    background-position:  center;
    background-repeat: no-repeat;
    background-size: contain;
	left:50%;
	top:50%;
	transform: translate(-50%, -50%);
	 width: 23px;
    height: 19px;   
   
}

.wishlist-btn:before {
	 background-image: url(/wp-content/imgs/wishlist_inactive.svg);  
}

.wishlist-btn.active:before {
    background-image: url(/wp-content/imgs/wishlist_active.svg);  
}

.wishlist-btn .text {
	
	display:none;
}


/*  Стили страницы корзины  */
.wp-block-woocommerce-cart.alignwide, .wp-block-woocommerce-checkout.alignwide {
    padding: 40px;
    font-family: var(--ifont200);
}

.wc-block-components-form .wc-block-components-text-input, .wc-block-components-text-input {
   margin-top: 0px !important;
}


.wc-block-components-address-form {
	gap:15px !important;
}

.wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button  {
    background: var(--orange) !important;
    border-radius: 50px !important;
    color: #fff !important;
	transition: all 0.7s ease !important;
}

.wc-block-components-checkout-place-order-button:hover, .wc-block-cart__submit-button:hover  {
    background: #000;
   
}


.inner-main h2  {
    font-family: var(--ifont500);
    font-size: 2rem;
    padding: 20px 40px;
    text-transform: uppercase;
}

.related.products h2 {
    font-family: var(--ifont500);
    font-size: 1.3rem;
    padding: 20px 40px;
    text-transform: uppercase;
}

.related.products  {
margin-top: 30px;
}


button.tag-filter-btn {
    font-family: var(--ifont100);
    font-size: 0.8rem;
    border: 1px solid #ccc;
    padding: 5px 20px;
    border-radius: 20px;
	transition: background 0.7s ease ! ;
}

button.tag-filter-btn:hover {
    background: var(--orange);
    color: #fff;
}



.wishlist-grid {
    padding: 40px;
}

.wishlist-item {
  font-family: var(--ifont100);
    border-radius: 40px;
	white-space: pre-wrap;
}

.wishlist-item img {
    border-radius: 20px;
}

.wishlist-item .price {
	margin:15px 0px;
	  font-family: var(--ifont300); 
    display: block;
}

.remove-from-wishlist {
	padding:10px 40px;
	border-radius:50px;
	background-color:var(--orange);
	color:var(--white);
	font-family: var(--ifont200), sans-serif; 
	 display: block;
	    font-size: 1rem;
			width:100%;
			 transition: background 0.4s ease;
			 text-align: center;
			 display: flex;
    justify-content: center;
    align-items: center;
	
}

.wc-block-checkout__payment-method {
    display: none;
}
