/* components.css */





/* header базовий */
.site-header{
	width:100%;
	background:#fff;
	border-bottom:1px solid #eee;
	}
	
	.top-bar{
	background:#f5f5f5;
	font-size:14px;
	}
	
	.top-bar-inner{
	display:flex;
	justify-content:space-between;
	padding:8px 0;
	}
	
	.main-header{
	padding:16px 0;
	}
	
	.main-header-inner{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:20px;
	}
	
	.logo img{
	height:60px;
	}
	
	.header-search{
	flex:1;
	max-width:600px;
	}
	
	.header-search input{
	width:100%;
	padding:10px;
	border:1px solid #ddd;
	border-radius:6px;
	}
	
	.main-navigation{
	background:#f2c94c;
	}
	
	.nav-inner{
	display:flex;
	align-items:center;
	gap:20px;
	}
	
	.main-menu ul{
	display:flex;
	gap:20px;
	}
	
	.main-menu a{
	font-weight:600;
	padding:14px 0;
	}

	.header-phones{
		display:flex;
		align-items:center;
		gap:20px;
		}
		
		.phones-left{
		display:flex;
		flex-direction:column;
		font-size:14px;
		}
		
		.phone-right{
		font-weight:600;
		}



/* main-header */
.main-header{
			background:#2f80ed;
			padding:18px 0;
			color:#fff;
			}
			
			.main-header-inner{
			display:flex;
			align-items:center;
			gap:30px;
			}
			
			.logo img{
			height:70px;
			}
			
			.header-search{
			flex:1;
			max-width:650px;
			}
			
				.header-search .search-wrapper{
			display:flex;
			width:100%;
			background:#fff;
			border-radius:6px;
			overflow:hidden;
			}
			
			.header-search input{
			flex:1;
			padding:12px 14px;
			border-radius:0;
			border:none;
			}
			
			.header-search .search-btn{
			display:inline-block;
			background:#ffd400;
			border:none;
			padding:0 22px;
			font-weight:700;
			cursor:pointer;
			white-space:nowrap;
			}
			
			.header-phones{
			display:flex;
			align-items:center;
			gap:20px;
			font-size:14px;
			}
			
			.phones-left{
			display:flex;
			flex-direction:column;
			}
			
			.phones-left a{
			color:#fff;
			}
			
			.phone-right a{
			font-weight:700;
			color:#fff;
			}
			
			.header-cart{
			margin-left:10px;
			}
			
			.cart-link{
			display:flex;
			align-items:center;
			gap:8px;
			color:#fff;
			font-weight:600;
			}
			
			.cart-icon{
			font-size:22px;
			}
			
			.cart-total{
			font-size:15px;
			}
			.main-navigation{
				background:#f2c94c;
				}
				
				.nav-inner{
				display:flex;
				align-items:center;
				gap:30px;
				}
				
				.main-menu{
				display:flex;
				gap:20px;
				}
				
				.main-menu a{
				display:block;
				padding:16px 0;
				font-weight:600;
				color:#222;
				}
				
				.main-menu a:hover{
				color:#fff;
				background:#2f80ed;
				padding-left:10px;
				padding-right:10px;
				border-radius:4px;
				}

				.site-header{
					position:sticky;
					top:0;
					z-index:100;
					background:#fff;
					}



.burger{
	display:none;
	font-size:26px;
	cursor:pointer;
	}

	.drawer-menu{
		position:fixed;
		top:0;
		left:0;
		width:100%;
		height:100%;
		display:none;
		z-index:200;
		}
		
		.drawer-overlay{
		position:absolute;
		width:100%;
		height:100%;
		background:rgba(0,0,0,0.5);
		}
		
		.drawer-content{
		position:absolute;
		left:0;
		top:0;
		height:100%;
		width:280px;
		background:#fff;
		padding:30px;
		overflow:auto;
		}
		
		.drawer-nav{
		display:flex;
		flex-direction:column;
		gap:15px;
		}
		
		.drawer-close{
		font-size:22px;
		margin-bottom:20px;
		}



		@media(max-width:1024px){

			.main-menu{
			display:none;
			}
			
			.burger{
			display:block;
			}
			
			.header-phones{
			display:none;
			}
			
			}




.header-search{
	position:relative;
	}
	
	#search-results{
	position:absolute;
	top:100%;
	left:0;
	width:100%;
	background:#fff;
	border:1px solid #eee;
	z-index:100;
	}
	
	.search-list{
	display:flex;
	flex-direction:column;
	}
	
	.search-item a{
	display:flex;
	align-items:center;
	gap:10px;
	padding:10px;
	border-bottom:1px solid #eee;
	}
	
	.search-item img{
	width:40px;
	height:40px;
	object-fit:contain;
	}
	
	.search-title{
	flex:1;
	font-size:14px;
	}
	
	.search-price{
	font-weight:600;
	color:#2ED47A;
	}


	.search-dropdown{
		position:absolute;
		top:100%;
		left:0;
		width:100%;
		background:#fff;
		border:1px solid #ddd;
		max-height:500px;
		overflow:auto;
		z-index:100;
		}
		
		.search-cat-title{
		font-size:12px;
		font-weight:700;
		padding:10px;
		background:#f5f5f5;
		}
		
		.search-cat-item{
		display:block;
		padding:8px 14px;
		font-size:14px;
		}
		
		.search-product{
		display:flex;
		align-items:center;
		gap:12px;
		padding:10px;
		border-bottom:1px solid #eee;
		}
		
		.search-img img{
		width:60px;
		height:60px;
		object-fit:contain;
		}
		
		.search-name{
		flex:1;
		font-size:14px;
		}
		
		.search-price{
		font-weight:700;
		color:#2ED47A;
		}

		.search-wrapper{
			display:flex;
			}
			
			#search-input{
			flex:1;
			padding:12px;
			border:none;
			}
			
			.search-btn{
			background:#ffd400;
			border:none;
			padding:0 20px;
			font-weight:700;
			cursor:pointer;
			}









			/* SEARCH */

.header-search{
	position:relative;
	max-width:650px;
	width:100%;
	}
	
	.search-wrapper{
	display:flex;
	background:#fff;
	border-radius:6px;
	overflow:hidden;
	}
	
	#search-input{
	flex:1;
	padding:14px;
	border:none;
	font-size:14px;
	}
	
	.search-btn{
	background:#ffd400;
	border:none;
	padding:0 22px;
	font-weight:700;
	cursor:pointer;
	}
	
	/* dropdown */
	
	#search-results{
	position:absolute;
	top:100%;
	left:0;
	width:100%;
	background:#fff;
	border-radius:6px;
	box-shadow:0 10px 25px rgba(0,0,0,0.15);
	max-height:520px;
	overflow:auto;
	z-index:200;
	}
	
	/* titles */
	
	.search-cat-title{
	font-size:12px;
	font-weight:700;
	padding:10px 16px;
	background:#f5f5f5;
	color:#777;
	text-transform:uppercase;
	}
	
	/* categories */
	
	.search-cat-item{
	display:block;
	padding:8px 16px;
	font-size:14px;
	color:#333;
	}
	
	.search-cat-item:hover{
	background:#f5f5f5;
	}
	
	/* product */
	
	.search-product{
	display:flex;
	align-items:center;
	gap:14px;
	padding:12px 16px;
	border-bottom:1px solid #eee;
	}
	
	.search-product:hover{
	background:#f9f9f9;
	}
	
	/* image */
	
	.search-img{
	width:70px;
	height:70px;
	display:flex;
	align-items:center;
	justify-content:center;
	}
	
	.search-img img{
	width:100%;
	height:100%;
	object-fit:contain;
	}
	
	/* name */
	
	.search-name{
	flex:1;
	font-size:14px;
	line-height:1.3;
	}
	
	/* price */
	
	.search-price{
	font-weight:700;
	color:#2ED47A;
	white-space:nowrap;
	}

	.search-loading{
		padding:20px;
		text-align:center;
		color:#999;
		}


		.search-all{
			display:block;
			padding:14px;
			text-align:center;
			font-weight:600;
			background:#f7f7f7;
			}


/* Cart styles moved to assets/css/cart.css */

/* Cart styles moved to assets/css/cart.css */




.main-header{
position:relative;
z-index:100;
}

.header-sticky{
position:fixed;
top:0;
left:0;
width:100%;
background:#2f80ed;
box-shadow:0 4px 20px rgba(0,0,0,.1);
}







.product-gallery{
max-width:600px;
}

.product-main-slider img{
width:100%;
height:auto;
}

.product-thumbs{
margin-top:10px;
}

.product-thumbs .swiper-slide{
cursor:pointer;
opacity:.6;
}

.product-thumbs .swiper-slide-thumb-active{
opacity:1;
}

.product-thumbs img{
width:100%;
height:auto;
}


.catalog-loading{
text-align:center;
padding:40px;
color:#777;
}

/* Відео-бейдж: лише жовте коло з play, лівий верхній кут картки */
.catalog-product-img,
.home-product-img {
	isolation: isolate;
}

.catalog-product-img > img,
.home-product-img > img {
	position: relative;
	z-index: 0;
}

.catalog__video {
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
	position: absolute;
	top: clamp(8px, 2vw, 16px);
	left: clamp(8px, 2vw, 16px);
	bottom: auto;
	right: auto;
	z-index: 10;
	display: block;
	pointer-events: auto;
}

/* display:block — інакше span без контенту лишається inline і width/height/фон не працюють */
a.catalog-product-img .catalog__video .catalog__vid-img,
.home-product-img .catalog__video .catalog__vid-img {
	display: block;
	box-sizing: border-box;
	flex-shrink: 0;
	width: clamp(30px, 4.2vw, 44px);
	height: clamp(30px, 4.2vw, 44px);
	border-radius: 50%;
	background-color: #faeb42;
	position: relative;
	transition: background-color 0.3s, border-color 0.3s;
}

a.catalog-product-img .catalog__video .catalog__vid-img::before,
.home-product-img .catalog__video .catalog__vid-img::before {
	content: '';
	position: absolute;
	left: 54%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #333;
	transition: border-color 0.3s;
}

.catalog__video:hover .catalog__vid-img,
.catalog-product-img:hover .catalog__vid-img,
.home-product-img:hover .catalog__vid-img {
	background-color: #e31720;
}

.catalog__video:hover .catalog__vid-img::before,
.catalog-product-img:hover .catalog__vid-img::before,
.home-product-img:hover .catalog__vid-img::before {
	border-left-color: #fff;
}