/* Product detail page only. Loaded by template/product/product.tpl.
 * Shared carousel styles also serve storefront modules and blog articles.
 * product-content.css also serves all four product CKEditor fields.
 * Default: two columns for tablet/desktop; one DOM rearranged below 768px.
 * 640px/480px: compact typography. 1024px: existing mouse lightbox threshold.
 */

.product-page .econom_skidka { display: none; }
.product-page .product-related-hidden-name { display: none; }
.product-page .product-carousel--related { margin-top: -20px; }
.product-info .product-bundle-title { font-weight: 500; }
.product-info .product-content .product-bundle-saving {
    font-weight: 500;
    color: #ff0000;
}

/* Overview: image and summary share the first grid row; thumbs use the next. */
.product-info {
    display: flow-root;
    padding-top: 10px;
}

.product-info .product-overview {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-areas: "gallery summary";
    column-gap: 10px;
    align-items: start;
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 30px;
    box-sizing: border-box;
    text-align: center;
}

.product-info .product-summary {
    grid-area: summary;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: center;
    min-width: 0;
    width: 100%;
}

.product-info .product-desc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    margin: 0 0 12px;
    text-align: left;
}

/* #content h1 is a shared rule; keep these resets local to the product. */
.product-info .product-desc h1 {
    width: 100%;
	max-width: none;
    margin: 0 !important;
    padding: 0;
    color: #1d1d1d;
    font-size: 22px;
    font-style: normal;
    line-height: 1.2;
    font-weight: 700;
    text-align: left !important;
    overflow-wrap: anywhere;
	-webkit-text-size-adjust: 100% !important;
	text-size-adjust: 100% !important;
}

.product-info .product-desc__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    margin: 0 0 12px;
    color: #1d1d1d;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.product-info .product-desc__meta a,
.product-info .product-desc__meta span {
    font-size: inherit;
    line-height: inherit;
}

.product-info .product-desc__meta a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.product-info .product-desc__meta a:hover { border-bottom-color: transparent; }

.product-info .product-desc__sticker.sticker {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    padding: 2px 2px 1px 3px;
    border-radius: 5px;
    color: #b27400;
    background-color: #fff1a1;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: inherit;
    text-align: center;
    text-decoration: none;
}

/* Image and video gallery. */
.product-info .product-gallery {
    width: min(320px, 100%);
    min-width: 0;
    margin: 0 auto;
}

.product-info .product-gallery__stage {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    touch-action: pan-y pinch-zoom;
    overflow: hidden;
}

.product-info .product-gallery__stage-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-info .product-gallery__stage-media[hidden],
.product-info .product-gallery__video-play[hidden],
.product-info .product-gallery__video-frame[hidden] {
    display: none !important;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .product-info .product-gallery--multiple .product-gallery__stage {
        cursor: zoom-in;
    }
}

.product-info .product-gallery__stage[aria-label*="Воспроизвести"] {
    cursor: pointer;
}

.product-info .product-gallery__stage picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product-info .product-gallery__stage img,
.product-info .product-gallery__video-poster {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    object-fit: contain;
    opacity: 1;
    transition: opacity .18s ease;
}

.product-info .product-gallery.is-switching .product-gallery__stage img {
    opacity: .35;
}

.product-info .product-gallery__stage-media--video {
    position: relative;
}

.product-info .product-gallery__video-play {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    cursor: pointer;
}

.product-info .product-gallery__video-play-icon,
.product-info .product-gallery__thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.82);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.product-info .product-gallery__video-play-icon:before,
.product-info .product-gallery__thumb-play:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-38%, -50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

.product-info .product-gallery__video-frame,
.product-info .product-gallery__video-frame iframe {
    width: 100%;
    height: 100%;
}

.product-info .product-gallery__video-frame iframe {
    display: block;
    aspect-ratio: 1 / 1;
}

.product-info .product-gallery__thumbs {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin: 14px auto 0;
    padding: 2px 2px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-info .product-gallery__thumb {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    padding: 3px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    opacity: .68;
    transition: border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.product-info .product-gallery__thumb:hover,
.product-info .product-gallery__thumb.is-active {
    border-color: #111;
    opacity: 1;
}

.product-info .product-gallery__thumb:active {
    transform: scale(.96);
}

.product-info .product-gallery__thumb picture,
.product-info .product-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
}

.product-info .product-gallery__thumb img {
    object-fit: contain;
}

.product-info .product-gallery__thumb--video {
    position: relative;
    overflow: hidden;
}

.product-info .product-gallery__thumb--video .product-gallery__thumb-play {
    width: 26px;
    height: 26px;
}

.product-info .product-gallery__thumb--video .product-gallery__thumb-play:before {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
}

/* Full-size image viewer. */
body.product-lightbox-open {
    overflow: hidden;
}

.product-info .product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.product-info .product-lightbox.is-open {
    display: flex;
}

.product-info .product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.92);
}

.product-info .product-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 24px;
}

.product-info .product-lightbox__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}

.product-info .product-lightbox__picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(100vh - 120px);
}

.product-info .product-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-info .product-lightbox__close,
.product-info .product-lightbox__nav {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.product-info .product-lightbox__close:hover,
.product-info .product-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.product-info .product-lightbox__close:active,
.product-info .product-lightbox__nav:active {
    transform: scale(.96);
}

.product-info .product-lightbox__close[disabled],
.product-info .product-lightbox__nav[disabled] {
    opacity: .32;
    cursor: default;
}

.product-info .product-lightbox__close {
    position: absolute;
    top: -6px;
    right: 0;
    z-index: 2;
    width: 48px;
    height: 48px;
    font-size: 28px;
    line-height: 1;
}

.product-info .product-lightbox__nav {
    width: 56px;
    height: 56px;
    font-size: 24px;
    line-height: 1;
}

.product-info .product-lightbox__counter {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
}

@media (max-width: 1023px),
(hover: none),
(pointer: coarse) {
    .product-info .product-lightbox {
        display: none !important;
    }
}

/* Purchase controls. Explicit spacing replaces the layout-only <br>. */
.product-info .product-purchase {
    display: flex;
    flex-direction: column;
    width: min(280px, 100%);
    min-width: 0;
    box-sizing: border-box;
}

.product-info .cart {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin: 10px 0;
    text-align: center;
}

.product-info .price-plus {
    min-height: 1lh;
    width: 100%;
    text-align: center;
}

.product-info .cart-price { width: 100%; }
.product-info .cart-quantity,
.product-info .cart-quantity-special { display: none; }

.product-info .cart-button,
.product-info .cart-button-special { width: 100%; }

.product-info .cart input.button {
    display: block;
    /* common.js remembers button dimensions inline; retain responsive sizing. */
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    margin: 0;
    padding: 8px 16px;
    box-sizing: border-box;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: #000001;
    font-size: 15px;
    cursor: pointer;
    transition: all .4s ease-in-out;
}
.product-info .cart input.button:hover { background: #005ce8; }
.product-info .cart input.button:active { opacity: 1; }

.product-info .product-purchase-notes {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 32px;
    width: 100%;
    margin-top: 0;
    color: #1d1d1d;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.product-info .product-purchase-notes span {
    font: inherit;
    white-space: nowrap;
}

.product-info .product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    width: 100%;
    font-size: 23px;
    line-height: 30px;
    text-align: center;
    box-sizing: border-box;
}

.product-info .product-price-row,
.product-info .product-price-row .procent_econom,
.product-info .product-price-row .old_price,
.product-info .product-price-row .product-price-row__current,
.product-info .product-price-row .price-format,
.product-info .product-price-row .price-value { font-weight: 800 !important; }

.product-info .product-price-row .procent_econom {
    padding: .01em .03em .04em;
    border-radius: .35em;
    color: #fff;
    background: #ff5f43;
    font-size: inherit;
    line-height: 1;
    letter-spacing: 0;
}

.product-info .product-price-row .old_price {
    color: #c1c1c1;
    font-size: inherit;
    line-height: inherit;
    text-decoration: line-through;
}

.product-info .product-price-row__current {
    display: inline-flex;
    align-items: baseline;
    font-size: inherit;
    line-height: inherit;
}

.product-info .product-price-row .nbrb-price-icon {
    -webkit-text-stroke-width: 1.3px;
}
@supports not (-webkit-text-stroke: 0.9px currentColor) {
    .product-info .product-price-row .nbrb-price-icon {
        text-shadow: .65px 0 currentColor, -.65px 0 currentColor,
            0 .65px currentColor, 0 -.65px currentColor;
    }
}

/* Other volumes. Keep the id and classes used by existing links. */
.product-info #volume_card.product-volume-options {
    width: 100%;
    margin: 24px 0 0;
    padding: 0;
    font-size: 16px;
    color: #1d1d1d;
    text-align: left;
}
.product-info .product-volume-options__title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 16px;
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
    color: #fff;
    background: #000001;
    border-radius: 8px 8px 0 0;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .18em;
    text-align: center;
    text-transform: uppercase;
}
.product-info .product-volume-options__list {
    display: grid;
    gap: 0;
    width: 100%;
}
.product-info #volume_card a.product-volume-option {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 36px;
    min-width: 0;
    margin: 0;
    padding: 2px 8px 2px 6px;
    border: 1px solid #1d1d1d;
    border-radius: 0;
    box-sizing: border-box;
    color: #1d1d1d;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: border-color .2s ease, opacity .2s ease, filter .2s ease;
}
.product-info #volume_card a.product-volume-option + a.product-volume-option {
    margin-top: -1px;
}
.product-info #volume_card a.product-volume-option:last-child {
    border-radius: 0 0 8px 8px;
}
.product-info #volume_card a.product-volume-option--unavailable {
    color: #8e8e8e;
    opacity: .32;
    filter: grayscale(1);
}
.product-info #volume_card a.product-volume-option:not(.product-volume-option--unavailable):hover,
.product-info #volume_card a.product-volume-option:not(.product-volume-option--unavailable):focus-visible {
    z-index: 1;
    border-color: #7ac900;
}
.product-info .product-volume-option__picture,
.product-info .product-volume-option__picture img {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 0;
}
.product-info .product-volume-option__picture img { object-fit: contain; }
.product-info .product-volume-option__content {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    min-width: 0;
    gap: 6px;
    white-space: nowrap;
}
.product-info .product-volume-option__volume { line-height: 1; }
.product-info .product-volume-option__volume::after { content: ':'; }
.product-info .product-volume-option__prices {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}
/* These weights intentionally override the shared monetary typography. */
.product-info #volume_card .product-volume-option__volume,
.product-info #volume_card .product-volume-option__prices,
.product-info #volume_card .product-volume-option__old-price,
.product-info #volume_card .product-volume-option__price,
.product-info #volume_card .price-format,
.product-info #volume_card .price-value,
.product-info #volume_card .nbrb-price-icon {
    font-size: 16px;
    font-weight: 500 !important;
}
.product-info #volume_card .product-volume-option__old-price,
.product-info #volume_card .product-volume-option__old-price .price-format,
.product-info #volume_card .product-volume-option__old-price .price-value {
    color: #c1c1c1;
    text-decoration: line-through;
}
.product-info .product-volume-option__old-price .nbrb-price-icon { display: none; }
.product-info #volume_card .product-volume-option__price { color: #1d1d1d; }
.product-info #volume_card .product-volume-option__price--special,
.product-info #volume_card .product-volume-option__price--special .price-format,
.product-info #volume_card .product-volume-option__price--special .price-value,
.product-info #volume_card .product-volume-option__price--special .nbrb-price-icon { color: #ff0b50; }

/* Compatibility for optional HTML fragments supplied by the database/modules.
 * These selectors are absent from the current static template, but their
 * runtime content cannot be audited offline. Keep their original presentation.
 */
.product-info .share {
    color: #a8a8aa;
}

.product-info .share a {
    font-weight: 700;
    font-size: 13px;
    color: #1d1d1d;
}

.product-info .share a:hover {
    text-decoration: underline;
}

.product-info .share .desc {
    font-size: 13px;
    color: #a8a8aa;
    margin-bottom: 5px;
    float: left;
    line-height: 35px;
}

.product-info .cart .minimum {
    padding-top: 5px;
    font-size: 11px;
    color: #999;
}

.product-info .price-old {
    color: #c1c1c1;
    font-size: 18px;
    line-height: 18px;
    text-decoration: line-through;
    text-align: left;
}

.product-info .price-new {
    font-size: 38px;
    line-height: 36px;
}

.product-info .payment {
    border-top: 1px solid #d7d7d7;
    border-bottom: 1px solid #d7d7d7;
    padding: 9px 0;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.product-info .review {
    color: #4D4D4D;
    border-top: 1px solid #E7E7E7;
    border-left: 1px solid #E7E7E7;
    border-right: 1px solid #E7E7E7;
    margin-bottom: 10px;
}

.product-info .review > div {
    padding: 8px;
    border-bottom: 1px solid #E7E7E7;
    line-height: 20px;
}

.product-info .review > div > span {
    color: #38B0E3;
}

/* Description content is shared with CKEditor: do not reset its descendants. */
.product-info .product-details {
    background: #fff;
    padding: 10px 0;
}
.product-info #tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin: 0;
	padding: 0 0 24px;
    text-align: center;
    font-size: 18px;
	line-height: 1.4;
}
.product-info #tabs div {
    position: relative;
	margin: 0;
	padding: 2px 0 3px;
	border-bottom: 2px solid transparent;
    font-weight: 400;
    color: #a8a8aa;
    cursor: pointer;
}
.product-info #tabs div:hover { border-bottom-color: currentColor; }
.product-info #tabs div.active {
    color: #323e48;
	border-bottom-color: currentColor;
}
.product-info #tabs-content > div { display: none; }
.product-info #tabs-content > div.active { display: block; }

/* Wide layout is the default; the mobile block restores the gallery box. */
.product-info .product-overview > .product-gallery { display: contents; }
.product-info .product-overview > .product-gallery > .product-gallery__stage {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 100%;
}
.product-info .product-overview > .product-gallery > .product-gallery__thumbs {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .product-info {
        width: 100%;
        max-width: 620px;
        margin-right: auto;
        margin-left: auto;
    }
    .product-info .product-overview {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "heading" "gallery" "purchase";
        row-gap: 18px;
        width: min(620px, calc(100% - 20px));
    }
    .product-info .product-summary { display: contents; }
    .product-info .product-desc {
        grid-area: heading;
        align-items: center;
        margin: 0;
        text-align: center;
    }
    .product-info .product-desc h1 {
		text-align: center !important;
	}
    .product-info .product-desc__meta { justify-content: center; }
    .product-info .product-overview > .product-gallery {
        display: block;
        grid-area: gallery;
    }
    /* The old clearfix added an empty final row only when a gallery existed. */
    .product-info .product-gallery + .product-summary > .product-purchase {
        margin-bottom: 18px;
    }
    /* Preserve the former inline image baseline gap with explicit spacing. */
    .product-info .product-overview > .product-gallery > .product-gallery__thumbs {
        margin-top: 18px;
        box-sizing: content-box;
    }
    .product-info .product-gallery:not(.product-gallery--multiple) { padding-bottom: 4px; }
    .product-info .product-purchase {
        grid-area: purchase;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .product-info .cart { margin-top: 0; }
    .product-info .product-price-row { font-size: 22px; line-height: 25px; }
}

@media (max-width: 480px) {
    .product-info { padding-top: 0; }
}
