#product .floor-calc {width:100%;margin:12px 0 16px;color:#1c211e;text-align:left;font:400 16px/1.35 Stolzl,Arial,sans-serif}
#product .floor-calc * {box-sizing:border-box}
#product .fc-row {display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);gap:8px;align-items:center;padding:10px 0;border-top:1px solid #e6e9e7}
#product .floor-calc label,#product .floor-calc button,#product .floor-calc input,#product .fc-row>span {margin:0;font:inherit;color:inherit;text-transform:none;letter-spacing:normal}
#product .fc-step,#product .fc-options {display:grid;align-items:center;min-width:0;background:#f4f5f4;border-radius:12px}
#product .fc-step {grid-template-columns:44px minmax(0,1fr) 44px}
#product .floor-calc .fc-step button,#product .floor-calc .fc-step input {display:block;width:100%;height:44px;min-width:0;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none;text-align:center;font-variant-numeric:tabular-nums}
#product .fc-step button,#product .fc-options label {cursor:pointer}
#product .fc-step button:disabled {color:#9ba39e;cursor:default}
#product .fc-step:focus-within {box-shadow:0 0 0 2px #419458}
#product .fc-options {grid-template-columns:repeat(3,minmax(0,1fr));padding:2px}
#product .fc-options label {display:grid;place-items:center;position:relative;min-width:0;min-height:44px;border-radius:10px;white-space:nowrap}
#product .floor-calc .fc-options input {display:block;position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
#product .fc-options label:has(:checked) {background:#d9f9e1;color:#174227;box-shadow:inset 0 0 0 1px #abddb7}
#product .fc-options label:has(:focus-visible) {outline:2px solid #296638}
#product .fc-total {display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;border-top:1px solid #e6e9e7;padding-top:15px}
#product .fc-total strong {font-weight:500}
#product .fc-total small {display:block;margin-top:3px;font-size:13px;color:#59635c}
#product .fc-total output {margin:0;padding:0;font:500 clamp(20px,2vw,26px)/1.2 Stolzl,Arial,sans-serif;color:inherit;font-variant-numeric:tabular-nums}
#content.iforest-product-page #product .iforest-product-purchase:has(.floor-calc) .iforest-product-purchase__actions {display:grid!important;grid-template-columns:1fr!important}
#content.iforest-product-page #product .iforest-product-purchase:has(.floor-calc) .iforest-product-purchase__primary {width:100%!important}
/* Статус открывает карточку. Элементы общего меню и раздел отзывов ниже карточки независимы. */
#content.iforest-product-page #product .iforest-product-purchase {
    display:flex!important;
    flex-direction:column;
    align-items:stretch;
}
#content.iforest-product-page #product .iforest-product-purchase > :is(.iforest-product-purchase__reviews,.wishlist-compare) {
    display:none!important;
}
#content.iforest-product-page #product .iforest-product-purchase > .iforest-product-purchase__availability {
    order:-1!important;
    align-self:flex-end;
    justify-content:flex-end!important;
    margin:0 0 8px!important;
}
/* Цены стоят рядом, отметка скидки при необходимости переходит на следующую строку. */
#content.iforest-product-page #product .iforest-product-purchase > ul.price {
    display:flex!important;
    flex-wrap:wrap;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px 8px!important;
    margin:0!important;
}
#content.iforest-product-page #product .iforest-product-purchase > ul.price > :is(.price-new,.product-price,.price-old,.iforest-product-purchase__discount) {
    flex:0 0 auto!important;
    width:auto!important;
    margin:0!important;
    white-space:nowrap!important;
}
#content.iforest-product-page #product .iforest-product-purchase > ul.price > :is(.price-new,.product-price) {order:1}
#content.iforest-product-page #product .iforest-product-purchase > ul.price > .price-old {order:2}
#content.iforest-product-page #product .iforest-product-purchase > ul.price > .iforest-product-purchase__discount {order:3}
#content.iforest-product-page #product .iforest-product-purchase > ul.price > .price-tax {
    order:4;
    flex:0 0 100%;
    display:flex!important;
    flex-wrap:wrap;
    justify-content:flex-start!important;
    align-items:baseline!important;
    gap:2px 6px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    text-align:left!important;
}
#content.iforest-product-page #product .iforest-product-purchase > ul.price > .product-discount-row {order:5;flex:0 0 100%}
@media(max-width:767px) {
    #product > .iforest-sale-promo {margin:12px 0 0}
}

/* Секции описания и свойств повторяют отступы соседних карточек. */
#content.iforest-product-page .iforest-detail-section {
    display:block; min-width:0; width:100%; box-sizing:border-box;
    padding:clamp(16px,2vw,24px); border-radius:16px; background:#fff;
    scroll-margin-top:65px; overflow-wrap:anywhere; color:#262626;
}
#content.iforest-product-page .iforest-detail-section > h3 {
    margin:0 0 16px; font:500 18px/1.35 Stolzl,Arial,sans-serif; color:#171717;
}
#content.iforest-product-page .iforest-detail-section > :last-child {margin-bottom:0}
#content.iforest-product-page .iforest-detail-section img {max-width:100%;height:auto}
/* Изображение заполняет внутреннюю область миниатюры при любой ширине слайда. */
#content.iforest-product-page .iforest-product-gallery #product-gallery {
    width:min(100%,360px)!important;
    height:64px!important;
    min-height:64px!important;
    margin:8px 0 0!important;
}
#content.iforest-product-page .iforest-product-gallery #product-gallery :is(.owl-wrapper-outer,.owl-wrapper,.owl-item) {
    height:64px!important;
}
#content.iforest-product-page .iforest-product-gallery #product-gallery a {
    position:relative;
    box-sizing:border-box;
    overflow:hidden;
    background:transparent!important;
    display:block!important;
    height:auto!important;
    aspect-ratio:1;
}
#content.iforest-product-page .iforest-product-gallery #product-gallery a > img {
    display:block!important;
    position:absolute;
    inset:0;
    box-sizing:border-box;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    object-fit:cover!important;
    object-position:center;
}

/* Ширину блока покупки сохраняем по сетке шаблона. Остаток после фотографии получают характеристики. */
@media (min-width:1200px) {
    #content.iforest-product-page .iforest-product-layout {
        --forest-space:calc(100% - 80px);
        --forest-buy:max(300px, calc(var(--forest-space) * .259558824));
        grid-template-columns:min(calc(var(--forest-gallery-column,475px) * .8),calc(var(--forest-space) * .416 - var(--forest-wide-adjustment,0px))) minmax(0,1fr) var(--forest-buy)!important;
    }
}
@media (min-width:1200px) {
    #content.iforest-product-page .iforest-product-gallery > .image {
        aspect-ratio:var(--forest-gallery-aspect,1)!important;
    }
    #content.iforest-product-page .iforest-product-gallery > .image > a > img {
        object-fit:scale-down!important;
    }
}
/* На широком ПК исходная ширина самого кадра не включала 76 пикселей боковой ленты. */
@media (min-width:1500px) {
    #content.iforest-product-page .iforest-product-layout:has(.iforest-product-gallery #product-gallery a) {
        --forest-wide-adjustment:60.8px;
    }
}
@media (min-width:1200px) and (max-width:1499px) {
    #content.iforest-product-page .iforest-product-layout {
        --forest-space:calc(100% - 48px);
        --forest-buy:max(300px, calc(var(--forest-space) * .268965517));
    }
}
@media (min-width:768px) and (max-width:1199px) {
    #content.iforest-product-page .iforest-product-layout {
        grid-template-columns:min(calc(var(--forest-gallery-column,475px) * .8), calc((100% - 24px) * .424)) minmax(0,1fr)!important;
    }
}
@media (min-width:768px) {
    #content.iforest-product-page .iforest-product-gallery > .image {
        width:min(100%, calc(var(--forest-gallery-frame,475px) * .8))!important;
        height:auto!important; min-height:0!important; aspect-ratio:475 / 343;
        margin-inline:auto!important;
    }
    #content.iforest-product-page .iforest-product-gallery > .image > a {
        position:absolute; inset:0;
    }
    #content.iforest-product-page .iforest-product-gallery > .image > a > img {
        width:100%!important; height:100%!important; min-height:0!important; object-fit:cover;
    }
    #content.iforest-product-page .iforest-product-specs > .description > li:not(.p-all-char) {
        grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
        overflow-wrap:anywhere;
    }
}
@media (max-width:767px) {
    #content.iforest-product-page .iforest-product-layout > .iforest-product-specs {
        background:#fff; border-radius:24px; padding:16px!important;
    }
    #content.iforest-product-page .iforest-product-specs > .description > li:not(.p-all-char) {
        grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
        column-gap:12px; overflow-wrap:anywhere;
    }
}
