/* Product page only. Header, catalogue cards and popups retain their own styles. */
.product-detail { --product-green: #0c231b; color: #17231e; }
.product-detail .sect-product__pre-info { margin-bottom: 22px; }
.product-detail .rme-pre-info__row { gap: 16px; align-items: center; }
.product-detail .rme-product-actions__row { gap: 20px; flex-wrap: wrap; }
.product-detail .rme-product-actions__item { cursor: pointer; font-size: 14px; }
.product-detail .btn-wishlist .rme-icon__img { fill: none; stroke: currentColor; }
.product-detail .btn-wishlist.is-active .rme-icon__img { fill: currentColor; }
.product-detail .sect-product__group {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}
.product-detail .sect-product__item_gallery,
.product-detail .sect-product__item_info,
.product-detail .sect-product__main {
    width: 100%; max-width: none; min-width: 0; margin: 0; padding: 0;
}
.product-detail .sect-product__item_info {
    position: static; top: auto; align-self: start;
    display: block; background: #fff; border-radius: 16px; padding: 28px;
}
.product-detail .sect-product__item_info > .sect-product__item { margin: 0; padding: 0; width: 100%; max-width: none; }
.product-detail .sect-product__item_info .sect-product__card { padding: 0; background: transparent; border-radius: 0; }
.product-detail .sect-product__gallery {
    display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px;
    width: 100%; margin: 0; align-items: start;
}
.product-detail .sect-product__preview { width: 84px; max-width: none; padding: 0; flex: none; }
.product-detail .sect-product__preview-prewrap { padding: 0; height: auto; }
.product-detail .sect-product__preview-slider { position: relative; height: 544px; max-height: none; }
.product-detail .sect-product__preview-slider-pic {
    box-sizing: border-box; width: 84px; height: 96px; max-height: none; flex: 0 0 auto; border: 1px solid transparent;
    border-radius: 8px; overflow: hidden; background: #fff;
}
.product-detail .sect-product__preview-slider-pic_active { border-color: var(--product-green); }
.product-detail .sect-product__preview-slider-pic img { width: 100%; height: 100%; object-fit: contain; }
.product-detail .sect-product__gallery-pic {
    position: relative; width: 100%; min-width: 0; max-width: none; flex: none; height: auto; padding: 20px;
    aspect-ratio: 1 / 1.13; background: #fff; border-radius: 16px; overflow: hidden;
}
.product-detail .sect-product__gallery-img {
    position: static; width: 100%; height: 100%; max-height: none;
    object-fit: contain; cursor: zoom-in;
}
.product-detail__expand {
    position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center;
    width: 44px; height: 44px; border: 1px solid #edf0ee; border-radius: 50%;
    background: #fff; color: var(--product-green); box-shadow: 0 2px 8px #0c231b12; cursor: pointer;
}
.product-detail__expand svg { width: 22px; height: 22px; }
.product-detail__type { margin-bottom: 10px; color: var(--product-green); font-size: 14px; line-height: 1.5; }
.product-detail .sect-product__info-title { margin: 0 0 22px; font-size: clamp(23px, 2vw, 32px); line-height: 1.25; font-weight: 700; }
.product-detail .rme-height_page { margin: 0 0 22px; }
.product-detail .rme-height__label { color: #34463d; font-size: 14px; }
.product-detail .rme-height__trigger { min-height: 48px; }
.product-detail__facts { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 0 0 24px; }
.product-detail__fact { display: flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.4; flex: 1 1 110px; }
.product-detail__fact svg { flex: 0 0 25px; width: 25px; height: 25px; color: var(--product-green); }
.product-detail .sect-product__prices { margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.product-detail .sect-product__info-attributes { margin-bottom: 0; }
.product-detail .sect-product__price_sale { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.15; font-weight: 700; color: #080c0a; }
.product-detail .sect-product__price_full { font-size: 20px; color: #7a857e; }
.product-detail .sect-product__actions { margin: 0; display: block; }
.product-detail .sect-product__actions-col_buy { width: 100%; }
.product-detail #button-cart {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; min-height: 58px; padding: 14px 16px; margin: 0;
    background: var(--product-green); border: 1px solid var(--product-green);
    border-radius: 10px; color: #fff; font-size: 20px; line-height: 1.3;
}
.product-detail #button-cart:hover { background: #193b2e; }
.product-detail #button-cart .rme-btn__text { flex: 0 1 auto; margin: 0; }
.product-detail__cart-icon { width: 26px; height: 26px; flex-shrink: 0; }
.product-detail .sect-product__actions-group { margin: 0; padding: 0; gap: 0; }
.product-detail .sect-product__actions-group:empty { display: none; }
.product-detail .digi-dolyame-product { width: 100%; max-width: none; transform: none; margin: 8px 0 0 !important; }
.product-detail .product-detail__delivery {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
    border-top: 1px solid #e0e6e2; margin-top: 24px; padding-top: 22px !important;
}
.product-detail .product-detail__delivery .rme-btn {
    display: flex; align-items: center; justify-content: flex-start; gap: 10px;
    min-height: 72px; width: 100%; margin: 0; padding: 12px;
    border: 0; border-radius: 10px; background: #f0f4f2; color: #23372d;
    font-size: 13px; line-height: 1.4; font-weight: 400; text-align: left; white-space: normal;
}
.product-detail__delivery svg { width: 26px; height: 26px; flex: 0 0 26px; }
.product-detail .product-detail__delivery .rme-btn:hover { background: #e4ece7; }
.product-detail .sect-product__main { grid-column: 1 / -1; order: 3; display: block; }
.product-detail .sect-product__item_params { width: 100%; max-width: none; margin: 0; padding: 0; margin-bottom: 25px; }
.product-detail .rme-tabs { background: #fff; border-radius: 16px; padding: 8px 28px 24px; }
.product-detail .rme-tabs__nav { display: flex; gap: 28px; border-bottom: 1px solid #e0e6e2; margin: 0 0 22px; }
.product-detail .rme-tabs__btn {
    position: relative; display: block; padding: 18px 4px; margin: 0;
    border: 0; background: transparent; font: inherit; font-size: 16px;
    color: #748078; cursor: pointer; text-decoration: none;
}
.product-detail .rme-tabs__btn.active { color: var(--product-green); font-weight: 600; text-decoration: none; }
.product-detail .rme-tabs__btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--product-green); }
.product-detail .rme-tabs__pane { display: none; }
.product-detail .rme-tabs__pane.active { display: block; }
.product-detail .rme-tabs .sect-product__card { background: transparent; border-radius: 0; padding: 0; }
.product-detail .rme-tabs .sect-product__description { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.product-detail .rme-tabs .sect-product__description p:last-child { margin-bottom: 0; }
.product-detail .rme-product-params__block-list li { padding: 12px 0; gap: 20px; }
.product-detail .rme-tabs__content { margin: 0; }
.product-detail a:focus-visible, .product-detail button:focus-visible { outline: 2px solid #47785d; outline-offset: 3px; }
@media (min-width: 992px) {
    /* Let the purchase content size the shared row, not the photo's aspect ratio. */
    .product-detail .sect-product__group { align-items: stretch; }
    .product-detail .sect-product__item_info { align-self: stretch; }
    .product-detail .sect-product__item_gallery { display: block; min-height: 480px; }
    .product-detail .sect-product__gallery { height: 100%; align-items: stretch; }
    .product-detail .sect-product__gallery-pic { aspect-ratio: auto; height: 100%; min-height: 0; }
    .product-detail .sect-product__gallery-img {
        position: absolute; inset: 20px;
        width: calc(100% - 40px); height: calc(100% - 40px);
    }
    .product-detail .sect-product__preview-prewrap { height: 100%; }
    .product-detail .sect-product__preview-slider { position: absolute; height: 100%; }
}
@media (max-width: 1199px) {
    .product-detail .sect-product__item_info { padding: 22px; }
    .product-detail .product-detail__delivery { grid-template-columns: 1fr; }
    .product-detail .product-detail__delivery .rme-btn { min-height: 48px; }
}
@media (max-width: 991px) {
    .product-detail .sect-product__group { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .product-detail .rme-pre-info__row { flex-direction: column; align-items: flex-start; }
    .product-detail .rme-pre-info__col { width: 100%; max-width: none; }
    .product-detail .sect-product__gallery { display: flex; flex-direction: column-reverse; gap: 12px; }
    .product-detail .sect-product__gallery-pic { aspect-ratio: 1 / 1; max-height: 560px; }
    .product-detail .sect-product__preview { width: 100%; }
    .product-detail .sect-product__preview-slider { height: 84px; width: 100%; }
    .product-detail .sect-product__preview-slider-pic { width: 78px; height: 84px; }
    .product-detail .sect-product__preview-nav { display: none; }
    .product-detail .product-detail__delivery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .product-detail .sect-product__pre-info { margin-bottom: 16px; }
    .product-detail .rme-product-actions__row { gap: 12px 16px; justify-content: flex-start; }
    .product-detail .rme-product-actions__item { font-size: 12px; }
    .product-detail .rme-product-actions__item-icon { width: 20px; height: 20px; }
    .product-detail .sect-product__item_info { padding: 20px 16px; border-radius: 12px; }
    .product-detail .sect-product__info-title { font-size: 23px; }
    .product-detail .sect-product__gallery-pic { padding: 12px; border-radius: 12px; }
    .product-detail__facts { gap: 12px; }
    .product-detail__fact { font-size: 12px; gap: 6px; flex-basis: 85px; }
    .product-detail__fact svg { width: 22px; height: 22px; flex-basis: 22px; }
    .product-detail #button-cart { min-height: 54px; font-size: 18px; }
    .product-detail .product-detail__delivery { grid-template-columns: 1fr; gap: 8px; }
    .product-detail .product-detail__delivery .rme-btn { min-height: 52px; font-size: 14px; }
    .product-detail .rme-tabs { padding: 4px 16px 20px; border-radius: 12px; }
    .product-detail .rme-tabs__nav { gap: 22px; }
    .product-detail .rme-tabs__btn { font-size: 15px; }
    .product-detail .rme-tabs .sect-product__description { font-size: 15px; }
}

/* A separate sibling keeps the bank button outside the Dolyame widget target. */
.product-detail .product-detail__installment { margin: 0; }
.product-detail .product-detail__installment tinkoff-create-button { display: block; transform: none; margin: 0; }


/* Only arrange the providers' containers; the T-Bank SDK owns its button design. */
.product-detail .product-detail__payments { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; margin-top: 12px; }
.product-detail .product-detail__payments > .sect-product__actions-group { flex: 1 1 300px; min-width: 0; margin: 0; }
.product-detail .product-detail__payments > .product-detail__installment { flex: 0 0 auto; min-width: 0; margin: 0; }
.product-detail .product-detail__payments .digi-dolyame-product { box-sizing: border-box; width: 100%; height: 56px !important; min-height: 56px; margin: 0 !important; }
.product-detail .product-detail__payments .digi-dolyame-product > button, .product-detail .product-detail__payments .digi-dolyame-product > a, .product-detail .product-detail__payments .digi-dolyame-product > iframe { box-sizing: border-box; width: 100%; height: 56px; min-height: 56px; }
@media (max-width: 767px) {
    .product-detail .product-detail__payments { flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; margin-bottom: 20px; }
    .product-detail .product-detail__payments > .sect-product__actions-group { flex: none; width: min(100%, var(--product-bank-width, 294px)); }
}
