/* Genparts főoldal szekciók — Sorilux-szerű meleg professional megjelenés.
 * Lekerekített kártyák (16px), finom shadow-k, váltakozó cream/white sávok.
 */

/* =========================================================
 * Közös szekciós elemek
 * ========================================================= */
.gp-section {
	padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}

.gp-section--alt {
	background: #ffffff; /* eredeti cream átírva fehérre — user request */
}

.gp-section__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.gp-section__head {
	margin-bottom: 2rem;
	text-align: center;
}

.gp-section__kicker {
	display: inline-block;
	margin: 0 0 0.65rem;
	color: var(--gp-orange-hover);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.gp-section__h {
	margin: 0 auto 0.6rem;
	color: var(--gp-ink);
	font-weight: 700;
	font-size: clamp(1.6rem, 2.8vw, 2.25rem);
	line-height: 1.18;
	letter-spacing: -0.022em;
	max-width: 26ch;
}

.gp-section__lead {
	margin: 0 auto;
	max-width: 56ch;
	color: var(--gp-body);
	font-size: clamp(1rem, 1.3vw, 1.1rem);
	line-height: 1.6;
}

/* =========================================================
 * Kategória kártyák — 4-grid, ikonos, soft shadow
 * ========================================================= */
.gp-cats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.gp-cat {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding: 1.5rem 1.35rem;
	background: var(--gp-bg);
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius-lg);
	box-shadow: var(--gp-shadow-card);
	color: var(--gp-ink);
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gp-cat:hover {
	transform: translateY(-2px);
	box-shadow: var(--gp-shadow-card-hover);
	border-color: var(--gp-orange-soft);
	color: var(--gp-ink);
}

.gp-cat__icon {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: var(--gp-orange-pale);
	color: var(--gp-orange-hover);
	border-radius: var(--gp-radius-md);
}

.gp-cat__icon svg {
	width: 22px;
	height: 22px;
}

.gp-cat__name {
	margin: 0;
	color: var(--gp-ink);
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: -0.005em;
}

.gp-cat__sub {
	margin: 0;
	color: var(--gp-muted);
	font-size: 0.85rem;
	line-height: 1.4;
}

.gp-cat__more {
	margin-top: auto;
	color: var(--gp-orange-hover);
	font-size: 0.87rem;
	font-weight: 600;
}

.gp-cat__more::after {
	content: " →";
}

@media (max-width: 880px) {
	.gp-cats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.gp-cats__grid { grid-template-columns: 1fr; }
}

/* =========================================================
 * Featured termék szekció
 * ========================================================= */
.gp-products__more {
	margin-top: 1.75rem;
	text-align: center;
}

.gp-products__more a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.8rem 1.5rem;
	background: var(--gp-bg);
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius-pill);
	color: var(--gp-ink) !important;
	font-weight: 600;
	font-size: 0.93rem;
	text-decoration: none !important;
	transition: border-color 0.12s ease, color 0.12s ease;
}

.gp-products__more a:hover {
	border-color: var(--gp-orange);
	color: var(--gp-orange-hover) !important;
}

/* =========================================================
 * Benefits — egyszerű 4-oszlopos sor diszkrét ikonokkal
 * (nem a klasszikus AI-trio with cards & shadows!)
 * ========================================================= */
.gp-bens {
	background: var(--gp-bg);
	border-top: 1px solid var(--gp-line);
	border-bottom: 1px solid var(--gp-line);
}

.gp-bens__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem 2rem;
	list-style: none;
	padding: 0;
	margin: 0;
	max-width: 1200px;
	margin: 0 auto;
}

.gp-bens__list li {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	padding: 0.25rem 0;
}

.gp-bens__icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: var(--gp-orange);
	margin-top: 0.2rem;
}

.gp-bens__icon svg {
	width: 100%;
	height: 100%;
}

.gp-bens__label {
	display: block;
	color: var(--gp-ink);
	font-weight: 600;
	font-size: 0.97rem;
	margin-bottom: 0.15rem;
	letter-spacing: -0.005em;
}

.gp-bens__sub {
	display: block;
	color: var(--gp-muted);
	font-size: 0.85rem;
	line-height: 1.4;
}

@media (max-width: 880px) {
	.gp-bens__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.gp-bens__list { grid-template-columns: 1fr; }
}

/* =========================================================
 * Service callout — meleg cream-orange panel
 * ========================================================= */
.gp-service {
	background: var(--gp-orange-pale);
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.gp-service__inner {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(1.5rem, 4vw, 4rem);
	max-width: 1100px;
	margin: 0 auto;
	align-items: center;
}

.gp-service__copy h2 {
	margin: 0 0 0.65rem;
	color: var(--gp-ink);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.022em;
	line-height: 1.15;
}

.gp-service__copy p {
	margin: 0;
	color: var(--gp-ink-2);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 38ch;
}

.gp-service__card {
	background: var(--gp-bg);
	border-radius: var(--gp-radius-lg);
	padding: 1.5rem;
	box-shadow: var(--gp-shadow-card);
}

.gp-service__card p {
	margin: 0 0 1rem;
	color: var(--gp-body);
	line-height: 1.55;
}

.gp-service__contact {
	margin: 1rem 0 1.25rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.65rem;
}

.gp-service__contact li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--gp-ink);
	font-size: 0.97rem;
}

.gp-service__contact b {
	color: var(--gp-muted);
	font-weight: 500;
	font-size: 0.85rem;
	min-width: 70px;
}

.gp-service__contact a {
	color: var(--gp-ink) !important;
	text-decoration: none;
	font-weight: 500;
}

.gp-service__contact a:hover {
	color: var(--gp-orange-hover) !important;
}

@media (max-width: 880px) {
	.gp-service__inner { grid-template-columns: 1fr; }
}

/* =========================================================
 * Brand strip — diszkrét tipográfia, soft pill-ek
 * ========================================================= */
.gp-brands {
	background: var(--gp-bg);
	border-top: 1px solid var(--gp-line);
}

.gp-brands__kicker {
	text-align: center;
	margin: 0 0 1.5rem;
	color: var(--gp-muted);
	font-size: 0.83rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.gp-brands__row {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 1100px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.7rem 0.7rem;
}

.gp-brands__row li {
	padding: 0.55rem 1rem;
	background: var(--gp-line-soft);
	border-radius: var(--gp-radius-pill);
	color: var(--gp-ink);
	font-weight: 500;
	font-size: 0.93rem;
	letter-spacing: -0.005em;
}


/* =========================================================
 *  Fix: Shoptimizer mega-menü "menu-item-product" top-level elrejtés
 *  Ezek az elemek nav menüben vannak (Megjelenés → Menük).
 *  Top-level-en mindig láthatók — ezért rejtjük el itt.
 *  Ha sub-menu-wrapper-be teszed őket admin-ban, hover-en megjelennek.
 * ========================================================= */
/* Hide ALL menu-item-product elemet bárhol — descendant kombinátor (space)
   biztos hogy bármilyen wrapper-mélység esetén megtalálja */
.main-navigation .menu-item-product,
.col-full-nav .menu-item-product,
#site-navigation .menu-item-product,
nav .menu-item-product,
.site-header .menu-item-product,
header.site-header .menu-item-product,
ul.menu li.menu-item-product,
ul.primary-navigation li.menu-item-product,
#primary-menu li.menu-item-product {
	display: none !important;
}

/* Ha sub-menu-wrapper-ben van (dropdown), akkor megjelenik.
   Forrássorrend miatt ez a szabály felülírja a hide-ot azonos specifitásnál. */
.main-navigation .sub-menu-wrapper .menu-item-product,
.main-navigation .sub-menu .menu-item-product,
.col-full-nav .sub-menu-wrapper .menu-item-product,
.col-full-nav .sub-menu .menu-item-product,
#site-navigation .sub-menu-wrapper .menu-item-product,
.sub-menu-wrapper .menu-item-product,
.sub-menu .menu-item-product {
	display: block !important;
}

/* =========================================================
 *  Fix: WooCommerce termékrács — kényszerített 4-oszlopos grid
 *  a .gp-products szekciókon belül
 * ========================================================= */
.gp-products .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.gp-products .woocommerce ul.products li.product {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	min-height: auto !important;
}

.gp-products .woocommerce ul.products li.product img {
	width: 100% !important;
	height: auto !important;
	display: block !important;
}

/* Mobilon végig 2 oszlop (le 320px-ig) — nem esik 1-oszlopra */
@media (max-width: 880px) {
	.gp-products .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1rem !important;
	}
}

/* Fehér háttér a termékrács szekciókhoz — felülírja a "--alt" krémszínt */
.gp-products,
.gp-section.gp-products,
.gp-section.gp-section--alt.gp-products {
	background: #ffffff !important;
}

/* ===========================================================
 * [gp_features] — Why-us blokkok a főoldalon
 * Váltakozó kép-szöveg sorok, narancsos ikon-badge, kép helye
 * placeholderrel (későbbi kép-feltöltéskor automatikusan elrejti).
 * =========================================================== */
.gp-features {
	margin: clamp(56px, 8vw, 100px) auto;
	padding: 0 clamp(1rem, 3vw, 2rem);
	font-family: var(--gp-font, "DM Sans", system-ui, -apple-system, sans-serif);
}
.gp-features__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	gap: clamp(40px, 6vw, 80px);
}
.gp-features__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
/* Minden páros sor: a kép a JOBB oldalra ugrik */
.gp-features__row.is-alt .gp-features__media { order: 2; }

/* Média (kép vagy placeholder) */
.gp-features__media {
	position: relative;
	aspect-ratio: 16 / 11;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(135deg, #f0f2f6, #e7eaf0);
	box-shadow: 0 6px 30px rgba(15, 27, 45, 0.08);
}
.gp-features__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--bg-pos-d, center center);
	display: block;
}
@media (max-width: 768px) {
	.gp-features__media img {
		object-position: var(--bg-pos-m, var(--bg-pos-d, center center));
	}
}
.gp-features__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: rgba(15, 27, 45, 0.35);
	background: linear-gradient(135deg, rgba(255, 143, 28, 0.06), rgba(15, 27, 45, 0.05));
}
.gp-features__placeholder svg {
	width: 64px;
	height: 64px;
	opacity: 0.55;
}
.gp-features__placeholder-text {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Szöveg-test */
.gp-features__body { min-width: 0; }

.gp-features__icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(255, 143, 28, 0.18) 0%, rgba(255, 143, 28, 0.06) 100%);
	border: 1px solid rgba(255, 143, 28, 0.35);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--gp-orange, #FF8F1C);
	margin-bottom: 18px;
}
.gp-features__icon svg {
	width: 28px;
	height: 28px;
}
.gp-features__title {
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	margin: 0 0 14px;
	color: var(--gp-ink, #13294B);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.gp-features__text {
	color: #4b5563;
	line-height: 1.7;
	font-size: clamp(0.96rem, 1.4vw, 1.05rem);
	margin: 0;
}

/* Mobil: minden sor egyoszlopos, kép FELÜL — még az "is-alt" sorokban is */
@media (max-width: 768px) {
	.gp-features__row,
	.gp-features__row.is-alt {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.gp-features__row.is-alt .gp-features__media { order: 0; }
	.gp-features__media { aspect-ratio: 16 / 10; }
	.gp-features__icon { width: 48px; height: 48px; margin-bottom: 14px; }
	.gp-features__icon svg { width: 24px; height: 24px; }
}
