.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.filter-head .material-symbols-outlined {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    font-size: 0;
    line-height: 1;
    color: transparent;
}

.filter-head .material-symbols-outlined::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #5a5a5a;
    border-bottom: 2px solid #5a5a5a;
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform 0.18s ease;
}

.filter-block.is-open .filter-head .material-symbols-outlined::before {
    transform: translate(-50%, -40%) rotate(-135deg);
}

.inventory-page {
    background: #f5f5f5;
}

.inventory-layout {
    margin-top: 118px;
    align-items: flex-start;
}

.inventory-sidebar {
    width: 100%;
}

.inventory-filters {
    background: #ececec;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 14px 12px 12px;
    color: #232323;
    font-family: "Inter", sans-serif;
    position: sticky;
    top: 108px;
}

.inventory-filters h2 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2b2b2b;
}

.filter-block {
    border-top: 1px solid #d4d4d4;
    padding: 12px 0;
}

.filter-block-search {
    border-top: 0;
    padding-top: 2px;
}

.filter-block:first-of-type {
    border-top: 0;
    padding-top: 2px;
}

.filter-head {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #2b2b2b;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.filter-head .material-symbols-outlined {
    width: 18px;
    height: 18px;
    font-size: 0;
    line-height: 1;
    color: transparent;
}

.filter-block:not(.filter-block-search) .filter-body {
    display: none;
}

.filter-block.is-open .filter-body {
    display: grid;
}

.filter-block-search input {
    width: 100%;
    height: 36px;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    background: #f7f7f7;
    color: #535353;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    padding: 0 10px;
    outline: none;
}

.filter-body {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.07rem;
    line-height: 1.1;
    color: #383838;
    font-weight: 500;
}

.filter-option input {
    width: 15px;
    height: 15px;
    border: 1px solid #c9c9c9;
    border-radius: 3px;
    accent-color: #262626;
}

.filter-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-input-row select,
.filter-input-row input {
    width: 100%;
    height: 34px;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    background: #f7f7f7;
    color: #535353;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    padding: 0 10px;
    outline: none;
}

.clear-filters-btn {
    margin-top: 6px;
    width: 100%;
    height: 38px;
    border: 1px solid #bcbcbc;
    border-radius: 6px;
    background: #fafafa;
    color: #2a2a2a;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.inventory-results {
    min-width: 0;
}

.inventory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.inventory-segments {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.segment-btn {
    border: 1px solid #c9c9c9;
    background: #f8f8f8;
    color: #323232;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.segment-btn.is-active {
    background: #272727;
    color: #ffffff;
    border-color: #272727;
}

.view-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn {
    border: 1px solid #d5d5d5;
    background: #efefef;
    color: #323232;
    height: 40px;
    width: 46px;
    padding: 0;
    border-radius: 2px;
    display: grid;
    place-items: center;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.view-btn.is-active {
    border-color: #1f1f1f;
    background: #f5f5f5;
}

.view-btn svg {
    width: 22px;
    height: 22px;
}

.view-btn svg rect,
.view-btn svg line {
    stroke: #1d1d1d;
    stroke-width: 1.8;
    fill: none;
}

.view-btn svg .icon-accent {
    fill: #d48a37;
    stroke: none;
}

.inventory-summary {
    margin: 12px 0 16px;
    color: #545454;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.inventory-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.inventory-card {
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.inventory-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #d5d5d5;
    position: relative;
}

.inventory-sold-ribbon {
    position: absolute;
    top: 14px;
    left: -38px;
    min-width: 150px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d10f0f;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: rotate(-45deg);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.inventory-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.inventory-card:hover .inventory-card-media img {
    transform: scale(1.03);
}

.inventory-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.inventory-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.inventory-card-top h3 {
    margin: 0;
    flex: 1;
    color: #1f1f1f;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.inventory-card-price {
    white-space: nowrap;
    color: #272727;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
}

.inventory-card-finance {
    display: grid;
    gap: 2px;
    margin-top: -2px;
}

.inventory-card-finance p {
    margin: 0;
    font-family: "Inter", sans-serif;
    line-height: 1.25;
}

.inventory-card-finance-main {
    color: #0a63b4;
    font-size: 0.83rem;
    font-weight: 800;
}

.inventory-card-finance-down {
    color: #1a4f83;
    font-size: 0.79rem;
    font-weight: 700;
}

.inventory-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.inventory-card-meta span {
    background: #f0f0f0;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    padding: 4px 8px;
    color: #4f4f4f;
    font-family: "Inter", sans-serif;
    font-size: 0.74rem;
    line-height: 1;
    font-weight: 700;
}

.inventory-card-engine {
    margin: 0;
    color: #5c5c5c;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 600;
}

.inventory-card-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    border: 1px solid #272727;
    border-radius: 6px;
    background: #272727;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 0.83rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}

.inventory-cards.list-view {
    grid-template-columns: 1fr;
}

.inventory-cards.list-view .inventory-card {
    grid-template-columns: minmax(220px, 290px) 1fr;
    grid-template-rows: 1fr;
}

.inventory-cards.list-view .inventory-card-media {
    aspect-ratio: auto;
    height: 100%;
}

.inventory-cards.list-view .inventory-card-body {
    padding: 18px;
}

.inventory-empty {
    margin: 16px 0 0;
    color: #5a5a5a;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
}

.inventory-pagination {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.page-btn.is-active {
    background: #272727;
    border-color: #272727;
    color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1320px) {
    .inventory-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .inventory-layout {
        margin-top: 170px;
    }

    .inventory-filters {
        position: relative;
        top: 0;
    }
}

@media (max-width: 900px) {
    .inventory-cards {
        grid-template-columns: 1fr;
    }

    .inventory-cards.list-view .inventory-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
}

@media (max-width: 760px) {
    .inventory-layout {
        margin-top: 108px;
    }
}