/* Блок покупки */

.wb-buy-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-top: 20px;
    padding: 20px 0;
}


/* Цена + наличие */

.wb-price-stock {
    display: flex;
    flex-direction: column;
}


.wb-price {

    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: #222;

}


.wb-currency {
    font-size: 30px;
}


/* Кошелек возле цены */

.wb-price:before {

    content: "₽";
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin-right: 10px;

    background: rgb(221,51,51);
    color: white;

    border-radius: 8px;

    font-size: 22px;
    font-weight: 700;

}


/* наличие */

.wb-stock {

    margin-top: 8px;

    font-size: 16px;
    color: #2a9d3f;

}


.wb-stock.out {

    color:#999;

}



/* Кнопка */

.wb-cart-button {

    margin-left:auto;

}


.wb-cart-button .single_add_to_cart_button {

    min-width:220px;
    height:55px;

    font-size:18px;
    font-weight:600;

    border-radius:12px;

    background:rgb(221,51,51);
    color:white;

}


.wb-cart-button .single_add_to_cart_button:hover {

    opacity:.85;

}


/* Убираем старый блок количества если появится */

.wb-cart-button .quantity {

    display:none;

}

/* Карточка товара */
.custom-product-buy {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* Цена */
.custom-product-price {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: rgb(221, 51, 51);
    margin-bottom: 5px;
}


/* Убираем копейки */
.custom-product-price .woocommerce-Price-currencySymbol {
    font-size: 24px;
}


/* Наличие */
.custom-product-stock {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}


/* Корзина справа */
.custom-product-cart {
    position: absolute;
    right: 0;
    top: 0;
}


/* Кнопка */
.custom-product-cart .single_add_to_cart_button {
    background: rgb(221, 51, 51);
    color: #fff;
    border-radius: 8px;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity .25s ease;
}


.custom-product-cart .single_add_to_cart_button:hover {
    opacity: 0.8;
}


/* Убираем лишние отступы WooCommerce */
.custom-product-cart .quantity {
    display: none;
}

/* Похожие товары */

.custom-related-products {
    margin-top:40px;
}


.custom-related-products h2 {
    font-size:26px;
    margin-bottom:25px;
}


.related-products-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}


.related-product-card {
    background:#fff;
    border-radius:12px;
    padding:15px;
    transition:.25s;
}


.related-product-card:hover {
    transform:translateY(-3px);
}


.related-product-card img {
    width:100%;
    height:260px;
    object-fit:contain;
    border-radius:10px;
}


.related-product-card h3 {
    font-size:16px;
    line-height:1.3;
    margin:12px 0;
}


.related-price {
    font-size:22px;
    font-weight:700;
    color:rgb(221,51,51);
    margin-bottom:12px;
}


.related-button {
    display:block;
    text-align:center;
    background:rgb(221,51,51);
    color:#fff;
    padding:10px;
    border-radius:8px;
    text-decoration:none;
}


.related-button:hover {
    opacity:.8;
}

/* Похожие колоды WB стиль */

.wb-related-products {
    margin-top:25px;
    width:100%;
}


.wb-related-products h3 {
    font-size:20px;
    margin:0 0 15px;
}


/* Лента */

.wb-related-slider {

    display:flex;
    gap:14px;

    overflow-x:auto;

    padding:5px 4px 12px;

    scroll-behavior:smooth;

    scrollbar-width:none;
}


.wb-related-slider::-webkit-scrollbar {
    display:none;
}


/* Карточка */

.wb-related-card {

    flex:0 0 105px;

    text-decoration:none;

    color:#222;

}


/* Картинка */

.wb-related-image {

    width:105px;
    height:140px;

    border-radius:14px;

    overflow:hidden;

    background:#f7f7f7;

}


.wb-related-image img {

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.25s;
}


/* эффект */

.wb-related-card:hover img {

    transform:scale(1.05);

}



/* название */

.wb-related-title {

    font-size:13px;

    line-height:1.25;

    margin-top:8px;

    height:34px;

    overflow:hidden;

}


/* цена */

.wb-related-price {

    margin-top:5px;

    font-size:15px;

    font-weight:700;

    color:rgb(221,51,51);

}


/* мобильные */

@media(max-width:600px){

    .wb-related-card {
        flex-basis:90px;
    }


    .wb-related-image {

        width:90px;
        height:120px;

    }

}

.custom-product-stock {
    font-size:14px;
    margin-top:8px;
    font-weight:500;
}


.custom-product-stock.in-stock {
    color:#188038;
}


.custom-product-stock.pre-order {
    color:#b26a00;
}


.custom-product-stock.out-of-stock {
    color:#999;
}