/*!
Theme Name: hoya
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: The Guidency
Author URI: https://theguidency.hu/
Description: A child theme for HOYA CENTER
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hoya
*/

/* Theme customization starts here
-------------------------------------------------------------- */

input,
textarea,
button,
select,
a,
h3,
li {
	-webkit-tap-highlight-purple: rgba(0, 0, 0, 0);
}
/* Global focus and active - outline */
*:focus,
*:active {
	outline: 0;
}
*:focus-visible {
	outline: 1px solid var(--global-palette1);
    outline-offset: 2px;
}

/* prevent image user select */
img {
	-webkit-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* autofill blue background correction */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-transition: background-color 600s ease-in-out 0s;
	transition: background-color 600s ease-in-out 0s;
}

body input:is([type=button]:focus, [type=button]:active,
[type=reset]:focus, [type=reset]:active,
[type=submit]:focus, [type=submit]:active){
	background: var(--global-palette-btn-bg);
}

/*******************************
 *********** HEADER *************
 *******************************/
#primary-menu {
	gap: 1em;
}
#primary-menu > li {
	position: relative;
}
#primary-menu > li:not(:last-child)::after {
	background-color: var(--global-palette1);
	border-radius: 50%;
	content: '';
	width: 13px;
	height: 13px;
	position: absolute;
	right: -17px;
	top: 15px;
}

.home #primary-menu > li a {
	color: var(--global-palette9);
}
.home #primary-menu > li a:hover {
	color: var(--global-palette2);
}

.popup-drawer .drawer-inner {
	width: 287px;
}
@media (width > 1024px) {
	.home .site-branding a img {
		opacity: 0;
	}
	.home .site-branding a {
		background: url(/wp-content/uploads/2025/06/HC-logo-w.svg);
	}
}
@media (1024px < width < 1230px){
	#main-header .site-branding a.brand img.svg-logo-image{
		width: 16vw;
	}
	#main-header .main-navigation .primary-menu-container > ul li.menu-item > a{
		font-size: 1.5vw;
	}
	#primary-menu > li:not(:last-child)::after{
		top: 1.1vw;
	}
	#main-header .header-button.button-size-custom{
		font-size: 1.4vw;
		padding: 1vw 2vw 1vw 2vw;
	}
}

/*******************************
 ************ BLOG *************
 ******************************/

.single .content-area {
	margin-bottom: 100px;
}
.single.content-style-unboxed .kadence-thumbnail-position-behind:after {
	background: transparent;
}
.single.content-width-narrow .content-area .alignwide::before {
	background: var(--global-palette8);
	content: '';

	position: absolute;
	inset: calc(-1 * min(45px, 3.33vw)) -100vw 0;
	height: min(427px, 33vw);
}
.single.content-width-narrow .content-area .alignwide {
	margin: min(45px, 3.33vw) 0 50px !important;
	overflow: visible;
	padding-bottom: 49.56%;
	height: auto;
	width: auto !important;
}
@media (min-width: 1025px) {
	.single.content-width-narrow .content-area .alignwide {
		margin-inline: calc(509px - 50vw) !important;
	}
}
@media (min-width: 1362px) {
	.single.content-width-narrow .content-area .alignwide {
		margin-inline: -170px !important;
	}
}
.single .post-thumbnail .post-thumbnail-inner img {
	border-radius: min(30px, 4vw);
}

/* titles */
.single .single-content h2 {
	margin: 2em 0 1.8em;
	position: relative;
}
.single .single-content h2::after {
	background: var(--global-palette1);
	content: '';
	width: clamp(62px, (100vw - 767px) * 99, 82px);
	height: clamp(2px, (100vw - 767px) * 9, 3px);
	position: absolute;
	left: 0;
	bottom: -1em;
}

@media (width > 768px) {
	.single-content figure.wp-block-image.img-right-around{
		float: right;
		margin: 0 0 0 10px;
		width: 287px;
	}
}

.pagination .nav-links{
	display: flex;
}
.pagination a.page-numbers{
	background: #fff;
}

/****** ARCHIVE *****/
h1.archive-title {
	margin: 2em 24px 1.7em;
	text-align: center;
}
:is(.home, .blog) .loop-entry {
	display: grid;
	grid-template-areas: 'stack';
	background: transparent;
}
:is(.home, .blog) .loop-entry .entry-footer {
	margin-top: 30px;
}
.back-home-wrap {
	margin: 8em auto 6em;
	text-align: center;
}
.back-to-home {
	background: var(--global-palette9);
	color: var(--global-palette4);
	border-radius: 10px;
	display: inline-block;
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	padding: 13px 29px;
}
.back-to-home:hover {
	background: var(--global-palette1);
	color: var(--global-palette9);
}

/* image */
:is(.home, .blog) .post-thumbnail {
	border-radius: 30px;
	box-shadow: 0px 10px 15px 0px #00000040, 0px 4px 4px 0px #00000040;
	grid-area: stack;
	margin-bottom: 12px !important;
	position: relative;
}
:is(.home, .blog) .post-thumbnail::after {
	background: linear-gradient(180deg, rgb(0 0 0 / 0) 51.5%, rgb(0 0 0 / 0.7) 100%);
	content: '';
	position: absolute;
	inset: 0;
}

/* content */
.home .entry-title {
	color: var(--global-palette9);
}
:is(.home .wp-block-kadence-posts, .blog.content-style-unboxed) .entry .entry-content-wrap {
	grid-area: stack;
	place-self: end center;
	padding: 0 22px;
	text-align: center;
	z-index: 1;
}
:is(.home, .blog) .entry-title a:hover {
	color: var(--global-palette9);
}

/* BŐVEBBEN */
:is(.home, .blog) a.post-more-link {
	background: var(--global-palette-btn-bg);
	border-radius: 10px;
	color: var(--global-palette-btn);
	font-weight: 700;
	font-size: clamp(14px, (100vw - 767px) * 99, 16px);
	line-height: 1;
	margin-top: 20px;
	padding: 10px 24px;
	text-transform: uppercase;
}
:is(.home, .blog) a.post-more-link:hover {
	background: var(--global-palette-btn-bg-hover);
	color: var(--global-palette-btn-hover);
}
a.post-more-link .kadence-svg-iconset {
	display: none;
}

/*******************************
 ******** ÜZLETKERESŐ **********
 ******************************/

.facetwp-facet-ssearch .facetwp-icon {
	display: none;
}
.facetwp-facet-ssearch input.facetwp-search {
	border-radius: 10px;
	padding: min(20px, 3vw);
	width: min(520px, 90vw);
}
body .facetwp-type-reset {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.07) 29.33%, rgba(0, 0, 0, 0) 73.56%, rgba(0, 0, 0, 0.56) 100%);

	margin-bottom: 0;
}
.post-type-archive-optic_shop .entry.loop-entry {
	background-image: linear-gradient(0deg, #fff 70%, #cccee3 70%);
	border-radius: 30px;
	box-shadow: 0px 5px 5px 0px #0000001a;
	text-align: center;
	text-transform: uppercase;
}
.post-type-archive-optic_shop .loop-entry .entry-content-wrap {
	background: #fff;
	border-radius: 30px;
	padding: 30px 30px 16px;
}

.post-type-archive-optic_shop .loop-entry p {
	font-size: clamp(16px, (100vw - 767px) * 99, 18px);
	line-height: 1.4;
	margin-bottom: 0.5em;
	text-wrap: balance;
}

.post-type-archive-optic_shop .loop-entry .super-city {
	color: var(--global-palette9);
	font-size: clamp(20px, (100vw - 767px) * 99, 25px);
	font-weight: 700;
	margin-block: 5px 2px;
}
.post-type-archive-optic_shop .loop-entry h2 {
	margin-bottom: 40px !important;
	pointer-events: none;
	position: relative;
	text-wrap: balance;
}
.post-type-archive-optic_shop .loop-entry h2::after {
	background: var(--global-palette1);
	content: '';
	position: absolute;
	width: 82px;
	height: 3px;
	left: 50%;
	transform: translateX(-50%);
	bottom: -24px;
}
.post-type-archive-optic_shop .loop-entry .uzlet-phone {
	color: var(--global-palette4);
	text-decoration: none;
}
.post-type-archive-optic_shop .loop-entry .uzlet-link {
	font-weight: 700;
}

/* error */
.post-type-archive-optic_shop #archive-container:has(.error) {
	display: block;

	.entry-header {
		display: none;
	}
	p {
		text-align: center;
	}
}

/* pagination */
.post-type-archive-optic_shop nav.pagination {
	display: none;
}

.post-type-archive-optic_shop .facetwp-facet-pagination {
	margin-block: 50px clamp(50px, 6vw, 80px);
}
.facetwp-pager {
	text-align: center;
}
.facetwp-pager .facetwp-page {
	border: 2px solid transparent;
	min-width: 2.5em;
	line-height: 2.25em;
	text-decoration: none;
	border-radius: 0.25rem;
	color: inherit;
}
.facetwp-pager .facetwp-page:hover {
	border-color: var(--global-palette-btn-bg);
}
.facetwp-pager .facetwp-page.active {
	border-color: var(--global-palette-btn-bg);
	background: var(--global-palette-btn-bg);
	color: var(--global-palette-btn);
	font-weight: 400;
}
.facetwp-pager .facetwp-page:is(.prev, .next) {
	display: inline-grid;
	place-content: center;
	width: 50px;
	height: 50px;

	svg {
		width: 20px;
		height: 20px;
	}
}

/*******************************
 ********* LÁTÁSTESZT **********
 ******************************/

body{
	--fullw-margin: -1rem;
}
@media (width > 600px){
	body{
		--fullw-margin: calc(274px - 50dvw);
	}
}
.eyetest-close{
    text-decoration: none!important;
    color: #000;
    font-size: 2.4rem;
    padding: 0 1rem;
    line-height: 1;
}
.eyetest-close:hover{
	color: var(--global-palette1);
}

.eyetest-header{
	background: url(/wp-content/uploads/2025/09/latasteszt-header1.webp) center / cover no-repeat;
	margin: calc(-1 * clamp(30px, (100dvh - 799px) * 99, 64px)) var(--fullw-margin) 30px;
	position: relative;
}
.eyetest-header.type2{
	background: url(/wp-content/uploads/2025/09/latasteszt-header2.webp) 50% 30% / cover no-repeat;
}
.eyetest-header::after{
	background: #333C9CE5;
	content: '';
	position: absolute;
	inset: 0;
}
.eyetest-header-content{
	margin-inline: auto;
	max-width: 700px;
	padding: 100px 24px 24px;
	position: relative;
	z-index: 1;
}
.eyetest-header > img{
	margin-inline: auto;
	padding: 50px 24px;
	position: relative;
	z-index: 1;
}
.eyetest-header-content h2{
	color: #fff;
}
.lte-svg{
	display: block;
    margin: 0 auto 30px;
}


/*******************************
 *********** FOOTER ************
 ******************************/

body #kt-scroll-up {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 16px 32px rgba(0, 0, 0, 0.12);
	-webkit-backdrop-filter: url(#frosted);
	backdrop-filter: url(#frosted);
}
#colophon{
	z-index: 1;
}