/*
Theme Name:   Gastro Edelstahl 24
Theme URI:    https://gastroedelstahl24.de/
Description:  Custom WooCommerce theme for Gastro Edelstahl 24. Classic template-file based, plain CSS, ACF Free. Built section by section.
Author:       MM Group
Version:      0.1.0
Requires at least: 6.2
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  gastroedelstahl
Tags:         e-commerce, custom-menu, featured-images, full-width-template
*/

/* Styles are built section by section. Keep this file organized and mobile-first. */

/* ============================================================
   Design tokens
   Colours approximated from the saniweb header reference;
   refine here once exact brand values are confirmed.
   ============================================================ */
:root {
	--ge-blue: #0099d8;
	--ge-blue-dark: #0b7cba;
	--ge-blue-xlight: #e8f4fb;
	--ge-blue-xdark: #02396b;
	--ge-cart-bg: #d9f0f9;
	--ge-accent-red: #e12c23;
	--ge-green: #1c8249;
	--ge-green-bright: #3ab44d;
	--ge-text: #33373f;
	--ge-text-soft: #5b5f69;
	--ge-line: #dadce3;
	--ge-gray-xlight: #f7f8fa;
	--ge-white: #ffffff;

	--ge-container: 1250px;
	--ge-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--ge-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ge-text);
	background: var(--ge-white);
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

/* ============================================================
   Layout
   ============================================================ */
.ge-container {
	width: 100%;
	max-width: var(--ge-container);
	margin-inline: auto;
	padding-inline: 1rem;
}

/* ============================================================
   Header — Part 1: top utility bar
   ============================================================ */
.ge-topbar {
	display: none;
	border-bottom: 1px solid var(--ge-line);
	font-size: 0.8125rem;
	color: var(--ge-text);
}

.ge-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 42px;
}

.ge-topbar__trust,
.ge-topbar__links {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ge-topbar__trust {
	gap: 1.5rem;
}

.ge-topbar__links {
	gap: 1.25rem;
}

.ge-topbar__right {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.ge-topbar__badges {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ge-topbar__badge {
	display: block;
	height: 24px;
	width: auto;
}

/* CBW-style trust badge: green pill, V mark on the left, three tiny lines on the right. */
.ge-topbar__cbw {
	display: inline-flex;
	align-items: stretch;
	width: 75px;
	height: 24px;
	background: var(--ge-green-bright);
	color: var(--ge-white);
	border-radius: 999px 3px 3px 999px;
	overflow: hidden;
}

.ge-topbar__cbw-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.ge-topbar__cbw-mark svg {
	display: block;
	width: 12px;
	height: 12px;
}

.ge-topbar__cbw-text {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	padding-inline: 0.25rem 0.375rem;
	font-size: 0.375rem;
	line-height: 1.1;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.ge-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ge-topbar__check {
	flex-shrink: 0;
	color: var(--ge-green);
}

.ge-topbar__links a:hover {
	text-decoration: underline;
}

/* Top bar is desktop/tablet only (matches reference: hidden on mobile). */
@media (min-width: 768px) {
	.ge-topbar {
		display: block;
	}
}

/* ============================================================
   Header — Part 2: main bar (logo, search, cart)
   ============================================================ */
.ge-mainbar {
	border-bottom: 1px solid var(--ge-line);
	background: var(--ge-white);
}

.ge-mainbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	min-height: 70px;
	padding-block: 0.75rem;
}

.ge-mainbar__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.ge-mainbar__logo .custom-logo,
.ge-mainbar__logo img {
	display: block;
	max-height: 56px;
	max-width: 180px;
	width: auto;
}

.ge-mainbar__logo-text {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ge-text);
}

/* Hamburger (mobile only — hidden ≥1024px alongside the blue nav appearing). */
.ge-mainbar__burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-inline-start: -8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ge-text);
	cursor: pointer;
}

.ge-mainbar__burger svg {
	width: 24px;
	height: 24px;
}

/* Search */
.ge-search {
	order: 3;
	flex: 1 0 100%;
	display: flex;
	align-items: stretch;
	height: 44px;
	border: 1px solid var(--ge-line);
	border-radius: 0.5rem;
	overflow: hidden;
	background: var(--ge-gray-xlight);
}

.ge-search__input {
	flex: 1;
	min-width: 0;
	padding-inline: 1.5rem;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	color: var(--ge-text);
	outline: none;
}

.ge-search__input::placeholder {
	color: var(--ge-text-soft);
}

.ge-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	border: 0;
	background: transparent;
	color: var(--ge-text-soft);
	cursor: pointer;
}

.ge-search__submit svg {
	width: 20px;
	height: 20px;
}

.ge-search__submit:hover {
	color: var(--ge-blue);
}

/* Cart card */
.ge-cart {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	flex-shrink: 0;
	height: 44px;
	padding-inline: 1rem;
	background: var(--ge-cart-bg);
	border-radius: 6px;
	color: var(--ge-text);
}

.ge-cart__icon {
	position: relative;
	display: inline-flex;
	color: var(--ge-text);
}

.ge-cart__icon svg {
	width: 22px;
	height: 22px;
}

.ge-cart__count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	padding-inline: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ge-blue);
	color: var(--ge-white);
	font-size: 0.6875rem;
	font-weight: 700;
	border-radius: 999px;
}

.ge-cart__amount {
	display: none;
	font-weight: 600;
	white-space: nowrap;
}

/* Mobile-only WhatsApp + phone contact icons (sit before the cart). */
.ge-mainbar__contact {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-inline-start: auto;
	color: var(--ge-blue);
}

.ge-mainbar__contact-link {
	position: relative;
	display: inline-flex;
}

.ge-mainbar__contact-link svg {
	display: block;
	width: 24px;
	height: 24px;
}

.ge-mainbar__contact-dot {
	position: absolute;
	top: 0;
	right: -2px;
	width: 8px;
	height: 8px;
	background: var(--ge-green);
	border-radius: 999px;
}

/* ============================================================
   Header — Part 3: blue navigation bar (desktop only)
   ============================================================ */
.ge-nav {
	display: none;
	background: var(--ge-blue);
	color: var(--ge-white);
}

.ge-nav__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 48px;
}

.ge-nav__products {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
	font: inherit;
	font-weight: 700;
	color: var(--ge-white);
	background: transparent;
	border: 0;
	cursor: pointer;
}

.ge-nav__products:hover {
	text-decoration: underline;
}

.ge-nav__burger {
	display: inline-flex;
}

.ge-nav__burger svg {
	display: block;
	width: 22px;
	height: 22px;
}

.ge-nav__menu {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 0 0 0 4rem;
	padding: 0;
	list-style: none;
	flex: 1;
}

.ge-nav__menu a {
	display: inline-block;
	padding-block: 0.5rem;
	color: var(--ge-white);
}

.ge-nav__menu a:hover {
	text-decoration: underline;
}

/* Chevron-down on menu items that have children. */
.ge-nav__menu > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

/* Hover dropdown for direct child items of a menu entry. */
.ge-nav__menu > li {
	position: relative;
}

.ge-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: var(--ge-white);
	color: var(--ge-text);
	border-top: 2px solid var(--ge-blue);
	border-radius: 0 0 0.375rem 0.375rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 20;
}

.ge-nav__menu > li:hover > .sub-menu,
.ge-nav__menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ge-nav__menu .sub-menu a {
	display: block;
	padding: 0.5rem 1rem;
	color: var(--ge-text);
	white-space: nowrap;
}

.ge-nav__menu .sub-menu a:hover {
	background: var(--ge-gray-xlight);
	text-decoration: none;
}

.ge-nav__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-inline-start: auto;
	font-size: 0.875rem;
	color: var(--ge-white);
}

.ge-nav__phone-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--ge-green-bright);
	flex-shrink: 0;
}

.ge-nav__phone-number {
	color: var(--ge-white);
}

.ge-nav__phone-number:hover {
	text-decoration: underline;
}

/* Mega-menu panel (toggled open by the "Alle Produkte" button). */
.ge-megamenu {
	position: absolute;
	left: 0;
	right: 0;
	background: var(--ge-white);
	color: var(--ge-text);
	border-top: 1px solid var(--ge-line);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
	z-index: 30;
}

.ge-megamenu[hidden] {
	display: none;
}

.ge-megamenu__inner {
	padding-block: 1.5rem;
}

.ge-megamenu__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ge-megamenu__col {
	min-width: 0;
}

.ge-megamenu__title {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--ge-text);
}

.ge-megamenu__title:hover {
	color: var(--ge-blue);
}

.ge-megamenu__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ge-megamenu__items li {
	margin-block: 0.25rem;
}

.ge-megamenu__items a {
	display: inline-block;
	font-size: 0.875rem;
	color: var(--ge-text-soft);
}

.ge-megamenu__items a:hover {
	color: var(--ge-blue);
	text-decoration: underline;
}

.ge-megamenu__all {
	margin: 1.5rem 0 0;
	font-weight: 600;
}

.ge-megamenu__all a {
	color: var(--ge-blue);
}

.ge-megamenu__all a:hover {
	text-decoration: underline;
}

/* Position the mega menu relative to the nav so it spans the bar width. */
.ge-nav {
	position: relative;
}

/* Tablet/desktop: search inline between logo and cart, cart amount visible, contact icons hidden. */
@media (min-width: 768px) {
	.ge-mainbar__inner {
		flex-wrap: nowrap;
		padding-block: 0;
	}

	.ge-mainbar__logo .custom-logo,
	.ge-mainbar__logo img {
		max-height: 64px;
		max-width: 260px;
	}

	.ge-search {
		order: 0;
		flex: 1;
	}

	.ge-mainbar__contact {
		display: none;
	}

	.ge-cart__amount {
		display: inline;
	}

}

/* Blue nav is desktop-only (matches saniweb's lg: breakpoint). */
@media (min-width: 1024px) {
	.ge-nav {
		display: block;
	}

	.ge-mainbar__burger {
		display: none;
	}
}

/* ------------------------------------------------------------------------- *
 * Mobile slide-out menu (Part 4)
 * ------------------------------------------------------------------------- */

.ge-mobilemenu {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.ge-mobilemenu[hidden] {
	display: none;
}

.ge-mobilemenu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 32, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ge-mobilemenu.is-open .ge-mobilemenu__backdrop {
	opacity: 1;
}

.ge-mobilemenu__panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(85vw, 360px);
	display: flex;
	flex-direction: column;
	background: var(--ge-white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ge-mobilemenu.is-open .ge-mobilemenu__panel {
	transform: translateX(0);
}

.ge-mobilemenu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--ge-line);
}

.ge-mobilemenu__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--ge-text);
}

.ge-mobilemenu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-inline-end: -8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ge-text);
	cursor: pointer;
}

.ge-mobilemenu__close svg {
	width: 22px;
	height: 22px;
}

.ge-mobilemenu__search {
	display: flex;
	align-items: stretch;
	height: 44px;
	margin: 1rem 1.25rem;
	border: 1px solid var(--ge-line);
	border-radius: 0.5rem;
	overflow: hidden;
	background: var(--ge-gray-xlight);
}

.ge-mobilemenu__search-input {
	flex: 1;
	min-width: 0;
	padding-inline: 1rem;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	color: var(--ge-text);
	outline: none;
}

.ge-mobilemenu__search-input::placeholder {
	color: var(--ge-text-soft);
}

.ge-mobilemenu__search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	border: 0;
	background: transparent;
	color: var(--ge-text-soft);
	cursor: pointer;
}

.ge-mobilemenu__search-submit svg {
	width: 20px;
	height: 20px;
}

.ge-mobilemenu__nav {
	flex: 1;
	padding-block: 0.5rem;
}

.ge-mobilemenu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ge-mobilemenu__item {
	border-bottom: 1px solid var(--ge-line);
}

.ge-mobilemenu__row {
	display: flex;
	align-items: stretch;
}

.ge-mobilemenu__link {
	flex: 1;
	padding: 0.875rem 1.25rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--ge-text);
	text-decoration: none;
}

.ge-mobilemenu__link:hover {
	color: var(--ge-blue);
}

.ge-mobilemenu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	border: 0;
	border-left: 1px solid var(--ge-line);
	background: transparent;
	color: var(--ge-text-soft);
	cursor: pointer;
}

.ge-mobilemenu__toggle svg {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.ge-mobilemenu__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.ge-mobilemenu__sub {
	list-style: none;
	margin: 0;
	padding: 0 0 0.5rem;
	background: var(--ge-gray-xlight);
}

.ge-mobilemenu__sub-link {
	display: block;
	padding: 0.625rem 1.25rem 0.625rem 2rem;
	font-size: 0.875rem;
	color: var(--ge-text-soft);
	text-decoration: none;
}

.ge-mobilemenu__sub-link:hover {
	color: var(--ge-blue);
}

.ge-mobilemenu__all {
	display: block;
	padding: 1rem 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ge-blue);
	text-decoration: none;
}

.ge-mobilemenu__contact {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--ge-line);
}

.ge-mobilemenu__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--ge-text);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
}

.ge-mobilemenu__contact-link svg {
	width: 18px;
	height: 18px;
	color: var(--ge-blue);
}

.ge-mobilemenu__contact-link:hover {
	color: var(--ge-blue);
}

/* Scroll lock applied to <body> while the panel is open. */
.ge-no-scroll {
	overflow: hidden;
}

/* ------------------------------------------------------------------------- *
 * Homepage — hero banners
 * ------------------------------------------------------------------------- */

.ge-banners {
	padding-block: 1.25rem;
}

.ge-banners__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

.ge-banner {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 1rem;
	color: var(--ge-white);
	text-decoration: none;
	aspect-ratio: 16 / 9;
	background: var(--ge-gray-xlight);
}

.ge-banner__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ge-banner__title {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 1rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ge-white);
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.ge-banner__cta {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.125rem;
	padding: 0.5rem 0.5rem 0.5rem 0.875rem;
	background: var(--ge-accent-red);
	color: var(--ge-white);
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 0.375rem;
	line-height: 1;
}

.ge-banner__cta svg {
	width: 18px;
	height: 18px;
}

@media (min-width: 768px) {
	.ge-banners {
		padding-block: 1.75rem;
	}

	.ge-banners__grid {
		gap: 1rem;
		grid-template-columns: 3fr 1fr;
		grid-template-rows: 1fr 1fr;
	}

	.ge-banner--main {
		grid-column: 1;
		grid-row: 1 / span 2;
		aspect-ratio: auto;
	}

	.ge-banner--side {
		grid-column: 2;
		aspect-ratio: auto;
	}
}

@media (min-width: 1024px) {
	.ge-banners {
		padding-block: 2.5rem;
	}

	.ge-banners__grid {
		gap: 1.5rem;
	}

	.ge-banner__title {
		padding: 1.25rem;
		font-size: 1.25rem;
	}

	.ge-banner__cta {
		font-size: 0.9375rem;
	}
}

/* ------------------------------------------------------------------------- *
 * Homepage — service strip
 * ------------------------------------------------------------------------- */

.ge-services {
	padding-block: 1.25rem 2rem;
}

.ge-services__heading {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ge-text);
}

.ge-services__strip {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
	margin-inline: calc(var(--ge-gutter, 1rem) * -1);
	padding-inline: var(--ge-gutter, 1rem);
}

.ge-services__strip::-webkit-scrollbar {
	display: none;
}

.ge-service {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: min(85%, 320px);
	min-height: 220px;
	padding: 1rem;
	border-radius: 1rem;
	overflow: hidden;
	background: var(--ge-cart-bg);
	color: var(--ge-blue-xdark);
	text-decoration: none;
	scroll-snap-align: start;
}

.ge-service__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 60%;
}

.ge-service__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.ge-service__desc {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--ge-blue-xdark);
}

.ge-service__cta {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 0.125rem;
	padding: 0.5rem 0.5rem 0.5rem 0.875rem;
	background: var(--ge-blue);
	color: var(--ge-white);
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 0.375rem;
	line-height: 1;
}

.ge-service__cta svg {
	width: 18px;
	height: 18px;
}

.ge-service__image {
	position: absolute;
	right: 0;
	bottom: 0;
	max-width: 50%;
	max-height: 100%;
	width: auto;
	height: auto;
	pointer-events: none;
}

@media (min-width: 768px) {
	.ge-services {
		padding-block: 1.5rem 2.5rem;
	}

	.ge-services__heading {
		font-size: 1.5rem;
		margin-bottom: 1.25rem;
	}

	.ge-services__strip {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
		overflow: visible;
		margin-inline: 0;
		padding-inline: 0;
	}

	.ge-service {
		width: auto;
		min-height: 236px;
	}
}

@media (min-width: 1024px) {
	.ge-services {
		padding-block: 2rem 3rem;
	}

	.ge-services__strip {
		gap: 1.5rem;
	}

	.ge-service {
		min-height: 280px;
		padding: 1.5rem;
	}

	.ge-service__title {
		font-size: 1.5rem;
	}

	.ge-service__desc {
		font-size: 1rem;
	}
}
