.credit-cards_section h1 {
    font-size: 42px;
    margin: 1.5rem 0;
}

.credit-cards_section h2 {
    font-size: 24px;
    margin: 1rem 0;
}

.filter-btn {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    display: none;
}

.filter-btn > svg {
    pointer-events: none;
}

.credit-cards_section--container {
    display: flex;
    align-items: flex-start;
    gap: 3.5rem;
}

.credit-cards_main {
    flex-basis: 75%;
}

.credit-cards_main h1 {
    font-size: 42px;
    margin-bottom: 2.5rem;
}

.credit-cards_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.card-box {
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 16, 68, 0.08);
    background: #fff;
    transition: 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.card-box img {
    width: 100%;
    max-width: 165px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
}
.card-box div.info {
    margin-top: auto;
    width: 100%;
}
.card-box h3 {
    font-size: 16px;
    line-height: 1.35;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
}
.card-box:hover {
    transform: scale(1.02);
}

.card-box .Stars {
    margin-bottom: 0.5rem;
}

.box-btns_wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.box-btns_wrapper a {
    display: inline-block;
    text-decoration: underline;
    color: var(--color-1);
    width: 100%;
}

.add-to_compare {
    width: 100%;
    padding: 0.6rem;
    border-radius: 6px;
    background: var(--color-1);
    border: none;
    outline: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    cursor: pointer;
}

.add-to_compare > * {
    pointer-events: none;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
}

.pagination button {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: none;
    outline: none;
    border-radius: 4px;
    cursor: pointer;
    /* border: 2px solid var(--color-2); */
    /* background: transparent; */
    background: #d6b46a33;
    display: grid;
    place-items: center;
    transition: 0.3s ease-in-out;
}

.pagination button:is(:hover, .active) {
    background: var(--color-2);
}

.pagination button:disabled {
    cursor: not-allowed;
}

.filters-wrapper {
    flex-basis: 20%;
}

.filter-box {
    position: relative;
    padding: 1rem;
    padding-top: 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #fff;
    margin-bottom: 1rem;
    max-height: 420px;
    overflow: hidden;
    overflow-y: auto;
}

/* width */
.filter-box::-webkit-scrollbar {
    width: 5px;
}

/* Track */
.filter-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
.filter-box::-webkit-scrollbar-thumb {
    background: var(--color-1);
    border-radius: 5px;
}

.filter-box h4 {
    position: sticky;
    top: 0;
    padding: 1rem 0;
    background: #fff;
}

.filter-list li {
    padding: 0.5rem;
    border-radius: 6px;
    transition: 0.3s ease;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.filter-list li:is(:hover, .active) {
    background: #eee;
}

.filter-list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-list li img {
    width: 20px;
}

.filter-list li span {
    font-size: 12px;
}

.compare-boxes_overlay {
    position: fixed;
    left: 5%;
    bottom: 0;
    z-index: 10;
    width: auto;
    max-width: 90%;
    transition: 0.3s ease;
}

.compare-list_toggler {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.9);
    border: none;
    outline: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 1rem;
    cursor: pointer;
}

.compare-list_toggler span:first-child {
    transition: 0.3s ease;
}

.compare-list_toggler span:first-child.rotate {
    transform: rotate(180deg);
}

.compare-list_toggler > * {
    pointer-events: none;
}

.compare-list {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-top-right-radius: 8px;
    height: 0;
    padding: unset;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.compare-list.show {
    height: auto;
    padding: 1rem;
}

.compare-list .card-box {
    width: 157px;
    height: 165px;
}

.compare-list > button {
    border: none;
    outline: none;
    padding: 1rem;
    border-radius: 6px;
    background: var(--color-2);
    color: #fff;
    cursor: pointer;
}

.remove-btn {
    position: absolute;
    border: none;
    outline: none;
    background-color: rgb(255, 59, 59);
    cursor: pointer;
    width: 25px;
    height: 25px;
    top: 0;
    right: 0;
}

/** MEDIA QUERIES **/
@media screen and (max-width: 1536px) {
}

@media screen and (max-width: 1420px) {
}

@media screen and (max-width: 1280px) {
}

@media screen and (max-width: 1024px) {
    .credit-cards_section--container {
        flex-direction: column-reverse;
    }

    .filters-wrapper {
        flex-basis: 100%;
        width: 100%;
        display: none;
    }

    .filters-wrapper.show {
        display: flex;
        gap: 1rem;
    }

    .filter-box {
        width: 100%;
    }

    .filter-btn {
        display: block;
    }

    .credit-cards_main {
        width: 100%;
        flex-basis: 100%;
    }

    .pagination button {
        padding: 0.5rem 0;
        width: 100%;
    }
}

@media screen and(max-width: 768px) {
    .credit-cards_grid {
        grid-template-columns: repeat(2, 1fr)
    }
}
@media screen and (max-width: 640px) {
    .filters-wrapper.show {
        display: block;
    }

    .filter-box {
        max-height: 250px;
    }
}

@media screen and (max-width: 500px) {
    .card-box {
        max-width: 100%;
    }
}

@media screen and  (max-width: 480px) {
    .credit-cards_grid {
        grid-template-columns: 1fr 1fr;
    }
  }

@media screen and (max-width: 360px) {
}
