/**
 * Product Page Styles
 * Общие стили для страниц продуктов:
 * - item_single_default.tpl (впечатления)
 * - item_card.tpl (наборы впечатлений)
 * - nominal.tpl (номиналы)
 * - hotel_set_page.tpl (отельные наборы)
 */

/* ==========================================================================
   Layout
   ========================================================================== */

.item-single-tops {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .item-single-tops {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Photo Column
   ========================================================================== */

.x-card-column {
    flex: 0 0 auto;
    max-width: 525px;
    width: 525px;
}

.x-card__image {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
}

#main-img {
    display: block;
    width: 100%;
    aspect-ratio: 525 / 570;
    object-fit: cover;
    border-radius: 5px;
}

@media (max-width: 1199px) {
    #main-img {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 480px) {
    #main-img {
        aspect-ratio: 1 / 1;
    }
}

/* Фикс высоты слайдера миниатюр */
.x-cardThumbsBox {
    height: 60px !important;
    overflow: visible;
}

@media (max-width: 1024px) {
    .x-cardThumbsBox {
        height: 45px !important;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .x-cardThumbsBox {
        height: 42px !important;
        overflow: visible;
    }
}

.x-cardThumbs,
.x-cardThumbs .slick-list,
.x-cardThumbs .slick-track,
.x-cardThumbs .slick-slide {
    height: 60px !important;
}

.x-cardThumbs__item {
    cursor: pointer;
    padding: 0 20px !important;
}

@media (max-width: 1023px) {
    .x-card-column {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   Banners
   ========================================================================== */

.product-page-banners {
    display: flex;
    gap: 17px;
}

.product-page-banner.drop-shadow {
    box-shadow: 0 0 20px #44444429;
}

.product-page-banner {
    aspect-ratio: 1.315 / 1;
    border-radius: 10px;
    cursor: pointer;
    flex: 1 1 0;
    margin-top: 15px;
    overflow: hidden;
    position: relative;
}

.product-page-banner .background-image {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.product-page-banner .text[data-v-a7ccbe67] {
    bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    left: 16px;
    position: absolute;
    z-index: 10;
}

.product-page-banner.yandex {
    background: linear-gradient(173.57deg, #ffc200 12.84%, #ffbe23 52.63%);
}

.product-page-banner.yandex .arrow {
    align-items: center;
    border: 1px solid #eb1c24;
    border-radius: 50%;
    color: #eb1c24;
    display: flex;
    height: 25px;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 25px;
}

.product-page-banner.yandex .arrow svg {
    margin-top: -1px;
}

.product-page-banner.yandex img {
    bottom: 66px;
    left: 16px;
    position: absolute;
}

.product-page-banner.yandex .text {
    bottom: 16px;
    color: #222729;
    font-size: 12px;
    font-weight: 600;
    left: 16px;
    line-height: 1.4;
    max-width: 190px;
    position: absolute;
}

@media (max-width: 430px) {
    .product-page-banner {
        height: 140px;
    }
}

@media (max-width: 391px) {
    .product-page-banner.yandex .text {
        line-height: 1.0 !important;
        bottom: 13px;
    }
}

/* ==========================================================================
   Info Block
   ========================================================================== */

.item-single-info {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px #4242421f;
    max-width: 475px;
    padding: 20px;
    width: 475px;
}

.item-single-info .item-single-h {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 1rem !important;
}

@media (max-width: 1181px) {
    .item-single-info .item-single-h {
        margin-top: 1rem !important;
    }
}

.item-single-info:after {
    display: none;
}

.separator {
    background: #e1e1e1;
    height: 1px;
    margin-bottom: 20px !important;
    margin-top: 20px !important;
}

@media (max-width: 768px) {
    .item-single-info {
        max-width: 100% !important;
        width: 100% !important;
    }

    .item-single-info .xpr-card-flag {
        width: max-content;
    }
}

@media (max-width: 390px) {
    .item-single-info .xpr-card-flag {
        width: max-content;
    }
}

@media (max-width: 1023px) {
    .item-single-info {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   Meta Information
   ========================================================================== */

.product-meta {
    display: flex;
    font-size: 14px;
    max-width: 100%;
    width: 100%;
}

.item-single-info .product-location {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    margin-bottom: 15px;
}

.item-single-info .product-location .icon {
    flex: 0 0 auto;
    height: 20px;
    margin-right: 5px;
    width: 20px;
}

.item-single-info .product-location a {
    flex: 1 1 auto;
    max-width: 225px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-single-info .product-location a ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline;
}

.item-single-info .product-location a ul li {
    display: inline;
}

@media (max-width: 391px) {
    .item-single-info .product-location a ul li {
        display: block;
        width: 30px;
    }
}

@media (max-width: 320px) {
    .product-meta {
        display: block;
    }
}

.item-single-info .product-rating {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    font-size: 14px;
    margin-right: 15px;
    white-space: nowrap;
}

.product-rating {
    font-weight: 500;
    margin-bottom: 15px;
}

.item-single-info .product-rating .icon {
    height: 20px;
    margin-right: 5px;
    margin-top: -3px;
    width: 20px;
}

.item-single-info .product-rating .rating {
    color: #f5c518;
}

.product-rating .rating {
    margin-right: 5px;
}

.product-rating a {
    color: #26b6ea;
}

@media (max-width: 769px) {
    .item-single-info .product-location a {
        max-width: 550px;
    }
}

@media (max-width: 431px) {
    .item-single-info .product-location a {
        max-width: 196px;
    }
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badges-simple {
    display: flex !important;
    flex-wrap: wrap;
    margin-bottom: 10px !important;
}

.badge-simple {
    background: #ecf0ff;
    border-radius: 4px;
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    margin-bottom: 10px;
    margin-right: 10px;
    padding: 6px 10px;
}

.badge-simple:last-of-type {
    margin-right: 0;
}

@media (max-width: 391px) {
    .badges-simple {
        display: flex !important;
        flex-wrap: nowrap;
        margin-bottom: 10px !important;
    }
}

/* ==========================================================================
   Description
   ========================================================================== */

.item-single-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.item-single-text p {
    margin: 0 0 1rem;
}

/* ==========================================================================
   Product Offers
   ========================================================================== */

.product-offers {
    overflow: hidden;
    width: 100%;
}

.product-offers-title {
    color: #222729;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-offer-variants {
    box-sizing: border-box;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 15px;
    max-width: 100%;
    width: 100%;
}

.product-offer-variant {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    word-wrap: break-word;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.product-offer-variant:hover {
    border-color: #ccc;
}

.product-offer-variant.active {
    border: 1px solid #0f1010;
    box-shadow: 0 0 1px #0f1010;
}

.product-offer-variant .time,
.product-offer-variant .people {
    align-items: center;
    display: flex;
}

.product-offer-variant .people {
    margin-top: 5px;
}

.product-offer-variant .nuxt-icon {
    display: inline-block;
    height: 16px;
    margin-right: 5px;
    width: 16px;
}

.product-offer-variant .nuxt-icon svg {
    height: 100%;
    width: 100%;
}

.product-offer-variant .icon-time,
.product-offer-variant .icon-people {
    color: #e1e1e1;
}

.product-offer-variant.active .icon-time {
    color: #48b54a;
}

.product-offer-variant.active .icon-people {
    color: #fbad19;
}

.product-offer-variant .text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-offer-variant .validity {
    color: #666;
    font-size: 11px;
    margin-top: 4px;
}

.product-offer-variant--hidden {
    display: none;
}

.product-offers-show-all {
    text-align: center;
    margin-top: 10px;
}

.product-offers-show-all__toggle {
    display: inline-block;
    color: #26b6ea;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.product-offers-show-all__toggle:hover {
    color: #e5342d;
}

.product-offer-variant[data-available="0"] {
    opacity: 0.5;
    pointer-events: none;
}

.product-offer-selected {
    align-items: center;
    display: flex;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-offer-selected>div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-offer-selected span {
    font-weight: 400;
}

.product-offer-buy .btn {
    width: 100%;
}

.product-offers .more-text {
    background: #f8f8f8;
    border: 1px solid #0f1010;
    border-radius: 5px;
    font-size: 12px;
    padding: 10px;
}

.more-text {
    position: relative;
    max-height: 100px;
    overflow: hidden;
}

.more-text .more-content {
    line-height: 1.4;
}

.more-content h3 {
    font-size: 14px;
    margin-top: 5px;
}

.more-text.expanded {
    max-height: none;
    overflow: visible;
}

.more-text.expanded .more-text__toggle {
    position: static;
    display: block;
    width: 100%;
    background: none;
    margin-top: 10px;
}

.more-text__toggle {
    position: absolute;
    width: 100%;
    padding: 0 5px;
    background: linear-gradient(180deg, #f5f5f5d1, #fff);
    border: none;
    color: #26b6ea;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    bottom: 0;
    right: 10px;
}

.modal-backcolor__toggle {
    background: linear-gradient(180deg, #fff1, #fff);
}

.more-text__toggle:hover {
    color: #e5342d;
    background-color: transparent;
}

.more-content p {
    margin: 0 0 1rem;
}

/* ==========================================================================
   Review Images
   ========================================================================== */

.product-review-images .title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-review-images .images {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
}

.product-review-images .images a {
    aspect-ratio: 1;
    border-radius: 5px;
    overflow: hidden;
}

.product-review-images .images img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 768px) {
    .product-review-images .images {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   Buy Block
   ========================================================================== */

.product-page-by {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px #4242421f;
    flex: 0 0 auto;
    max-width: 350px;
    min-width: 280px;
    padding: 20px;
    width: 350px;
}

@media (max-width: 1239.8px) {
    .product-page-by {
        max-width: 100% !important;
        width: 100% !important;
    }
}

.product-page-price {
    align-items: center;
    display: flex;
    line-height: 1;
    margin-bottom: 15px;
}

.product-page-price .new-price {
    background: #83cb3b;
    border-radius: 5px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-right: 10px;
    padding: 7px 10px;
}

.product-page-price .old-price {
    color: #999;
    font-size: 14px;
    margin-right: 10px;
    text-decoration: line-through;
}

.product-page-price .discount-set {
    background: #fbad19;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-left: auto;
    padding: 8px 10px;
}

/* ==========================================================================
   Services
   ========================================================================== */

.product-services {
    margin-bottom: 15px;
}

@media (max-width: 1024px) {
    .product-services {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 431px) {
    .product-services {
        display: grid;
        grid-template-columns: 1fr;
    }

    .yandex-split-badge {
        margin-bottom: 0px;
    }
}

.yandex-split-badge {
    background: #f2f2f2;
    border-radius: 5px;
    height: 36px;
    margin-bottom: 15px;
    padding: 4px 18px;
    position: relative;
    width: 100%;
}

.yandex-split-badge .overlay__split {
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 280px;
}

@media (max-width: 1024px) {
    .yandex-split-badge .overlay__split {
        width: 450px;
    }
}

@media (max-width: 431px) {
    .yandex-split-badge {
        margin-bottom: 0px;
    }
    .yandex-split-badge .overlay__split {
        width: 330px;
    }
}

@media (max-width: 380px) {
    .basket__panelBtn--split {
        margin-top: 0px !important;
    }
}

@media (max-width: 320px) {
    .basket__panelBtn--split {
        width: 210px !important;
    }
    .yandex-split-badge .overlay__split {
        width: 210px;
    }
}

.product-cashback {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-delivery {
    align-items: center;
    background: #ecf0ff;
    border-radius: 5px;
    color: #26b6ea;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 10px;
    line-height: 1;
    margin-bottom: 15px;
    padding: 8px 10px;
    text-decoration: none;
}

a.product-delivery {
    cursor: pointer;
}

.product-delivery img,
.product-delivery svg {
    height: 12px;
    width: 12px;
}

.product-delivery svg {
    border: 1px solid #26b6ea;
    border-radius: 50%;
    margin-left: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.product-by-btns,
.product-by-btns-mobile {
    display: flex;
    gap: 10px;
}

.product-by-btns .btn,
.product-by-btns-mobile .btn {
    border-radius: 5px;
    flex: 1 1 0;
    font-size: 14px;
    font-weight: 600;
    min-height: 46px;
    padding: 13px 5px;
    text-align: center;
    text-transform: none;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    font-family: Onest, sans-serif;
    justify-content: center;
    line-height: 1.2 !important;
    text-decoration: none;
    transition: background-color .2s linear, color .2s linear;
}

.btn-primary {
    background: #eb1c24 !important;
    border: 1px solid #eb1c24 !important;
    color: #fff !important;
}

.btn-primary.active,
.btn-primary.hover,
.btn-primary:active,
.btn-primary:hover,
.btn-outline-primary.active,
.btn-outline-primary.hover,
.btn-outline-primary:active,
.btn-outline-primary:hover {
    background: #b9060d !important;
    border: 1px solid #b9060d !important;
    color: #fff !important;
}

.btn-outline-primary {
    background: #fff;
    border: 1px solid #eb1c24 !important;
    color: #eb1c24 !important;
}

/* Buttons mobile */

.product-by-btns-mobile {
    background: #fff;
    bottom: 0;
    box-shadow: 0 0 20px #42424233;
    display: none;
    gap: 10px;
    left: 0;
    padding: 7px 10px;
    position: fixed;
    width: 100%;
    z-index: 98 !important;
}

.product-by-btns .btn,
.product-by-btns-mobile .btn {
    border-radius: 5px;
    flex: 1 1 0;
    font-size: 14px;
    font-weight: 600;
    min-height: 46px;
    padding: 13px 5px;
    text-align: center;
    text-transform: none;
}

@media (max-width:431px) {
    .product-by-btns-mobile.visible {
        display: flex;
    }

    .product-by-btns-mobile {
        bottom: 63px;
    }

    .product-by-btns .btn,
    .product-by-btns-mobile .btn {
        font-size: 16px;
    }
}

/* Плавное поднятие элементов при появлении мобильных кнопок */
@media (max-width: 767.98px) {
    .scroll-top {
        transition: bottom .3s ease-in-out;
    }

    body.mobile-btns-visible .scroll-top,
    body.checkout-mobile-bar-visible .scroll-top {
        bottom: 140px;
    }
}

@media (max-width: 431px) {
    .__jivoMobileButton {
        transition: margin-bottom .3s ease-in-out !important;
    }

    body.mobile-btns-visible .__jivoMobileButton,
    body.checkout-mobile-bar-visible .__jivoMobileButton {
        margin-bottom: 120px !important;
    }
}

.product-alt-btns {
    display: flex;
    gap: 10px;
}

.product-alt-btns .btn {
    align-items: center;
    border-radius: 5px;
    display: flex;
    font-size: 11px;
    gap: 8px;
    padding: 8px !important;
    text-transform: none;
}

.btn-sm {
    min-height: auto;
}

.btn-outline-gray {
    background: #fff !important;
    border: 1px solid #979797 !important;
    color: #979797 !important;
}

.btn-outline-gray.active,
.btn-outline-gray.hover,
.btn-outline-gray:active,
.btn-outline-gray:hover {
    background: #fff !important;
    border: 1px solid #eb1c24 !important;
    color: #eb1c24 !important;
}

@media (max-width: 320px) {
    .product-alt-btns .btn {
        gap: 5px;
        padding: 5px;
        font-size: 10px;
    }
}

/* ==========================================================================
   Modals - Buy
   ========================================================================== */

/* Fix modal buy window overflow */
.box-modal.xpr-card-buy-modal .item-single-info {
    width: 100% !important;
    overflow: hidden !important;
    box-shadow: none;
}

.box-modal.xpr-card-buy-modal .specialb {
    color: #222729;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

@media (min-width: 432px) {
    .box-modal.xpr-card-buy-modal .item-single-options li .iso-flex {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
    }
}

.box-modal.xpr-card-buy-modal .iso-flex>span.iso-info{
    display: block;
}

.xpr-card-buy-modal .iso-flex .iso-info .iso-price {
    font-family: Mulish, sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.xpr-card-buy-modal .iso-flex .iso-price-old>span {
    font-size: 14px;
    margin-top: 5px;
    color: #666;
}

.xpr-card-buy-modal .iso-flex .iso-price-old > span:after {
    top: 43%;
    left: -5%;
    background-color: #666;
}

.box-modal.xpr-card-buy-modal .iso-flex>span.iso-info:nth-of-type(2) {
    display: block;
}

.box-modal.xpr-card-buy-modal .iso-flex .iso-offer.offer-style {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 5px;
}

.box-modal.xpr-card-buy-modal .iso-flex .iso-offer {
    display: flex;
    flex-direction: column;
}

.box-modal.xpr-card-buy-modal .iso-flex .iso-offer .iso-time svg,
.box-modal.xpr-card-buy-modal .iso-flex .iso-offer .iso-mans svg {
    height: 21px;
    width: 21px;
    margin-right: 5px;
}

.box-modal.xpr-card-buy-modal .iso-flex .iso-offer .iso-time svg {
    color: #48b54a;
}

.box-modal.xpr-card-buy-modal .iso-flex .iso-offer .iso-mans svg {
    color: #fbad19;
}

.box-modal.xpr-card-buy-modal .iso-flex .iso-offer .iso-time,
.box-modal.xpr-card-buy-modal .iso-flex .iso-offer .iso-mans {
    display: flex;
    align-items: center;
}

.box-modal.xpr-card-buy-modal .iso-flex .iso-offer .iso-mans {
    margin-top: 5px;
}

@media (max-width: 550px) {
    .box-modal.xpr-card-buy-modal .item-single-options li .iso-flex {
        flex-wrap: wrap !important;
    }

    .box-modal.xpr-card-buy-modal .iso-flex .iso-buy-area {
        width: 100% !important;
        margin-top: 10px !important;
    }

    .box-modal.xpr-card-buy-modal .iso-flex .iso-buy-area .tcs-btn,
    .box-modal.xpr-card-buy-modal .iso-flex .iso-buy-area .item-single-add-btn {
        width: 100% !important;
        display: block !important;
    }
}

/* ==========================================================================
   Delivery Modal
   ========================================================================== */

.box-modal.box-modal-delivery {
    max-width: 980px;
    width: calc(100vw - 40px);
    padding: 30px 40px;
}

.delivery-modal-title {
    font-family: Mulish, sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.delivery-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.delivery-option {
    display: flex;
    flex-direction: column;
}

.delivery-option-block {
    display: flex;
}

.delivery-option-icon {
    flex: 0 0 auto;
    margin-right: 10px;
}

.delivery-option-title {
    font-size: 14px;
    font-weight: 600;
    color: #222729;
    line-height: 1.3;
}

.delivery-option-text {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.delivery-option-text p {
    margin: 0 0 8px;
}

@media (max-width: 1024px) {
    .delivery-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .box-modal.box-modal-delivery {
        padding: 20px;
    }

    .delivery-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .delivery-modal-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   Certificate Gift Modal
   ========================================================================== */

.certificate-gift-modal {
    max-width: 500px;
    padding: 30px;
}

.certificate-gift-modal__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.certificate-gift-modal__offers {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.certificate-gift-modal__offers div {
    margin-bottom: 10px;
}

.certificate-gift-modal__link {
    color: #26b6ea;
    text-decoration: underline;
}

.certificate-gift-modal__link:hover {
    color: #e5342d;
}

.certificate-gift-modal__image {
    text-align: center;
}

.certificate-gift-modal__image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    .certificate-gift-modal {
        padding: 20px;
    }

    .certificate-gift-modal__title {
        font-size: 20px;
    }
}
