#center-overview-section-find-shop {
    direction: rtl;
    background-color: #f3f3f3;
    /*font-family: 'Noto Sans Hebrew', sans-serif;*/
    color: #4e4e4e;
    min-height: auto;
}

#center-overview-section-find-shop .center-overview-find-shop__inner {
    padding: 28px 20px 36px;
}

#center-overview-section-find-shop .center-overview-find-shop__title {
    margin: 0 0 22px;
    color: #2b2b2b;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

#center-overview-section-find-shop .center-overview-find-shop__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

#center-overview-section-find-shop .center-overview-find-shop__item {
    width: 100%;
}

#center-overview-section-find-shop .center-overview-find-shop__media {
    width: 100%;
    display: block;
}

#center-overview-section-find-shop .center-overview-find-shop__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 0;
}

#center-overview-section-find-shop .center-overview-find-shop__caption {
    margin: 10px 0 0;
    color: #4e4e4e;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 400px) {
    #center-overview-section-find-shop .center-overview-find-shop__item {
        width: calc(50% - 9px);
    }
}

@media (min-width: 600px) {
    #center-overview-section-find-shop .center-overview-find-shop__item {
        width: calc((100% - 36px) / 3);
    }
}

@media (min-width: 800px) {
    #center-overview-section-find-shop .center-overview-find-shop__item {
        width: calc((100% - 54px) / 4);
    }
}

@media (min-width: 1025px) {
    #center-overview-section-find-shop {
        min-height: 850px;
    }

    #center-overview-section-find-shop .center-overview-find-shop__inner {
        padding: 20px;
        position: sticky;
        top: var(--desktop-header-height);
    }

    #center-overview-section-find-shop .center-overview-find-shop__title {
        margin-bottom: 28px;
        font-size: 44px;
        line-height: 1.1;
    }

    #center-overview-section-find-shop .center-overview-find-shop__grid {
        gap: 50px;
    }

    #center-overview-section-find-shop .center-overview-find-shop__item {
          width: 210px;
        flex: 0 0 210px;
    }
}

/* ============================================================
   Items: interactive states
   ============================================================ */

#center-overview-section-find-shop .center-overview-find-shop__item {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#center-overview-section-find-shop .center-overview-find-shop__item:hover {
    opacity: 0.82;
}

#center-overview-section-find-shop .center-overview-find-shop__item:focus-visible {
    outline: 2px solid #3a7bd5;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   Spinner (shared: mobile lightbox + desktop panel)
   ============================================================ */

@keyframes find-shop-spin {
    to { transform: rotate(360deg); }
}

.center-overview-find-shop__lightbox[hidden],
.center-overview-find-shop__detail-panel[hidden],
.center-overview-find-shop__lightbox-spinner[hidden],
.center-overview-find-shop__detail-spinner[hidden] {
    display: none !important;
}

.center-overview-find-shop__lightbox-spinner,
.center-overview-find-shop__detail-spinner {
    display: block;
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: find-shop-spin 0.75s linear infinite;
    margin: 48px auto;
}

/* ============================================================
   Shop detail content (shared: mobile popup + desktop panel)
   ============================================================ */

.find-shop-detail__logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    padding-top: 8px;
}

.find-shop-detail__logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
}

.find-shop-detail__title {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    /*font-family: 'Noto Sans Hebrew', sans-serif;*/
}

.find-shop-detail__row {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.find-shop-detail__label {
    display: block;
    color: #9e9e9e;
    font-size: 13px;
    font-weight: 500;
    /*font-family: 'Noto Sans Hebrew', sans-serif;*/
    margin-bottom: 4px;
}

.find-shop-detail__value {
    display: block;
    color: #f3f3f3;
    font-size: 15px;
    font-weight: 400;
    /*font-family: 'Noto Sans Hebrew', sans-serif;*/
    line-height: 1.55;
}

.find-shop-detail__link {
    color: #7eb5ff;
    text-decoration: none;
}

.find-shop-detail__link:hover,
.find-shop-detail__link:focus {
    text-decoration: underline;
}

.find-shop-detail__gallery-label {
    display: block;
    color: #9e9e9e;
    font-size: 13px;
    font-weight: 500;
    /*font-family: 'Noto Sans Hebrew', sans-serif;*/
    margin-bottom: 10px;
}

.find-shop-detail__gallery {
    width: 100%;
    overflow: hidden;
    margin-top: 4px;
    padding-bottom: 18px; /* room for scrollbar */
}

.find-shop-detail__gallery .swiper-wrapper {
    align-items: flex-start;
}

.find-shop-detail__gallery-slide {
    width: 160px !important;
    flex-shrink: 0;
}

/* Draggable scrollbar track */
.find-shop-detail__gallery-scrollbar {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin-top: 10px;
    cursor: pointer;
}

/* Draggable drag handle */
.find-shop-detail__gallery-scrollbar .swiper-scrollbar-drag {
    height: 100%;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.75);
    cursor: grab;
}

.find-shop-detail__gallery-scrollbar .swiper-scrollbar-drag:active {
    cursor: grabbing;
}

.find-shop-detail__gallery-img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.find-shop-detail__error {
    margin: 0;
    color: #f3f3f3;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

/* ============================================================
   Mobile: bottom-sheet lightbox (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .center-overview-find-shop__lightbox {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: flex-end;
        direction: rtl;
        /*font-family: 'Noto Sans Hebrew', sans-serif;*/
    }

    .center-overview-find-shop__lightbox-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        transition: opacity 0.3s ease;
        cursor: pointer;
    }

    .center-overview-find-shop__lightbox.is-open .center-overview-find-shop__lightbox-backdrop {
        opacity: 1;
    }

    .center-overview-find-shop__lightbox-panel {
        position: relative;
        z-index: 1;
        width: 100%;
        max-height: 90dvh;
        overflow-y: auto;
        background: #272727;
        
        padding: 52px 20px 40px;
        box-sizing: border-box;
        transform: translateY(100%);
        transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
        color: #f3f3f3;
    }

    .center-overview-find-shop__lightbox.is-open .center-overview-find-shop__lightbox-panel {
        transform: translateY(0);
    }

    .center-overview-find-shop__lightbox-close {
        position: absolute;
        top: 14px;
        left: 14px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        font-size: 22px;
        border-radius: 50%;
        cursor: pointer;
        line-height: 1;
    }

    .center-overview-find-shop__lightbox-close:hover {
        background: rgba(255, 255, 255, 0.22);
    }
}

body.find-shop-lightbox-open {
    overflow: hidden;
}

/* ============================================================
   Desktop: inline detail panel (min-width: 1025px)
   ============================================================ */

@media (min-width: 1025px) {

    /* Section becomes a flex row (RTL: first child = visual right) */
    #center-overview-section-find-shop {
        display: flex;
        align-items: flex-start;
    }

    /* .inner fills remaining space */
    #center-overview-section-find-shop .center-overview-find-shop__inner {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Detail panel: starts at zero width, slides in from the right.
       overflow-x: clip hides content during slide but does NOT block sticky. */
    .center-overview-find-shop__detail-panel {
        order: -1; /* first visually = right side in RTL flex */
        flex: 0 0 0;
        width: 0;
        overflow-x: clip;
        overflow-y: visible;
        transition: flex-basis 0.38s ease, width 0.38s ease;
        background-color: #272727;
        background-image: url('../img/doted-bg.jpg');
        background-position: bottom center;
        background-size: contain;
        background-repeat: repeat-x;
        align-self: stretch;
    }

    #center-overview-section-find-shop.is-detail-open .center-overview-find-shop__detail-panel {
        flex: 0 0 340px;
        width: 340px;
    }

    /* Fixed-width inner keeps content stable during slide */
    .center-overview-find-shop__detail-inner {
        width: 340px;
        position: sticky;
        top: var(--desktop-header-height);
        align-self: flex-start;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        padding: 28px 20px 40px;
        box-sizing: border-box;
        direction: rtl;
    }

    /* Close (×) button */
    .center-overview-find-shop__detail-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: transparent;
        color: #ffffff;
        font-size: 22px;
        border-radius: 50%;
        cursor: pointer;
        margin-bottom: 22px;
        margin-right: auto;
    }

    .center-overview-find-shop__detail-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Items: smooth width transition */
    #center-overview-section-find-shop .center-overview-find-shop__item {
        transition: width 0.38s ease, flex-basis 0.38s ease;
    }

    /* Shrink items to 70% of their original desktop width when panel is open */
    #center-overview-section-find-shop.is-detail-open .center-overview-find-shop__item {
        width: 210px;
        flex: 0 0 210px;
    }

    #center-overview-section-find-shop.is-detail-open .center-overview-find-shop__grid {
        gap: 18px;
        transition: gap 0.38s ease;
    }

    /* Lightbox not used on desktop */
    .center-overview-find-shop__lightbox {
        display: none;
    }
}
