body {
    background-color: #313338;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #F2F3F5;
    margin: 0;
    padding-top: 82px;
}

.giftcard-list {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.giftcard-list__container {
    flex: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-path {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-path__link {
    font-size: 12px;
    color: #80848E;
    text-decoration: none;
}
.page-path__link:hover { color: #B5BAC1; }

.page-path__separator { color: #80848E; font-size: 12px; }

.page-path__current {
    font-size: 12px;
    color: #B5BAC1;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #F2F3F5;
}

/* ── FILTERS TOP ─────────────────────────────────────────── */
.articles-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.articles-categories {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
}

.articles-categories__toggle { display: none; }

.articles-categories__dropdown {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
}

.articles-filters__item {
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    background: transparent;
    color: #80848E;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.articles-filters__item--active {
    background: #5865F2;
    color: #fff;
    border-color: #5865F2;
}

.articles-filters__item:hover:not(.articles-filters__item--active) {
    border-color: rgba(255,255,255,0.25);
    color: #F2F3F5;
    background: #383A40;
}

/* ── COUNT ───────────────────────────────────────────────── */
.count-info-text { font-size: 12px; color: #80848E; }
.count-info-count { color: #B5BAC1; font-weight: 600; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.wrapper__result {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ── FILTER SHEET ELEMENTS (hidden on desktop) ───────────── */
.filter-sheet__backdrop { display: none; }
.filter-sheet__header { display: none; }

.filters-section__toggle-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-section__toggle-count {
    background: #5865F2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    line-height: 1.4;
}

.filters-section__toggle-arrow {
    color: #80848E;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.filters-section__toggle[aria-expanded="true"] .filters-section__toggle-arrow {
    transform: rotate(180deg);
}

/* ── FILTERS SIDEBAR ─────────────────────────────────────── */
.filters-section__toggle { display: none; }

.filters-section__wrapper { flex-shrink: 0; }

.filters-section {
    background: #2B2D31;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 16px;
    width: 220px;
    position: sticky;
    top: 60px;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filters-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 11px;
    font-weight: 700;
    color: #80848E;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 260px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.checkbox-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    background: #1E1F22;
    cursor: pointer;
    appearance: none;
    flex-shrink: 0;
    position: relative;
}

.checkbox-item input[type="checkbox"]:checked {
    background: #5865F2;
    border-color: #5865F2;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px; top: 1px;
    width: 5px; height: 8px;
    border: 2px solid #fff;
    border-left: none; border-top: none;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 12px;
    color: #B5BAC1;
}

.filter-buttons { margin-top: 4px; }

.filter-btn {
    width: 100%;
    padding: 7px 12px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    transition: background 0.15s;
}
.filter-btn:hover { background: #4752C4; }

/* ── RESULTS ─────────────────────────────────────────────── */
.results-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.giftcards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* ── GIFT CARD ───────────────────────────────────────────── */
.gift-card {
    background: #2B2D31;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.15s;
    min-width: 0;
    cursor: pointer;
}

.gift-card:hover { border-color: rgba(88,101,242,0.4); }

.gift-card__image {
    width: 100%;
    height: 110px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.gift-card__image-background {
    position: absolute;
    inset: 0;
    background-color: #43434e;
}

.gift-card-svg__store {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 56px;
    height: 56px;
}

.gift-card-svg__store svg { width: 100%; height: 100%; }

.gift-card-svg__location {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 28px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.gift-card-svg__location svg { width: 100%; height: 100%; }

.gift-card__content {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.gift-card__type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.gift-card__display_name {
    font-size: 13px;
    font-weight: 600;
    color: #F2F3F5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.gift-card__card__amount {
    font-size: 11px;
    color: #80848E;
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    flex-shrink: 0;
}

.gift-card .game-card__prices { margin-top: auto; }

.price-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-item__amounts {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-item__current {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #23A55A;
}

.price-item__old {
    font-size: 11px;
    color: #80848E;
    text-decoration: line-through;
}

.game-card__discount {
    background: #5865F2;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pagination__link {
    padding: 5px 12px;
    background: #2B2D31;
    color: #B5BAC1;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.pagination__link:hover {
    background: #383A40;
    color: #F2F3F5;
}

.pagination__current {
    padding: 5px 12px;
    background: #5865F2;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* ── NO RESULTS ──────────────────────────────────────────── */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 24px;
    background: #2B2D31;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
}

.no-results__icon-wrap {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 18px;
    margin-bottom: 20px;
    color: #5865F2;
}

.no-results__svg {
    color: #5865F2;
    flex-shrink: 0;
}

.no-results__title {
    font-size: 16px;
    font-weight: 700;
    color: #F2F3F5;
    margin: 0 0 8px;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.no-results__description {
    font-size: 13px;
    color: #80848E;
    margin: 0 0 24px;
    line-height: 1.6;
}

.no-results__reset {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(88, 101, 242, 0.5);
    border-radius: 6px;
    color: #5865F2;
    font-size: 13px;
    font-weight: 600;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.no-results__reset:hover {
    background: rgba(88, 101, 242, 0.12);
    border-color: #5865F2;
    color: #fff;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1200px) {
    .giftcards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 948px) {
    .wrapper__result { flex-direction: column; }
    .filters-section__wrapper { width: 100%; }

    /* Backdrop */
    .filter-sheet__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 199;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    .filter-sheet__backdrop--visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* Toggle button */
    .filters-section__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 11px 14px;
        background: #2B2D31;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 8px;
        color: #B5BAC1;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
        transition: border-color 0.15s, background 0.15s;
    }
    .filters-section__toggle:hover {
        border-color: rgba(255,255,255,0.16);
        background: #303237;
    }
    .filters-section__toggle[aria-expanded="true"] {
        border-color: rgba(88,101,242,0.5);
    }

    /* Bottom sheet */
    .filters-section {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 200;
        width: 100%;
        max-height: 88vh;
        overflow-y: auto;
        overflow-x: hidden;
        background: #2B2D31;
        border: 1px solid rgba(255,255,255,0.08);
        border-bottom: none;
        border-radius: 16px 16px 0 0;
        padding: 0;
        transform: translateY(110%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
                    visibility 0s linear 0.32s;
        box-shadow: 0 -8px 48px rgba(0,0,0,0.5);
        scrollbar-width: thin;
        scrollbar-color: #383A40 transparent;
    }
    .filters-section--open {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
                    visibility 0s linear 0s;
    }

    /* Sheet header */
    .filter-sheet__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 16px 14px;
        position: sticky;
        top: 0;
        background: #2B2D31;
        z-index: 1;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .filter-sheet__handle {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: rgba(255,255,255,0.18);
        border-radius: 2px;
    }
    .filter-sheet__title {
        font-size: 15px;
        font-weight: 700;
        color: #F2F3F5;
        font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    }
    .filter-sheet__close {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 50%;
        color: #80848E;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }
    .filter-sheet__close:hover {
        background: rgba(255,255,255,0.1);
        color: #F2F3F5;
    }

    /* Form padding inside sheet */
    .filters-section .filters-form { padding: 16px; }
    .filters-section .filter-buttons {
        padding: 12px 16px 24px;
        position: sticky;
        bottom: 0;
        background: #2B2D31;
        border-top: 1px solid rgba(255,255,255,0.06);
        margin-top: 4px;
    }

    .giftcards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .giftcard-list__container { padding: 20px 16px 40px; }

    .articles-categories__toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 4px;
        background: transparent;
        color: #B5BAC1;
        font-size: 12px;
        cursor: pointer;
        font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    }

    .articles-categories__dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        z-index: 100;
        background: #2B2D31;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 4px;
        padding: 4px;
        flex-direction: column;
        gap: 2px;
        min-width: 180px;
    }

    .articles-categories--open .articles-categories__dropdown { display: flex; }

    .articles-categories__dropdown .articles-filters__item {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .giftcards-grid { grid-template-columns: 1fr; }
}
