
/* ============================================
   STOCK SECTION — автомобили в наличии
   ============================================ */

/* .stock-section {
	padding: 60px 0 80px;
} */



.stock-section .container {
	background-color: var(--color-secondary);
    padding: 40px;
    box-shadow: 0px 2px 4px 0px #30171726;
    border-radius: 32px;
}


/* ---- Заголовок секции ---- */
.stock-section-title-block {
    display: flex;
    flex-direction: column;
	align-items: center;
	justify-content: center;
    gap: 30px;
}
.stock-heading-wrapper {
	display: flex;
    flex-direction: column;
	align-items: center;
	justify-content: center;
}
.stock-section .section-title {
    text-align: center;
}

.stock-heading {
	font-family: 'Jura', sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #111;
	margin: 0;
	text-align: center;
}

.stock-heading-line {
	display: block;
	height: 2px;
	width: 80px;
	background: #e1183a;
}

.stock-heading-line--left,
.stock-heading-line--right {
	/* стили наследуются от .stock-heading-line */
}


/* ---- Фильтры ---- */
.stock-filters {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

/* ---- Сетка карточек ---- */
/* .stock-grid {
	display: grid;
	grid-template-columns: repeat(3, 487px);
	gap: 24px;
	justify-content: center;
	width: 100%;
	margin: 0 auto;
} */

.stock-switcher {
    display: flex;
	align-items: center;
	background-color: #D1CBC8;
	padding: 4px;
	border-radius: 100px;
}
.stock-switcher-card {
    transition: var(--transition);
	border-radius: 100px;
	height: 40px;
	padding: 14px 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.stock-switcher-card.active {
	background-color: #F6F0ED;
    box-shadow: 0px 2px 4px 0px #00000026;

}
.stock-switcher-card-brand {
	height: 12px;
	width: auto;
	object-fit: contain;
    transition: var(--transition);
    opacity: 0.6;
}
.stock-switcher-card.active .stock-switcher-card-brand {
    opacity: 1;
}

.stock-load-more--hidden {
	display: none !important;
	opacity: 0;
	pointer-events: none;
}

/* ============================================
   CARDS — карточки автомобилей
   ============================================ */

.cars-in-stock__card {
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.cars-in-stock__card--visible {
	display: flex;
	opacity: 1;
	animation: stockCardFadeIn 0.4s ease;
}

.cars-in-stock__card--hidden {
	display: none;
	opacity: 0;
}

@keyframes stockCardFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.cars-in-stock__card.filtered-visible {
    display: block;
}

/* Карточки, которые НЕ прошли фильтр */
.cars-in-stock__card.filtered-hidden {
    display: none !important;
}

/* Карточки, которые скрыты по пагинации (но прошли фильтр) */
.cars-in-stock__card.card-hidden {
    display: none !important;
}

/* Карточки, которые видны на текущей странице */
.cars-in-stock__card.card-visible {
    display: flex;
}

/* Кнопка "Показать ещё" */
.stock-load-more.hidden {
    display: none;
}



.products_grid {
	display: grid;
	gap: 40px;
	grid-template-columns: repeat(4, 1fr);
}
.product {
	min-width: 0;
}

.product_top {
	position: relative;
	overflow: hidden;
	width: 100%;
    border-radius: 12px;
    background-color: #3e3a39;
}
.product_swiper {
	width: 100%;
	max-width: 100%;
}
.product_swiper .swiper-slide {
	display: flex;
    height: 250px;
    max-width: 290px;
}
.product_swiper .swiper-slide img {
	width: 100%;
	height: 250px;

	object-fit: cover;
}
.product_swiper .swiper-pagination {

	max-width: max-content;
	
    
    left: auto !important;
    right: 12px;
    transform: none !important;
}
.product_swiper .swiper-pagination-bullet {
	/* margin: 0 !important; */
	/* width: 5px;
	height: 5px; */
	border-radius: 30px;
	opacity: 0.5;
	background-color: #353130;
	transition: var(--transition);
}
.product_swiper .swiper-pagination-bullet-active {
	/* width: 20px; */
	opacity: 1;
    background-color: #353130;
}

.product_prev,
.product_next {
	position: absolute;
	top: 50%;
	transform: translate(0, -50%);
	z-index: 2;
	cursor: pointer;

    display: none;
}
.product_prev {
	left: 10px;
	transform: translate(0, -50%) rotate(180deg);
}
.product_next {
	right: 10px;
}

.product_bottom {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 28px;
}


.product_title {
	font-size: 17px;
	line-height: 100%;
    font-weight: 700;
    margin-bottom: 12px;
}

.product__payment {
    position: absolute;
    top: 0;
    left: 12px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background-color: #CADBB8;
    border-radius: 100px;
    padding: 6px 12px;
    color: #1C5823;
    font-size: 15px;
    font-weight: 700;
    z-index: 1;
    overflow: hidden;
    border: 3px solid var(--color-secondary);
}



.product_price {
	display: flex;
    flex-direction: column;
	gap: 8px;
    letter-spacing: -0.02em;
}
.product_new_price {
	font-size: 23px;
    font-weight: 700;
}
.product_old_price {
    font-size: 17px;
    font-weight: 400;
    color: #78716F;
}



.stock-load-more {
	display: flex;
	margin: 40px auto 0;
	background-color: #D1CBC8;
    font-size: 17px;
    font-weight: 700;
    width: 100%;
}




/* Селекты */
.stock-filters {
	flex: none;
	width: fit-content;
	display: flex;
	align-items: center;
	gap: 40px;
}

.stock-section .stock-filters .ss-main {
	width: 232px;
	min-height: 35px;
	height: 35px;
	background: transparent;
	border: 1px solid #D1CBC8;
	border-radius: 8px;
    padding: 0 12px;
}

.stock-section .stock-filters .ss-main:focus {
	box-shadow: none;
}

.stock-section .ss-main .ss-values .ss-placeholder,
.stock-section .ss-main .ss-values .ss-single {
	margin: auto 0;
	padding: 0;
    height: fit-content;
	color: #353130;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.stock-section .ss-content .ss-list .ss-option:not(.ss-disabled):hover,
.stock-section .ss-content .ss-list .ss-option.ss-highlighted,
.stock-section .ss-content .ss-list .ss-option:not(.ss-disabled).ss-selected {
	background: var(--color-primary);
	color: #ffffff !important;
}

.stock-section .ss-new-arrow {
	transition: transform 0.3s ease;
}

.stock-section .ss-new-arrow-wrap {
	width: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 8px;
}

.stock-section .ss-main.ss-open-below .ss-new-arrow {
	transform: rotate(180deg);
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 1600px) {
    
}

@media (max-width: 1100px) {
	
}

@media (max-width: 992px) {
    .stock-section .container {
        padding: 16px;
        border-radius: 24px;
    }
	.stock-filters {
		flex-direction: column;
		gap: 12px;
		margin-bottom: 0;
        width: 100%;
	}
    .stock-switcher {
		margin-top: 12px;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
        width: 100%;
	}
	.stock-switcher-card {
		padding: 10px;
	}
    .stock-switcher-card-brand {
        height: 8px;
    }
    .stock-section .stock-filters .ss-main {
        width: 100%;
    }

    .stock-section-title-block {
        margin-bottom: 30px;
    }


	.products_grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
    .product_swiper .swiper-slide {
        max-width: 100%;
    }
    .product__payment {
        font-size: 13px;
    }
    .product_price {
        gap: 4px;
    }
    .product_title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .product_new_price {
        font-size: 19px;
    }
   
    .stock-load-more {
        width: 100%;
        margin: 32px auto 0;
    }

    .product_prev,
    .product_next {
        display: none;
    }
}
