/*
 Theme Name:   PrimeAvenue Child
 Description:  PrimeAvenue Child Theme
 Author:       RS
 Author URI:   https://romanovstyle.by
 Template:     primavenu
 Version:      1.0.0
 Text Domain:  woodmart
*/

 :root {
--btn-accented-bgcolor: #bf8b16!important;
--btn-accented-bgcolor-hover: #092242!important;
--btn-default-color: #092242!important}


.wd-nav-sticky>li>a .wd-nav-img {
    --nav-img-width: 30px!important;
    --nav-img-height: 30px!important;
}
.wd-nav-sticky {
    --nav-pd: 4px 15px!important;
}
.custom-catalog-buttons {
    display: flex!important;
    width: 100%!important;
    gap: 10px!important;
    margin-top: 10px!important;
}

.custom-catalog-buttons > * {
    flex: 1 1 0!important;
    width: 100%!important;
}

.custom-catalog-buttons button,
.custom-catalog-buttons a {
    width: 100%!important;
    display: flex!important;
    justify-content: center!important;
    align-items: center!important;
    box-sizing: border-box!important;
}
.custom-catalog-buttons :is(.btn,.button,button,[type=submit],[type=button]) {
    background-color: #e4e4e4;
    border-radius: 5px;
}

.custom-catalog-buttons  .ctc_cta {
    padding: 0 20px 0px 20px!important;
    border-radius: 10px!important;
    font-size: 13px!important;
    line-height: 42px!important;
    width: 100% !important;
}

/* мобильные очень узкие */
@media (max-width: 354px) {
    .custom-catalog-buttons {
        flex-direction: column!important;
    }
.custom-catalog-buttons > * {
        width: 100%!important;
    }
}
.price {
    font-size: 25px;
}
.woocommerce-Price-currencySymbol {
    font-size: 16px;
}

.custom-variation-switcher {
	margin-top: 10px;
}

.variation-options {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.variation-option {
	padding: 6px 10px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	border-radius: 6px;
	font-size: 13px;
	transition: all 0.2s ease;
}

.variation-option.active {
	background: #000;
	color: #fff;
	border-color: #000;
}

.variation-price {
	margin-top: 6px;
	font-weight: bold;
}


/* контейнер вариаций на всю ширину карточки */
.custom-variation-switcher {
	width: 100%;
	margin-top: 10px;
}

/* ОБЯЗАТЕЛЬНО растягиваем блок */
.custom-variation-switcher .variation-options {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 6px;
}

/* кнопки равномерные по ширине */
.custom-variation-switcher .variation-option {
	flex: 1 1 calc(25% - 6px); /* 3 в ряд как в аренде */
	min-width: 20px;

	padding: 8px 10px;
	border: 1px solid #e5e5e5;
	background: #fff;
	border-radius: 8px;

	font-size: 13px;
	text-align: center;

	cursor: pointer;
	transition: all 0.2s ease;
}

/* hover эффект */
.custom-variation-switcher .variation-option:hover {
	border-color: #000;
}

/* active состояние */
.custom-variation-switcher .variation-option.active {
	background: #bf8b16!important;
	color: #fff !important;
	border-color: #bf8b16 !important;
}

/* цена под кнопками */
.custom-variation-switcher .variation-price {
	margin-top: 6px;
	font-weight: 600;
}
table.variations .label {
    padding-right: 0px!important;
}
table.variations .label>*, .variation-swatch-selected .reset_variations, .woocommerce-variation-add-to-cart,  .in-stock, .per-row-4, .wd-add-btn-replace {
    display: none!important;
}
[class*="wd-swatches"].wd-text-style-4 .wd-swatch.wd-text.wd-active, [class*="wd-swatches"].wd-text-style-4 :is(.wd-swatch-wrap a:hover,.wd-swatch-wrap.wd-active) .wd-swatch.wd-text {
    border-color: #bf8b16 !important;
    background-color: #bf8b16 !important;
}
.wd-product .price {
    display: inline!important;
}
.wd-product-brands img {
    position: relative;
    top: -3px;
}
.wd-loop-builder-off .wd-product .wd-entities-title {
    font-size: 22px!important;
}
.shop_attributes .wd-attr-label img {
    width: 25px!important;
}
.shop_attributes :is(.wd-attr-name,.wd-term-name,.wd-term-sep) {
    margin-left: 7px;
}

.with-image .liner-continer {
    display: flex;
    align-items: center;
    gap: 10px; /* отступ между картинкой и текстом */
}

.with-image  .liner-continer .img-wrapper {
    order: -1; /* переносим картинку вперед */
}

.with-image  .liner-continer h3 {
    margin: 0; /* убираем лишние отступы */
}
.with-image img {
    position: relative;
    top: -5px;
}
[class*="wd-swatches"].wd-text-style-4 .wd-swatch.wd-text {
    flex: 1 1 calc(25% - 6px);
}
[class*="wd-swatches"].wd-size-xlarge {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
}
table.variations {
    margin-bottom: 0px!important;
}
table.variations .cell {
    padding: 0 0 0 0!important;
}
:is(.btn,.button,button,[type=submit],[type=button]) {
    text-transform: none!important;
}
.footer-rs {
    width: 35px !important;
    position: relative;
    top: -1px;
    left: 5px;
}


@media (max-width: 400px) {
.custom-catalog-buttons :is(.btn,.button,button,[type=submit],[type=button]) {
    padding: 5px 10px!important;
    font-size: 12px!important;
}
.custom-catalog-buttons  .ctc_cta {
    padding: 0 10px 0px 10px!important;
    border-radius: 10px!important;
    font-size: 12px!important;
}
}