.jantes-search {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    margin-bottom: 40px;
}

.jantes-search__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jantes-search__field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--main-background-color);
}

.jantes-search__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.jantes-results__count {
    margin-bottom: 20px;
    color: rgba(12, 12, 12, 0.7);
}

.jantes-condition-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.jantes-condition-filter__pill {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);

    color: var(--main-background-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition: 0.2s ease;
}

.jantes-condition-filter__pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.jantes-condition-filter__pill.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.jantes-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;

    margin: 0 0 50px;
    padding: 56px 24px;

    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fafafa;
}

@media screen and (max-width: 768px) {
    .jantes-empty-state {
        margin-bottom: 36px;
    }
}

.jantes-empty-state__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    border-radius: 50%;

    background: rgba(12, 12, 12, 0.06);
    color: rgba(12, 12, 12, 0.35);
}

.jantes-empty-state__icon svg {
    width: 28px;
    height: 28px;
}

.jantes-empty-state__text {
    max-width: 420px;
    color: rgb(80, 80, 80);
}

.jante-card {
    display: flex;
    flex-direction: column;

    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;

    background: #fff;
}

.jante-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2f2f2;
    color: rgba(12, 12, 12, 0.25);
}

.jante-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;

    padding: 4px 10px;
    border-radius: 999px;

    background: var(--primary-color);
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jante-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jante-card__media svg {
    width: 64px;
    height: 64px;
}

.jante-card__content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.jante-card__title {
    font-size: 16px;
    font-weight: 600;
}

.jante-card__specs {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;

    font-size: 13px;
    color: rgba(12, 12, 12, 0.65);
}

.jante-card__price {
    margin-top: auto;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.jante-card__price span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(12, 12, 12, 0.6);
}

.jante-card__actions {
    margin-top: auto;
    padding-top: 12px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jante-card__actions .card__cta {
    margin-top: 0;
}

.jante-card__details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #fff;

    color: rgba(12, 12, 12, 0.75);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
    transition: 0.2s ease;
}

.jante-card__details-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.jante-modal {
    position: fixed;
    inset: 0;
    margin: auto;

    padding: 0;
    border: none;
    border-radius: 16px;

    width: min(92vw, 720px);
    max-height: 85vh;

    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.jante-modal::backdrop {
    background: rgba(12, 12, 12, 0.6);
}

.jante-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: rgba(12, 12, 12, 0.7);

    cursor: pointer;
    transition: 0.2s ease;
}

.jante-modal__close svg {
    width: 18px;
    height: 18px;
}

.jante-modal__close:hover {
    background: #fff;
    color: var(--primary-color);
}

.jante-modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: min(560px, 85vh);
}

.jante-modal__media {
    position: relative;
    height: 100%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2f2f2;
    color: rgba(12, 12, 12, 0.25);
}

.jante-modal__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jante-modal__media svg {
    width: 96px;
    height: 96px;
}

.jante-modal__info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;

    height: 100%;
    overflow-y: auto;
}

.jante-modal__title {
    font-size: 20px;
    font-weight: 700;
}

.jante-modal__specs {
    list-style: none;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.jante-modal__specs li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jante-modal__specs span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(12, 12, 12, 0.5);
}

.jante-modal__specs strong {
    font-size: 14px;
    font-weight: 600;
}

.jante-modal__description {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(12, 12, 12, 0.7);
}

.jante-modal__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.jante-modal__price span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(12, 12, 12, 0.6);
}

.jante-modal__compat {
    padding: 12px;

    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fafafa;
}

.jante-modal__compat-heading {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(12, 12, 12, 0.5);
}

.jante-modal__compat details {
    font-size: 13px;
}

.jante-modal__compat details + details {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.jante-modal__compat summary {
    cursor: pointer;
    font-weight: 600;
    color: rgba(12, 12, 12, 0.85);
}

.jante-modal__compat ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: rgba(12, 12, 12, 0.65);
}

.jante-modal__info .primary-button {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 700px) {
    .jante-modal {
        width: 92vw;
    }

    .jante-modal__body {
        grid-template-columns: 1fr;
    }

    .jante-modal__media {
        min-height: 180px;
    }
}

.jantes-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 60px;
}

.jantes-pagination a,
.jantes-pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    text-decoration: none;
    color: var(--main-background-color);
}

.jantes-pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

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

@media (max-width: 600px) {
    .jantes-search {
        grid-template-columns: 1fr;
    }
}
