/**
 * GPS Header One widget styles.
 * Loaded in <head> by gps-necessery.php (handle: gps-necessery-header1).
 */

.gps-header-wrapper {
	width: 100%;
	font-family: inherit;
}
.gps-header-sticky-container {
	width: 100%;
	transition: all 0.3s ease;
}
.gps-header-sticky-container.is-sticky {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	z-index: 99999 !important;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	animation: gpsSlideDown 0.35s ease-in-out;
}
@keyframes gpsSlideDown {
	from { transform: translateY(-100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.gps-topbar {
	background-color: #FFFFFF;
	border-bottom: 1px solid #F3F4F6;
	font-size: 12px;
	padding: 8px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #6B7280;
}
.gps-topbar-contacts {
	display: flex;
	align-items: center;
	gap: 16px;
}
.gps-topbar-user-lang {
	display: flex;
	align-items: center;
	gap: 12px;
}
.gps-topbar a {
	color: #6B7280;
	text-decoration: none !important;
	white-space: nowrap;
	transition: color 0.2s;
}
.gps-topbar a:hover {
	color: #DC2626;
}
.gps-lang-select {
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: 4px;
	padding: 2px 6px;
	outline: none;
	cursor: pointer;
	font-weight: 600;
	color: #111827;
	font-size: 11px;
}
.gps-main-header {
	background-color: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(8px);
	padding: 12px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #F9FAFB;
	box-sizing: border-box;
}
.gps-logo-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
}
.gps-custom-logo-img {
	max-height: 40px;
	width: auto;
	object-fit: contain;
}
.gps-logo-icon {
	background-color: #DC2626;
	color: #FFFFFF;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gps-logo-text {
	font-size: 18px;
	font-weight: 900;
	color: #111827;
	line-height: 1;
	letter-spacing: -0.5px;
}
.gps-logo-text span {
	color: #DC2626;
}
.gps-logo-sub {
	font-size: 9px;
	color: #9CA3AF;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-top: 2px;
	display: block;
}

/* Desktop Menu */
.gps-nav-menu {
	display: flex;
	align-items: center;
}
.gps-nav-menu ul {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.gps-nav-menu li {
	position: relative;
}
.gps-nav-menu a {
	font-size: 14px;
	font-weight: 700;
	color: #374151;
	text-decoration: none !important;
	display: flex;
	align-items: center;
	padding: 8px 0;
	transition: color 0.2s;
}
.gps-nav-menu a:hover {
	color: #DC2626;
}

/* Submenu Dropdown */
.gps-nav-menu ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #FFFFFF;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
	border: 1px solid #F3F4F6;
	border-radius: 8px;
	min-width: 200px;
	flex-direction: column;
	gap: 0;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 99;
}
.gps-nav-menu li:hover > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.gps-nav-menu ul.sub-menu li {
	width: 100%;
}
.gps-nav-menu ul.sub-menu a {
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #4B5563;
	white-space: nowrap;
}
.gps-nav-menu ul.sub-menu a:hover {
	background-color: #F9FAFB;
	color: #DC2626;
}

.gps-header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}
.gps-cart-icon {
	color: #374151;
	display: flex;
	align-items: center;
	transition: color 0.2s;
}
.gps-cart-icon:hover {
	color: #DC2626;
}
.gps-action-btn {
	background-color: #DC2626;
	color: #FFFFFF !important;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none !important;
	transition: background 0.2s;
	box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}
.gps-action-btn:hover {
	background-color: #B91C1C;
}

/* Mobile Toggle Button */
.gps-menu-toggle {
	display: none;
	background: #F3F4F6;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
	color: #111827;
	align-items: center;
	justify-content: center;
}
.gps-menu-toggle svg {
	width: 24px;
	height: 24px;
}

/* Mobile Slide-out Drawer */
.gps-mobile-drawer {
	position: fixed;
	top: 0;
	right: -100%;
	width: 280px;
	height: 100vh;
	background: #FFFFFF;
	box-shadow: -5px 0 25px rgba(0,0,0,0.1);
	z-index: 99999;
	transition: right 0.35s ease-in-out;
	display: flex;
	flex-direction: column;
	padding: 20px;
	box-sizing: border-box;
}
.gps-mobile-drawer.open {
	right: 0;
}
.gps-drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	border-bottom: 1px solid #F3F4F6;
	padding-bottom: 12px;
}
.gps-drawer-close {
	background: #F3F4F6;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #374151;
}
.gps-mobile-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.gps-mobile-nav a {
	font-size: 15px;
	font-weight: 700;
	color: #374151;
	text-decoration: none !important;
	display: block;
	transition: color 0.2s;
}
.gps-mobile-nav a:hover {
	color: #DC2626;
}
.gps-mobile-nav ul.sub-menu {
	padding-left: 14px;
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.gps-mobile-nav ul.sub-menu a {
	font-size: 13px;
	font-weight: 600;
	color: #6B7280;
}
.gps-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.4);
	z-index: 99988;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}
.gps-drawer-overlay.open {
	opacity: 1;
	visibility: visible;
}

/* Mobile Layout Rules for Header Top (2 Rows) */
@media (max-width: 768px) {
	.gps-topbar {
		flex-direction: column;
		padding: 8px 16px;
		gap: 6px;
	}
	.gps-topbar-contacts {
		width: 100%;
		justify-content: center;
		gap: 8px;
		font-size: 10px;
		white-space: nowrap;
		overflow-x: auto;
	}
	.gps-topbar-contacts::-webkit-scrollbar {
		display: none;
	}
	.gps-topbar-user-lang {
		width: 100%;
		justify-content: space-between;
		border-top: 1px solid #F3F4F6;
		padding-top: 4px;
	}
	.gps-main-header { padding: 10px 16px; }
	.gps-nav-menu { display: none; }
	.gps-menu-toggle { display: flex; }
	.gps-action-btn { display: none; }
	.gps-logo-text { font-size: 15px; }
	.gps-custom-logo-img { max-height: 32px; }
}

/* Remove the default 10px vertical padding of the Elementor container around this widget (no white strip). */
.e-con:has(> .elementor-widget-gps_header1_widget),
.e-con:has(> .e-con-inner > .elementor-widget-gps_header1_widget) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
