.catalog-detail {
    display: flex;
    flex-direction: row;
    position: relative;
}
.catalog-detail img {
    display: inline-block;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
}
.catalog-detail__right-info {
    margin-bottom: 2.89rem;
    order: 1;
    padding-left: 48px;
    width: 400px;
}
.comments-block__temporarily {
    margin-top: 12px;
}
.catalog-detail__main {
    flex-basis: 60%;
    flex-grow: 0;
    flex-shrink: 0;
}
.with-leftblock .catalog-detail__main {
    flex-basis: calc(48% - 19px);
}
.catalog-detail__info-tc {
    margin: -16px 0 31px 0;
}
.catalog-detail__info-tech {
    margin: 13px 0 0 0;
}
body .catalog-detail__main-parts {
    align-items: flex-start;
}
.catalog-detail__main-part--right {
    max-width: 396px;
    width: 100%;
}
@media (min-width: 1200px) {
    .catalog-detail__item,
    .catalog-detail__right-info {
        min-width: 0; /* fix slider in flex */
    }

    /* .with-leftblock .catalog-detail__main-part--left {
      display: none;
    } */
}
@media (max-width: 1199px) {
    body .catalog-detail {
        display: block;
    }
    .catalog-detail__right-info {
        display: none;
    }
    .catalog-detail .catalog-detail__top-info {
        flex-direction: column;
    }
    .catalog-detail .catalog-detail__main {
        flex-basis: auto;
        padding: 35px 0 0 0;
    }
    .detail-gallery-big--with-video + .catalog-detail__main {
        padding: 57px 0 0;
    }
    .catalog-detail__info-tc {
        margin-left: -48px;
        margin-top: 0;
        padding-left: 48px;
    }
}
/*@media (min-width: 768px) {*/
/*  .catalog-detail__main-part .catalog-detail__info-tc {*/
/*    display: none;*/
/*  }*/
/*}*/
@media (max-width: 767px) {
    body .catalog-detail__top-info {
        /* padding-left: 24px;
        padding-right: 24px; */
        padding-top: 24px;
    }
    body .catalog-detail__info-tc {
        margin-bottom: 17px;
        margin-left: -24px;
        margin-right: -24px;
        padding-bottom: 17px;
        padding-left: 24px;
        padding-right: 24px;
    }
    body .catalog-detail__main-part {
        max-width: 100%;
        width: 100%;
    }
    .bx-ie body .catalog-detail__main-part {
        flex-basis: auto;
    }
    body .catalog-detail__main-parts {
        flex-direction: column;
    }
    .catalog-detail .catalog-detail__main {
        padding-top: 44px;
    }
}

/* stickers */
.catalog-detail__sticker-wrapper .sticker {
    position: static;
    margin: 0 -2px;
}
.catalog-detail__sticker-wrapper .sticker__item {
    --sticker-height: 23px;
}
/**/

/* buy block */
.catalog-detail__buy-block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 19px;
}

@media (max-width: 600px) {
    .catalog-detail__buy-block {
        gap: 10px;
    }
}

.catalog-detail__buy-block .counter__count-wrapper {
    max-width: 166px;
}
.catalog-detail__buy-block .btn-wide .counter {
    width: 100%;
}
.catalog-detail__buy-block .btn-lg .counter__action {
    flex-grow: 1;
}

/* countdown */
.catalog-detail__countdown .countdown {
    margin: 7px 0 0 0;
}

/* price */
.catalog-detail__price .price__old {
    margin-top: -1px;
}
.catalog-detail__price .price__economy {
    margin: 0px 0 0 4px;
}

/* cart buttons block */
.catalog-detail__cart .buttons + .info-buttons {
    margin-top: 0;
    margin-left: -6px;
    margin-right: -6px;
}
.catalog-detail__cart .buttons + .info-buttons > .info-buttons__item {
    margin-top: 12px;
    margin-right: 6px;
    margin-left: 6px;
}
.catalog-detail__cart .buttons + .info-buttons > .info-buttons__item--question .btn.btn-default {
    margin-left: 0 !important;
}
@media (max-width: 767px) {
    .catalog-detail__cart .buttons + .info-buttons {
        flex-wrap: wrap;
    }
}

/* garanty */
.catalog-detail__garanty {
    position: relative;
}

/* more link */
.catalog-detail .more-char-link {
    cursor: pointer;
    color: #9e9e9e;
    color: var(--white_text_black);
}
/* preview text */
.line-block + .catalog-detail__previewtext {
    margin: 25px 0 0 0;
}
.catalog-detail__previewtext .text-block {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: calc(1em + 10px);
}
/* hack */
.bx-ios .catalog-detail__previewtext .text-block,
.bx-mac .catalog-detail__previewtext .text-block {
    max-height: calc(2rem * 3);
}
.catalog-detail__previewtext .text-block > p {
    display: inline;
}

/* chars */
@media (min-width: 768px) {
    .catalog-detail .char-side {
        margin: 2px 0 0 0;
    }
}
.detail .catalog-detail .properties {
    margin-top: 13px;
}
.catalog-detail .properties__item {
    margin-top: 6px;
}
.catalog-detail .props_block .char_name .hint {
    display: inline;
    position: relative;
    padding-left: 3px;
}

.catalog-detail .price_txt {
    margin: 13px 0 0 0;
}

/* bottom */
.catalog-detail__bottom-info-part--right {
    width: 400px;
    padding-left: 48px;
    order: 1;
    margin-top: 2.89rem;
    margin-bottom: 2.89rem;
}
.catalog-detail__bottom-info .ordered-block:first-of-type {
    margin-top: 2.89rem;
}
.catalog-detail__bottom-info .ordered-block.tabs-block {
    margin: 3.25rem 0px -0.55rem;
}
.catalog-detail__bottom-info-part--right .sticky-block > *:last-of-type {
    margin-bottom: 0;
}
@media (min-width: 1200px) {
    .catalog-detail__bottom-info-part {
        min-width: 0; /* fix slider in flex */
    }
}
@media (max-width: 1199px) {
    body .catalog-detail__bottom-info-parts {
        display: block;
    }
    .catalog-detail__bottom-info-part--right {
        display: none;
    }
    .detail-gallery-big.detail-gallery-big--horizontal.image-list__link {
        position: static;
    }
}

/* popup video */
.popup_video {
    display: block;
    font-size: 0;
    height: 32px;
    margin: 16px;
    position: relative;
    width: 32px;
    z-index: 1;
}

/* table sizes */
.table-sizes .svg {
    margin-right: 9px;
}

[data-js-block] {
    display: none;
}

@media (max-width: 600px) {
    .catalog-detail__sticker-wrapper .sticker {
        margin-bottom: 6px;
    }
    .catalog-detail__main h1 {
        margin-bottom: 3px;
    }
    .catalog-detail__info-tech {
        margin: 0px;
    }
    .catalog-detail__info-tc > .line-block {
        align-items: center;
    }
    .catalog-detail__main .catalog-detail__info-tc {
        margin: 0px;
        padding: 2px 0px 0px;
    }
    .catalog-detail__main-parts {
        padding-top: 17px;
    }
    .detail .catalog-detail .properties {
        margin-top: 8px;
    }
    .detail .catalog-detail__buy-block.shadow {
        box-shadow: none;
        padding: 0px 0px 17px;
        background: transparent;
    }
    .detail .catalog-detail__cell-block {
        padding: 15px 17px;
    }
    .catalog-detail__price .price__new-val {
        font-size: 1.75rem;
    }
    .catalog-detail__main-part .btn-ocb {
        --button-height: 47px;
        --button-font-size: 1rem;
        --button-pl: 24px;
        --button-pr: 24px;
    }
    .catalog-detail .price_txt {
        margin: -3px 0 0 0;
    }
    .catalog-detail__bottom-info .ordered-block.tabs-block {
        margin: 24px 0px -0.55rem;
    }

}

.catalog-detail__additional-btns {
    display: grid;
    grid-auto-flow: column;
    display: none;
}

.catalog-detail__additional-btns .catalog-detail__pseudo-link:last-child:not(.catalog-detail__pseudo-link-detect-size) {
    justify-self: end;
}
.operate-icons {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.catalog-detail__main-parts .grid-list {

}

.coupon-block {
    margin-bottom: 16px;
    position: relative;
    display: flex;
    height: 122px;
    border-radius: 8px;
    border: 1px solid hsl(36,79%,calc(69% + 6%));
    background: white;
    overflow: hidden;
    cursor: pointer;
    max-width: 313px;
}
.coupon-block__info:first-child {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: black;
}

.coupon-block__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 108px;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
}
.coupon-block__info-text {
    color: white;
}
.coupon-block__info-value {
    font-size: 24px;
    line-height: 48px;
    font-weight: 700;
    color: white;
    letter-spacing: .5px;
}
.coupon-block__discount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 12px;
    width: 100%;
    flex-direction: column;
    max-width: 217px;
}

.coupon-block__discount-desc {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #666;
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .coupon-block {
        height: 100%;
        flex-direction: column;
    }
    .coupon-block__info {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
    }
    .coupon-block__info-text {
        margin: auto 12px;
    }
    .coupon-block-counter {
        width: 108px;
        margin-bottom: 12px;
    }
    .coupon-block__discount-info {
        max-width: 100%;
    }
}

@media (min-width: 600px) {
    .coupon-block__button-wrapper {
        align-self: end;
    }
}

.coupon-block__button-wrapper {
    display: flex;
    justify-content: flex-end;
}

.coupon-block__apply-button--applied {
    border: none;
    background: inherit;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #308f2c;
}

.coupon-block__apply-button {
    border: none;
    background: inherit;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #257ae8;
}

.coupon-block__text {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #666;
}

.coupon-block-counter {
    display: flex;
    position: relative;
}

.coupon-block-counter__element,
.coupon-block-counter__symbol {
    display: flex;
    font-size: 12px;
    font-weight: 600;
    justify-content: center;
    align-items: center;
}

.coupon-block-counter__element {
    color: rgb(255, 255, 255);
    background-color: hsl( 36, 79%, calc(69% + 6%) );
    padding: 4px;
    border-radius: 4px;
    width: 28px;
    min-width: 28px;
    height: 26px;
    margin-right: 4px;
}

.coupon-block-counter__symbol {
    margin: 0 4px 0 0;
    line-height: 16px;
    font-weight: 500;
    color: #666;
}

/* Стили для блока "Забрать сейчас" */
.pickup-block {
    padding: 10px;
    margin-top: 10px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 7px;
}

.pickup-block__header {
    margin-bottom: 20px;
}

.pickup-block__header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.pickup-block__title {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    color: #222;
}

.pickup-block__counter {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 13px;
    color: #666;
}

.pickup-block__subtitle {
    display: block;
    font-size: 14px;
    color: #666;
}

.pickup-block__variant-notice {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.pickup-block__variant-icon {
    margin-right: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.store-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.store-item:hover {
    background-color: #fafafa;
}

.store-item:last-child {
    border-bottom: none;
}

.store-item__info {
    display: flex;
    align-items: flex-start;
    flex: 1;
    padding-right: 0px;
}

.store-item__counter {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    color: #222;
}

.store-item__image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 16px;
    overflow: hidden;
    border-radius: 8px;
}

.store-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-item__details {
    flex: 1;
}

.store-item__name {
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
    font-size: 14px;
    color: #222;
}

.store-item__address {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 13px;
    color: #666;
}

.store-item__contacts {
    line-height: 1.4;
    font-size: 13px;
    color: #666;
}

.store-item__phone,
.store-item__schedule {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.store-item__contact-icon {
    margin-right: 6px;
    opacity: 0.7;
    display: flex;
    align-items: center;
}

.store-item__availability {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 180px;
}

.store-item__stock {
    margin-bottom: 12px;
    text-align: right;
}

.store-item__stock-multiple {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 4px;
    font-size: 13px;
    color: #308f2c;
}

.store-item__stock-icon {
    margin-right: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.store-item__stock-quantity {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-weight: 500;
    font-size: 14px;
}

.color-success {
    color: #308f2c !important;
}

.color-warning {
    color: #f39c12 !important;
}

.store-item__reserved {
    font-weight: normal;
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}

.store-item__total {
    margin-top: 4px;
    opacity: 0.8;
    font-size: 12px;
    color: #666;
}

.store-item__map-btn {
    min-width: 120px;
    padding: 8px 16px;
    font-size: 13px;
    border: 1px solid #257ae8;
    color: #257ae8;
    background: transparent;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 500;
}

.store-item__map-btn:hover {
    background: #257ae8;
    color: white;
}

.pickup-block__actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.pickup-block__show-all-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #222;
    cursor: pointer;
    transition: all 0.2s;
}

.pickup-block__show-all-btn:hover {
    border-color: #257ae8;
    color: #257ae8;
}

.pickup-block__additional-actions {
    text-align: center;
    margin-top: 12px;
}

.catalog-detail__pseudo-link {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.catalog-detail__pseudo-link:hover {
    color: #257ae8;
}

.catalog-detail__pseudo-link .dotted {
    border-bottom: 1px dotted #666;
}

.catalog-detail__pseudo-link:hover .dotted {
    border-bottom-color: #257ae8;
}

/* Стили для модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.simple-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    padding: 0;
    min-width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: baseline;
}

.modal-subtitle {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #222;
}

.modal-body {
    flex: 1;
    padding: 24px;
    overflow: auto;
}

.stores-map-container {
    display: flex;
    gap: 20px;
    height: 400px;
}

.stores-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.stores-filter {
    margin-bottom: 12px;
}

.stores-filter input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.stores-filter input:focus {
    outline: none;
    border-color: #257ae8;
}

.stores-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: white;
}

.store-map-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.store-map-item:hover {
    background-color: #f9f9f9;
}

.store-map-item--active {
    background-color: #e8f4ff;
    border-left: 3px solid #257ae8;
}

.store-map-item__counter {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.store-map-item--active .store-map-item__counter {
    background: #257ae8;
    color: white;
}

.store-map-item__info {
    flex: 1;
}

.store-map-item__name {
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 14px;
    color: #222;
}

.store-map-item__address {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.3;
}

.store-map-item__stock {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
}

.store-map-item__stock--available {
    background: #e8f5e8;
    color: #308f2c;
}

.store-map-item__stock--limited {
    background: #fff3cd;
    color: #856404;
}

.store-map-item__offer-count {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.stores-info {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

/* Кнопка маршрута в балуне */
.btn-route {
    display: inline-block;
    padding: 6px 12px;
    background: #257ae8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 8px;
    transition: background-color 0.2s;
    font-family: inherit;
}

.btn-route:hover {
    background: #1a68d1;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #308f2c;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification--success {
    background: #308f2c;
}

.notification--info {
    background: #257ae8;
}

.notification--warning {
    background: #f39c12;
}

.notification--error {
    background: #e74c3c;
}

.notification__content {
    flex: 1;
    margin-right: 12px;
    font-size: 14px;
}

.notification__close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.notification__close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Стили для балуна на карте */
.ymaps-balloon {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.store-balloon {
    padding: 8px 0;
}

.store-balloon__address {
    margin-bottom: 8px;
    font-size: 14px;
    color: #222;
}

.store-balloon__phone,
.store-balloon__schedule {
    margin-bottom: 4px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
}

.store-balloon__stock {
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

.stock-available {
    background: #e8f5e8;
    color: #308f2c;
}

.stock-limited {
    background: #fff3cd;
    color: #856404;
}

/* Адаптивность */
@media (max-width: 991px) {
    .simple-modal {
        min-width: auto;
        width: 95%;
    }

    .stores-map-container {
        flex-direction: column;
        height: 500px;
    }

    .stores-sidebar {
        width: 100%;
        height: 200px;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .simple-modal {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translate(0, 0) scale(0.9);
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .store-item {
        flex-direction: column;
    }

    .store-item__info {
        padding-right: 0;
        margin-bottom: 12px;
        width: 100%;
    }

    .store-item__availability {
        align-items: flex-start;
        width: 100%;
    }

    .store-item__stock {
        text-align: left;
        margin-bottom: 8px;
        width: 100%;
    }

    .store-item__stock-quantity {
        justify-content: flex-start;
    }

    .store-item__stock-multiple {
        justify-content: flex-start;
    }

    .store-item__map-btn {
        width: 100%;
    }

    .pickup-block {
        padding: 16px;
    }

    .notification {
        min-width: auto;
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Добавьте в конец style.css */
.store-balloon {
    padding: 15px;
    font-family: Arial, sans-serif;
    max-width: 300px;
}

.store-balloon__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.store-balloon__address,
.store-balloon__phone,
.store-balloon__schedule {
    font-size: 14px;
    margin-bottom: 8px;
    color: #666;
    line-height: 1.4;
}

.store-balloon__address strong,
.store-balloon__phone strong,
.store-balloon__schedule strong {
    color: #222;
    font-weight: 500;
}

.store-balloon__stock {
    padding: 8px 12px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.4;
}

.stock-available {
    background: #e8f5e8;
    color: #308f2c;
}

.stock-limited {
    background: #fff3cd;
    color: #856404;
}

.stock-unavailable {
    background: #f8d7da;
    color: #721c24;
}

.store-balloon .btn-route {
    display: block;
    width: 100%;
    padding: 10px;
    background: #257ae8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
}

.store-balloon .btn-route:hover {
    background: #1a68d1;
}

/* Стили для самого балуна Яндекс Карт */
.ymaps-2-1-79-balloon__content {
    padding: 0 !important;
    margin: 0 !important;
}

.ymaps-2-1-79-balloon {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.ymaps-2-1-79-balloon__tail {
    display: none !important;
}


/* Модальное окно карт */
.stores-map-overlay {
    position: fixed ;
    top: 0;
    left: 0 ;
    width: 100% ;
    height: 100% ;
    background: rgba(0, 0, 0, 0.85) ;
    z-index: 9999 ;
    transition: opacity 0.3s ;
}

.stores-map-modal {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 1200px;
    height: 80%;
    max-height: 700px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stores-map-modal.show {
    opacity: 1 ;
    transform: translate(-50%, -50%) scale(1) ;
}

.modal-header {
    padding: 20px 24px ;
    border-bottom: 1px solid #eee ;
    background: white ;
    display: flex ;
    justify-content: space-between ;
    align-items: center ;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    color: #222;
    font-weight: 600;
}

.stores-count {
    font-size: 14px;
    color: #666;
}

.modal-close-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #e5e5e5;
    color: #222;
}

.modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #f8f9fa;
}

.map-container-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
    background: #e9ecef;
}

#storesMap {
    /* position: absolute; */
    top: 0;
    left: 0;
    /* width: 100%; */
    height: 100%;
    background: #e9ecef;
}

.map-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 1;
}

.loader-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.loader-subtext {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.stores-sidebar {
    width: 350px;
    background: white;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.search-container {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: white;
    flex-shrink: 0;
}

.store-search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s;
}

.store-search:focus {
    border-color: #257ae8;
}

.stores-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: white;
}

/* Элементы списка магазинов */
.store-item {
    /* padding: 5px 5px !important; */
    /* border-bottom: 1px solid #f0f0f0 !important; */
    cursor: pointer !important;
    /* background: white !important; */
    /* transition: all 0.2s !important; */
    /* position: relative !important; */
}

.store-item:hover {
    background: #f8f9fa;
}

.store-item.active {
    background: #e8f4ff;
    border-left: 3px solid #257ae8;
}

.store-item-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.store-index {
    width: 28px;
    height: 28px;
    background: #257ae8;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.store-info {
    flex: 1;
}

.store-title {
    font-weight: 600;
    font-size: 14px;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.3;
}

.store-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
}

.store-availability {
    font-size: 12px !important;
    font-weight: 500;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
}

.store-availability.available {
    color: #308f2c;
    background: #e8f5e8;
}

.store-availability.limited {
    color: #f39c12;
    background: #fff3cd;
}

.store-availability.unavailable {
    color: #e74c3c;
    background: #f8d7da;
}

/* Пустые состояния */
.empty-stores, .no-coordinates, .map-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-icon, .no-coords-icon, .error-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.error-title, .no-coords-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.error-text {
    font-size: 14px;
    color: #999;
}

/* Модальное окно маршрута */
.route-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.route-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #222;
    font-weight: 600;
}

.route-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-modal-body {
    padding: 20px;
}

.route-options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.route-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
}

.route-option-app {
    background: #257ae8;
    color: white;
}

.route-option-app:hover {
    background: #1a68d1;
}

.route-option-web {
    background: #f8f9fa;
    color: #222;
    border: 2px solid #257ae8;
}

.route-option-web:hover {
    background: #e9ecef;
}

.route-option-copy {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.route-option-copy:hover {
    background: #f8f9fa;
    border-color: #257ae8;
}

.route-icon {
    font-size: 20px;
}

.route-info {
    font-size: 13px;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

/* Балун на карте */
.store-balloon {
    padding: 15px;
    font-family: Arial, sans-serif;
    max-width: 300px;
}

.store-balloon h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #222;
    font-weight: 600;
}

.balloon-section {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.balloon-section strong {
    color: #666;
}

.stock-available {
    color: #308f2c;
    background: #e8f5e8;
    padding: 8px;
    border-radius: 4px;
}

.stock-limited {
    color: #856404;
    background: #fff3cd;
    padding: 8px;
    border-radius: 4px;
}

.stock-unavailable {
    color: #721c24;
    background: #f8d7da;
    padding: 8px;
    border-radius: 4px;
}

.btn-route {
    display: block;
    width: 100%;
    padding: 10px;
    background: #257ae8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-route:hover {
    background: #1a68d1;
}



/* Для мобильных */
@media (max-width: 1199px) {
    .catalog-detail__main-part--right .pickup-block {
        max-width: 100%;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 600px) {
    .pickup-block {
        padding: 16px ;
        margin-left: -16px;
        margin-right: -16px;
        border-left: none;
        border-right: none;
        border-radius: 0 ;
        max-width: 100vw ;
        width: 100vw ;
    }
}

/* Фикс для модального окна карт - предотвращение перекрытия */
.stores-map-modal {
    z-index: 10002 ; /* Выше чем все остальное */
}

.stores-map-overlay {
    z-index: 10001 ;
}

/* Улучшение балунов Яндекс Карт */
.ymaps-2-1-79-balloon {
    z-index: 10003 ; /* Выше модального окна */
}

.ymaps-2-1-79-balloon__content {
    pointer-events: auto ; /* Разрешаем клики */
}

/* Фикс для кнопок в балуне */
.store-balloon .btn-route {
    pointer-events: auto ;
    z-index: 10004 ;
    position: relative;
}



 .promotion-tooltip {
     display: none;
     position: absolute;
     z-index: 1000;
     width: 320px;
     background: white;
     border: 1px solid #e0e0e0;
     border-radius: 8px;
     box-shadow: 0 8px 24px rgba(0,0,0,0.12);
     padding: 20px;
     top: 35px;
     left: 0;
     animation: fadeIn 0.2s ease-out;
     font-family: Arial, sans-serif;
 }

.promotion-tooltip:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-badge {
    position: relative;
    display: inline-block;
}

.promotion-badge span {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.promotion-badge span:hover {
    background: linear-gradient(135deg, #b8941f, #9a7c18);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}