/* ==========================================================================
   Software Codes – header (top bar, logo/search/cart row, category bar)
   and global base settings on top of Storefront.
   ========================================================================== */

:root {
	--sc-navy: #133c96;       /* bars, buttons */
	--sc-blue: #2658c5;       /* separators, active/hover */
	--sc-blue-soft: #eef1f8;  /* light hover background */
	--sc-navy-light: #2658c5;
	--sc-border: #e3e3ea;
	--sc-field: #f8f8fa;
	--sc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base (system fonts instead of Google Fonts) ---------- */
body,
button,
input,
select,
textarea,
.button,
.added_to_cart {
	font-family: var(--sc-font);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sc-font);
	letter-spacing: normal;
}

/* Wider content area to match the header */
@media (min-width: 768px) {
	.col-full {
		max-width: 1170px;
	}
}

/* Front page sections are full-bleed */
.sc-front .site-content > .col-full {
	max-width: none;
	margin: 0;
	padding: 0;
}

.sc-front .site-main {
	margin-bottom: 0;
}

/* ---------- Shared ---------- */
.sc-wrap {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 2.617924em;
	box-sizing: content-box;
}

.sc-header {
	position: relative;
	z-index: 100;
	background: #fff;
	margin: 0;
	font-family: var(--sc-font);
}

.sc-header ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-header a {
	text-decoration: none;
}

.sc-header button {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-shadow: none;
	cursor: pointer;
}

.sc-header .sc-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

/* ---------- Top bar ---------- */
.sc-topbar {
	background: var(--sc-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}

.sc-topbar-inner {
	display: flex;
	align-items: stretch;
	min-height: 38px;
	border-left: 1px solid var(--sc-blue);
	border-right: 1px solid var(--sc-blue);
	padding: 0;
}

.sc-tb-item {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 0 14px;
	color: #fff;
	white-space: nowrap;
	position: relative;
}

.sc-tb-item + .sc-tb-item {
	border-left: 1px solid var(--sc-blue);
}

.sc-topbar a.sc-tb-item,
.sc-topbar .sc-tb-service-toggle {
	color: #fff;
}

.sc-topbar a.sc-tb-item:hover,
.sc-topbar a.sc-tb-item:focus-visible,
.sc-tb-service:hover .sc-tb-service-toggle,
.sc-tb-service.is-open .sc-tb-service-toggle {
	color: #fff;
	background: var(--sc-blue);
}

.sc-topbar a.sc-tb-item:hover,
.sc-topbar a.sc-tb-item:focus-visible {
	background: var(--sc-blue);
}

.sc-topbar .sc-icon {
	width: 20px;
	height: 20px;
	stroke-width: 2;
}

.sc-tb-service {
	padding: 0;
}

.sc-tb-service-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	height: 100%;
	padding: 0 14px !important;
	font-weight: 500 !important;
}

.sc-tb-caret {
	font-size: 0.75em;
	margin-left: 4px;
}

.sc-header .sc-tb-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	right: -2px;
	min-width: 260px;
	background: #fff;
	border-top: 3px solid var(--sc-blue);
	box-shadow: 0 10px 24px rgba(19, 60, 150, 0.18);
	z-index: 1000;
	text-align: left;
	white-space: normal;
}

.sc-tb-service:hover .sc-tb-dropdown,
.sc-tb-service:focus-within .sc-tb-dropdown,
.sc-tb-service.is-open .sc-tb-dropdown {
	display: block;
}

.sc-tb-dropdown li + li {
	border-top: 1px solid #f0f0f4;
}

.sc-tb-dropdown a {
	display: block;
	padding: 11px 18px;
	color: var(--sc-navy);
	font-size: 15px;
}

.sc-tb-dropdown a:hover,
.sc-tb-dropdown a:focus-visible {
	background: #eef1f8;
	color: var(--sc-navy);
}

/* ---------- Language selector (GTranslate) ---------- */
.sc-tb-lang {
	flex: 0 0 auto;
	padding: 0;
}

.sc-lang-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 0 16px !important;
	background: transparent !important;
	border: 0;
	color: #fff !important;
	font-size: inherit;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	cursor: pointer;
}

.sc-tb-lang:hover .sc-lang-toggle,
.sc-tb-lang.is-open .sc-lang-toggle,
.sc-lang-toggle:focus-visible {
	background: var(--sc-blue) !important;
}

.sc-lang-flag {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
	flex: 0 0 auto;
}

.sc-tb-lang:hover .sc-tb-dropdown,
.sc-tb-lang:focus-within .sc-tb-dropdown,
.sc-tb-lang.is-open .sc-tb-dropdown {
	display: block;
}

.sc-header .sc-lang-menu {
	min-width: 210px;
	max-height: 70vh;
	overflow-y: auto;
	padding: 6px;
	margin: 0;
	list-style: none;
	border-radius: 0 0 10px 10px;
}

.sc-lang-menu li + li {
	border-top: 0;
}

.sc-tb-dropdown.sc-lang-menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 7px;
	color: #1f2f55;
	font-weight: 500;
}

.sc-lang-menu .sc-lang-flag {
	width: 22px;
	height: 22px;
	box-shadow: 0 0 0 1px rgba(19, 60, 150, 0.15);
}

.sc-lang-name {
	flex: 1 1 auto;
}

.sc-lang-check {
	color: var(--sc-blue);
	visibility: hidden;
}

.sc-lang-menu a[aria-current="true"] {
	background: #eef3fb;
	color: var(--sc-navy);
	font-weight: 700;
}

.sc-lang-menu a[aria-current="true"] .sc-lang-check {
	visibility: visible;
}

/* GTranslate keeps working in the background, its own widget is replaced */
.menu-item-gtranslate,
.sc-lang-engine,
.gtranslate_wrapper,
.gt_float_switcher,
#gt_float_wrapper,
.gt_switcher_wrapper,
a.gt-current-wrapper {
	display: none !important;
}

/* ---------- Logo / search / account / cart row ---------- */
.sc-mainbar {
	background: #fff;
}

.sc-mainbar-inner {
	display: grid;
	grid-template-columns: auto minmax(240px, 1fr) auto;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.sc-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.sc-brand .custom-logo-link {
	display: block;
	flex: 0 0 auto;
	position: relative;
	top: 6px;
}

.sc-brand .custom-logo {
	display: block;
	max-height: 74px;
	width: auto;
	max-width: 370px;
	height: auto;
}

.sc-site-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--sc-navy);
}


.sc-search {
	position: relative;
	justify-self: center;
	max-width: 560px;
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 46px;
	margin: 0;
}

.sc-header .sc-search-field {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 16px;
	background: var(--sc-field);
	border: 1px solid #dcdce3;
	border-right: 0;
	border-radius: 0;
	box-shadow: none;
	color: #111;
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}

.sc-header .sc-search-field::placeholder {
	color: #6b7280;
	opacity: 1;
}

.sc-header .sc-search-field:focus {
	background: #fff;
	border-color: var(--sc-navy);
	outline: none;
}

.sc-header .sc-search-submit {
	flex: 0 0 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sc-navy);
	color: #fff;
}

.sc-header .sc-search-submit:hover,
.sc-header .sc-search-submit:focus-visible {
	background: var(--sc-blue);
}

.sc-header .sc-search-submit .sc-icon {
	width: 24px;
	height: 24px;
	stroke-width: 2.6;
}

.sc-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sc-action {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--sc-border);
	border-radius: 2px;
	background: #fff;
	color: #111;
	font-size: 16px;
	white-space: nowrap;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sc-header a.sc-action,
.sc-header a.sc-action:visited {
	color: #111;
}

.sc-action:hover,
.sc-action:focus-visible {
	border-color: #111;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sc-action-wishlist .sc-icon {
	fill: #111;
}

.sc-action-account .sc-icon {
	fill: #111;
	stroke-width: 1.5;
}

.sc-action-cart .sc-icon {
	width: 26px;
	height: 26px;
}

.sc-hdr-cart-total {
	color: #111;
	font-weight: 700;
	min-width: 3.6em;
	text-align: right;
}

.sc-hdr-cart-total .woocommerce-Price-amount {
	color: inherit;
}

/* Item count badge on the cart icon */
.sc-cart-icon {
	position: relative;
	display: inline-flex;
	line-height: 0;
}

.sc-hdr-cart-count {
	position: absolute;
	top: -9px;
	right: -11px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--sc-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
	font-variant-numeric: tabular-nums;
	animation: sc-badge-pop 0.35s ease;
}

.sc-hdr-cart-count.is-empty {
	display: none;
}

@keyframes sc-badge-pop {
	0% { transform: scale(0.4); }
	70% { transform: scale(1.15); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.sc-hdr-cart-count {
		animation: none;
	}
}

/* ---------- Category bar (dark) ---------- */
.sc-nav {
	background: var(--sc-navy);
}

.sc-nav .sc-wrap {
	position: relative;
}

.sc-nav-toggle {
	display: none !important;
}

.sc-header .sc-menu {
	display: flex;
	align-items: stretch;
	border-left: 1px solid var(--sc-blue);
	border-right: 1px solid var(--sc-blue);
}

.sc-menu > li {
	position: relative;
	flex: 1 1 auto;
}

.sc-menu > li + li {
	border-left: 1px solid var(--sc-blue);
}

.sc-header .sc-menu > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 18px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	text-align: center;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.sc-header .sc-menu > li:hover > a,
.sc-header .sc-menu > li:focus-within > a,
.sc-header .sc-menu > li.current-menu-item > a,
.sc-header .sc-menu > li.current-menu-ancestor > a,
.sc-header .sc-menu > li.current-menu-parent > a,
.sc-header .sc-menu > li.current-product_cat-ancestor > a {
	background: var(--sc-blue);
	color: #fff;
}

/* Submenus */
.sc-header .sc-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #fff;
	border-top: 3px solid var(--sc-blue);
	box-shadow: 0 10px 24px rgba(19, 60, 150, 0.18);
	z-index: 1000;
}

.sc-menu > li:hover > .sub-menu,
.sc-menu > li:focus-within > .sub-menu {
	display: block;
}

.sc-menu .sub-menu li + li {
	border-top: 1px solid #f0f0f4;
}

.sc-header .sc-menu .sub-menu a {
	display: block;
	padding: 11px 18px;
	color: var(--sc-navy);
	font-size: 15px;
	text-transform: none;
	white-space: normal;
}

.sc-header .sc-menu .sub-menu a:hover,
.sc-header .sc-menu .sub-menu a:focus-visible,
.sc-header .sc-menu .sub-menu .current-menu-item > a {
	background: #eef1f8;
	color: var(--sc-navy);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
	.sc-topbar {
		font-size: 14px;
	}

	.sc-tb-item,
	.sc-tb-service-toggle {
		padding: 0 10px !important;
		gap: 7px;
	}

	.sc-header .sc-menu > li > a {
		padding: 0 10px;
		font-size: 14px;
	}
}

@media (max-width: 991.98px) {
	.sc-wrap {
		padding: 0 1.41575em;
	}

	/* Top bar: keep phone, e-mail and service */
	.sc-tb-hours,
	.sc-tb-b2b {
		display: none;
	}

	.sc-topbar-inner {
		border: 0;
	}

	/* Logo + actions on top, search below */
	.sc-mainbar-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"brand actions"
			"search search";
		gap: 14px 16px;
		padding-top: 16px;
		padding-bottom: 14px;
	}

	.sc-brand {
		grid-area: brand;
		min-width: 0;
	}

	/* the logo shrinks instead of running under the buttons */
	.sc-brand .custom-logo-link {
		flex: 0 1 auto;
		min-width: 0;
		top: 2px;
	}

	.sc-brand .custom-logo {
		max-width: 100%;
	}

	.sc-actions {
		grid-area: actions;
	}

	.sc-search {
		grid-area: search;
		height: 42px;
	}

	.sc-header .sc-search-field {
		height: 42px;
		font-size: 16px;
	}

	.sc-header .sc-search-submit {
		flex-basis: 46px;
	}

	/* Category bar becomes a toggle menu */
	.sc-nav .sc-wrap {
		padding: 0;
	}

	.sc-nav-toggle {
		display: flex !important;
		align-items: center;
		gap: 10px;
		width: 100%;
		height: 48px;
		padding: 0 1.41575em !important;
		color: #fff !important;
		font-weight: 600 !important;
	}

	.sc-header .sc-menu {
		display: none;
		flex-direction: column;
		border: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	.sc-nav.is-open .sc-menu {
		display: flex;
	}

	.sc-menu > li + li {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}

	.sc-header .sc-menu > li > a {
		justify-content: flex-start;
		height: 48px;
		padding: 0 1.41575em;
		font-size: 15px;
	}

	.sc-header .sc-menu .sub-menu {
		position: static;
		min-width: 0;
		border-top: 0;
		box-shadow: none;
		background: var(--sc-navy-light);
	}

	.sc-menu > li:hover > .sub-menu {
		display: none;
	}

	.sc-menu > li.is-open > .sub-menu,
	.sc-menu > li:focus-within > .sub-menu {
		display: block;
	}

	.sc-header .sc-menu .sub-menu a {
		color: #fff;
		padding-left: 2.6em;
	}

	.sc-menu .sub-menu li + li {
		border-top-color: rgba(255, 255, 255, 0.08);
	}
}

@media (max-width: 767.98px) {
	.sc-brand .custom-logo {
		max-height: 44px;
		max-width: 170px;
	}

	.sc-action-label {
		display: none;
	}

	.sc-action {
		padding: 0 10px;
		height: 40px;
	}
}

@media (max-width: 599.98px) {
	/* Icons only in the top bar, except the phone number */
	.sc-tb-mail .sc-tb-text,
	.sc-tb-service .sc-tb-text {
		display: none;
	}

	.sc-lang-toggle {
		padding: 0 12px !important;
		gap: 6px;
	}

	.sc-lang-toggle .sc-tb-caret {
		display: none;
	}

	.sc-tb-phone {
		flex: 2 1 0;
	}

	.sc-hdr-cart-total {
		min-width: 0;
	}
}

/* ---------- Live search suggestions ---------- */
.sc-search-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 1001;
	background: #fff;
	border: 1px solid var(--sc-border);
	border-top: 3px solid var(--sc-blue);
	box-shadow: 0 12px 28px rgba(19, 60, 150, 0.18);
	max-height: 70vh;
	overflow-y: auto;
}

.sc-search-results[hidden] {
	display: none;
}

.sc-header .sc-sr-item {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	color: var(--sc-navy);
	border-bottom: 1px solid #f0f0f4;
}

.sc-header .sc-sr-item:hover,
.sc-header .sc-sr-item:focus-visible {
	background: #eef1f8;
	outline: none;
}

.sc-sr-item img,
.sc-sr-noimg {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: contain;
	background: #f8f8fa;
}

.sc-sr-name {
	font-size: 14px;
	line-height: 1.3;
}

.sc-sr-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--sc-navy);
	white-space: nowrap;
}

.sc-sr-empty {
	padding: 14px;
	font-size: 14px;
	color: #6b7280;
}

.sc-header .sc-sr-all {
	display: block;
	width: 100%;
	padding: 11px 12px !important;
	background: #f8f8fa;
	color: var(--sc-navy);
	font-size: 14px;
	font-weight: 600 !important;
	text-align: center;
}

.sc-header .sc-sr-all:hover,
.sc-header .sc-sr-all:focus-visible {
	background: var(--sc-blue);
	color: #fff;
}

@media (max-width: 767.98px) {
	.sc-brand .custom-logo {
		max-height: 50px;
		max-width: 190px;
	}
}

/* ==========================================================================
   Mega menu
   ========================================================================== */
.sc-header .sc-menu {
	position: relative;
}

.sc-menu > li.sc-has-mega {
	position: static;
}

.sc-header .sc-menu > li.sc-has-mega > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: -3px 0 0 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.8;
}

.sc-header .sc-mega {
	display: none;
	position: absolute;
	top: 100%;
	left: -1px;
	right: -1px;
	z-index: 1000;
	background: #fff;
	border-top: 3px solid var(--sc-blue);
	box-shadow: 0 18px 40px rgba(10, 25, 60, 0.22);
	color: #111;
	text-align: left;
	text-transform: none;
	font-weight: 400;
	white-space: normal;
}

.sc-menu > li.sc-has-mega:hover > .sc-mega,
.sc-menu > li.sc-has-mega:focus-within > .sc-mega {
	display: block;
	animation: sc-mega-in 0.14s ease-out;
}

@keyframes sc-mega-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

.sc-mega-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding: 28px 32px 24px;
}

.sc-mega.has-products .sc-mega-inner {
	grid-template-columns: minmax(0, 1fr) 440px;
}

.sc-mega.no-links .sc-mega-inner {
	grid-template-columns: 1fr;
}

/* Columns from the WordPress menu */
.sc-mega-cols {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 24px 28px;
}

.sc-header .sc-mega-heading {
	display: block;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid #eef1f8;
	color: #111;
	font-size: 15px;
	font-weight: 700;
}

.sc-header .sc-mega-cols ul li + li {
	margin-top: 2px;
}

.sc-header .sc-mega-cols ul a {
	display: block;
	padding: 5px 0;
	color: #374151;
	font-size: 15px;
	line-height: 1.35;
}

.sc-header .sc-mega-cols a:hover,
.sc-header .sc-mega-cols a:focus-visible {
	color: var(--sc-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Sub-category tiles (automatic) */
.sc-mega-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}

.sc-header .sc-mega-tile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid #e8ebf2;
	border-radius: 6px;
	color: #111;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sc-header .sc-mega-tile:hover,
.sc-header .sc-mega-tile:focus-visible {
	border-color: var(--sc-blue);
	background: var(--sc-blue-soft);
}

.sc-mega-tile img,
.sc-mega-tile-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 4px;
	background: #f4f6fa;
}

.sc-mega-tile-icon {
	position: relative;
}

.sc-mega-tile-icon::after {
	content: "";
	position: absolute;
	inset: 13px;
	border: 2px solid var(--sc-blue);
	border-radius: 3px;
}

.sc-mega-tile-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sc-mega-tile-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.sc-mega-tile-count {
	font-size: 13px;
	color: #6b7280;
}

/* Popular products */
.sc-mega-products {
	padding-left: 28px;
	border-left: 1px solid #eceff5;
}

.sc-mega.no-links .sc-mega-products {
	padding-left: 0;
	border-left: 0;
}

.sc-mega-label {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
}

.sc-header .sc-mega-products ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.sc-mega.no-links .sc-mega-products ul {
	grid-template-columns: repeat(4, 1fr);
}

.sc-header .sc-mega-products a {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 8px;
	border: 1px solid #e8ebf2;
	border-radius: 6px;
	color: #111;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sc-header .sc-mega-products a:hover,
.sc-header .sc-mega-products a:focus-visible {
	border-color: var(--sc-blue);
	box-shadow: 0 4px 12px rgba(19, 60, 150, 0.12);
}

.sc-mega-pimg {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 4px;
	background: #f4f6fa;
	overflow: hidden;
}

.sc-mega-pimg img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	margin: 0 !important;
}

.sc-mega-ptext {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.sc-mega-pname {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.sc-mega-pprice {
	font-size: 14px;
	font-weight: 800;
	color: #111;
}

.sc-mega-pprice del {
	font-weight: 400;
	color: #9ca3af;
	margin-right: 4px;
}

.sc-mega-pprice ins {
	text-decoration: none;
}

.sc-header .sc-mega-all {
	display: block;
	padding: 12px 32px;
	background: #f5f7fb;
	border-top: 1px solid #eceff5;
	color: var(--sc-blue);
	font-size: 15px;
	font-weight: 700;
}

.sc-header .sc-mega-all:hover,
.sc-header .sc-mega-all:focus-visible {
	background: var(--sc-blue-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1199.98px) {
	.sc-mega.has-products .sc-mega-inner {
		grid-template-columns: minmax(0, 1fr) 360px;
	}
}

/* Mobile: panels open inside the toggle menu, products hidden */
@media (max-width: 991.98px) {
	.sc-header .sc-menu > li.sc-has-mega > a {
		justify-content: space-between;
	}

	.sc-header .sc-menu > li.sc-has-mega > a::after {
		margin-right: 4px;
	}

	.sc-menu > li.sc-has-mega.is-open > a::after {
		transform: rotate(-135deg);
		margin-top: 4px;
	}

	.sc-menu > li.sc-has-mega:hover > .sc-mega {
		display: none;
	}

	.sc-header .sc-mega {
		position: static;
		border-top: 0;
		box-shadow: none;
		background: var(--sc-navy-light);
		animation: none;
	}

	.sc-menu > li.sc-has-mega.is-open > .sc-mega {
		display: block;
	}

	.sc-mega-inner,
	.sc-mega.has-products .sc-mega-inner {
		display: block;
		padding: 6px 1.41575em 10px 2.2em;
	}

	.sc-mega-products {
		display: none;
	}

	.sc-mega-cols,
	.sc-mega-tiles {
		display: block;
	}

	.sc-header .sc-mega-heading,
	.sc-header .sc-mega-cols ul a,
	.sc-header .sc-mega-tile {
		color: #fff;
		border: 0;
		background: none;
		padding: 9px 0;
		margin: 0;
	}

	.sc-header .sc-mega-heading {
		font-size: 15px;
	}

	.sc-header .sc-mega-cols ul a {
		padding-left: 12px;
	}

	.sc-mega-tile img,
	.sc-mega-tile-icon,
	.sc-mega-tile-count {
		display: none;
	}

	.sc-mega-tile-name {
		font-weight: 400;
	}

	.sc-header .sc-mega-all {
		padding: 12px 1.41575em 12px 2.2em;
		background: rgba(0, 0, 0, 0.12);
		border: 0;
		color: #fff;
	}
}

/* ==========================================================================
   Mobile side menu (drawer) – on desktop the wrapper is invisible
   ========================================================================== */
.sc-drawer {
	display: contents;
}

.sc-drawer-close,
.sc-drawer-title,
.sc-drawer-pay,
.sc-drawer-overlay {
	display: none;
}

@media (max-width: 991.98px) {
	.sc-drawer-overlay:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100000;
		background: rgba(10, 20, 45, 0.5);
		animation: sc-fade-in 0.25s ease;
	}

	@keyframes sc-fade-in {
		from { opacity: 0; }
		to { opacity: 1; }
	}

	.sc-drawer {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100001;
		width: min(86vw, 380px);
		background: #fff;
		box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: hidden;
		transform: translateX(-100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
	}

	.sc-nav.is-open .sc-drawer {
		visibility: visible;
		transform: translateX(0);
		transition-delay: 0s;
	}

	.sc-header .sc-drawer-close {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex: 0 0 auto;
		width: 100%;
		min-height: 58px;
		padding: 0 18px !important;
		border: 0;
		border-radius: 0;
		background: linear-gradient(180deg, #16295c 0%, #0f1f44 100%) !important;
		color: #fff !important;
		font-size: 17px;
		font-weight: 700 !important;
		text-align: left;
		cursor: pointer;
	}

	.sc-header .sc-drawer-title {
		display: block;
		margin: 0;
		padding: 18px 18px 12px;
		background: #f3f4f7;
		border-bottom: 1px solid #e5e7ee;
		color: #111;
		font-size: 17px;
		font-weight: 800;
	}

	/* menu inside the drawer */
	.sc-header .sc-drawer .sc-menu {
		display: flex;
		flex-direction: column;
		flex: 0 0 auto;
		border: 0;
		background: #fff;
	}

	.sc-drawer .sc-menu > li,
	.sc-drawer .sc-menu > li + li {
		border: 0;
		border-bottom: 1px solid #e5e7ee;
	}

	.sc-header .sc-drawer .sc-menu > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: auto;
		min-height: 54px;
		padding: 0 18px;
		background: #fff;
		color: #1f2937;
		font-size: 15.5px;
		font-weight: 500;
		letter-spacing: 0.03em;
		text-transform: uppercase;
	}

	.sc-header .sc-drawer .sc-menu > li > a:hover,
	.sc-header .sc-drawer .sc-menu > li.is-open > a,
	.sc-header .sc-drawer .sc-menu > li.current-menu-item > a,
	.sc-header .sc-drawer .sc-menu > li.current-menu-ancestor > a,
	.sc-header .sc-drawer .sc-menu > li.current-product_cat-ancestor > a {
		background: #f7f9fe;
		color: var(--sc-navy);
	}

	/* chevron on every top-level item */
	.sc-header .sc-drawer .sc-menu > li > a::after,
	.sc-header .sc-drawer .sc-menu > li.sc-has-mega > a::after {
		content: "";
		display: block;
		flex: 0 0 auto;
		width: 9px;
		height: 9px;
		margin: 0 4px 0 12px;
		border: solid currentColor;
		border-width: 0 2px 2px 0;
		transform: rotate(-45deg);
		transition: transform 0.2s ease;
	}

	.sc-header .sc-drawer .sc-menu > li.is-open > a::after {
		transform: rotate(45deg);
		margin-top: -4px;
	}

	/* sub menus / mega panels open inside the drawer */
	.sc-header .sc-drawer .sc-menu .sub-menu,
	.sc-header .sc-drawer .sc-mega {
		background: #f7f8fb;
		border-top: 1px solid #e5e7ee;
	}

	.sc-header .sc-drawer .sc-menu .sub-menu a,
	.sc-header .sc-drawer .sc-mega-heading,
	.sc-header .sc-drawer .sc-mega-cols ul a,
	.sc-header .sc-drawer .sc-mega-tile {
		color: #1f2937;
		font-size: 15px;
	}

	.sc-header .sc-drawer .sc-mega-heading {
		color: var(--sc-navy);
		font-weight: 700;
	}

	.sc-header .sc-drawer .sc-mega-inner,
	.sc-header .sc-drawer .sc-mega.has-products .sc-mega-inner {
		padding: 6px 18px 10px 28px;
	}

	.sc-header .sc-drawer .sc-mega-all {
		padding: 13px 18px 13px 28px;
		background: #eef3fb;
		color: var(--sc-navy);
		font-weight: 700;
	}

	.sc-drawer .sc-menu .sub-menu li + li {
		border-top-color: #e9ecf3;
	}

	/* real products of the category inside the drawer */
	.sc-header .sc-drawer .sc-mega-products {
		display: block;
		margin: 4px 0 0;
		padding: 10px 0 0;
		border-top: 1px solid #e5e7ee;
	}

	.sc-header .sc-drawer .sc-mega-label {
		margin: 0 0 6px;
		color: #6b7280;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	.sc-header .sc-drawer .sc-mega-products ul {
		display: block;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.sc-header .sc-drawer .sc-mega-products a {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 8px 0;
		border: 0;
		background: none;
		color: #1f2937;
	}

	.sc-header .sc-drawer .sc-mega-pimg {
		flex: 0 0 48px;
		width: 48px;
		height: 48px;
		border: 1px solid #e5e7ee;
		border-radius: 8px;
		background: #fff;
		overflow: hidden;
	}

	.sc-header .sc-drawer .sc-mega-pimg img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

	.sc-header .sc-drawer .sc-mega-pname {
		display: block;
		color: #1f2937;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.3;
	}

	.sc-header .sc-drawer .sc-mega-pprice {
		display: block;
		margin-top: 2px;
		color: var(--sc-navy);
		font-size: 14px;
		font-weight: 700;
	}

	/* payment methods */
	.sc-header .sc-drawer-pay {
		display: block;
		margin: 16px 14px 24px;
		padding: 16px 14px 14px;
		border: 1px solid #e5e7ee;
		border-top: 3px solid var(--sc-blue);
		border-radius: 0 0 10px 10px;
		background: #fff;
	}

	.sc-header .sc-drawer-pay-title {
		margin: 0 0 12px;
		padding-bottom: 10px;
		border-bottom: 1px solid #e5e7ee;
		color: #111;
		font-size: 15px;
		font-weight: 800;
		letter-spacing: 0.04em;
		text-align: center;
		text-transform: uppercase;
	}

	.sc-drawer-pay-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.sc-drawer-pay-item {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 46px;
		padding: 6px;
		border: 1px solid #e1e5ee;
		border-radius: 7px;
		background: #fff;
	}

	.sc-drawer-pay-item img {
		display: block;
		max-width: 100%;
		max-height: 100%;
		width: auto;
		height: auto;
	}
}

/* Mobile: the logo always shrinks to the space left next to the buttons */
@media (max-width: 991.98px) {
	.sc-header .sc-brand,
	.sc-header .sc-brand .custom-logo-link {
		min-width: 0;
		max-width: 100%;
	}

	.sc-header .sc-brand .custom-logo-link {
		flex: 0 1 auto;
	}

	.sc-header .sc-brand .custom-logo {
		width: auto;
		max-width: min(100%, 190px);
		height: auto;
	}
}

/* ==========================================================================
   Mobile header v2 – slim top bar, larger logo, compact action buttons
   ========================================================================== */
@media (max-width: 767.98px) {
	/* Top bar: phone on the left, icon buttons of equal width on the right */
	.sc-topbar {
		font-size: 14px;
	}

	.sc-topbar-inner {
		min-height: 40px;
		padding: 0 0 0 1.41575em;
		border: 0;
	}

	.sc-topbar .sc-tb-item {
		flex: 0 0 46px;
		padding: 0;
		gap: 7px;
	}

	.sc-topbar .sc-tb-item + .sc-tb-item {
		border-left: 1px solid rgba(255, 255, 255, 0.14);
	}

	.sc-topbar .sc-tb-phone {
		flex: 1 1 auto;
		justify-content: flex-start;
		min-width: 0;
		padding: 0 10px 0 0;
		font-weight: 600;
		letter-spacing: 0.01em;
	}

	.sc-topbar .sc-tb-phone .sc-tb-text {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.sc-topbar .sc-tb-phone .sc-icon {
		width: 17px;
		height: 17px;
	}

	.sc-topbar .sc-tb-mail .sc-tb-text,
	.sc-topbar .sc-tb-service .sc-tb-text,
	.sc-topbar .sc-tb-caret,
	.sc-topbar .sc-lang-toggle .sc-tb-caret {
		display: none;
	}

	.sc-topbar .sc-tb-service-toggle {
		padding: 0 !important;
	}

	.sc-topbar .sc-icon {
		width: 19px;
		height: 19px;
	}

	.sc-topbar .sc-tb-lang {
		flex: 0 0 auto;
	}

	.sc-topbar .sc-lang-toggle {
		padding: 0 14px 0 12px !important;
		gap: 6px;
		font-size: 13.5px;
	}

	.sc-topbar .sc-lang-flag {
		width: 18px;
		height: 18px;
	}

	/* dropdowns open from the right edge of the screen */
	.sc-topbar .sc-tb-service .sc-tb-dropdown {
		left: auto;
		right: -60px;
	}

	/* Main bar: logo gets the room, actions become compact icon buttons */
	.sc-mainbar-inner {
		gap: 12px 10px;
		padding-top: 14px;
		padding-bottom: 12px;
		align-items: center;
	}

	.sc-actions {
		gap: 6px;
	}

	.sc-header .sc-action {
		width: 44px;
		height: 44px;
		padding: 0;
		justify-content: center;
		border-radius: 8px;
	}

	.sc-header .sc-action-cart .sc-hdr-cart-total {
		display: none;
	}

	.sc-header .sc-action-cart .sc-icon {
		width: 25px;
		height: 25px;
	}

	.sc-header .sc-action-account .sc-icon {
		width: 22px;
		height: 22px;
	}

	.sc-hdr-cart-count {
		top: -10px;
		right: -12px;
	}

	.sc-header .sc-brand,
	.sc-header .sc-brand .custom-logo-link {
		display: flex;
		align-items: center;
		top: 0;
	}

	.sc-header .sc-brand .custom-logo {
		width: 100%;
		max-width: 270px;
		max-height: none;
		height: auto;
	}

	.sc-header .sc-search {
		height: 44px;
	}

	.sc-header .sc-search-field {
		height: 44px;
		border-radius: 8px 0 0 8px;
	}

	.sc-header .sc-search-submit {
		border-radius: 0 8px 8px 0;
	}
}

/* Checkout header: logo next to "Zurück zum Shop" */
@media (max-width: 767.98px) {
	.woocommerce-checkout .sc-header .sc-brand .custom-logo {
		max-width: 200px;
	}
}
