﻿.ag-list {
    background: #f4f5f6;
    padding: 18px 0 0;
}

.ag-list__bc {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #7b848c;
    font-size: 12px;
    margin-bottom: 16px;
}

    .ag-list__bc a:hover {
        color: var(--ag-red);
    }

    .ag-list__bc strong {
        color: #171c20;
        font-weight: 800;
    }

.ag-list-hero {
    min-height: 275px;
    border-radius: 7px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(10,12,14,.94), rgba(10,12,14,.68), rgba(10,12,14,.22)), var(--ag-list-hero-bg, linear-gradient(120deg, #171c20, #4b5563));
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 42px 46px;
}

.ag-list-hero__content {
    max-width: 460px;
}

.ag-list-hero h1 {
    margin: 0;
    font-family: Montserrat, Roboto, Arial, sans-serif;
    font-size: 42px;
    line-height: .98;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

    .ag-list-hero h1 span {
        display: block;
    }

.ag-list-hero p {
    margin: 16px 0 0;
    color: #e2e7eb;
    line-height: 1.55;
    font-size: 15px;
}

.ag-list-tiles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 20px 0 24px;
}

.ag-list-tile {
    position: relative;
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 7px;
    min-height: 118px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

    .ag-list-tile:hover {
        border-color: rgba(228, 38, 38, .35);
        box-shadow: 0 10px 22px rgba(15,23,42,.08);
    }

.ag-list-tile__badge {
    position: absolute;
    left: 8px;
    top: 8px;
    background: var(--ag-red);
    color: #fff;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 900;
}

.ag-list-tile__img {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ag-list-tile__img img {
        max-width: 100%;
        max-height: 70px;
        object-fit: contain;
    }

.ag-list-tile strong {
    color: #171c20;
    text-align: center;
    font-size: 12.5px;
    font-weight: 900;
}

.ag-list__layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    position: relative;
}

.ag-list-filter {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 7px;
    scrollbar-width: thin;
    scrollbar-color: #151a1e transparent;
}

    .ag-list-filter::-webkit-scrollbar,
    .ag-check-list::-webkit-scrollbar {
        width: 5px;
    }

    .ag-list-filter::-webkit-scrollbar-track,
    .ag-check-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .ag-list-filter::-webkit-scrollbar-thumb,
    .ag-check-list::-webkit-scrollbar-thumb {
        background: #151a1e;
        border-radius: 999px;
    }

        .ag-list-filter::-webkit-scrollbar-thumb:hover,
        .ag-check-list::-webkit-scrollbar-thumb:hover {
            background: #0f1316;
        }

.ag-list-filter__head {
    position: sticky;
    top: 0;
    z-index: 4;
    min-height: 48px;
    padding: 0 14px;
    border-bottom: 1px solid #e7eaee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .ag-list-filter__head strong {
        color: #171c20;
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
    }

.ag-list-filter__close {
    display: none;
    border: 0;
    background: transparent;
    color: #171c20;
    font-size: 26px;
    cursor: pointer;
}

.ag-list-filter__form {
    padding: 0 14px 0;
}

.ag-fsec {
    border-bottom: 1px solid #edf0f2;
}

.ag-fsec__title {
    width: 100%;
    min-height: 48px;
    border: 0;
    background: transparent;
    color: #171c20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

    .ag-fsec__title svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
        transition: .16s ease;
    }

.ag-fsec:not(.is-open) .ag-fsec__title svg {
    transform: rotate(-90deg);
}

.ag-fsec__body {
    padding: 0 0 15px;
}

.ag-fsec:not(.is-open) .ag-fsec__body {
    display: none;
}

.ag-check-list {
    display: grid;
    gap: 9px;
    max-height: 245px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #151a1e transparent;
}

.ag-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    cursor: pointer;
    font-size: 12.5px;
}

    .ag-check input {
        width: 14px;
        height: 14px;
        accent-color: var(--ag-red);
    }

    .ag-check span {
        flex: 1;
        min-width: 0;
    }

    .ag-check small {
        color: #7b848c;
        font-size: 11px;
    }

.ag-color-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ag-color-filter__item {
    position: relative;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

    .ag-color-filter__item input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .ag-color-filter__item span {
        width: 22px;
        height: 22px;
        border-radius: 999px;
        border: 1px solid #d4d8dd;
        display: block;
    }

    .ag-color-filter__item input:checked + span {
        outline: 2px solid var(--ag-red);
        outline-offset: 2px;
    }

.ag-price-range__sliders {
    position: relative;
    height: 30px;
    margin: 4px 0 14px;
}

.ag-price-range__track,
.ag-price-range__progress {
    position: absolute;
    left: 0;
    right: 0;
    top: 13px;
    height: 4px;
    border-radius: 999px;
}

.ag-price-range__track {
    background: #e1e5e9;
}

.ag-price-range__progress {
    background: var(--ag-red);
}

.ag-price-range__sliders input[type="range"] {
    position: absolute;
    left: 0;
    top: 5px;
    width: 100%;
    height: 20px;
    margin: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

    .ag-price-range__sliders input[type="range"]::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
        border: 3px solid var(--ag-red);
        background: #fff;
        border-radius: 999px;
        cursor: pointer;
        pointer-events: auto;
        appearance: none;
        -webkit-appearance: none;
        box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
    }

    .ag-price-range__sliders input[type="range"]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border: 3px solid var(--ag-red);
        background: #fff;
        border-radius: 999px;
        cursor: pointer;
        pointer-events: auto;
        box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
    }

    .ag-price-range__sliders input[type="range"]::-webkit-slider-runnable-track {
        height: 4px;
        background: transparent;
    }

    .ag-price-range__sliders input[type="range"]::-moz-range-track {
        height: 4px;
        background: transparent;
    }

.ag-price-range__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

    .ag-price-range__inputs input {
        width: 100%;
        height: 38px;
        border: 1px solid #e0e4e8;
        border-radius: 4px;
        padding: 0 10px;
        outline: 0;
        color: #171c20;
        font-size: 12px;
        font-weight: 800;
    }

        .ag-price-range__inputs input:focus {
            border-color: var(--ag-red);
            box-shadow: 0 0 0 2px rgba(228, 38, 38, .12);
        }

.ag-list-filter__actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: grid;
    gap: 9px;
    margin: 0 -14px;
    padding: 14px;
    background: #fff;
    border-top: 1px solid #e7eaee;
    box-shadow: 0 -10px 22px rgba(15, 23, 42, .06);
}

    .ag-list-filter__actions button,
    .ag-list-filter__actions a {
        height: 40px;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .ag-list-filter__actions button {
        border: 0;
        background: var(--ag-red);
        color: #fff;
        cursor: pointer;
    }

    .ag-list-filter__actions a {
        border: 1px solid #e0e4e8;
        color: #171c20;
        background: #fff;
    }

.ag-list-filter__empty {
    color: #6b7280;
    font-size: 13px;
    padding: 18px 0;
}

.ag-list__content {
    min-width: 0;
}

.ag-list-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

    .ag-list-head h2 {
        margin: 0;
        color: #171c20;
        font-family: Montserrat, Roboto, Arial, sans-serif;
        font-size: 30px;
        font-weight: 900;
    }

    .ag-list-head p {
        max-width: 720px;
        margin: 6px 0 12px;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.55;
    }

    .ag-list-head strong {
        color: #171c20;
        font-size: 12px;
        font-weight: 900;
    }

.ag-filter-open {
    display: none;
    align-self: flex-start;
    border: 1px solid #e0e4e8;
    background: #fff;
    border-radius: 5px;
    height: 38px;
    padding: 0 12px;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-weight: 900;
}

    .ag-filter-open svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    .ag-filter-open span {
        background: var(--ag-red);
        color: #fff;
        border-radius: 999px;
        padding: 1px 6px;
        font-size: 10px;
    }

.ag-toolbar {
    min-height: 50px;
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 7px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.ag-toolbar__summary {
    color: #6b7280;
    font-size: 12px;
}

.ag-toolbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ag-sort-form select {
    height: 36px;
    min-width: 170px;
    border: 1px solid #e0e4e8;
    background: #fff;
    border-radius: 4px;
    padding: 0 12px;
    outline: 0;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
}

.ag-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

    .ag-active-filters a {
        min-height: 30px;
        padding: 7px 10px;
        border-radius: 4px;
        background: #fff;
        border: 1px solid #e0e4e8;
        color: #4b5563;
        font-size: 12px;
        font-weight: 800;
    }

        .ag-active-filters a:hover {
            border-color: var(--ag-red);
            color: var(--ag-red);
        }

.ag-active-filters__clear {
    margin-left: auto;
}

#agProductsSlot {
    position: relative;
}

    #agProductsSlot::after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 10px;
        background: rgba(244, 245, 246, .72);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
        z-index: 3;
    }

.ag-list.is-loading #agProductsSlot::after {
    opacity: 1;
}

.ag-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    transition: opacity .18s ease, filter .18s ease;
}

.ag-list.is-loading .ag-products {
    opacity: .38;
    filter: blur(1px);
}

.ag-products.is-entering {
    animation: agProductsIn .28s ease both;
}

@keyframes agProductsIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ag-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 34px 0 6px;
}

    .ag-pagination a,
    .ag-pagination span {
        width: 36px;
        height: 36px;
        border: 1px solid #e0e4e8;
        background: #fff;
        color: #4b5563;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 13px;
    }

        .ag-pagination a.is-active {
            background: var(--ag-red);
            border-color: var(--ag-red);
            color: #fff;
        }

        .ag-pagination a.is-disabled {
            opacity: .45;
            pointer-events: none;
        }

.ag-list-empty {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 7px;
    padding: 50px 24px;
    text-align: center;
}

    .ag-list-empty h3 {
        margin: 0 0 8px;
        color: #171c20;
        font-size: 20px;
        font-weight: 900;
    }

    .ag-list-empty p {
        color: #6b7280;
    }

    .ag-list-empty a {
        display: inline-flex;
        margin-top: 14px;
        height: 38px;
        padding: 0 16px;
        align-items: center;
        border-radius: 4px;
        background: var(--ag-red);
        color: #fff;
        font-weight: 900;
    }

.ag-buying-guide {
    margin: 34px 0 26px;
    border-radius: 7px;
    background: linear-gradient(90deg, rgba(13,16,19,.96), rgba(13,16,19,.80), rgba(13,16,19,.65)), linear-gradient(120deg, #171c20, #4b5563);
    color: #fff;
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 34px;
    padding: 34px;
}

.ag-buying-guide__content span {
    display: block;
    color: var(--ag-red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ag-buying-guide__content h2 {
    margin: 0;
    max-width: 420px;
    font-family: Montserrat, Roboto, Arial, sans-serif;
    font-size: 28px;
    font-weight: 900;
}

.ag-buying-guide__content p {
    color: #d5dbe0;
    line-height: 1.55;
    max-width: 430px;
}

.ag-buying-guide__content a {
    display: inline-flex;
    height: 38px;
    align-items: center;
    padding: 0 16px;
    border-radius: 4px;
    background: #fff;
    color: #171c20;
    font-size: 12px;
    font-weight: 900;
}

.ag-buying-guide__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: center;
}

    .ag-buying-guide__items div {
        border-left: 1px solid rgba(255,255,255,.12);
        padding-left: 18px;
    }

    .ag-buying-guide__items strong {
        display: block;
        color: #fff;
        font-weight: 900;
        margin-bottom: 7px;
    }

    .ag-buying-guide__items small {
        color: #c9d0d6;
        line-height: 1.45;
    }

.ag-recent {
    margin: 0 0 34px;
}

.ag-recent__head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

    .ag-recent__head h2 {
        margin: 0;
        color: #171c20;
        font-size: 18px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .ag-recent__head a {
        color: #4b5563;
        font-size: 12px;
        font-weight: 900;
    }

.ag-recent__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.ag-recent-card {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 7px;
    padding: 10px;
}

    .ag-recent-card span {
        height: 85px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ag-recent-card img {
        max-width: 100%;
        max-height: 85px;
        object-fit: contain;
    }

    .ag-recent-card strong {
        display: block;
        color: #7b848c;
        font-size: 10px;
        text-transform: uppercase;
        margin-top: 7px;
    }

    .ag-recent-card em {
        display: block;
        color: #171c20;
        font-style: normal;
        font-size: 12px;
        font-weight: 800;
        min-height: 32px;
    }

    .ag-recent-card b {
        display: block;
        color: var(--ag-red);
        font-size: 13px;
        margin-top: 5px;
    }

.ag-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.58);
    z-index: 130;
    display: none;
}

@media (max-width: 1180px) {
    .ag-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ag-list-tiles {
        grid-template-columns: repeat(3, 1fr);
    }

    .ag-recent__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ag-buying-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .ag-list__layout {
        grid-template-columns: 1fr;
    }

    .ag-list-filter {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(360px, 88vw);
        max-height: none;
        z-index: 140;
        border-radius: 0;
        transform: translateX(-105%);
        transition: .2s ease;
        overflow-y: auto;
    }

    body.ag-filter-open .ag-list-filter {
        transform: translateX(0);
    }

    body.ag-filter-open .ag-filter-backdrop {
        display: block;
    }

    .ag-list-filter__close {
        display: inline-flex;
    }

    .ag-filter-open {
        display: inline-flex;
    }

    .ag-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ag-toolbar__right {
        width: 100%;
        justify-content: flex-end;
    }

    .ag-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ag-buying-guide__items {
        grid-template-columns: 1fr;
    }

        .ag-buying-guide__items div {
            border-left: 0;
            padding-left: 0;
            border-top: 1px solid rgba(255,255,255,.12);
            padding-top: 14px;
        }
}

@media (max-width: 620px) {
    .ag-list-hero {
        min-height: 225px;
        padding: 28px;
    }

        .ag-list-hero h1 {
            font-size: 31px;
        }

    .ag-list-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .ag-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ag-recent__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ag-sort-form select {
        min-width: 145px;
    }
}
.ag-brand-page {
    background: #f4f5f6;
    padding: 18px 0 38px;
}

.ag-list-hero--brands {
    margin-bottom: 24px;
}

.ag-brand-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.ag-brand-card {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
}

    .ag-brand-card:hover {
        border-color: rgba(228, 38, 38, .35);
    }

.ag-brand-card__media {
    height: 110px;
    background: #f7f8fa;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

    .ag-brand-card__media img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.ag-brand-card strong {
    display: block;
    margin-top: 13px;
    color: #171c20;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .ag-brand-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .ag-brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ag-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}