.stock-catalog {
    max-width: 1275px;
    margin: 0 auto;
    padding: 56px 24px 64px;
    color: #463e3a;
}

.stock-catalog#cars__list {
    display: block;
    max-width: 1275px;
    padding: 56px 24px 64px;
}

.stock-catalog [hidden] {
    display: none !important;
}

.stock-catalog__header {
    max-width: 780px;
    margin-bottom: 32px;
}

.stock-catalog__title,
.stock-catalog__model-title {
    margin: 0;
    color: #463e3a;
    font-weight: 700;
    text-transform: uppercase;
}

.stock-catalog__title {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.stock-catalog__intro {
    margin: 12px 0 0;
    font-size: 19px;
    line-height: 1.45;
}

.stock-models {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.stock-model {
    min-width: 0;
}

.stock-model__button {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 360px;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    color: #463e3a;
    background: #f1efee;
    border: 1px solid #e3e0de;
    border-radius: 3px;
    text-align: left;
    text-transform: none;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.stock-model__button:hover {
    border-color: #014637;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .15);
    transform: translateY(-2px);
}

.stock-model__button:focus,
.stock-catalog__back:focus,
.stock-modification__cta:focus,
.stock-modification__gallery-nav:focus,
.stock-modification__gallery-viewport:focus,
.stock-modification__swatch:focus {
    outline: 3px solid #23429e;
    outline-offset: 3px;
}

.stock-model__media {
    display: flex;
    height: 236px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.stock-model__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stock-model__placeholder {
    color: #79716d;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.stock-model__body {
    display: flex;
    min-height: 124px;
    padding: 20px 22px;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
}

.stock-model__name {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.stock-model__meta {
    display: flex;
    margin-top: 14px;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
    font-size: 15px;
}

.stock-model__price {
    color: #014637;
    font-size: 21px;
    font-weight: 700;
}

.stock-catalog__toolbar {
    display: flex;
    margin-bottom: 26px;
    align-items: center;
    gap: 20px;
}

.stock-catalog__back {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 18px;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    color: #014637;
    background: #fff;
    border: 2px solid #014637;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
}

.stock-catalog__back:hover {
    color: #fff;
    background: #014637;
}

.stock-catalog__model-title {
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.15;
}

.stock-modifications {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.stock-modification {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd9d6;
    border-radius: 3px;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .08);
}

.stock-modification__gallery {
    background: #f7f6f5;
    border-bottom: 1px solid #e6e2df;
}

.stock-modification__gallery-viewport {
    position: relative;
    height: 292px;
    overflow: hidden;
    background: #fff;
}

.stock-modification__gallery-item {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.stock-modification__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stock-modification__gallery-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: inline-flex;
    width: 48px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: #014637;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(1, 70, 55, .24);
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
    transform: translateY(-50%);
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.stock-modification__gallery-nav span {
    margin-top: -11px;
    font-size: 37px;
    font-weight: 400;
    line-height: 1;
}

.stock-reviews {
    padding: 64px 24px;
    color: #463e3a;
    background: #f1efee;
}

.stock-reviews__inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.stock-reviews__title {
    margin: 0 0 24px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    text-align: center;
    text-transform: uppercase;
}

.stock-reviews__frame {
    display: block;
    width: 100%;
    height: 600px;
    border: 1px solid #e3e0de;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
}

.stock-reviews__link {
    display: inline-flex;
    min-height: 44px;
    margin-top: 16px;
    align-items: center;
    color: #014637;
    font-weight: 700;
}

.stock-reviews__link:hover {
    text-decoration: none;
}

.stock-modification__gallery-nav--prev {
    left: 16px;
}

.stock-modification__gallery-nav--next {
    right: 16px;
}

.stock-modification__gallery-nav:hover {
    color: #fff;
    background: #014637;
}

.stock-modification__gallery-nav:active {
    transform: translateY(-50%) scale(.96);
}

.stock-modification__gallery-page {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 12px;
    display: none;
    min-width: 48px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(39, 36, 34, .78);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.stock-modification__gallery.is-enhanced .stock-modification__gallery-page {
    display: block;
}

.stock-modification__colors {
    display: flex;
    min-height: 70px;
    padding: 12px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.stock-modification__color-caption {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.stock-modification__color-caption span {
    color: #79716d;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stock-modification__color-caption strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-modification__swatches {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.stock-modification__swatch {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 7px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.stock-modification__swatch:disabled {
    opacity: 1;
}

.stock-modification__swatch > span {
    display: block;
    width: 26px;
    height: 26px;
    background: var(--stock-swatch, #77746f);
    border: 1px solid rgba(48, 44, 42, .34);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
}

.stock-modification__swatch.is-metallic > span {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08) 0 42%, rgba(255, 255, 255, .68) 49%, rgba(255, 255, 255, .08) 57% 100%),
        var(--stock-swatch, #77746f);
}

.stock-modification__swatch[aria-pressed="true"] {
    background: #fff;
    border-color: #014637;
    box-shadow: 0 0 0 2px rgba(1, 70, 55, .12);
}

.stock-modification__swatch:not(:disabled):hover {
    background: rgba(1, 70, 55, .08);
}

.stock-modification__content {
    display: flex;
    padding: 24px;
    flex: 1 1 auto;
    flex-direction: column;
}

.stock-modification__heading {
    margin: 0;
    color: #463e3a;
    font-size: 25px;
    line-height: 1.2;
}

.stock-modification__generation {
    margin: 8px 0 0;
    color: #79716d;
    font-size: 13px;
    line-height: 1.4;
}

.stock-modification__purchase {
    display: flex;
    margin-top: 20px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.stock-modification__price {
    color: #014637;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
}

.stock-modification__regular-price {
    margin-top: 5px;
    color: #79716d;
    font-size: 13px;
}

.stock-modification__count {
    padding: 7px 11px;
    color: #014637;
    background: #eef4f1;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.stock-modification__specs {
    display: grid;
    margin: 22px 0 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.stock-modification__spec {
    min-width: 0;
    min-height: 68px;
    padding: 12px 14px;
    background: #f6f5f3;
    border: 1px solid #ece9e6;
    border-radius: 6px;
}

.stock-modification__spec--wide {
    grid-column: 1 / -1;
}

.stock-modification__spec-label,
.stock-modification__spec-value {
    display: block;
    margin: 0;
    text-align: left;
}

.stock-modification__spec-label {
    margin-bottom: 3px;
    color: #79716d;
    font-size: 11px;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.stock-modification__spec-value {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.stock-modification__cta {
    display: flex;
    width: 100%;
    min-height: 49px;
    margin-top: auto;
    padding: 11px 16px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #014637;
    border: 3px solid #014637;
    border-radius: 2px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.stock-modification__cta:hover {
    color: #014637;
    background: #fff;
}

.stock-catalog__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 32px;
    background: #f1efee;
    font-size: 18px;
    text-align: center;
}

@media (max-width: 950px) {
    .stock-models {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stock-modifications {
        gap: 20px;
    }
}

@media (max-width: 720px) {
    .stock-catalog {
        padding: 36px 15px 44px;
    }

    .stock-catalog#cars__list {
        padding: 36px 15px 44px;
    }

    .stock-catalog__header {
        margin-bottom: 24px;
    }

    .stock-catalog__intro {
        font-size: 16px;
    }

    .stock-models,
    .stock-modifications {
        grid-template-columns: 1fr;
    }

    .stock-model__button {
        min-height: 0;
    }

    .stock-model__media {
        height: 210px;
    }

    .stock-catalog__toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .stock-modification__gallery-viewport {
        height: 245px;
    }

    .stock-modification__content {
        padding: 20px 18px;
    }
}

@media (max-width: 420px) {
    .stock-models {
        gap: 15px;
    }

    .stock-model__media {
        height: 185px;
    }

    .stock-model__body {
        min-height: 112px;
        padding: 17px;
    }

    .stock-model__name {
        font-size: 22px;
    }

    .stock-model__meta,
    .stock-modification__purchase {
        align-items: flex-start;
        flex-direction: column;
    }

    .stock-modification__count {
        text-align: left;
    }

    .stock-modification__colors {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .stock-modification__color-caption strong {
        white-space: normal;
    }

    .stock-modification__swatches {
        justify-content: flex-start;
    }

    .stock-modification__gallery-nav--prev {
        left: 10px;
    }

    .stock-modification__gallery-nav--next {
        right: 10px;
    }

    .stock-modification__specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .stock-reviews {
        padding: 36px 15px 44px;
    }

    .stock-reviews__title {
        margin-bottom: 20px;
    }

    .stock-reviews__frame {
        height: 560px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stock-model__button,
    .stock-modification__gallery-nav,
    .stock-modification__swatch {
        transition: none;
    }
}
