/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.cflex {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.product-element-bottom .cflex .price{
	background: white;
	height: auto;
	padding: 15px 20px;
    font-family: Heebo;
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0%;
    text-align: right;
    vertical-align: middle;
    color: black;
    border-radius: 5px;
    margin-top: 0 !important;
}

.cflex .price .amount bdi{
    line-height: 1;
    color: black;
}

.cflex .price ins{
    padding-inline-end: 6px;
}

.cflex .price del{
  font-family: Rubik;
    font-weight: 300;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0%;
    text-align: right;
    vertical-align: middle;
    text-decoration: line-through;
    color: black;
}

.cflex .price del *{
    color: black;
}

.cflex .price del .woocommerce-Price-currencySymbol {
	display: none;
}

.cflex .wd-add-btn .button {
	width: 100%;
	border-radius: 5px !important;
	overflow: hidden;
	border: 0 !important;

	background-image: url('/wp-content/uploads/2026/01/cart-icon-heyamo-black.svg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: 32px 32px; /* можно менять размер иконки */
		
	box-shadow: unset !important;
	padding: 15px 20px;
}

.cflex .wd-add-btn .button:before{
    display: none;
}

.cflex .wd-add-btn .button span{
    opacity: 0;
    visibility: hidden;
}

.wd-add-btn.wd-add-btn-replace a {
	background-color: white !important;
}
.wd-add-btn.wd-add-btn-replace a:hover {
	background-color: #FFF7E9 !important;
}


.wd-add-btn.wd-add-btn-replace a , .cflex .price {
	height: 65px !important;
}
.csaving {
    display: inline-flex;
    gap: 3px;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0%;
    text-align: right;
    vertical-align: middle;
    color: #fff;
    position: absolute;
    bottom: 16px;
}

.csaving .amount *{
    color: #fff;
}

.csaving svg{
    width: 16px;
    height: auto;
}



.wd-gallery-thumb .wd-carousel-item{
    background: #fff;
    position: relative;
    opacity: 1 !important;
    border-radius: 10px;
    box-shadow: 0px 9.67px 20.9px 0px #0000000D;
	flex: auto;
}

.wd-gallery-thumb .wd-carousel-item:after{
    content: '';
    width: 100%;
    padding-bottom: calc( 100% + 10px );
    display: block;
}

.wd-gallery-thumb .wd-carousel{
	overflow: visible;
}

.wd-gallery-thumb .wd-carousel-item img{
    object-fit: contain;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: .2s;
}


.wd-gallery-thumb .wd-carousel-item:not(.wd-thumb-active) img{
    opacity: 0.5;
}

.woocommerce-product-gallery__wrapper.wd-carousel {
    background: #fff;
    box-shadow: 0px 9.67px 20.9px 0px #0000000D;
    border-radius: 20px !important;
}

.woocommerce-product-gallery{
	gap: 15px !important;
}

.wd-gallery-thumb .wd-carousel-wrap .wd-carousel-item:last-child{
    margin-left: 0 !important;
}

.quantity {
    gap: 8px;
}

.quantity .plus,
.quantity .minus{
    width: 40px;
    height: 40px;
    background: #FFEFD2 !important;
    border-radius: 5px !important;
    border: 0 !important;
    color: black !important;
}

.quantity .plus:hover,
.quantity .minus:hover{
     background: #D2A158 !important;
}

.quantity .qty {
    border: 1px solid var(--Main-brown, #a47419) !important;
    border-radius: 5px !important;
    width: 88px !important;
    color: black;
    font-weight: 500;
    font-size: 16px;
    line-height: 200%;
}

.single-product [name="add-to-cart"]{
    display: none;
}

.cbtn {
    padding: 15px 40px;
    background: transparent !important;
    border-radius: 10px;
    display: inline-flex;
    gap: 10px;
	font-size: 20px;
}

.cbtn--bordered {
    color: #a47419;
    border: 1px solid #a47419;
}

.cbtn--bordered:hover {
    background: #a47419 !important;
    color: #fff;
}

/*Cart page button "Proceed to checkout"*/
.wc-block-cart__submit-container a {
	color: #a47419 !important;
    border: 1px solid #a47419 !important;
	background: transparent !important;
	transition: 0.3s !important;
}
.wc-block-cart__submit-container a:hover {
    background: #a47419 !important;
    color: #fff !important;
}

.custom-product-wrap{
    position: relative;
    overflow: hidden;
}

/* фон */
.custom-product-wrap::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1);
    transition: transform .6s ease;
    z-index: 0;
}

.product-grid-item:hover .custom-product-wrap::before{
    transform: scale(1.08);
}

/* ссылка на всю карточку */
.custom-product-wrap .product-card-link{
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
}

/* весь контент выше фона — НО не ссылка */
.custom-product-wrap > *:not(.product-card-link){
    position: relative;
    z-index: 2;
}

/* кнопки/иконки выше ссылки */
.custom-product-wrap .wd-add-btn,
.custom-product-wrap .wd-buttons{
    position: relative;
    z-index: 3;
}



.c-badge{
    position: absolute !important;
    top: 40px;
    left: 40px;
    z-index: 99;            /* важно */
    padding: 15px 20px;
    border-radius: 5px;
	font-family:"Rubik";
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    background: #000;
    color: black;
    pointer-events: none;    /* чтобы не мешал клику */
}

.c-badge--new{ background: white; border: 1px solid black; }
.c-badge--coming-soon{ background: #a8751e; border: 1px solid black; color: white; }


.c-comingsoon{
    background: white;
    height: 65px !important;
    padding: 15px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
	width: 100%;
    font-family: "Rubik";
    font-weight: 700;
    font-size: 20px;
    color: black;
}


/* Скрываем покупку на single для coming-soon */
.is-coming-soon-product form.cart,
.is-coming-soon-product .single_add_to_cart_button,
.is-coming-soon-product .woocommerce-variation-add-to-cart,
.is-coming-soon-product .quantity{
    display: none !important;
}

/* По умолчанию блок скрыт */
.c-comingsoon-single{
    display: none;
}

/* Показываем только на coming-soon товарах */
.is-coming-soon-product .c-comingsoon-single{
    display: inline-flex;
    width: 100%;
    background: white;
    border: 1px solid #a47419;
    border-radius: 10px;
    padding: 15px 20px;
    align-items: center;
    justify-content: center;
    font-family: "Rubik";
    font-weight: 700;
    font-size: 20px;
    color: #a47419;
}


/* Делаем контейнер галереи "опорой" для абсолютного бейджа */
.single-product .woocommerce-product-gallery{
	position: relative;
}

/* Бейдж New поверх картинки */
.c-single-badge{
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 9999;
	padding: 12px 16px;
	border-radius: 8px;
	font-family: "Rubik";
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.c-single-badge--new{
	background: #fff;
	border: 1px solid #000;
	color: #000;
}

.c-new-single{
    display: none;
}

.is-new-product .c-new-single{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;

    padding: 15px 20px;
    border-radius: 5px;
    font-family: "Rubik";
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: black;
    pointer-events: none;

    background: white;
    border: 1px solid black;
}

