/* ===== Блок с услугами (3 колонки) ===== */
.services-icons {
    padding: 40px 0;
    background: #f9f9f9;
    text-align: center;
}

.services-icons .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.services-icons .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-item {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.service-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* ===== Заголовочный блок ===== */
.b2b-hero {
    background: #fff;
    padding: 50px 0;
    text-align: center;
}

.b2b-hero h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #222;
}

.b2b-hero .lead {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== Кнопка ===== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    background: #8b2c2d;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #5e1e1f;
    color: #fff;
}

/* ===== Адаптивность для телефонов ===== */
@media (max-width: 768px) {
    .services-icons .row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .service-item {
        width: 100%;
        max-width: 100%;
    }
    .b2b-hero h1 {
        font-size: 1.5rem;
    }
    .b2b-hero .lead {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/* ===================================================== */
/* ===== Карточка товара: блок покупки справа ===== */
/* ===================================================== */

.product-main-row {
    align-items: flex-start;
}

.product-page .col-lg-7 {
    padding-right: 40px;
}

.product-page .col-lg-5 {
    padding-left: 0;
}

.product-buy {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

/* Цены — в одну строку */
.product-buy .prices {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
}
.product-buy .prices__item {
    flex: 1;
    text-align: left;
}
.product-buy .prices__caption {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}
.product-buy .prices__value {
    font-weight: bold;
    font-size: 1.2rem;
    color: #222;
    white-space: nowrap;
}
.product-buy .prices__from {
    font-size: 0.75rem;
    color: #aaa;
    white-space: nowrap;
}

/* Заголовок "Размеры" — как у цен */
.product-buy .sizes {
    margin-top: 20px;
}
.product-buy .sizes__title {
    font-weight: bold;
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 20px;
}

/* Таблица размеров */
.product-buy .sizes__table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.product-buy .sizes__table th {
    font-size: 0.75rem;
    color: #888;
    font-weight: normal;
    padding: 5px 3px;
    text-align: center;
    border: none;
}
.product-buy .sizes__table td {
    padding: 12px 3px;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.product-buy .sizes__value {
    font-weight: bold;
    font-size: 0.95rem;
}
.product-buy .sizes__price {
    font-weight: bold;
    font-size: 0.95rem;
    color: #222;
    white-space: nowrap;
}

/* Счётчик количества — ВИДИМЫЙ */
.product-buy .sizes__input {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.product-buy .sizes__input .minus,
.product-buy .sizes__input .plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 36px;
    background: #8b2c2d;
    color: #fff;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    user-select: none;
    transition: background 0.2s;
}
.product-buy .sizes__input .minus:hover,
.product-buy .sizes__input .plus:hover {
    background: #5e1e1f;
}
.product-buy .sizes__input input.option_input {
    width: 45px;
    height: 36px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 0;
    outline: none;
    background: #fff;
    color: #222;
}

/* Итого */
.p-cart {
    margin-top: 30px;
}
.p-cart__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 15px;
}
.p-cart__info .info__title {
    font-weight: bold;
    font-size: 1rem;
}
.p-cart__info .info__price {
    font-size: 1.4rem;
    color: #8b2c2d;
    font-weight: bold;
}

/* Кнопки */
.p-cart__buttons {
    display: flex;
    gap: 10px;
}
.p-cart__buttons .in-cart {
    flex: 1;
    background: #8b2c2d;
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: background 0.3s;
}
.p-cart__buttons .in-cart:hover {
    background: #5e1e1f;
}
.p-cart__buttons .wish {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.p-cart__buttons .wish:hover {
    background: #ddd;
}

/* Адаптивность карточки товара */
@media (max-width: 991px) {
    .product-page .col-lg-7 {
        padding-right: 15px;
    }
    .product-page .col-lg-5 {
        padding-left: 15px;
        margin-top: 20px;
    }
    .product-buy {
        position: static;
    }
    .product-buy .prices {
        flex-wrap: wrap;
        gap: 15px;
    }
}