/*
 Theme Name:   Dr. Csicsor
 Theme URI:    https://hymato.hu
 Description:  A weart.hu által készített egyedi gyereksablon.
 Author:       Egyed Balázs
 Author URI:   https://weart.hu
 Template:     generatepress
 Version:      0.1
*/

/* Header */
@media (min-width: 800px) {
	.main-navigation {
		flex: 1 0 0%;
		#primary-menu {
			margin: 0 auto;
		}
	}
}

/* FOOTER */
#wfooter {
	li:before {
		content: "";
		border-top: 1px solid #fff;
		width: 0.5rem;
		margin-right: 0.5rem;
	}
	li {
		font-size: 12px;
	}
}

/* KEZDŐLAP */

#wsliderimage{
	position: relative;
	max-width: 100%;
	overflow: hidden;
	&:before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(90deg, rgba(109, 94, 60, 0) 0%, var(--secondary) 100%);
		opacity: 0.1;
	}
	
	.palyazatok{
		position: absolute;
		right: 0;
		top: 0;
		z-index: 10;
		display: flex;
		flex-direction: column;
		align-items: end;
		justify-content: start;
		overflow-x: auto;
		.kap{
			display: flex;
			flex-direction: column;
			align-items: center;
			background: white;
			padding: 10px;
			margin-bottom: 10px;
			img{
				max-width: 100px;
			}
		}
		
		.szechenyi{
			background: white;
			padding: 10px;
			
			img{
				max-width: 150px;
			}
		}
	}
	
	.container{
		max-width: 1280px;
		margin: 0 auto;
		position:relative;
		.item{
			width: 100%;
		
        
			img{
				min-width:100%;
				max-width:100%;
				width:auto;
				height:auto;
				display: block;
			}
		}
	}
	
	/* alapból rejtve, amíg a Flickity nem inicializált */
	.container[data-flickity]{
		opacity: 0;
		visibility: hidden;
		transition: opacity .2s ease;
	}

	/* Flickity init után automatikusan megjelenik (Flickity hozzáadja a class-t) */
	.container.flickity-enabled{
		opacity: 1;
		visibility: visible;
	}
	
	.flickity-prev-next-button.previous,
	.flickity-prev-next-button.next{
		background: none;
		
	}
	.flickity-page-dots {
			bottom: 10px;
			.dot {
				width: 12px;
				height: 12px;
				background: transparent;
				border: 2px solid var(--secondary);
				opacity: 1;
				margin: 0 5px;
				&.is-selected {
					background: var(--secondary);
				}
			}
		}
}

@media (max-width: 800px) {
	#wsliderimage .palyazatok img{
		max-width: 100px;
	}
	#wsliderimage .palyazatok .kap img{
		max-width: 70px;
	}
}
@media (max-width: 500px) {
	#wsliderimage .palyazatok{
		flex-direction: row;
		position: relative;
		width: 100%;
		justify-content: center;
		align-items: start;
        gap: 10px;
	}
}

#wslider {
	background: var(--primary) url(./assets/slider-bg.png) no-repeat right center;
	background-size: auto 100%;
	position: relative;

	max-width: 100%;
	overflow: hidden;
	@media (max-width: 800px) {
		background: var(--primary);
	}

	.palyazat {
		position: absolute;
		top: 0;
		right: 0;
		max-width: 169px;
		width: 100%;
		z-index: 10;
	}
	.container {
		max-width: 1280px;
		margin: 0 auto;
		padding: 0 20px;
		.item {
			display: flex;
			justify-content: space-between;
			align-items: center;
			min-height: 500px;
			width: 100%;
			@media (max-width: 800px) {
				flex-direction: column-reverse;
				text-align: center;
				min-height: auto;
				gap: 2rem;
				padding: 3rem 1rem;
			}
			.content {
				background: #eae6dc;
				max-width: 635px;
				width: 100%;
				padding: 4%;
				h2 {
					font-size: 32px;
					margin-bottom: 1rem;
					@media (max-width: 800px) {
						font-size: 24px;
					}
					a {
						text-decoration: none;
					}
				}
				.btn {
					border-radius: 50px;
					background: transparent;
					border: 1px solid var(--primary);
					color: var(--primary);
					font-size: 14px;
					font-weight: 600;
					padding: 0.75rem 1.5rem;
					transition: all 0.3s ease;
					display: inline-flex;
					text-decoration: none;
					text-transform: uppercase;
					letter-spacing: 1px;
					&:hover {
						background: var(--primary);
						color: #fff;
					}
				}
			}
			.image {
				max-width: 500px;
				width: 100%;
				img {
					width: 100%;
					height: auto;
					display: block;
				}
			}
		}
		.flickity-page-dots {
			bottom: 10px;
			.dot {
				width: 12px;
				height: 12px;
				background: var(--primary);
				border: 2px solid var(--secondary);
				opacity: 1;
				margin: 0 5px;
				&.is-selected {
					background: var(--secondary);
				}
			}
		}
	}
}

#wslidertrust {
	padding: 1rem 0;
	position: relative;
	
	/*
	max-width: 1280px;
	margin: 0 auto;
	padding: 1rem;
	*/
	
	&:before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(90deg, rgba(109, 94, 60, 0) 0%, var(--secondary) 100%);
		opacity: 0.25;
	}
	.container {
		max-width: 1280px;
		position: relative;
		z-index: 2;
		margin: 0 auto;
		display: flex;
		justify-content: space-between;
		@media (max-width: 600px) {
			justify-content: center;
		}
		align-items: center;
		flex-wrap: wrap;
		gap: 1rem;
		.dijak {
			display: flex;
			img {
				max-height: 111px;
				height: auto;
				width: auto;
				display: block;
			}
		}
		.text {
			@media (max-width: 600px) {
				text-align: center;
			}
			img {
				max-width: 100%;
				height: auto;
				display: block;
				margin-bottom: 0.5rem;
			}
			p {
				text-transform: uppercase;
				font-weight: 600;
				font-size: 16px;
				color: var(--primary);
				margin: 0;
				text-align: right;
				@media (max-width: 600px) {
					text-align: center;
				}
			}
		}
	}
}

#wfooterslider {
	position: relative;
	&::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(90deg, rgba(109, 94, 60, 0) 0%, var(--secondary) 100%);
		opacity: 0.25;
	}
	.container:first-of-type {
		padding-top: 0;
		padding-bottom: 0;
		p {
			text-transform: uppercase;
			font-weight: 600;
			font-size: 14px;
			letter-spacing: 1px;
			position: absolute;
			top: -2.25rem;
		}
	}
	.container {
		position: relative;
		z-index: 20;
		max-width: 1280px;
		margin: 0 auto;
		padding: 2rem 1rem;

		.flickity-button {
			background: transparent;
			width: 25px;
			height: 25px;
			&.previous {
				left: 0;
			}
			&.next {
				right: 0;
			}
			&:hover svg {
				fill: var(--primary);
			}
		}
		.item {
			height: 100px;
			display: flex;
			justify-content: center;
			align-items: center;
			padding: 0 1rem;
			width: calc(100% / 8);
			flex: 0 0 calc(100% / 8);
			@media (max-width: 800px) {
				width: calc(100% / 4);
				flex: 0 0 calc(100% / 4);
			}
			img {
				max-height: 100px;
				max-width: 100%;
				height: auto;
				width: auto;
				display: block;
				margin: 0 auto;
			}
		}
	}
}

/* WOOCMOMMERCE */

.wc-block-product-template {
	margin: 0;
}
.wp-block-woocommerce-product-price {
	font-size: 16px;
	font-weight: 600;
	color: var(--secondary);
}
.wc-block-components-product-button {
	.wp-block-button__link {
		text-transform: uppercase;
		font-weight: 600;
		color: var(--primary) !important;
		border: 1px solid var(--primary) !important;
		&:hover {
			background: var(--primary) !important;
			color: #fff !important;
		}
	}
}

/* VIDEO banner a főoldalon */

.background-video {
	position: absolute;
	opacity: 0.5;
	top: 0;
	left: -2.5%;
	right: 0;
	bottom: 0;
}
video[poster] {
	object-fit: cover;
	width: 105%;
	height: 100%;
}

/* Blog formázás */

body.blog,
body.archive {
	article {
		.post-categories {
			margin: 0 0 1rem 0;
			padding: 0;
			list-style: none;
			display: flex;
			gap: 0.5rem;
			a {
				display: flex;
				padding: 0.25rem 1rem;
				border-radius: 20px;
				font-size: 14px;
				text-transform: uppercase;
				font-weight: 600;
				background: var(--secondary);
				color: var(--primary);
				text-decoration: none;
			}
		}
		h2 {
			a {
				&:hover {
					color: var(--primary);
					text-decoration: underline;
					text-underline-offset: 3px;
					text-decoration-thickness: 2px;
					text-decoration-color: var(--secondary);
				}
			}
		}
		.entry-summary {
			font-size: 14px;
		}
	}
	article:not(:first-of-type) {
		h2 {
			font-size: 18px;
			a {
				&:hover {
					color: var(--primary);
					text-decoration: underline;
					text-underline-offset: 3px;
					text-decoration-thickness: 2px;
					text-decoration-color: var(--secondary);
				}
			}
		}
	}
}
body.single .category-videok .featured-image {
	display: none;
}

/* widgets */
#text-2 {
	background: var(--bg);
}
.widget ul li {
	margin-bottom: 1.5rem;
	a {
		text-decoration: none;
		&:hover {
			color: var(--primary);
			text-decoration: underline;
			text-underline-offset: 3px;
			text-decoration-thickness: 2px;
			text-decoration-color: var(--secondary);
		}
	}
}

/* WOO */
.woocommerce ul.products li.product {
	h2 {
		font-family: var(--gp-font--montserrat) !important;
		font-size: 16px !important;
		font-weight: 600 !important;
		text-align: center !important;
	}
	.price {
		font-size: 16px;
		font-weight: 600 !important;
		color: var(--secondary) !important;
	}
	a.button {
		text-align: center;
		text-transform: uppercase;
		font-weight: 600;
		color: var(--primary) !important;
		border: 1px solid var(--primary) !important;
		background-color: transparent !important;
		border-radius: 50px !important;
		font-size: var(--wp--preset--font-size--small) !important;
		padding: calc(0.667em + 2px) calc(1.333em + 2px);
		letter-spacing: 1px !important;
		&:hover {
			background: var(--primary) !important;
			color: #fff !important;
		}
	}
}

.product-categories-list {
	margin: 20px 0;
	padding: 1.5rem;
	position: relative;
	&:before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(90deg, rgba(109, 94, 60, 0) 0%, var(--secondary) 100%);
		opacity: 0.25;
	}
	.product-cat-menu {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-wrap: wrap;
		position: relative;
		li{
			display: inline-flex;
			a {
				margin: 0.5rem;
				text-decoration: none;
				border-radius: 3px;
				transition: all 0.3s ease;
				text-align: center;
				text-transform: uppercase;
				font-weight: 600;
				color: var(--primary);
				border: 1px solid var(--primary);
				background-color: transparent;
				border-radius: 50px;
				font-size: var(--wp--preset--font-size--small);
				padding: calc(0.667em + 2px) calc(1.333em + 2px);
				letter-spacing: 1px;
				&:hover {
					background: var(--primary);
					color: #fff;
					border-color: var(--primary);
				}
			}
		} 
		
	}
}

body.single-product {
	#wc-sticky-cart-panel,
	.summary {
		.price {
			/* font-size: 16px; */
			margin-top: 1.5em;
			font-weight: 600 !important;
			color: var(--secondary) !important;
		}
		.button {
			text-transform: uppercase !important;
			font-weight: 600 !important;
			color: var(--primary) !important;
			border: 1px solid var(--primary) !important;
			background-color: transparent !important;
			letter-spacing: 1px !important;
			border-radius: 50px !important	;
			margin-left: 1rem;
			&:hover {
				background: var(--primary) !important;
				color: #fff !important;
			}
		}
	}
	.tabs {
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
		text-align: center;
		justify-content: center;
		li {
			background: transparent !important;
			border: none !important;
			text-transform: uppercase;
			font-weight: 600;
			letter-spacing: 1px;
			font-size: 1rem;
			&.active a {
				box-shadow: inset 0 -3px 0 var(--primary) !important;
				color: var(--primary) !important;
			}
			a:hover {
				color: var(--primary) !important;
			}
		}
	}
	.allergens-container {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
		margin-bottom: 1.5em;

		.allergen-item {
			max-width: 70px;
			img {
				max-width: 100%;
				height: auto;
				display: block;
				margin: 0 auto;
			}
		}
	}
	.woocommerce-product-gallery {
		display: flex;
		flex-direction: column;

		.flex-control-thumbs {
			display: flex !important;
			flex-direction: row !important;
			flex-wrap: nowrap !important;
			gap: 10px !important;
			overflow-x: auto !important;
			padding: 10px 0 !important;

			li {
				flex: 0 0 auto !important;
				width: auto !important;
				margin: 0 !important;

				img {
					width: 80px !important;
					height: 80px !important;
					object-fit: cover !important;
				}
			}
		}

		.product-video-container {
			order: 5;
		}
	}
}


/* podcastoknak kiemelés */
body.category .category-podcastok .post-image img{
	box-shadow: 0 0 6px 0 #ccc
}