/*
Theme Name: NGC Shop
Theme URI: https://sklep.ngc.com.pl
Description: Child theme of Twenty Twenty-Five for sklep.ngc.com.pl. Matches the company site ngc.com.pl: carbon header with the NGC mark, paper background, gold accent, local Cormorant Garamond and Inter fonts.
Author: Next Gen Chemicals
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngc-shop
*/

:root {
	--ngc-carbon: #111416;
	--ngc-paper: #f6f5f0;
	--ngc-ink: #15191b;
	--ngc-gold: #d5b373;
	--ngc-gold-hover: #e5c895;
	--ngc-muted: #4c534a;
	--ngc-line: #cccdc3;
	--ngc-on-dark: #f9f7f2;
	--ngc-dim: #c1c3bc;
	--ngc-gold-dark: #57441d;
	--ngc-stone: #e5e5dc;
	--ngc-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--ngc-sans: Inter, "Segoe UI", Arial, sans-serif;
	--ngc-pad: clamp(20px, 5.4vw, 90px);
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	overflow-x: hidden;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Pages rendered by WooCommerce and core templates: gutters come from <main>. */
.wp-site-blocks main:not(.ngc-front) {
	padding-inline: var(--ngc-pad);
	padding-block: clamp(24px, 3.5vw, 48px) clamp(32px, 5vw, 72px);
}

a {
	text-decoration-color: var(--ngc-gold);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 3px solid #4786bd;
	outline-offset: 5px;
}

/* ---------- Header ---------- */

.ngc-header {
	background: var(--ngc-carbon);
	color: var(--ngc-on-dark);
}

.ngc-header a {
	color: inherit;
	text-decoration: none;
}

.ngc-header-inner {
	display: flex;
	gap: 30px;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
	width: min(100%, 1500px);
	margin-inline: auto;
	padding-inline: var(--ngc-pad);
}

.ngc-branding {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
}

.ngc-branding img {
	width: 48px;
	height: 50px;
	object-fit: contain;
	display: block;
}

.ngc-brandname {
	display: grid;
	font-family: var(--ngc-sans);
	font-size: 0.875rem;
	line-height: 1.13;
	letter-spacing: 0.018em;
}

.ngc-brandname b {
	font-weight: 650;
}

.ngc-brandname span {
	font-weight: 450;
}

.ngc-header-right {
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.ngc-nav {
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
}

.ngc-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--ngc-sans);
	font-size: 0.875rem;
	font-weight: 600;
}

.ngc-nav a:hover {
	text-decoration: underline;
	text-decoration-color: var(--ngc-gold);
	text-underline-offset: 5px;
}

.ngc-header .wc-block-mini-cart__button {
	color: var(--ngc-on-dark);
	min-height: 44px;
	min-width: 44px;
	padding: 0 8px;
	justify-content: center;
}

.ngc-header .wc-block-mini-cart__button:hover {
	opacity: 0.8;
}

.ngc-header .wc-block-mini-cart__badge {
	background: var(--ngc-gold);
	color: #101315;
	font-weight: 650;
}

.ngc-header .wc-block-mini-cart__icon,
.ngc-header .wc-block-mini-cart__quantity-badge svg {
	color: var(--ngc-on-dark);
	fill: currentColor;
}

/* ---------- Footer ---------- */

.ngc-footer {
	background: var(--ngc-carbon);
	color: var(--ngc-dim);
	padding-inline: var(--ngc-pad);
	font-size: 0.875rem;
}

.ngc-footer a {
	color: var(--ngc-on-dark);
	text-decoration: underline;
	text-decoration-color: var(--ngc-gold);
	text-underline-offset: 5px;
}

.ngc-footer a:hover {
	color: #fff;
}

.ngc-footer strong {
	color: var(--ngc-on-dark);
	font-weight: 650;
}

.ngc-footer p {
	line-height: 1.7;
}

/* ---------- Front page ---------- */

.ngc-wrap {
	width: min(100%, 1500px);
	margin-inline: auto;
	padding-inline: var(--ngc-pad);
}

.ngc-front > * {
	margin-block: 0;
}

.ngc-hero {
	background: var(--ngc-carbon);
	color: var(--ngc-on-dark);
	border-top: 1px solid #363b3b;
}

.ngc-hero-inner {
	min-height: 440px;
	padding-block: 56px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ngc-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--ngc-muted);
	font-family: var(--ngc-sans);
	font-weight: 650;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ngc-eyebrow::before {
	content: "";
	flex: none;
	width: 29px;
	height: 2px;
	background: #8c6f3c;
}

.ngc-hero .ngc-eyebrow {
	color: var(--ngc-gold);
}

.ngc-hero .ngc-eyebrow::before {
	background: var(--ngc-gold);
}

.ngc-hero-title {
	margin: 26px 0 21px;
	color: var(--ngc-on-dark);
	font-size: clamp(2.875rem, 5.5vw, 5.4375rem);
	line-height: 1.01;
	letter-spacing: -0.04em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.ngc-hero-title em {
	display: block;
	color: var(--ngc-gold);
	font-weight: 560;
}

.ngc-hero-lead {
	max-width: 36rem;
	margin: 0;
	color: var(--ngc-dim);
	font-size: clamp(1rem, 1.35vw, 1.25rem);
	line-height: 1.55;
}

.ngc-actions {
	display: flex;
	gap: 24px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 31px;
}

.ngc-solid,
.ngc-textlink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	font-family: var(--ngc-sans);
	font-size: 0.9375rem;
	font-weight: 650;
	text-decoration: none;
}

.ngc-solid {
	background: var(--ngc-gold);
	color: #101315;
	padding: 12px 21px;
	border-radius: 3px;
}

.ngc-solid:hover {
	background: var(--ngc-gold-hover);
	color: #101315;
}

.ngc-textlink {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--ngc-gold);
	text-underline-offset: 6px;
}

.ngc-hero .ngc-textlink {
	color: var(--ngc-on-dark);
}

.ngc-section {
	padding-block: clamp(54px, 6.4vw, 100px);
}

.ngc-section-categories {
	padding-bottom: clamp(24px, 3vw, 40px);
}

.ngc-intro {
	margin-bottom: 30px;
}

.ngc-intro h2 {
	margin: 12px 0 0;
	font-size: clamp(2.5rem, 4.4vw, 4.25rem);
	letter-spacing: -0.04em;
	text-wrap: balance;
}

/* Categories (woocommerce/product-categories) */

.ngc-categories .wc-block-product-categories {
	margin: 0;
}

.ngc-categories .wc-block-product-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid var(--ngc-line);
	border-left: 1px solid var(--ngc-line);
}

.ngc-categories .wc-block-product-categories-list-item {
	position: relative;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	border-right: 1px solid var(--ngc-line);
	border-bottom: 1px solid var(--ngc-line);
	min-height: 96px;
	padding: 20px 20px 18px;
}

.ngc-categories .wc-block-product-categories-list-item > a {
	font-family: var(--ngc-serif);
	font-size: clamp(1.375rem, 1.7vw, 1.75rem);
	font-weight: 560;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--ngc-ink);
	text-decoration: none;
}

.ngc-categories .wc-block-product-categories-list-item > a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ngc-categories .wc-block-product-categories-list-item:hover {
	background: var(--ngc-stone);
}

.ngc-categories .wc-block-product-categories-list-item:hover > a {
	text-decoration: underline;
	text-decoration-color: var(--ngc-gold);
	text-underline-offset: 5px;
}

.ngc-categories .wc-block-product-categories-list-item-count {
	flex: none;
	color: var(--ngc-gold-dark);
	font-size: 0.875rem;
	font-weight: 600;
}

/* Product grid (woocommerce/product-collection) */

.ngc-products .wc-block-product-template {
	gap: 28px 20px;
	margin: 0;
}

.ngc-products .wc-block-product-template > li,
.wc-block-product-template > li.wc-block-product {
	margin: 0;
}

.ngc-products .wc-block-components-product-image,
.ngc-products .wc-block-components-product-image a {
	display: block;
}

.ngc-products .wc-block-components-product-image {
	margin: 0 0 14px;
	background: #fff;
	border: 1px solid var(--ngc-line);
}

.ngc-products .wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.ngc-products .wp-block-post-title,
.wc-block-product-template .wp-block-post-title {
	margin: 0 0 4px;
	font-family: var(--ngc-sans);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.ngc-products .wp-block-post-title a,
.wc-block-product-template .wp-block-post-title a {
	color: var(--ngc-ink);
	text-decoration: none;
}

.ngc-products .wp-block-post-title a:hover,
.wc-block-product-template .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--ngc-gold);
	text-underline-offset: 4px;
}

.wc-block-components-product-price,
.wc-block-product-template .wc-block-components-product-price {
	color: var(--ngc-gold-dark);
	font-size: 0.875rem;
	font-weight: 600;
}

/* B2B strip */

.ngc-b2b {
	background: var(--ngc-stone);
	border-top: 1px solid var(--ngc-line);
	padding-block: clamp(48px, 5.7vw, 88px);
}

.ngc-b2b-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 7vw, 120px);
	align-items: center;
}

.ngc-b2b h2 {
	margin: 12px 0 0;
	font-size: clamp(2.5rem, 4.4vw, 4.25rem);
	letter-spacing: -0.04em;
}

.ngc-b2b-text {
	max-width: 35rem;
	margin: 18px 0 0;
	font-size: 1.0625rem;
	color: var(--ngc-muted);
}

.ngc-b2b .ngc-actions {
	margin-top: 24px;
}

.ngc-contact-links {
	display: grid;
	align-content: center;
}

.ngc-contact-links a {
	display: grid;
	gap: 2px;
	padding: 14px 0;
	border-bottom: 1px solid #b3b5a9;
	color: var(--ngc-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
	font-size: clamp(1.0625rem, 1.8vw, 1.625rem);
	font-weight: 540;
	letter-spacing: -0.025em;
}

.ngc-contact-links a:first-child {
	border-top: 1px solid #b3b5a9;
}

.ngc-contact-links a:hover {
	text-decoration: underline;
	text-decoration-color: var(--ngc-gold);
	text-underline-offset: 5px;
}

.ngc-contact-links small {
	font-size: 0.875rem;
	font-weight: 450;
	letter-spacing: 0;
	color: var(--ngc-muted);
}

/* ---------- Shared WooCommerce / core styling ---------- */

.wp-element-button,
.wp-block-button__link,
.wc-block-components-button:not(.is-link),
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit {
	background-color: var(--ngc-gold);
	color: #101315;
	border-radius: 3px;
	font-family: var(--ngc-sans);
	font-weight: 650;
	text-decoration: none;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.wc-block-components-button:not(.is-link):hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background-color: var(--ngc-gold-hover);
	color: #101315;
}

.wc-block-components-product-price__value.is-discounted {
	color: var(--ngc-gold-dark);
}

.ngc-clp {
	border-color: var(--ngc-line);
	background: #fff;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 1150px) {
	.ngc-categories .wc-block-product-categories-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 850px) {
	.ngc-header-inner {
		gap: 15px;
	}

	.ngc-hero-inner {
		min-height: 380px;
	}

	.ngc-actions {
		gap: 13px;
	}

	.ngc-b2b-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 680px) {
	.ngc-header-inner {
		min-height: 70px;
		flex-wrap: wrap;
		gap: 0 6px;
	}

	.ngc-header-right,
	.ngc-nav {
		gap: 13px;
	}

	.ngc-nav a {
		font-size: 0.8125rem;
	}

	.ngc-branding {
		gap: 6px;
	}

	.ngc-branding img {
		width: 34px;
		height: 38px;
	}

	.ngc-brandname {
		font-size: 0.75rem;
	}

	.ngc-hero-inner {
		padding-block: 31px 28px;
		min-height: 0;
	}

	.ngc-actions {
		margin-top: 24px;
	}

	.ngc-categories .wc-block-product-categories-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ngc-categories .wc-block-product-categories-list-item {
		min-height: 84px;
		padding: 14px 12px;
	}

	.ngc-products .wc-block-product-template.is-flex-container > li,
	.ngc-products .wc-block-product-template.is-flex-container.columns-4 > li {
		width: calc((100% - 12px) / 2);
	}

	.ngc-products .wc-block-product-template {
		gap: 20px 12px;
	}

	.ngc-products .wp-block-post-title {
		font-size: 0.9375rem;
	}

	.ngc-contact-links a {
		padding: 11px 0;
	}
}

@media (max-width: 370px) {
	.ngc-brandname {
		display: none;
	}

	.ngc-nav,
	.ngc-header-right {
		gap: 9px;
	}

	.ngc-header-inner {
		padding-inline: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
