/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/*marketplace buttons*/
.marketplace-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}
.marketplace-buttons a.button {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}
.marketplace-buttons a.ozon { background: #005bff; color: white; }
.marketplace-buttons a.wb { background: #a73afd; color: white; }
.marketplace-buttons a.ym { background: #ff5226; color: white; }
.marketplace-buttons a.dm { background: #0073e6; color: white; }
.marketplace-buttons a.lm { background: #000; color: white; }

/*замена пинтерест на yandex
.social-pinterest {
  --wd-social-brand-color: #CB2027;
  --wd-social-icon: "\f414"!important;
font-family: "Font Awesome 5 Brands"
}
*/
/* Основной стиль (оставляем woodmart-font по умолчанию) */
.wd-social-icons .wd-icon::before {
  content: var(--wd-social-icon, unset);
  font-family: "woodmart-font", sans-serif;
}
.wd-social-icons [class*="social-viber"] .wd-icon::before {
  font-family: "Font Awesome 6 Brands" !important;
	--wd-social-icon: "\f413"; /* Код иконки */
}
/* Характеристика Размер в карточке товара */
.custom-size-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.size-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    width: 100%;
}

.custom-size-attribute {
    display: inline-flex;
    flex-direction: column;
    padding: 7px 7px;
    border-radius: 31px;
    border: 1px solid #efefef;
    line-height: 1.2;
    text-align: center;
    flex-basis: calc(16.666% - 8px); /* 6 элементов в строке */
    box-sizing: border-box;
}

.custom-size-attribute:hover {
    border-color: #d22630;
    cursor: pointer;
}

.size-main {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.size-secondary {
    font-size: 12px;
    color: #8f8f8f;
    font-weight: 400;
}

/* Адаптация для меньшего количества элементов */
@media (max-width: 768px) {
    .custom-size-attribute {
        flex-basis: calc(33.333% - 8px); /* 3 элемента в строке на мобильных */
    }
}

/* Если элементов 5 или меньше - растягиваем по содержимому */
.custom-size-container:has(.custom-size-attribute:nth-child(6)) .custom-size-attribute {
    flex-basis: auto;
    min-width: calc(16.666% - 67px);
}

/*стилизация артикула в названии*/
.product-sku {
    color: #c6c6c6  !important;
    font-size: 0.6em !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/*скрытое поле*/
.hidden-fields-container {display: none;} 

/*атрибуты в карточке*/
/* Основной контейнер для блока атрибутов */
.custom-attributes-container {
    margin-top: 15px;
    font-size: 16px;
    
}

/* Стили для каждой строки атрибута */
.custom-attribute {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #ddd; /* Граница между строками */
}

/* Последняя строка не должна иметь нижней границы */
.custom-attribute:last-child {
    border-bottom: none;
}

/* Метка атрибута (например, "Мембрана:") */
.attribute-label {
    font-weight: bold;
    color: #333;
    width: 40%; /* Ширина метки */
    text-align: left;
	
}

/* Значение атрибута (например, "201 0х/11, 9ЭП / Н/Д 18кг") */
.attribute-value {
    font-weight: normal;
    color: #555;
    width: 60%; /* Ширина значения */
    text-align: right;
	
}
/* === Адаптация под мобильные устройства === */
@media screen and (max-width: 768px) {
    .custom-attribute {
        flex-direction: column;
        align-items: flex-start;
    }

    .attribute-label,
    .attribute-value {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }

    .attribute-value {
        font-weight: normal;
        color: #555;
        margin-bottom: 10px;
    }
}
/*мета в сообщении*/
.wd-single-post-header .wd-post-meta  {display:none!important;}