/* Bélyegző kereső – theme=2 */

.stamp-finder {
    --sf-primary: #2d4b5e;
    --sf-primary-dark: #203b4b;
    --sf-text: #17242e;
    --sf-muted: #718091;
    --sf-border: #d7e0e5;
    --sf-surface: #fff;
    --sf-soft: #f4f7f9;
}

.stamp-finder *,
.stamp-finder *::before,
.stamp-finder *::after {
    box-sizing: border-box;
}

.stamp-finder__heading {
    margin-bottom: 14px;
    padding: 20px 24px;
}

.stamp-finder__heading h1 {
    margin: 0;
    color: var(--sf-text);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
}

.stamp-finder__heading .eyebrow {
    margin: 0 0 4px;
}

.stamp-finder__heading .muted {
    max-width: 780px;
    margin: 8px 0 0;
    line-height: 1.5;
}

.stamp-finder__layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.stamp-finder__filters {
    position: sticky;
    top: 86px;
    max-height: calc(100dvh - 102px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 16px 18px;
    scrollbar-width: thin;
}

.stamp-finder__filter-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -16px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--sf-border);
    background: #fff;
}

.stamp-finder__filter-head h2 {
    margin: 0;
    color: var(--sf-text);
    font-size: 17px;
}

.stamp-finder__filter-head span {
    display: block;
    margin-top: 2px;
    color: var(--sf-muted);
    font-size: 11px;
    line-height: 1.3;
}

.stamp-finder__clear {
    border: 0;
    background: transparent;
    color: var(--sf-primary);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.stamp-finder__search {
    display: block;
    padding: 14px 0 4px;
}

.stamp-finder__search > span {
    display: block;
    margin-bottom: 6px;
    color: var(--sf-text);
    font-size: 12px;
    font-weight: 700;
}

.stamp-finder__search input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #bac8d1;
    border-radius: 8px;
    background: #fff;
    color: var(--sf-text);
    font: inherit;
}

.stamp-finder__search input:focus {
    outline: 2px solid rgba(45, 75, 94, .18);
    border-color: var(--sf-primary);
}

.stamp-filter-group {
    border-bottom: 1px solid #e1e7eb;
    padding: 5px 0 9px;
}

.stamp-filter-group summary {
    position: relative;
    padding: 9px 22px 7px 0;
    color: var(--sf-text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.stamp-filter-group summary::-webkit-details-marker {
    display: none;
}

.stamp-filter-group summary::after {
    content: "⌄";
    position: absolute;
    right: 2px;
    top: 7px;
    color: #718091;
    font-size: 16px;
    transform: rotate(-90deg);
    transition: transform .16s ease;
}

.stamp-filter-group[open] summary::after {
    transform: rotate(0deg);
}

.stamp-filter-group__content {
    display: grid;
    gap: 3px;
}

.stamp-filter-group__content--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.stamp-filter-option {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    cursor: pointer;
}

.stamp-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.stamp-filter-option span {
    width: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #4c6070;
    font-size: 12px;
    line-height: 1.2;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.stamp-filter-option span::before {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-right: 7px;
    border: 1px solid #8c9aa4;
    border-radius: 3px;
    background: #fff;
}

.stamp-filter-option:hover span {
    background: #f4f7f9;
}

.stamp-filter-option input:checked + span {
    border-color: #c2d1da;
    background: #edf4f7;
    color: var(--sf-primary-dark);
    font-weight: 700;
}

.stamp-filter-option input:checked + span::before {
    border-color: var(--sf-primary);
    background:
        linear-gradient(135deg, transparent 43%, #fff 43% 54%, transparent 54%) 2px 5px / 6px 5px no-repeat,
        linear-gradient(45deg, transparent 40%, #fff 40% 55%, transparent 55%) 0 7px / 5px 4px no-repeat,
        var(--sf-primary);
}

.stamp-filter-option input:focus-visible + span {
    outline: 2px solid rgba(45, 75, 94, .28);
    outline-offset: 1px;
}

.stamp-filter-group__help {
    margin: 6px 0 0;
    color: var(--sf-muted);
    font-size: 10px;
    line-height: 1.35;
}

.stamp-finder__tip {
    margin-top: 13px;
    padding: 10px;
    border-radius: 9px;
    background: #f3f7f9;
    color: #526775;
    font-size: 11px;
    line-height: 1.4;
}

.stamp-finder__tip strong {
    display: block;
    margin-bottom: 3px;
    color: var(--sf-primary-dark);
}

.stamp-finder__tip p {
    margin: 0;
}

.stamp-finder__result-head {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 12px 16px;
}

.stamp-finder__result-head > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--sf-muted);
    font-size: 13px;
}

.stamp-finder__result-head strong {
    color: var(--sf-primary-dark);
    font-size: 19px;
}

.stamp-finder__result-head p {
    margin: 0;
    color: var(--sf-muted);
    font-size: 12px;
}

.stamp-finder__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.stamp-finder-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    background: #fff;
}

.stamp-finder-card[hidden] {
    display: none !important;
}

.stamp-finder-card__media {
    position: relative;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-bottom: 1px solid #e5eaed;
    background: #fbfcfd;
}

.stamp-finder-card__media img {
    max-width: 100% !important;
    max-height: 142px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.stamp-finder-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 4px 7px;
    border-radius: 6px;
    background: #76508d;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.stamp-finder-card__body {
    display: flex;
    min-height: 206px;
    flex-direction: column;
    padding: 14px 15px 15px;
}

.stamp-finder-card__technology {
    margin-bottom: 4px;
    color: #778895;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stamp-finder-card__title {
    margin: 0;
    color: var(--sf-text);
    font-size: 16px;
    line-height: 1.22;
}

.stamp-finder-card__title a {
    color: inherit;
    text-decoration: none;
}

.stamp-finder-card__title a:hover {
    color: var(--sf-primary);
}

.stamp-finder-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.stamp-finder-card__specs span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 7px 9px;
    border-radius: 8px;
    background: #f2f5f7;
}

.stamp-finder-card__specs strong {
    color: #2b3b46;
    font-size: 12px;
    line-height: 1.1;
}

.stamp-finder-card__specs small {
    margin-top: 2px;
    color: #7a8a96;
    font-size: 10px;
}

.stamp-finder-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.stamp-finder-card__button {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--sf-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.stamp-finder-card__button:hover {
    background: var(--sf-primary-dark);
    color: #fff;
}

.stamp-finder-card__price {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.stamp-finder-card__price strong {
    color: #213846;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1;
    white-space: nowrap;
}

.stamp-finder-card__price > span {
    margin-top: 2px;
    color: #718091;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.stamp-finder-card__price small {
    margin-top: 3px;
    color: #718091;
    font-size: 10px;
    white-space: nowrap;
}

.stamp-finder__empty {
    padding: 55px 22px;
    border: 1px dashed #bdcbd4;
    border-radius: 14px;
    background: rgba(255,255,255,.6);
    text-align: center;
}

.stamp-finder__empty[hidden] {
    display: none !important;
}

.stamp-finder__empty h2 {
    margin: 0;
    color: var(--sf-text);
    font-size: 25px;
}

.stamp-finder__empty p {
    max-width: 600px;
    margin: 8px auto 14px;
    color: var(--sf-muted);
    line-height: 1.5;
}

.stamp-finder__help {
    margin-top: 16px;
    padding: 15px 18px;
    color: #4d6270;
    font-size: 12px;
    line-height: 1.5;
}

.stamp-finder__help strong {
    color: var(--sf-primary-dark);
    font-size: 14px;
}

.stamp-finder__help p {
    margin: 4px 0 0;
}

.stamp-finder__help a {
    color: var(--sf-primary);
    font-weight: 700;
}

.stamp-finder__mobile-toolbar {
    display: none;
}

@media (max-width: 900px) {
    .stamp-finder__layout {
        grid-template-columns: 1fr;
    }

    .stamp-finder__mobile-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .stamp-finder__mobile-count {
        color: var(--sf-muted);
        font-size: 13px;
    }

    .stamp-finder__mobile-count strong {
        color: var(--sf-primary-dark);
    }

    .stamp-finder__filters {
        position: static;
        display: none;
        max-height: none;
        overflow: visible;
        margin-bottom: 4px;
    }

    .stamp-finder__filters.is-open {
        display: block;
    }

    .stamp-finder__filter-head {
        position: static;
    }

    .stamp-finder__result-head {
        display: none;
    }
}

@media (max-width: 560px) {
    .stamp-finder__heading {
        padding: 17px 18px;
    }

    .stamp-finder__products {
        grid-template-columns: 1fr;
    }

    .stamp-finder-card__media {
        height: 160px;
    }

    .stamp-filter-group__content--compact {
        grid-template-columns: 1fr 1fr;
    }
}
