/*
Theme Name: Xcom_Volttikauppa
Theme URI: https://volttikauppa.fi
Author: Mikko Laiho
Author URI: https://volttikauppa.fi
Description: Volttikauppa custom theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: featured-images, custom-background, theme-options, translation-ready
Text Domain: xcom-volttikauppa
Requires at least: 4.6
Tested up to: 6.6
Requires PHP: 7.4
*/


.site-header .main-menu {
	display: none;
}

@media (min-width: 1024px) {
	.site-header .main-menu {
		display: block;
		margin-left: auto;
		
	}
}

.site-header .main-menu-list {
	list-style: none;
	gap: 1rem;
	padding: 0;
	margin: 0;
	display: flex;
}

.site-header .main-menu li {
	position: relative;
	text-align: right;
}

.site-header .main-menu li:hover .sub-menu {
	display: block;
}

.site-header .main-menu li a {
	font-weight: 700;
	color: #06283d;
	padding: 1rem;
	font-size: 16px;
	transition: 0.3s ease;
	border-bottom: 0px solid #1363df;
	display: block;
}

.site-header .main-menu li a:hover {
	color: #1363df;
}

.site-header .main-menu li.current-menu-item>a {
	color: #1363df;
}

.site-header .main-menu li.current-menu-item>a::after {
	content: "";
	position: absolute;
	right: 10px;
	top: 18px;
	height: 4px;
	width: 4px;
	border-radius: 50%;
	background-color: #1363df;
}

.site-logo a {
	padding: 0.5rem 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.site-logo__svg {
	height: 22px;
	width: auto;
}

@media (min-width: 40rem) {
	.site-logo__svg {
		height: 30px;
	}
}

.site-logo .site-logo__text {
	fill: #06283d;
	transition: fill 0.3s;
}

.site-logo:hover .site-logo__text {
	fill: #1363df;
}

.highlights {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

@media (min-width: 50rem) {
	.highlights {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 80rem) {
	.highlights {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
}

.highlights-wrapper {
	margin-top: 8rem;
}

@media (min-width: 60rem) {
	.highlights-wrapper {
		margin-top: 12rem;
	}
}

.highlights-title {
	margin-bottom: 3rem;
}

@media (min-width: 60rem) {
	.highlights-title {
		margin-bottom: 5rem;
	}
}

.site-header .main-menu .sub-menu {
	position: absolute;
	display: none;
	z-index: 200;
	top: 52px;
	left: 0;
	right: 0;
	background-color: white;
	list-style: none;
	border-radius: 6px;
	box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
	padding: 0;
	min-width: 200px;
}

.site-header .main-menu .sub-menu li {
	text-align: left;
}

.site-header .main-menu .sub-menu li:last-child a {
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
}

.site-header .main-menu .sub-menu li a {
	font-size: 14px;
	padding: 0.75rem 1rem;
}

.site-header .main-menu .sub-menu li a:hover {
	background-color: #f8f8f8;
}


.admin-bar .site-header .mobile-menu {
	padding: 4rem 0;
}

.site-header .mobile-menu {
	display: block;
	position: fixed;
	left: -100%;
	top: 0;
	right: 0;
	margin: 0;
	z-index: 100;
	width: 300px;
	max-width: 100%;
	height: 100%;
	background-color: #ffffff;
	transition: left 0.3s ease;
	padding: 2rem 0;
	overflow-y: auto;
	border-right: 1px solid #eaeaea;
}

.no-scroll {
  overflow: hidden;
}

@media (min-width: 1024px) {
	.site-header .mobile-menu {
		display: none;
	}
}

.site-header .mobile-menu.active {
	left: 0;
}

.site-header .mobile-menu a {
	color: black;
	font-weight: 600;
	display: block;
	padding: 0.4rem 0;
	font-size: 1.25rem;
}

.site-header .mobile-menu .top, .site-header .mobile-menu-list {
	padding: 0 1rem;
}

.site-header .mobile-menu .top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-header .mobile-menu-list {
	list-style: none;
}

.site-header .mobile-menu-list>*+* {
	margin-top: 0.25rem;
}

.site-header .mobile-menu-list .sub-menu {
	list-style: none;
	padding-left: 0.75rem;
	padding-top: 0;
	padding-bottom: 0;
}

.site-header .mobile-menu-list .sub-menu a {
	font-size: 1rem;
}


body.admin-bar .site-header {
	top: 46px;
}

@media (min-width: 1024px) {
	body.admin-bar .site-header {
		top: 0;
	}
}

.site-header {
	background-color: white;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	border-bottom: 1px solid #eaeaea;
	padding: 1rem 0;
}

@media (min-width: 1024px) {
	.site-header {
		position: relative;
	}
}

.site-header>.site-header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-left: 1em;
	margin-right: 1em;	
}

@media (min-width: 1024px) {
	.site-header>.site-header-content {
		gap: 3rem;
		margin-left: 1em;
		margin-right: 1em;
	}
}



.site-header .search-toggle {
	padding: 0;
	width: 25px;
	cursor: pointer;
}

.site-header .search-toggle svg {
	vertical-align: middle;
}

.site-header .search-toggle .hidden {
	display: none;
}

.site-header .additional {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

@media (min-width: 60rem) {
	.site-header .additional {
		gap: 2rem;
	}
}

.site-header .search-toggle svg,
.site-header .cart-link svg {
	fill: #06283d;
	transition: fill 0.3s ease;
}

.site-header .search-toggle:hover svg,
.site-header .cart-link:hover svg {
	fill: #1363df;
}

.site-header .cart-link {
	display: flex;
	gap: 0.25rem;
}

.site-header .cart-link span {
	transition: color 0.3s ease;
	color: #06283d;
	font-size: 16px;
}

.site-header .cart-link:hover span {
	color: #1363df;
}




/* Fix Hamburger Button */
.site-header__burger {
	cursor: pointer;
	display: flex ;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	width: 30px !important;  /* Slightly increased for visibility */
	height: 20px !important;
	background: transparent !important;
	border: none;
	position: relative;
	padding: 0px;  /* Remove excess padding */
}

/* Fix Hamburger Lines */
.site-header__burger span {
	display: block ;
	width: 40px !important;
	height: 3px !important;
	background-color: black !important;
	border-radius: 2px;
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Ensure Even Spacing */
.site-header__burger span:not(:last-child) {
	margin-bottom: 6px !important; /* Force space between lines */
}

/* Debugging: Ensure Nothing is Hiding It */
.site-header__burger,
.site-header__burger span {
	visibility: visible ;
	opacity: 1 ;
}

@media (min-width: 1024px) {
	.site-header__burger {
		display: none;
	}
	.site-header__burger span {
		display: none;
	}
  .site-header {
		max-width: 85rem;
		margin-left: auto;
		margin-right: auto;
	}
}