#shops-exploration.theme-loading {
    opacity: 0;
    visibility: hidden;
}

#shops-exploration {
    /* --primary-color: red; */
    /* --secondary-color: blue; */
    /* --text-color: green; */

    --linked-color: #0b8043;
    --tracked-color: #1a73e8;
    --guestpay-color: #f68d2d;

    --page-max: 1216px;
    --page-padding: 24px;
    position: relative;
    overflow: hidden;
}

@font-face {
    font-family: 'EtihadAltis-Text';
    src: url('../assets/fonts/EtihadAltis-Text.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--font-family);
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.lg-cb-shops-exploration {
    font-family: var(--font-family);
    color: #111827;
    background: #f9fafb;
    padding: 24px 24px 40px 24px;

    @media (max-width: 768px) {
        padding: 18px 16px 32px 16px;
    }
}

.lg-cb-shops-exploration.no-load-more {
    padding-bottom: 48px;

    @media (max-width: 768px) {
        padding-bottom: 24px;
    }
}
.hidden {
    display: none !important;
}
/* 
.offers-button {
	background-color: #fde8d5 !important;
	color: #4e4c4a !important;
}

.offers-button.active {
	background-color: #ffc72d !important;
	border-color: #ffc72d !important;
} */

.filters-quick {
    display: flex;
    gap: 12px;
    margin-bottom: 24px !important;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 #fff;

    @media (max-width: 768px) {
        gap: 8px;
        margin-bottom: 16px !important;
    }
}

.filters-quick::-webkit-scrollbar {
    height: 8px;
    background: #fff;
}

.filters-quick::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .filters-quick {
        padding-bottom: 0;
        scrollbar-width: none;
    }

    .filters-quick::-webkit-scrollbar {
        display: none;
    }
}
.chip {
    padding: 7px 16px;
    border: 1px solid rgba(220, 219, 219, 0.8);
    border-radius: 48px;
    background: #fff;
    cursor: pointer;
    color: #111827;
    font-size: 16px;
    font-family: var(--font-family);
    text-transform: capitalize;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;

    @media (max-width: 768px) {
        padding: 5px 10px;
        font-size: 12px;
    }
}
.chip-lg {
    font-weight: 400;
    @media (max-width: 768px) {
        font-weight: 400;
    }
}

.chip.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
/* .dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #dcdbdb;
	margin-right: 8px;
	vertical-align: middle;
} */

/* Component Loader */
.full-screen-loader {
    position: absolute; /* Absolutan u odnosu na #shops-exploration */
    top: 50%; /* Početna pozicija - biće ažurirana JS-om */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 120px;
    max-width: calc(100% - 40px); /* Ograniči na širinu kontejnera */
    max-height: calc(100% - 40px); /* Ograniči na visinu kontejnera */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Osigurava da ostane u kontejneru */
    min-width: 160px;
    min-height: 100px;
}

.full-screen-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color-site);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color-site);
    text-align: center;
    margin: 0;
    font-family: var(--font-family);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .full-screen-loader {
        width: 160px;
        height: 100px;
        max-width: calc(100% - 20px); /* Manje margine na mobilnom */
        max-height: calc(100% - 20px); /* Kontejner visina */
        gap: 12px;
        min-width: 140px; /* Manji minimum na mobilnom */
        min-height: 80px;
    }

    .loader-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .loader-text {
        font-size: 16px;
    }
}

.filters-browse {
    display: flex;
    gap: 36px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;

    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
    padding-bottom: 24px;

    @media (max-width: 768px) {
        gap: 16px;
        padding-bottom: 16px;
    }
}

.filters-browse:active {
    cursor: grabbing;
}

/* Sakrij scrollbar na svim uređajima */
.filters-browse {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filters-browse::-webkit-scrollbar {
    display: none;
}

.filters-browse > * {
    flex: 0 0 auto;
    min-width: max-content;
}

/*
.filters-browse::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    width: 48px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right, transparent, #fff);
}
*/
.browse-item {
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    white-space: normal;
}
.browse-thumb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: #f6f6f5;

    @media (max-width: 768px) {
        width: 64px;
        height: 64px;
    }
}
.browse-item.active .browse-thumb {
    border-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 96px;
    height: 96px;

    @media (max-width: 768px) {
        width: 60px;
        height: 60px;
    }
}
.browse-item.active .browse-name {
    font-weight: 400;
    color: var(--primary-color);
}

.browse-name {
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    max-width: 84px;
    font-family: var(--font-family);

    @media (max-width: 768px) {
        font-size: 12px;
        line-height: 16px;
    }
}
.segments-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    justify-content: space-between;
    padding-bottom: 36px;

    @media (max-width: 768px) {
        padding-bottom: 16px;
    }
}

.segments-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;

    @media (max-width: 768px) {
        gap: 8px;
    }

    &::-webkit-scrollbar {
        height: 4px;
    }
    &::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    &::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }

    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar {
        display: none;
    }
}
.segmented {
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border-radius: 9999px;
    padding: 3px 2px;
    max-height: 40px;

    @media (max-width: 768px) {
        padding: 2px;
        max-height: 32px;
    }
}
.segmented.with-info {
    padding-right: 20px;
}
.seg-item {
    border: 0;

    background: transparent;
    padding: 4px 12px;
    font-size: 16px;
    font-family: var(--font-family);
    letter-spacing: 0.2px;
    color: #111827;
    cursor: pointer;
    border-radius: 9999px;
    font-weight: 400;
    position: relative;
    white-space: nowrap;

    @media (max-width: 768px) {
        font-size: 12px;
    }
}

.seg-item-separator {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
    border-radius: 1px;
}

.seg-item-separator-last {
    width: 1px;
    height: 40px;
    overflow: hidden;
    background: #d9d9d9;
    border-radius: 1px;
    margin: 0 8px;

    @media (max-width: 768px) {
        margin: 0 4px;
        height: 25px;
    }
}

.seg-item.active {
    background: #263a46;
    color: #fff;
}
.seg-info {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #2e6f91;
    color: #2e6f91;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    @media (max-width: 768px) {
        width: 20px;
        height: 20px;
    }
}
.filter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;

    @media (max-width: 768px) {
        width: 100%;
    }
}
.sort-select {
    padding: 8px 12px;
    border: 1px solid #dcdbdb;
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-family);
}
.merchants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 16px; /* povecan gap po visini (prvi je row-gap, drugi col-gap) */
    margin-top: 24px !important;

    &.list-view {
        grid-template-columns: repeat(1, 1fr);
        gap: 48px;

        @media (max-width: 992px) {
            gap: 24px;
        }
    }

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

    @media (max-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 15px;
        margin-top: 20px !important;
    }
}

.merchants-grid.wrapper {
    max-width: 1216px;
}

.filters-quick.wrapper {
    max-width: 1216px;
}

.filters-browse.wrapper {
    max-width: 1216px;
}

.segments-bar.wrapper {
    max-width: 1216px;
}

.m-card {
    position: relative;
    box-shadow: 0px 0px 4px 0px #21212140;
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-width: 0;

    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;

    @media (max-width: 768px) {
        border-radius: 12px;
    }
}

.m-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    border-radius: 16px 16px 0 0;
    top: -24px;
    left: 15px;
    height: 24px;
    z-index: 100;

    & > * {
        font-size: 12px;
        font-weight: 500;
        font-family: var(--font-family);
    }

    @media (max-width: 768px) {
        top: -22px;
        left: 10px;
        border-radius: 12px 12px 0 0;
    }
}

.etihad-guestpay-logo img {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.m-card-inner-left-top {
    background: #f05d38;
    border-radius: 4px 0 0 0;
    white-space: nowrap;
    padding: 3px 10px;
    color: #fff;
    font-weight: 400;
    font-family: var(--font-family);

    @media (max-width: 768px) {
        font-size: 10px;
    }
}
.m-card-inner-left-top.expiring-not-soon {
    border-radius: 4px 4px 0 0;
    font-weight: 400;

    @media (max-width: 768px) {
        border-radius: 4px 4px 0 0;
    }
}

.offer-countdown {
    font-weight: 500;
    font-family: var(--font-family);
}

.m-card-inner-left-bottom {
    white-space: nowrap;
    border-radius: 0 4px 0 0;
    padding: 3px 10px;
    background-color: #e8eff2;
    color: #000;
    font-weight: 350;
    font-family: var(--font-family);

    @media (max-width: 768px) {
        padding: 3px 1px;
        font-size: 10px;
        border-radius: 0 4px 0 0;
    }
}

.m-cover {
    height: 205px;
    background: #f6f6f5;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
    position: relative;
    overflow: visible;

    @media (max-width: 768px) {
        height: 130px;
        border-radius: 12px 12px 0 0;
    }
}

.m-cover::after {
    content: '';
    position: absolute;
    border-radius: inherit;
    pointer-events: none;
    left: 0;
    right: 0;
    bottom: 0;

    height: 55%;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 30%,
        transparent 100%
    );
    z-index: 1;
}

.m-cover-holder {
    position: relative;
    bottom: 64px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 12px);
    z-index: 3;
}

.m-cover-logo {
    position: static;
    width: 52px;
    height: 52px;
    object-fit: cover;
    display: block;
    background-color: #fff;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #dcdbdb;
    flex-shrink: 0;

    @media (max-width: 768px) {
        width: 48px;
        height: 48px;
        border-radius: 6px;
    }
}
.m-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;

    @media (max-width: 768px) {
        border-radius: 12px 12px 0 0;
    }
}
.m-cover-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    display: block;
    border-radius: 0 !important;
}
.m-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
}
.badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #dcdbdb;
    font-family: var(--font-family);
}
.badge.new {
    background: #497188;
    border-color: #497188;
    color: #fff;
    font-weight: 400;
}
.m-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: space-between;
    height: 100%;
    padding-top: 0;
}
.m-body-inner {
    padding: 12px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 12px;

    @media (max-width: 768px) {
        padding: 8px 12px 12px 12px;
        gap: 8px;
    }
}

.m-name {
    position: static;
    font-size: 18px;
    line-height: 24px;
    font-weight: 350;
    color: #fff;
    font-family: var(--font-family);

    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;

    @media (max-width: 768px) {
        display: block;
        font-size: 16px;
        line-height: 20px;
    }
    z-index: 4;
}

.m-name-mobile {
    display: none;
    @media (max-width: 768px) {
        font-size: 12px;
        padding-bottom: 5px;
        font-weight: 400;
        color: #000;
        line-height: 16px;
        display: block;
        padding-left: 12px;
        padding-top: 8px;
        padding-bottom: 2px;
        font-family: var(--font-family);
    }
}

.m-desc {
    font-size: 12px;
    color: #6b6866;
    min-height: 30px;
    font-family: var(--font-family);
}
.m-metric {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}
.m-metric-inner {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 36px;

    @media (max-width: 768px) {
        margin-top: 0;
    }
}

.m-metric-inner-num {
    font-size: 42px;
    font-weight: 400;
    line-height: 36px;
    color: #212121;
    font-family: var(--font-family);

    @media (max-width: 768px) {
        font-size: 32px;
        line-height: 32px;
    }
}

.m-metric-inner-text {
    font-size: 31px;
    line-height: 41px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-height: 32px;
    height: 36px;
    font-family: var(--font-family);

    @media (max-width: 768px) {
        font-size: 20px;
        line-height: 26px;
    }
}

.m-metric-inner-unit {
    display: flex;
    flex-direction: column;
}

.m-metric-inner-unit-unit {
    font-size: 14px;
    line-height: 18px;
    color: #374151;
    font-family: var(--font-family);
    font-weight: 400;

    @media (max-width: 768px) {
        font-size: 12px;
        line-height: 16px;
    }
}

.m-metric-inner-unit-num {
    font-size: 14px;
    line-height: 18px;
    text-decoration: line-through;
    opacity: 0.5;
    color: #9ca3af;
    font-family: var(--font-family);
    font-weight: 350;

    @media (max-width: 768px) {
        font-size: 12px;
        line-height: 16px;
    }
}

.m-metric .num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-family);
}
.m-metric .unit {
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: var(--font-family);
}
.m-pillbar {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
    width: fit-content;
}
.m-pillbar-mobile {
    @media (max-width: 992px) {
        flex-direction: row;
        align-items: center;
        gap: 0;
        flex-wrap: nowrap;
    }
}

.bottom-pill-mobile {
    @media (max-width: 992px) {
        border-radius: 30px !important;
        img {
            width: 15px !important;
            height: 15px !important;
        }
    }
}

.pill-mobile {
    @media (max-width: 992px) {
        gap: 0;
        padding: 0 !important;
    }

    @media (min-width: 993px) {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

.m-pillbar-mobile-conv {
    @media (max-width: 992px) {
        border-radius: 30px !important;
    }
}

.pill-mobile-text {
    font-weight: 350;
    @media (max-width: 992px) {
        display: none;
    }
}
.pill {
    font-size: 14px;
    line-height: 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #374151;
    font-family: var(--font-family);
    font-weight: 350;
    width: 122px;

    @media (max-width: 768px) {
        padding: 0;
        font-size: 12px;
        width: 70px;
    }
}

.bottom-pill {
    font-size: 14px;
    border-radius: 0 0 16px 16px;
    display: flex;
    padding: 0px 16px;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
    height: 36px;
    font-family: var(--font-family);
    font-weight: 400;

    @media (max-width: 768px) {
        padding: 0px 12px;
        font-size: 12px;
        border-radius: 0 0 12px 12px;
        height: 22px;
    }
}

.bottom-pill.etihad-guestpay {
    background: var(--guestpay-color);
    white-space: nowrap;
    color: var(--paymentMethod-text);
}
.bottom-pill.linked {
    background: var(--linked-color);
    white-space: nowrap;
    color: var(--linked-text);
}
.bottom-pill.tracked {
    background: var(--tracked-color);
    white-space: nowrap;
    color: var(--tracked-text);
}

.m-card:hover {
    border-color: #e6e1da;
    transform: translateY(-2px);
}

/* icons */

.all-shops-filter,
.new-shops-filter,
.categories-filter,
.inspirations-filter {
    display: flex;
    align-items: center;
}

[class$='-filter']::before,
[class$='-icon']::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;

    @media (max-width: 768px) {
        width: 16px;
        height: 16px;
    }
}

[class$='-filter']::before {
    background-color: currentColor;
}

.all-shops-filter::before {
    mask-image: url('../assets/icons/shops.svg');
    -webkit-mask-image: url('../assets/icons/shops.svg');
}

.new-shops-filter::before {
    mask-image: url('../assets/icons/new.svg');
    -webkit-mask-image: url('../assets/icons/new.svg');
    width: 20px;
    height: 20px;
}

.offers-filter::before {
    display: none;
}

.offers-filter .offer-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    vertical-align: middle;

    @media (max-width: 768px) {
        width: 16px;
        height: 16px;
    }
}

.sort-icon {
    display: flex;
}

.sort-icon::before {
    mask-image: url('../assets/icons/switch-arrow.svg');
    -webkit-mask-image: url('../assets/icons/switch-arrow.svg');
    background-color: currentColor;
    width: 18px;
    height: 18px;
}

.categories-filter::before {
    mask-image: url('../assets/icons/category.svg');
    -webkit-mask-image: url('../assets/icons/category.svg');
}

.inspirations-filter::before {
    mask-image: url('../assets/icons/lightbulb.svg');
    -webkit-mask-image: url('../assets/icons/lightbulb.svg');
    width: 20px;
    height: 20px;
}

.etihad-guestpay-icon::before {
    background-image: url('../assets/icons/eyg_pay.svg');
}

.linked-icon::before {
    background-image: url('../assets/icons/linked.svg');
}

.tracked-icon::before {
    background-image: url('../assets/icons/tracked.svg');
}

.online-icon::before {
    background-image: url('../assets/icons/online.svg');
}

.instore-icon::before {
    background-image: url('../assets/icons/store.svg');
}

.earn-icon::before {
    background-image: url('../assets/icons/hand_up.svg');
}

.redeem-icon::before {
    background-image: url('../assets/icons/hand_down.svg');
}

.etihad-guestpay-icon,
.linked-icon,
.tracked-icon,
.online-icon,
.instore-icon,
.earn-icon,
.redeem-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .earn-icon.pill-mobile-icon {
        background-color: #d8e7d6;
    }
    .redeem-icon.pill-mobile-icon {
        background-color: #fde8d5;
    }
    .online-icon.pill-mobile-icon {
        background-color: #ede0db;
    }
    .instore-icon.pill-mobile-icon {
        background-color: #e3e6eb;
    }
}

.pill-mobile-icon {
    @media (max-width: 992px) {
        width: 36px;
        height: 22px;
        border-radius: 30px;
    }
}

.custom-sort-dropdown {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family);
    border: 1px solid #dcdbdb;
    border-radius: 9999px;
    padding: 7px 14px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 180px;
    z-index: 101;

    @media (max-width: 768px) {
        width: 100%;
        padding: 5px 14px;
        font-size: 12px;
        line-height: 16px;
    }
}

#sort-selected {
    font-weight: 400;
}

.custom-sort-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
    font-weight: 350;

    @media (max-width: 768px) {
        justify-content: flex-start;
    }
}

.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
}

.dropdown-arrow-icon-header {
    mask-image: url('../assets/icons/chevron-down.svg') !important;
    -webkit-mask-image: url('../assets/icons/chevron-down.svg') !important;
    background-color: #212121;
    width: 24px;
    height: 24px;
    display: inline-block;

    @media (max-width: 768px) {
        margin-left: auto;
    }
}

.custom-sort-dropdown.open .dropdown-arrow-icon-header {
    transform: rotate(180deg);
}

.custom-sort-options {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    width: 100%;
    border: 1px solid #dcdbdb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 0px 4px 0px #21212140;
    z-index: 10;
}

.sort-option {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: var(--font-family);
}

.sort-option:hover {
    background: #f1f1f1;
}

.sort-option.active {
    background: var(--primary-color);
    color: #fff;
}

.custom-sort-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Tooltip styles */
.seg-info-tooltip {
    position: fixed;
    z-index: 1000;
    min-width: 280px;
    max-width: 400px;
}

.tooltip-content {
    background: #fff;
    border: 1px solid #dcdbdb;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    max-height: 60vh;
    overflow: auto;
}

.tooltip-content h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-family);
}

.tooltip-content p {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b6866;
    white-space: pre-wrap;
    font-family: var(--font-family);
}

.tooltip-content p:last-child {
    margin-bottom: 0;
}

.tooltip-content strong {
    color: #4e4c4a;
    font-weight: 600;
}

.tooltip-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    left: var(--arrow-left, 50%);
}

.seg-info-tooltip.placement-bottom .tooltip-arrow {
    top: -6px;
    border-left: 1px solid #dcdbdb;
    border-top: 1px solid #dcdbdb;
}

.seg-info-tooltip.placement-top .tooltip-arrow {
    bottom: -6px;
    border-right: 1px solid #dcdbdb;
    border-bottom: 1px solid #dcdbdb;
}

.segmented.with-info {
    position: relative;
}

@media (max-width: 768px) {
    .seg-info-tooltip {
        min-width: 260px;
        max-width: 280px;
    }

    .tooltip-content {
        padding: 12px;
    }

    .tooltip-content h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .tooltip-content p {
        font-size: 12px;
        margin-bottom: 6px;
    }
}

.list-view {
    .m-card {
        flex-direction: row;
        padding: 15px;
    }

    .m-cover {
        border: 1px solid #dcdbdb;
        border-radius: 8px;
        overflow: hidden;
    }

    .m-cover-logo {
        right: 10px;
        top: 10px;
        left: auto;
    }

    .bottom-pill {
        border-radius: 16px;
        height: 26px;
        padding: 0px 12px;

        @media (max-width: 1200px) {
            max-height: 22px;
        }
    }

    .pill {
        width: auto;
    }

    .m-pillbar-inner {
        @media (max-width: 1200px) {
            flex-wrap: wrap;
        }

        @media (max-width: 768px) {
            flex-wrap: nowrap;
        }
    }

    .pill-mobile-pull {
        gap: 16px;

        @media (max-width: 992px) {
            gap: 0;
        }
    }
}

/* offer banner */

.ob-banner {
    --card-bg: #fff;
    --text: var(#111);
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --primary: var(--primary-color, #0ea5e9);
    --guestpay: var(--guestpay-color, #efe6cf);

    background: var(--card-bg);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text);
    position: relative;
    cursor: pointer;

    @media (max-width: 992px) {
        padding: 12px;
        border-radius: 12px;
    }
}

/* Top row */
.ob-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ob-label-offer {
    background: #ef4444;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: var(--font-family);
}

.ob-ends {
    background: #f3f4f6;
    color: #111827;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: var(--font-family);
}
.ob-ends .ob-ends-countdown {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-family: var(--font-family);
}

/* Main body grid */
.ob-body {
    display: grid;
    grid-template-columns: 250px 1fr 222px;
    gap: 24px;
    align-items: stretch;

    @media (max-width: 992px) {
        gap: 0;
    }
}

/* Left: media */
.ob-media {
    border-radius: 16px;
    overflow: hidden;
    background: #fafafa;
    max-height: 168px;

    @media (max-width: 1200px) {
        max-height: 200px;
    }

    @media (max-width: 992px) {
        display: none;
    }
}
.ob-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Middle: content */
.ob-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 6px 24px 6px 0;
    border-right: 1px solid #dcdbdb;

    @media (max-width: 992px) {
        border-right: none;
        padding: 0;
    }
}
.ob-title {
    margin: 0;
    font-size: clamp(18px, 2.4vw, 26px);
    line-height: 1.25;
    font-weight: 250;
    color: #212121;
    font-family: var(--font-family);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;

    @media (max-width: 992px) {
        display: none;
    }
}
.ob-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

    @media (max-width: 992px) {
        display: none;
    }
}
.ob-metric-val {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 400;
    color: #212121;
    font-family: var(--font-family);

    @media (max-width: 992px) {
        font-size: 32px;
    }
}
.ob-metric-text {
    font-size: clamp(30px, 5vw, 30px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    color: #212121;
    font-family: var(--font-family);
    font-weight: 400;

    @media (max-width: 992px) {
        font-size: 14px;
    }
}
.ob-metric-unit {
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #212121;
    font-weight: 400;
    font-family: var(--font-family);

    @media (max-width: 992px) {
        font-size: 12px;
        font-weight: 400;
    }
}
.ob-metric-old {
    font-size: 14px;
    color: #959492;
    font-family: var(--font-family);
    font-weight: 350;

    @media (max-width: 992px) {
        font-size: 12px;
    }
}

.ob-merchant {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ob-merchant-desc {
    display: none;

    @media (max-width: 992px) {
        display: block;
        font-size: 14px;
        font-family: var(--font-family);
    }
}

.ob-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    display: grid;
    place-items: center;

    @media (max-width: 992px) {
        border-radius: 6px;
    }
}
.ob-logo-wrap img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
}

.ob-merchant-mini {
    @media (max-width: 992px) {
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px dashed #dcdbdb;
        padding-bottom: 16px;
    }
}

.ob-merchant-name {
    font-weight: 350;
    font-size: 18px;
    line-height: 24px;
    color: #212121;
    padding-top: 16px;
    font-family: var(--font-family);

    @media (max-width: 992px) {
        display: none;
    }
}

.ob-merchant-mobile-container {
    @media (max-width: 992px) {
        padding-top: 12px;
        display: flex;
        justify-content: space-between;
        gap: 8px;
        align-items: center;
    }
}

.ob-metric-mobile {
    @media (min-width: 993px) {
        display: none;
    }
    @media (max-width: 992px) {
        display: flex;
        align-items: center;
        gap: 4px;
    }
}

.ob-pillbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.ob-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #212121;
    font-family: var(--font-family);
}
.ob-icon-online,
.ob-icon-instore,
.ob-icon-earn,
.ob-icon-redeem {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #e5e7eb; /* placeholder; zameni sprite-om/ikonama */
    display: inline-block;
}

.ob-conversion {
    display: flex;
    justify-content: flex-start;
}
.ob-conv-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111827;
    font-family: var(--font-family);
}
.ob-conv-pill.is-guestpay {
    background: var(--guestpay);
}
.ob-conv-pill.is-linked {
    background: rgba(37, 99, 235, 0.08);
    color: #1e3a8a;
}
.ob-conv-pill.is-tracked {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.ob-conv-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: currentColor; /* placeholder */
    display: inline-block;
}

@media (max-width: 1200px) {
    .ob-body {
        grid-template-columns: 250px 1fr 222px;
    }
}
@media (max-width: 992px) {
    .ob-body {
        grid-template-columns: 1fr;
    }
    .ob-media img {
        max-height: 220px;
    }
    .ob-conversion {
        justify-content: flex-start;
    }
}

.m-cover-inner {
    display: none;
    position: absolute;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
}

/* No Results Info Box */
.no-results-box {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 400px;
    margin-top: -24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    @media (max-width: 768px) {
        height: 222px;
    }
}

.no-results-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.03) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.no-results-box-icon {
    width: 47px;
    height: 47px;
    margin: 0 auto 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.no-results-box-icon::before {
    content: '';
    width: 47px;
    height: 47px;
    background-color: #111827;
    -webkit-mask-image: url('../assets/icons/error.svg');
    mask-image: url('../assets/icons/error.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: 0.9;
}

.no-results-box-title {
    font-size: 31px;
    font-weight: 250;
    line-height: 41px;
    color: #111827;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
    font-family: var(--font-family);
}

.no-results-box-message {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    font-family: var(--font-family);
}

@media (max-width: 768px) {
    .no-results-box {
        padding: 48px 24px;
        border-radius: 20px;
        margin-top: -16px;
        margin-bottom: 8px;
    }

    .no-results-box-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 24px;
    }

    .no-results-box-icon::before {
        width: 36px;
        height: 36px;
    }

    .no-results-box-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .no-results-box-message {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .no-results-box {
        padding: 40px 20px;
    }

    .no-results-box-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 20px;
    }

    .no-results-box-icon::before {
        width: 36px;
        height: 36px;
    }

    .no-results-box-title {
        font-size: 22px;
    }

    .no-results-box-message {
        font-size: 15px;
    }
}

.load-more-container {
    width: 100%;
    max-width: 1216px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500 !important;
    border: 1px solid #2e4755;
    color: #2e4755;
    border-radius: 9999px;
    font-family: var(--font-family);
    width: 142px;
    height: 48px;

    @media (max-width: 768px) {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        height: 40px;
    }
}

/* .load-more-btn:after {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	-webkit-mask-image: url('../assets/icons/arrow_down_chevron.svg');
	mask-image: url('../assets/icons/arrow_down_chevron.svg');
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	background-color: currentColor;
	vertical-align: middle;
	filter: drop-shadow(0 0 0.5px currentColor)
		drop-shadow(0 0 0.5px currentColor);
} */

.m-pillbar-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;

    @media (max-width: 992px) {
        margin-right: 4px;
        gap: 4px;
    }
}

@media (min-width: 993px) {
    .m-pillbar-inner .pill {
        justify-content: flex-start;
    }
}
@media (max-width: 992px) {
    .m-pillbar-inner {
        flex-wrap: nowrap;
    }

    .m-pillbar-inner .pill {
        max-width: none;
        justify-content: flex-start;
    }
}

/* ===== Browse strip (match second screenshot) ===== */

.filters-browse-wrap {
    position: relative;
}

.filters-browse-inner {
    position: relative;
    max-width: 1216px;
    margin: 0 auto;
    padding-bottom: 24px;
}

/* Scroll row */
.filters-browse {
    display: flex;
    gap: 36px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;

    margin: 0;
    width: 100%;

    /* Small breathing room on both sides; arrows sit outside the strip */
    padding: 0 24px 24px;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filters-browse::-webkit-scrollbar {
    display: none;
}

.filters-browse > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Right fade behind the arrow (lighter, does not kill the text) */
.filters-browse-inner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Arrow (desktop/tablet default = tucked inside; large screens pushed out) */
.browse-arrow.outside {
    position: absolute;
    top: 32px;
    right: 8px;
    z-index: 3;

    width: 48px;
    height: 48px;
    border-radius: 9999px;

    background: #fff;
    border: 1px solid #2e4755;
    color: #2e4755;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.browse-arrow.outside.prev {
    display: inline-flex;
    left: 8px;
    right: auto;
}

@media (min-width: 1440px) {
    .browse-arrow.outside {
        right: -80px;
        width: 48px;
        height: 48px;
    }

    .browse-arrow.outside.prev {
        left: -80px;
        right: auto;
    }
}

/* Icon */
.browse-arrow.outside::before {
    content: '';
    width: 24px;
    height: 24px;
    background-color: currentColor;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    /* Use the same arrow icon, but DO NOT rotate here unless your svg points left */
    -webkit-mask-image: url('../assets/icons/light-arrow.svg');
    mask-image: url('../assets/icons/light-arrow.svg');
}

/* If your light-arrow.svg points LEFT by default, uncomment this rotation
   so the arrow points RIGHT (like the second screenshot). */
/*
.browse-arrow.outside.next::before {
    transform: rotate(180deg);
}
*/

.browse-arrow.outside.prev::before {
    transform: none;
}

/* Prev = levo */
.browse-arrow.outside.next::before {
    transform: rotate(180deg);
}

.browse-arrow.outside:hover:not(:disabled) {
    background: #2e4755;
    border-color: #2e4755;
    color: #ffffff;
}

.browse-arrow.outside:disabled {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #c2c8cc;
    cursor: default;
    opacity: 1;
}

.browse-arrow.outside.next:disabled,
.browse-arrow.outside.prev:disabled {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #c2c8cc;
}

/* Item sizing */
.browse-thumb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: #f6f6f5;
}

.browse-name {
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    max-width: 110px;
    white-space: normal;
}

/* Active state */
.browse-item.active .browse-thumb {
    border: 2px solid #b8842b;
}

.browse-item.active .browse-name {
    color: #b8842b;
    font-weight: 400;
}

/* Mobile */
@media (max-width: 768px) {
    .filters-browse-inner {
        padding: 10px 16px 12px 16px;
    }

    .filters-browse {
        gap: 16px;
        padding: 0 12px 16px;
    }

    .filters-browse-inner::after {
        right: 0;
        width: 48px;
        display: none; /* nema fade kada nema strelica */
    }

    .browse-thumb {
        width: 64px;
        height: 64px;
    }

    /* Mobilni: sakrij strelice, ostaje samo swipe */
    .browse-arrow.outside {
        display: none !important;
    }

    .browse-arrow.outside {
        top: 34px;
        right: -12px;
        width: 32px;
        height: 32px;
    }

    .browse-arrow.outside.prev {
        left: -12px;
        right: auto;
    }

    .browse-name {
        font-size: 12px;
        line-height: 16px;
        max-width: 84px;
    }
}
