/*
Theme Name: La Gheorghiță
Theme URI: https://beardesk.ro
Author: Ioan Marica
Author URI: https://beardesk.ro
Description: Tema custom pentru lag.h.bde.sk, inspirata de lagheorghita.ro.
Version: 0.1.239
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lagheorghita
*/

:root {
	--lg-navy: #273960;
	--lg-orange: #f35321;
	--lg-orange-2: #f85639;
	--lg-gray: #6d767d;
	--lg-border: #eee;
	--lg-bg: #f5f5f5;
	--lg-page-gutter: 10px;
	--lg-product-card-gap: 10px;

	/* Font trial: schimba doar aceste 3 linii cu 'Rubik', Arial, sans-serif
	   pentru a reveni instant la fonturile dinainte. */
	--lg-font-base: 'IBM Plex Sans', Arial, sans-serif;
	--lg-font-heading: 'Archivo', Arial, sans-serif;
	--lg-font-price: 'IBM Plex Mono', 'Courier New', monospace;
}

.lg-price-decimals {
	display: inline-block;
	margin-left: 1px;
	font-size: .58em;
	font-weight: inherit;
	line-height: 1;
	vertical-align: super;
}

.lg-archive-card__price-current,
.lg-list-card__price-current,
.lg-compare-table__price-current,
.lg-product__price-new,
.lg-product__price ins,
.lg-product__related-price,
.lg-product__related-price ins,
.lg-product__recent-price,
.lg-product__recent-price ins,
.lg-search__item-price,
.lg-search__item-price ins {
	color: var(--lg-orange) !important;
}

/* Global toast notifications */
.lg-toast-stack {
	position: fixed;
	right: 20px;
	top: 20px;
	z-index: 1900;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(390px, calc(100vw - 32px));
	pointer-events: none;
}

.lg-toast {
	--lg-toast-bg: var(--lg-navy);
	--lg-toast-color: #fff;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 62px;
	padding: 14px 44px 14px 18px;
	overflow: hidden;
	background: var(--lg-toast-bg);
	color: var(--lg-toast-color);
	border: 1px solid rgba(11, 22, 40, .1);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(11, 22, 40, .12);
	opacity: 0;
	transform: translate3d(0, -22px, 0);
	transition: opacity .24s ease, transform .24s ease;
	pointer-events: auto;
}

.lg-toast.is-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.lg-toast.is-leaving {
	opacity: 0;
	transform: translate3d(0, -22px, 0);
}

.lg-toast--success {
	--lg-toast-bg: #f2fbf5;
	--lg-toast-color: #1f3a2a;
	border-color: #d8eddf;
	box-shadow: 0 10px 28px rgba(31, 58, 42, .08);
}

.lg-toast--error {
	--lg-toast-bg: #9f1d16;
}

.lg-toast--warning {
	--lg-toast-bg: #fff;
	--lg-toast-color: #273960;
	border-color: rgba(39, 57, 96, .14);
	box-shadow: 0 18px 42px rgba(11, 22, 40, .18);
}

.lg-toast--warning .lg-toast__progress {
	display: none;
}

.lg-toast__body {
	flex: 1 1 auto;
	min-width: 0;
}

.lg-toast__title {
	margin: 0 0 3px;
	color: #101317;
	font-family: var(--lg-font-base);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
}

.lg-toast__message {
	margin: 0;
	color: rgba(16, 19, 23, .72);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

.lg-toast__action {
	flex: 0 0 auto;
	margin-top: 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: #050505;
	color: #fff;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.lg-toast__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: transparent;
	color: currentColor;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	opacity: .55;
}

.lg-toast__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: currentColor;
	opacity: .28;
	transform-origin: left center;
	animation: lg-toast-progress var(--lg-toast-duration, 4500ms) linear forwards;
}

@keyframes lg-toast-progress {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--lg-font-base);
	color: var(--lg-navy);
	background: var(--lg-bg);
}

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

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

button {
	font-family: inherit;
	cursor: pointer;
}

/* h3 atinge ~20px la viewport ≥1200px; celelalte scale proporțional */
h1, h2, h3, h4, h5, h6 { font-family: var(--lg-font-heading); }
h1 { font-size: clamp(1.5rem,  1.5vw + 1.125rem, 2.25rem); }
h2 { font-size: clamp(1.25rem, 1vw   + 1rem,     1.75rem); }
h3 { font-size: clamp(0.95rem, 0.625vw + 0.78rem, 1.25rem); }
h4 { font-size: clamp(0.9rem,  0.5vw  + 0.7rem,  1.125rem); }
h5 { font-size: clamp(0.85rem, 0.35vw + 0.65rem, 1rem); }
h6 { font-size: clamp(0.8rem,  0.2vw  + 0.6rem,  0.875rem); }

/* ── Compare panel ── */

.lg-compare-panel {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	background: #fff;
	border: 1px solid var(--lg-border);
	border-right: none;
	border-radius: 12px 0 0 12px;
	box-shadow: -4px 0 24px rgba(0, 0, 0, .1);
	z-index: 1200;
	padding: 5px;
}

.lg-compare-panel__grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lg-compare-panel__slot {
	position: relative;
	width: 60px;
	aspect-ratio: 1 / 1;
	background: var(--lg-bg);
	border: 1px dashed var(--lg-border);
	border-radius: 8px;
}

.lg-compare-panel__item {
	position: relative;
	width: 100%;
	height: 100%;
}

.lg-compare-panel__img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.lg-compare-panel__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	padding: 4px;
}

.lg-compare-panel__remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e74c3c;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	font-size: 9px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	transition: background .12s;
}

.lg-compare-panel__remove:hover {
	background: #c0392b;
}

.lg-compare-panel__footer {
	margin-top: 14px;
	display: flex;
	justify-content: center;
}

.lg-compare-panel__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 25px;
	background: var(--lg-orange);
	color: #fff;
	border-radius: 8px;
	transition: background .15s;
}

.lg-compare-panel__cta:hover {
	background: var(--lg-orange-2);
	color: #fff;
}

.lg-container {
	max-width: 1400px;
	margin: 0 auto;
	padding-right: var(--lg-page-gutter);
	padding-left: var(--lg-page-gutter);
}

[x-cloak] {
	display: none !important;
}

.lg-no-scroll {
	overflow: hidden;
}

/* WooCommerce account and generic content pages */
.woocommerce-account main.lg-container,
.page:not(.woocommerce-cart):not(.woocommerce-checkout) main.lg-container {
	width: 100%;
}

.woocommerce-account main > .woocommerce {
	max-width: 720px;
	margin: 0 auto;
	padding: 28px;
	border: 1px solid var(--lg-border);
	border-radius: 12px;
	background: #fff;
}

.woocommerce-account .woocommerce-form-login {
	margin: 0;
}

.woocommerce-account .woocommerce-form-row {
	margin: 0 0 16px;
}

.woocommerce-account .woocommerce-form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.woocommerce-account .woocommerce-Input,
.woocommerce-account .password-input {
	display: block;
	width: 100%;
}

.woocommerce-account .woocommerce-Input {
	min-height: 46px;
	padding: 10px 44px 10px 12px;
	border: 1px solid #cfd5dc;
	border-radius: 6px;
	font: inherit;
}

.woocommerce-account .password-input {
	position: relative;
}

.woocommerce-account .show-password-input {
	position: absolute;
	top: 1px;
	right: 1px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
}

.woocommerce-account .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-right: 12px;
}

.woocommerce-account .woocommerce-form-login__rememberme input {
	width: 18px;
	height: 18px;
}

.woocommerce-account .woocommerce-form-login__submit {
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: 6px;
	background: var(--lg-orange);
	color: #fff;
	font-weight: 700;
}

.woocommerce-account .lost_password a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: var(--lg-orange);
}

.lg-not-found {
	padding: clamp( 48px, 8vw, 100px ) 0;
}

.lg-not-found__card {
	max-width: 680px;
	margin: 0 auto;
	padding: clamp( 28px, 5vw, 52px );
	border: 1px solid var(--lg-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 44px rgba( 11, 22, 40, .07 );
	text-align: center;
}

.lg-not-found__code {
	display: block;
	margin-bottom: 8px;
	font: 700 clamp( 52px, 12vw, 88px )/1 var(--lg-font-heading);
	color: var(--lg-orange);
}

.lg-not-found__card h1 {
	margin: 0 0 12px;
}

.lg-not-found__card p {
	max-width: 520px;
	margin: 0 auto 24px;
	color: var(--lg-gray);
	line-height: 1.6;
}

.lg-not-found__search {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto;
	max-width: 520px;
	margin: 0 auto 18px;
}

.lg-not-found__search input,
.lg-not-found__search button,
.lg-not-found__actions a {
	min-height: 48px;
}

.lg-not-found__search input {
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid #cfd5dc;
	border-right: 0;
	border-radius: 8px 0 0 8px;
	font: inherit;
}

.lg-not-found__search button,
.lg-not-found__primary {
	border: 0;
	background: var(--lg-orange);
	color: #fff;
	font-weight: 700;
}

.lg-not-found__search button {
	padding: 0 20px;
	border-radius: 0 8px 8px 0;
}

.lg-not-found__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.lg-not-found__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 8px;
}

.lg-not-found__secondary {
	border: 1px solid var(--lg-border);
	background: #fff;
	font-weight: 700;
}

main.lg-container img,
main.lg-container iframe,
main.lg-container video {
	max-width: 100%;
	height: auto;
}

@media (max-width: 620px) {
	.page main.lg-container {
		padding: 32px var(--lg-page-gutter) !important;
	}

	.woocommerce-account main > .woocommerce {
		padding: 20px 16px;
		border-radius: 8px;
	}

	.lg-not-found {
		padding: 32px 0;
	}

	.lg-not-found__card {
		padding: 28px 16px;
		border-radius: 10px;
	}

	.lg-not-found__search {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.lg-not-found__search input,
	.lg-not-found__search button {
		border: 1px solid #cfd5dc;
		border-radius: 8px;
	}

	.lg-not-found__actions {
		flex-direction: column;
	}
}
