
:root {
    --Black: #2E2E2E;
    --Red: #D2232A;
    --White: #FFF;
    --Gray: #4A4A4A;
    --Light-gray: #F1F2F2;
    --Stroke: #DDD;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    color: #2E2E2E;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section.creditCalculatorSection .container .row .page-description p span[style*="font-size"] {
    color: #2E2E2E !important;
    font-family: Roboto !important;
    font-size: 30px !important;
    font-style: normal !important;
    font-weight: 300 !important;
    line-height: 40px !important;
}

.page-description + p span {
    color: #2E2E2E !important;
    font-family: Roboto !important;
    font-size: 30px !important;
    font-style: normal !important;
    font-weight: 300 !important;
    line-height: 40px !important;
}

.page-description + p {
    text-align: left !important;
    max-width: 1120px !important;
}

.section.creditCalculatorSection .container .row .page-description p {
    margin: 0 !important;
    padding: 0 !important;
}

.main-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 25px;
    padding: 50px 15px 70px 15px;
    align-items: flex-start;
}

.cards-frame {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.section-title {
    display: flex;
    height: 43px;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    color: var(--Black);
    font-family: Roboto;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 66px;
}

.cards-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    row-gap: 60px !important;
    column-gap: 20px !important;
    width: 100%;
    align-items: start !important;
    justify-content: center !important;
}

.discount-card {
    display: flex;
    width: 100%;
    max-width: 320px !important;
    min-width: 260px !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-self: center;
}

.parallax-caption {
    text-transform: uppercase !important;
}

.image-container {
    display: flex;
    width: 100%;
    aspect-ratio: 1;
    padding: min(43px, 6vw);
    align-items: stretch;
    justify-content: stretch;
    border-radius: 12px;
    border: 1px solid var(--Stroke);
    background: var(--White);
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: auto;
    flex: 1;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.discount-badge {
    display: flex;
    height: 28px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 11px;
    top: 11px;
    border-radius: 6px;
    background: var(--Red);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(210, 35, 42, 0.3);
}

.discount-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    color: var(--White);
    text-overflow: ellipsis;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 17.14px;
}

/* Card info - FLEXIBLE */
.card-info {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.card-title {
    align-self: stretch;
    color: var(--Gray);
    font-family: Roboto;
    font-size: clamp(16px, 2vw, 18px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
}

.card-category {
    display: flex;
    height: 28px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    background: var(--Light-gray);
    transition: background-color 0.3s ease;
    width: fit-content;
}

.category-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    color: var(--Gray);
    text-overflow: ellipsis;
    font-family: Roboto;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 17.14px;
    white-space: nowrap;
}

.mobile-filter-icon-container {
    display: none;
    padding: 5px;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    border: 1px solid var(--Stroke, #DDD);
    cursor: pointer;
}

.learn-more-frame {
    display: flex;
    height: 23px;
    padding: 12px 0px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    margin-top: 10px;
}

/* Learn More Text */
.learn-more-text {
    display: flex;
    width: 82px;
    height: 23px;
    flex-direction: column;
    justify-content: center;
    color: var(--Red, #D2232A);
    text-align: center;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px; /* 187.5% */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.learn-more-text:hover {
    opacity: 0.8;
}

/* Filter sidebar - IMPROVED RESPONSIVE */
.filter-sidebar {
    display: flex;
    flex-direction: column;
    width: 280px;
    min-width: 260px;
    max-width: 320px;
    flex-shrink: 0;
    align-items: flex-start;
    gap: 10px;
}

.filter-container {
    display: flex;
    width: 100%;
    padding: 18px 20px;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid #DDD;
    background: var(--White);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
    width: 100%;
}

.filter-title {
    align-self: stretch;
    color: var(--Gray);
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 21px;
}

/* City selector - IMPROVED */
.city-selector-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
    width: 100%;
}

.city-label {
    align-self: stretch;
    color: var(--Gray);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 21px;
}

.city-dropdown {
    display: flex;
    padding: 13px !important;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 4px;
    border: 1px solid #DADBDD;
    background: var(--White);
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: 100%;
    font-size: 14px !important;
}

.dropdown-text {
    color: rgba(51, 51, 51, 0.56);
    font-family: Montserrat !important;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    flex: 1;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.city-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Categories section - IMPROVED */
.categories-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
    width: 100%;
}

.category-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    width: 100%;
}

.category-title {
    align-self: stretch;
    color: var(--Gray);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 21px;
}

.category-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    width: 100%;
}

.category-item {
    display: flex;
    min-height: 24px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    width: 100%;
    max-height: 30px;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.checkbox {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
}

.checkbox:hover {
    transform: scale(1.1);
}

.category-name {
    color: var(--Black);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    flex: 1;
    word-wrap: break-word;
}

/* Discount filters - IMPROVED */
.discount-filter-title {
    color: var(--Black);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    margin-bottom: 8px;
}

    .select-wrapper {
    position: relative;
    width: 100%;
}

.select-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.city-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 45px;
}

.discount-options {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.discount-option {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    border: 1px solid rgba(51, 51, 51, 0.56);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
    background: var(--White);
}

.discount-option:hover {
    background-color: var(--Red);
    border-color: var(--Red);
    color: var(--White);
}

.discount-option.active {
    background-color: var(--Red);
    border-color: var(--Red);
}

.discount-option.active .discount-percentage {
    color: var(--White);
}

.discount-percentage {
    color: rgba(51, 51, 51, 0.56);
    text-align: center;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
    transition: color 0.3s ease;
}

.discount-option:hover .discount-percentage {
    color: var(--White);
}














.container-flex2 {
    display: inline-flex;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
}

.opis-text {
    color: #2E2E2E;
    font-family: Roboto;
    font-size: 26px;
    font-style: normal;
    font-weight: 300;
    line-height: 40px;
    /*flex: 1;*/
    width: auto;
}

.kartice-frame {
    display: flex;
    width: 432px;
    height: 600px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.kartica {
    display: flex;
    width: 427px !important;
    max-width: 427px !important;
    height: 278px !important;
    padding: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    border-radius: 38px;
    border: 1px solid var(--Stroke, #DDD);
    background: linear-gradient(180deg, #FFF 0%, #FFF 100%);
    box-shadow: 0 10px 26.2px -8px rgba(36, 34, 62, 0.12);
    position: relative;
    overflow: hidden;
}

.kartica-icon.house-icon {
    width: 256px;
    height: 256px;
    aspect-ratio: 1/1;
    position: absolute;
    left: -15px;
}

.kartica-icon.location-icon {
    display: flex;
    width: 257.326px;
    height: 256.167px;
    padding: 21px 43px;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: -41px;
    bottom: 10.833px;
}

.kartica-icon.location-icon img {
    width: 171.326px;
    height: 214.167px;
    flex-shrink: 0;
}

.kartica-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.kartica-broj {
    display: flex;
    width: 164px;
    height: 68px;
    flex-direction: column;
    justify-content: center;
    color: var(--Red, #D2232A);
    font-family: Roboto;
    font-size: 72px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    text-align: center;
}

.kartica-tekst {
    color: var(--Black, #2E2E2E);
    font-family: Roboto;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    text-align: center;
}

.section-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    width: 100%;
    margin-bottom: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.search-bar {
    display: flex;
    width: 408px;
    padding: 10px 10px 10px 15px;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #DADBDD;
    background: #FFF;
    box-sizing: border-box;
    flex-shrink: 1;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    color: var(--dev-frontend-citydeal-ba-mine-shaft-56, rgba(51, 51, 51, 0.56));
    font-size: 14px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.search-input::placeholder {
    color: var(--dev-frontend-citydeal-ba-mine-shaft-56, rgba(51, 51, 51, 0.56));
    font-size: 14px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.search-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    fill: var(--Stroke, #DDD);
    cursor: pointer;
}


@media (max-width: 480px) {
    .opis-text {
        font-size: 22px;
        line-height: 32px;
    }
    
    .kartica-broj {
        font-size: 48px;
    }
    
    .kartica-tekst {
        font-size: 20px;
    }
    
    .search-bar {
        width: 250px;
    }
}












.search-bar {
    display: flex;
    width: 408px !important;
    padding: 10px 10px 10px 15px;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #DADBDD;
    background: #FFF;
    position: relative;
    gap: 8px;
}

.search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.search-clear:hover {
    background-color: #f0f0f0;
}

.search-clear img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.search-icon:hover {
    opacity: 0.7;
}

.no-results-container {
    display: flex;
    height: 594px;
    padding: 22px 11px 11px 11px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 44px;
    align-self: stretch;
    width: 100%;
}

.no-results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 21px;
    max-width: 400px;
    text-align: center;
}

.no-results-icon {
    width: 155px;
    height: 155px;
    fill: rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.no-results-text-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-results-title {
    color: #000;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
}

.no-results-subtitle {
    color: #000;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.reset-filters-btn {
    display: flex;
    width: 187px;
    height: 50px;
    padding: 12px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid #D2232A;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--Red, #D2232A);
    text-align: center;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    text-transform: uppercase;
}

.reset-filters-btn:hover {
    background-color: #D2232A;
    color: white;
}



















/* Desktop - 1200px to 1399px */
@media (max-width: 1399px) {
    .main-content {
        max-width: 1200px;
        gap: 30px;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        row-gap: 60px !important;
        column-gap: 20px !important;
    }
    
    .filter-sidebar {
        width: 280px;
    }
    
    .discount-card {
        max-width: 320px !important;
        min-width: 280px !important;
    }

    .section-title {
        margin-left: 60px !important;
    }
}

/* Medium desktop - 1024px to 1199px */
@media (max-width: 1199px) {
    .main-content {
        gap: 25px;
        padding: 50px 15px 70px 15px;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 20px;
    }
    
    .filter-sidebar {
        width: 260px;
    }
    
    .section-title {
        font-size: 28px;
        margin-left: 30px !important;
        
    }
    
    .discount-card {
        max-width: 300px !important;
        min-width: 260px !important;
    }
    
    
    .container-flex2 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        width: 100%;
    }
    
    .kartice-frame {
        display: flex;
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        justify-content: center;
        height: 190px;
    }
    
    .kartica {
        display: flex;
        width: 100%;
        max-width: 406px; !important
        height: 250px;
        padding: 25px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 11px;
        flex-shrink: 0;
        border-radius: 38px;
        border: 1px solid var(--Stroke, #DDD);
        background: linear-gradient(180deg, #FFF 0%, #FFF 100%);
        box-shadow: 0 10px 26.2px -8px rgba(36, 34, 62, 0.12);
        position: relative;
        overflow: hidden;
    }

}

@media (max-width: 1023px) and (min-width: 901px) {
    .main-content {
        gap: 22px;
        padding: 40px 15px 55px 15px;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 18px;
    }
    
    .filter-sidebar {
        width: 240px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .discount-card {
        max-width: 300px !important;
        min-width: 260px !important;
    }
}


@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        gap: 25px;
        padding: 30px 20px;
    }
    
    .page-description + p span {
        font-size: 24px !important;
        line-height: 32px !important;
    }
    
    .filter-sidebar {
        width: 100%;
        max-width: none;
        padding-top: 0;
        order: 1;
    }
    
    .cards-frame {
        order: 2;
        width: 100%;
    }
    
    .filter-container {
        margin-bottom: 20px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 35px !important;
        width: 100%;
        justify-content: center;
    }
    
    .discount-card {
        max-width: 350px !important;
        min-width: 280px !important;
        width: 100%;
    }
    
    .section-title {
        font-size: 26px;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .kartica {
        max-width: 360px !important;
    }
}

@media (min-width: 768px) {
    .container {
        width: auto;
    }
    
    
    .container-flex {
        flex-direction: column;
        gap: 30px;
    }
    
    .kartice-frame {
        width: 100%;
        height: auto;
        justify-content: space-between;
    }
    
    /*.kartica {*/
    /*    width: 100%;*/
    /*    max-width: 350px !important;*/
    /*    height: 200px;*/
    /*}*/
    
    .search-bar {
        width: 300px;
    }
}


@media (max-width: 767px) {
    
    .kartica {
        width: 100%;
        max-width: 300px !important;
        height: 200px !important;
    }
    
    .kartica-icon.location-icon {
        width: 200px !important;
        height: 230px !important;
    }
    
    .kartica-icon.house-icon {
        width: 216px !important;
        height: 188px !important;
    }
    
    .main-content {
        padding: 25px 20px 40px;
        gap: 20px;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 18px;
    }
    
    .discount-card {
        min-width: 250px !important;
        max-width: 320px !important;
    }
    
    .section-title-container {
        margin-bottom: 0 !important;
    }
    
    .section-title {
        font-size: 24px;
        margin-left: 0 !important;
    }
    
    .filter-content {
        gap: 15px;
    }
    
    .categories-frame {
        gap: 15px;
    }
    
    .category-list {
        gap: 8px;
    }
    
    .discount-options {
        gap: 6px;
    }
    
    .discount-option {
        padding: 6px 10px;
        min-width: 40px;
    }
}

@media (max-width: 654px) {
    .kartica {
        width: 100%;
        max-width: 250px !important;
        height: 175px !important;
    }
    
    .kartica-icon.location-icon {
        width: 170px !important;
        height: 200px !important;
    }
    
    .kartica-icon.house-icon {
        width: 200px !important;
        height: 158px !important;
    }
}

@media (max-width: 599px) {
    
    .main-content {
        padding: 20px 20px 40px;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 15px !important;
        row-gap: 32px !important;
    }
    
    .title {
        font-size: 25px;
    }
    
    .discount-card {
        min-width: unset !important;
        max-width: unset !important;
    }
    
    .section-title {
        font-size: 22px;
        line-height: 1.2;
        margin-left: 0 !important;
    }
    
    .filter-container {
        padding: 15px;
    }
    
    .filter-title {
        font-size: 14px;
    }
    
    .city-label,
    .category-title,
    .discount-filter-title {
        font-size: 12px;
    }
    
    .dropdown-text {
        font-size: 12px;
    }
    
    .category-name {
        font-size: 14px;
    }
    
    .discount-option {
        padding: 5px 8px;
        min-width: 35px;
    }
    
    
    .kartice-frame {
        gap: 10px;
        height: 145px !important;
    }
    
    .kartica {
        width: 100%;
        max-width: 210px !important;
        height: 155px !important;
    }
    
    .kartica-icon.location-icon {
        width: 160px !important;
        height: 130px !important;
    }
    
    .kartica-icon.house-icon {
        width: 144px !important;
        height: 124px !important;
    }
    
    .kartica-broj {
        font-size: 57px;
    }
    
    .search-bar {
        min-width: 0;
    }
    
    .search-input {
        width: calc(100% - 54px);
    }
    
    .search-clear {
        margin-right: 0;
    }
    
    .no-results-container {
        height: 380px;
    }
 
}

@media (max-width: 479px) {
    
    .header h2 {
        font-size: 18px;
    }
    
    .main-content {
        padding: 15px 20px 40px;
        gap: 15px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
        padding: 0;
        margin-right: 30px;
        margin-bottom: 0;
        margin-left: 0 !important;
    }
    
    .title {
        font-size: 21px;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 15px !important;
        row-gap: 32px !important;
    }
    
    .discount-card {
        min-width: unset !important;
        max-width: unset !important;
    }
    
    .discount-badge {
        left: 8px;
        top: 8px;
        height: 24px;
        padding: 6px 8px;
    }
    
    .discount-text {
        font-size: 14px;
    }
    
    .card-title {
        font-size: 14px;
        line-height: 1.1;
    }
    
    .card-category {
        height: 24px;
        padding: 6px 8px;
    }
    
    .category-text {
        font-size: 10px;
    }
    
    .filter-container {
        padding: 12px;
    }
    
    .filter-content {
        gap: 12px;
    }
    
    .city-dropdown {
        padding: 10px;
    }
    
    .dropdown-icon {
        width: 16px;
        height: 16px;
    }
    
    .category-item {
        padding: 3px;
        gap: 6px;
    }
    
    .checkbox {
        width: 18px;
        height: 18px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    .discount-options {
        gap: 5px;
        justify-content: left;
    }
    
    .discount-option {
        padding: 4px 6px;
        min-width: 30px;
    }
    
    .kartice-frame {
        gap: 15px;
        flex-direction: column !important;
        height: 308px !important;
    }
    
    .kartica {
        height: 200px;
        padding: 20px;
        max-width: none !important;
        width: 100% !important;
    }
    
    .kartica-broj {
        font-size: 48px;
    }
    
    .kartica-tekst {
        font-size: 20px;
    }
}

@media (max-width: 380px) {
    .section-title-container {
        padding: 0 5px;
        gap: 10px;
    }
    
    .search-bar {
        max-width: 250px;
        padding: 6px 6px 6px 10px;
    }
    
    .search-input {
        font-size: 11px;
    }
    
    .search-icon {
        width: 22px;
        height: 22px;
    }
}

/* Extra small screens - up to 360px */
/*@media (max-width: 360px) {*/

/*    .cards-container {*/
/*        grid-template-columns: repeat(2, 1fr) !important;*/
/*        column-gap: 12px !important;*/
/*        row-gap: 32px !important;*/
/*    }*/
    
/*    .discount-card {*/
/*        width: 100%;*/
/*        min-width: unset !important;*/
/*        max-width: unset !important;*/
/*    }*/
    
/*    .section-title {*/
/*        font-size: 18px;*/
/*        margin-left: 0 !important;*/
/*    }*/
    
/*    .filter-content {*/
/*        gap: 10px;*/
/*    }*/
    
/*    .categories-frame {*/
/*        gap: 10px;*/
/*    }*/
    
/*    .search-bar {*/
/*        max-width: 200px;*/
/*        padding: 5px 5px 5px 8px;*/
/*    }*/
/*}*/

/* Vrlo mali telefoni - 360px i manje */
@media (max-width: 379px) {
    .section-title-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
        align-items: stretch;
    }
    
    .section-title {
        order: 1;
        text-align: center;
        font-size: 18px;
        margin: 0;
        align-self: center;
    }
    
    /* Kontejner za search bar i filter ikonu */
    .search-filter-row {
        order: 2;
        display: flex;
        gap: 8px;
        align-items: center;
        width: 100%;
    }
    
    .search-bar {
        order: 1;
        flex: 1; /* Zauzima sav dostupan prostor */
        width: auto;
        max-width: none;
        padding: 6px 6px 6px 10px;
    }
    
    .mobile-filter-icon-container {
        order: 2;
        flex-shrink: 0; /* Ne smanjuje se */
        margin-left: 0;
    }
    
    .search-input {
        font-size: 11px;
    }
    
    .search-icon {
        width: 20px;
        height: 20px;
    }
    
    .search-clear img {
        width: 16px;
        height: 16px;
    }
}



@media (prefers-contrast: high) {
    .image-container {
        border-width: 2px;
    }
    
    .discount-badge {
        border: 1px solid var(--White);
    }
    
    .card-category {
        border: 1px solid var(--Gray);
    }
}

.card-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}



@media (min-width: 992px) {
    .main-content {
        width: 970px;
    }

    .container {
        max-width: 970px;
    }
}

@media (min-width: 1200px) {
    .main-content {
        width: 1170px;
    }

    .container {
        max-width: 1170px;
    }
}



















.section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.mobile-filter-icon {
    display: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-filter-icon:hover {
    background-color: #f0f0f0;
}

.mobile-filter-icon svg {
    width: 24px;
    height: 24px;
}

.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: flex-end;
}

.mobile-filter-modal {
    background: white;
    width: 100%;
    max-height: 80vh;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-filter-title {
    color: var(--Gray);
    font-family: Montserrat;
    font-size: 18px;
    font-weight: 600;
    line-height: 21px;
}

.mobile-filter-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-filter-close:hover {
    background-color: #f0f0f0;
}

.mobile-filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-filter-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: white;
    position: sticky;
    bottom: 0;
}

.mobile-save-button {
    width: 100%;
    padding: 16px;
    background-color: var(--Red);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-save-button:hover {
    background-color: #b91e24;
}

.mobile-save-button:active {
    background-color: #a01a20;
}

@media (max-width: 900px) {
    .mobile-filter-icon-container {
        display: flex;
    }
    
    .mobile-filter-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .filter-sidebar {
        display: none;
    }
    
    .section-title {
        margin: 0;
    }
}

@media (max-width: 599px) {
    
    .mobile-filter-header {
        padding: 16px 16px 0 16px
    }
    
    .mobile-filter-content {
        padding: 16px;
    }
    
    .mobile-filter-footer {
        padding: 16px;
    }
    
    .mobile-save-button {
        padding: 14px;
        font-size: 14px;
    }
}

@media (max-width: 479px) {
    .mobile-filter-modal {
        max-height: 85vh;
    }
    
    .mobile-filter-title {
        font-size: 16px;
    }
    
    .mobile-filter-close {
        width: 28px;
        height: 28px;
    }
}

