/* =========== test ============ */

.disclaimer-wrapper {
	background: var( --sec-color );
	overflow: hidden;
	white-space: nowrap; 
	position: relative;
	cursor: grab; 
	padding: 0.5rem 2rem 0.5rem 0.5rem;
}

.disclaimer-track {
	display: inline-flex;
	will-change: transform;
}

.disclaimer-text {
	/*background:lime;
	display:block;
	width:100%;*/
	font-size:1.1rem;
	font-style:italic;
	padding-right: 20px
}

@media (min-width: 767px) {
	
	.disclaimer-text {
		padding-right: 20%
	}
	
}

html body .disclaimer-wrapper:after{
	content:'';
	width:30px;
	height:100%;
	background: var( --sec-color );
	position:absolute;
	right:0;
	top:0
}

html body .disclaimer-wrapper button.disclaimer-close{
	background: var( --sec-color );
	font-size:1.5rem;
	
	width: 2.5rem;
	height:2.5rem;
	line-height:2.5rem;
	
	position: absolute;
	right: 0;
	top: 50%;
	transform:translateY(-50%);
	z-index:2;
 
	border: none !important;
	border-radius:50%;
	overflow:hidden;
	cursor: pointer;
	
	transition: transform 0.3s ease;
	transform-origin: center center;
	
}

html body .disclaimer-wrapper button.disclaimer-close:hover {
	transform:translateY(-50%) rotate(90deg)
}

/* =========== end test ============ */ 

#line-1 {
	position: relative;
	padding: 0;
}

#line-1 #fix-boxes .row {
	padding: 0 8px;
	margin-bottom: 1rem
}

#line-1 #fix-boxes .col-6.col-md-3 {
	padding: 0;
}

/* Обединени стилове за .ex */
#line-1 #fix-boxes .row .ex {
	background: rgba(255, 255, 255, .6);
	padding: 6px 8px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: var( --global-border-width ) solid var(--border-color);
	margin: 8px;

	min-height: 68px;
	transition: all .3s ease;
	flex-wrap: nowrap;
}

/* Hover ефект */
#line-1 #fix-boxes .ex:hover {
	transform: translateY(-4px) scale(1.03);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	background: rgba(255, 255, 255, .8);
}

/* Текст в .ex */
#line-1 #fix-boxes .ex p {
	font-family: var(--main-font);
	font-size: 1.3rem;
	font-style: normal;
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
}

/* Икони */
#line-1 #fix-boxes .ex i {
	margin-right: 12px;
}

#line-1 .ex i img {
	display: block;
	width: 100%;
	max-width: 51px;
	height: auto;
	object-fit: cover;

}



/* ===================== LINE 2 ================ */

#line-2 {
	background: var(--sec-color);
	position: relative;
}

.r-carusel.container {
	padding-left: 0;
	padding-right: 0;
	overflow: hidden
}

.offers-header {
	position: relative;
	margin-bottom: 20px;
}

.offers-header h2 {
	flex-grow: 1;
	text-align: center;
}

.offers-arrows {
	gap: 10px;
}

.r-carusel .offers-arrows svg {
	width: 100%;
	height: auto;
	display: block
}

.offers-arrows .swiper-button-prev,
.offers-arrows .swiper-button-next {
	width: 40px;
	height: 40px;
	background: #fff;
	border: solid var( --global-border-width ) var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.offers-arrows svg {
	width: 20px;
	height: 20px;
	color: #333;
}

.offers-arrows>div:hover svg path {
	fill: #fff
}

.offers-arrows>div:hover {
	background-color: var(--main-color);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.swiper-button-prev::after,
.swiper-rtl .swiper-button-next::after,
.swiper-button-next::after,
.swiper-rtl .swiper-button-prev::after {
	display: none;
	content: '';
}

.swiper-button-prev,
.swiper-button-next {
	position: static;
	margin: 0;
	transform: none
}


.shop-card .row.btns div.col .btn {
	width: calc(100% - 8px) !important
}
/*
.shop-card .front .price .col {
	max-width: 50%;
}*/

/* ===================== LINE 3 ================ */

/* ============================================================================== #filters */

#filters {
	font-size: 1rem;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 3rem 1.5rem 1.5rem;
	border: solid var( --global-border-width ) var(--border-color);
	border-radius: 12px;
}

#filters h3 {
	margin-bottom: 1rem
}

#filters .row .col-title {
	width: 150px;
	max-width: 150px
}

.slider {
	margin: 0 10px;
}

.noUi-horizontal {
	height: 8px;
}

.noUi-handle {
	width: 20px;
	height: 20px;
	top: -6px;
}

.noUi-connect {
	background: var(--sec-color);
}

#filters .noUi-horizontal .noUi-handle {
	margin-top: -5px
}

#filters .noUi-horizontal .noUi-handle:hover {
	background: var(--sec-color);
}

.noUi-handle::after,
.noUi-handle::before {
	background: var(--border-color);
}

#filters * {
	border-color: var(--border-color);
}

#filters #brands {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	/* 150px минимум, равномерно разпъване */
	gap: 5px 10px;
}

#filters #brands .form-check {
	margin: 0;
}

/* ====================== */

#filters .btn.btn-primary {
	background-color: transparent;
	position: relative;
}

#filters .btn.btn-primary::before {
	z-index: 0;
}

#filters .btn.btn-primary::after {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
}

#filters .btn.btn-primary:hover:after {
	opacity: 0;
}

#filters .btn.btn-primary span {
	position: relative;
	z-index: 2;
}

#filters #filters-form #brands.col label.form-check-label{
	font-size:1rem;
}

#active-filters span.badge{
	font-size:14px

}

@media (min-width: 992px) {
	#filters .btn.min-width {
		min-width: 250px
	}
}

#filters hr {
	border-width: 1px;
	opacity: 1
}

@media (max-width: 767px) {
	#filters {
		flex-direction: column;
		padding: 2rem 1rem;
	}

	#filters .container {
		padding: 0;
	}

	#filters h3 {
		text-align: center;
		margin-bottom: 1rem;
	}

	#filters .row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	#filters .col-title {
		width: 100%;
		max-width: 100%;
		margin-bottom: 0.25rem;
		font-weight: 600;
	}

	#filters #brands {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 5px;
	}

	#filters .form-check {
		margin-bottom: 0.25rem;
	}

	#filters input[type="number"] {
		width: 100% !important;
		margin-bottom: 0.5rem;
	}

	#filters .slider {
		width: 100% !important;
		margin: 0 0 1rem 0;
	}

	#filters .btn.min-width {
		width: 100%;
		text-align: center;
		min-width: unset;
	}

	#filters hr {
		margin: 1rem 0;
	}
}


/* ============================================================================== end #filters */

section#brands,
#filters{
	background:white
}

/* ===================== LINE 4 ================ */

.sec-line {
	font-family: var(--sec-font);
	font-size: 1rem;
	background: var(--sec-color);
}

.tri-line{
	font-family: var(--sec-font);
	font-size: 1rem;
	background: var(--tri-color);
}

@media (min-width: 767px) {
 
	#line-1 #fix-boxes {
		position: absolute;
		bottom: 10px;
		left: 50%;
		transform: translateX(-50%);
		width: 100%;
	}

	#line-1 #fix-boxes .col-6.col-md-3 .ex {
		justify-content: center;
	}
 	
	.swiper.r-shop {
		margin-right: -20px;
	}
}


@media (max-width: 767px) {

	#line-1 #fix-boxes .col-6.col-md-3-6 {
		flex: 1 1 45%;
	}

	#line-1 #fix-boxes .row {
		width: 100%;
		display: flex; 
		padding: 16px;
		gap:8px;
		scroll-padding-left: 12px;
		align-items: stretch; 
		min-height: 86px;
		margin: 0;
	}

 
	#line-1 #fix-boxes .col-6.col-md-3 {
		flex: 0 0 auto;
		width: 70%;
		max-width: 250px;
		display: flex;
	}

	#line-1 #fix-boxes .col-6.col-md-3 .ex {
		flex: 1;
		min-height: 80px;
		display: flex;
		align-items: center;

		margin: 0;
		padding: 4px 6px;
	}

	#line-1 #fix-boxes .col-6.col-md-3 .ex p {
		font-size: 1rem;
	}
	
	/* =================/ new /===================== */

	#line-1 {
		padding: 0 
	}
	#line-1 .flex.position-relative{
		height:100%; 
	}
	
	
	#line-1 .position-relative img.w-100 {
		height:100%;
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		object-fit: cover;
		z-index:-1
	}

	#line-1 #fix-boxes { 
		padding: 0;
		width: 100%;
		max-width: calc(100%-30px);
	}

	#line-1 #fix-boxes {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	/* ================ HOME LINE 4 =================== */
	
	#line-4 h2{
		text-align:center
	}
}

/* ====================== FILTERS ============================== */

@media (max-width: 992px) {

	#filters {
		flex-direction: column;
		margin-left: 1rem;
		margin-right: 1rem;
		padding: 1rem !important;
		max-width: calc(100% - 2rem);
		position: relative;
	}
}

@media (max-width: 767px) {


	#filters .row[data-slider] {
		padding: 0 10px;
		/* вътрешен padding за реда */
	}

	#filters .slider {
		width: 100%;
		/* остава 100%, но padding на родителя го държи вътре */
		margin-bottom: 1rem;
	}

	#filters .container {
		padding: 0;
	}

	#filters h3 {
		text-align: center;
		margin-bottom: 1rem;
	}

	#filters .row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	#filters .row .col-title {
		text-decoration:underline;
		font-weight: 600;
		width: 100%;
		max-width: 100%;
		margin-bottom: 0.25rem;
		
	}

	#filters #brands {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 5px;
	}

	#filters .form-check {
		margin-bottom: 0.25rem;
	}

	#filters input[type="number"] {
		width: 100% !important;
		margin-bottom: 0.5rem;
	}

	#filters .slider {
		width: 100% !important;
		margin: 0 0 1rem 0;
	}

	#filters .btn.min-width {
		width: 100%;
		text-align: center;
		min-width: unset;
	}

	#filters hr {
		margin: 1rem 0;
	}

	#filters .row.tipe {
		flex-direction: row;
		gap: 0
	}
/*
	#filters .row.tipe .col-title {
		max-width: 60px;
	}*/
}