/*
 * Structura: capul paginii, straturile (căutare, meniu, coș), subsolul,
 * învelișul paginilor scrise ca HTML și antetul paginilor de magazin.
 */

/* =========================================================================
   Învelișul WoodMart
   ========================================================================= */

.os .wd-page-wrapper { background: var(--os-white); }

.os .wd-page-content {
	padding-top: var(--os-header-h);
	background: transparent;
}

/* Paginile scrise ca HTML: fără containerul, spațiile și titlul WoodMart. */
/* `.os.os-canvas … .container` bate regula de container din woo.css. */
.os.os-canvas .wd-content-layout,
.os.os-canvas .wd-content-layout.container {
	display: block;
	max-width: none;
	padding: 0;
	margin: 0;
}

.os-canvas .wd-content-area,
.os-canvas .entry-content,
.os-canvas article.page {
	margin: 0;
	padding: 0;
	max-width: none;
}

.os-canvas .wd-content-area > article > :last-child { margin-bottom: 0; }

/* WoodMart pune var(--wd-block-spacing) sub fiecare bloc; secțiunile noastre își țin singure ritmul. */
.os-canvas .entry-content > * { margin-block: 0; }

/* Pe prima pagină, primul ecran trece pe sub capul transparent. */
.os-dark-top .wd-page-content { padding-top: 0; }

/* =========================================================================
   Capul paginii
   ========================================================================= */

.os-header {
	position: fixed;
	inset: var(--wp-admin--admin-bar--height, 0px) 0 auto 0;
	z-index: 400;
	height: var(--os-header-h);
	color: var(--os-ink);
	background: rgba(255, 255, 255, .78);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	border-bottom: 1px solid var(--os-line);
	transition: background-color .35s var(--os-ease), color .35s var(--os-ease), border-color .35s var(--os-ease), transform .45s var(--os-ease-out);
}

/* Peste primul ecran întunecat al primei pagini: transparent, text deschis. */
.os-dark-top .os-header:not(.is-solid) {
	color: var(--os-on-night);
	background: transparent;
	border-bottom-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.os-header.is-hidden { transform: translateY(-100%); }

.os-header__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 100%;
}

/* ---------- Marca ---------- */

.os-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
	flex: none;
}

.os-logo:hover { color: inherit; }

.os-logo__mark { display: inline-flex; width: 30px; height: 30px; }
.os-logo__mark svg { width: 100%; height: 100%; overflow: visible; }

.os-logo__word {
	font-size: 1.32rem;
	font-weight: 700;
	letter-spacing: -.055em;
	line-height: 1;
}

.os-logo__word span { font-weight: 400; opacity: .72; }

.os-logo--image img { max-height: 36px; width: auto; }

/* ---------- Navigația ---------- */

.os-nav { flex: 1; display: flex; justify-content: center; }

.os .os-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.os .os-nav__list li { margin: 0; }

.os .os-nav__list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 14px;
	border-radius: var(--os-pill);
	color: inherit;
	font-size: .92rem;
	font-weight: 500;
	letter-spacing: -.01em;
	text-decoration: none;
	opacity: .78;
	transition: opacity .2s var(--os-ease), background-color .2s var(--os-ease);
}

.os .os-nav__list a:hover { opacity: 1; background: rgba(127, 127, 140, .12); }

.os .os-nav__list :is(.current-menu-item, .current-menu-parent, .current-product_cat-ancestor) > a { opacity: 1; }

.os .os-nav__list :is(.current-menu-item, .current-menu-parent) > a::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 3px;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--os-gold);
}

/* ---------- Acțiunile din dreapta ---------- */

.os-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.os .os-iconbtn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color .2s var(--os-ease);
}

.os .os-iconbtn:hover { background: rgba(127, 127, 140, .14); color: inherit; }
.os .os-iconbtn .os-icon { width: 21px; height: 21px; }

.os-cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	display: grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--os-pill);
	background: var(--os-grad-gold);
	color: var(--os-ink);
	font-family: var(--os-mono);
	font-size: .66rem;
	font-weight: 600;
	line-height: 1;
	transition: transform .35s var(--os-ease-out);
}

.os-cart-count.is-empty { transform: scale(0); }
.os-cartbtn.is-bump .os-cart-count { animation: os-bump .6s var(--os-ease-out); }

@keyframes os-bump {
	0% { transform: scale(1); }
	35% { transform: scale(1.45); }
	100% { transform: scale(1); }
}

.os-burger { display: none !important; }

@media (max-width: 1080px) {
	.os-nav { display: none; }
	.os-burger { display: inline-grid !important; }
}

@media (max-width: 480px) {
	.os-hide-sm { display: none !important; }
	.os-header__bar { gap: 12px; }
}

/* =========================================================================
   Straturi: căutare, meniu, coș
   ========================================================================= */

.os-layer {
	position: fixed;
	inset: 0;
	z-index: 900;
}

.os-layer[hidden] { display: none; }

.os-layer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(5, 5, 6, .42);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .35s var(--os-ease);
}

.os-layer.is-open .os-layer__scrim { opacity: 1; }

/* ---------- Căutarea ---------- */

.os-search__panel {
	position: relative;
	z-index: 1;
	padding: calc(var(--wp-admin--admin-bar--height, 0px) + 20px) var(--os-gutter) 28px;
	background: var(--os-white);
	box-shadow: var(--os-shadow-2);
	transform: translateY(-24px);
	opacity: 0;
	transition: transform .45s var(--os-ease-out), opacity .3s var(--os-ease);
}

.os-search.is-open .os-search__panel { transform: none; opacity: 1; }

.os-search__form {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 880px;
	margin: 0 auto;
	padding: 6px 6px 6px 22px;
	border: 1px solid var(--os-line-2);
	border-radius: var(--os-pill);
	color: var(--os-mute);
}

.os-search__form:focus-within { border-color: var(--os-ink); box-shadow: var(--os-ring); }

.os .os-search__form input[type='search'] {
	flex: 1;
	height: 52px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--os-ink);
	font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem);
	font-weight: 500;
	letter-spacing: -.02em;
}

.os .os-search__form input[type='search']:focus { outline: none; }

.os-search__hints {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-width: 880px;
	margin: 18px auto 0;
	font-size: .85rem;
	color: var(--os-mute);
}

.os-search__hints > span { margin-right: 6px; }

/* ---------- Meniul de mobil ---------- */

.os-menu__panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: calc(var(--wp-admin--admin-bar--height, 0px) + 14px) var(--os-gutter) 28px;
	background: var(--os-night);
	color: var(--os-on-night);
	overflow-y: auto;
	opacity: 0;
	transition: opacity .3s var(--os-ease);
}

.os-menu.is-open .os-menu__panel { opacity: 1; }

.os-menu__panel::before {
	content: '';
	position: absolute;
	top: -20%;
	right: -30%;
	width: 90vw;
	height: 90vw;
	background: var(--os-glow-gold);
	opacity: .5;
	pointer-events: none;
}

.os-menu__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 44px;
	margin-bottom: 24px;
}

.os-menu__head .os-eyebrow { color: var(--os-on-night-3); }

.os .os-menu__list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.os .os-menu__list li {
	border-bottom: 1px solid var(--os-night-line);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s var(--os-ease-out), transform .5s var(--os-ease-out);
}

.os-menu.is-open .os-menu__list li { opacity: 1; transform: none; }
.os-menu.is-open .os-menu__list li:nth-child(2) { transition-delay: .04s; }
.os-menu.is-open .os-menu__list li:nth-child(3) { transition-delay: .08s; }
.os-menu.is-open .os-menu__list li:nth-child(4) { transition-delay: .12s; }
.os-menu.is-open .os-menu__list li:nth-child(5) { transition-delay: .16s; }
.os-menu.is-open .os-menu__list li:nth-child(6) { transition-delay: .2s; }
.os-menu.is-open .os-menu__list li:nth-child(7) { transition-delay: .24s; }

.os .os-menu__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	color: var(--os-on-night);
	font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
	font-weight: 600;
	letter-spacing: -.035em;
	text-decoration: none;
}

.os .os-menu__list .current-menu-item > a { color: var(--os-gold-soft); }

.os-menu__foot { position: relative; margin-top: auto; padding-top: 28px; }

/* ---------- Coșul lateral ---------- */

.os-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	background: var(--os-white);
	box-shadow: var(--os-shadow-2);
	transform: translateX(100%);
	transition: transform .5s var(--os-ease-out);
}

.os-drawer.is-open .os-drawer__panel { transform: none; }

.os-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: calc(var(--wp-admin--admin-bar--height, 0px) + 18px) 24px 18px;
	border-bottom: 1px solid var(--os-line);
}

.os .os-drawer__head h2 {
	margin: 0;
	font-size: 1.25rem;
	letter-spacing: -.03em;
}

.os-drawer .widget_shopping_cart_content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* =========================================================================
   Antetul paginilor de magazin (woo.php → orosmart_woo_pagehead)
   ========================================================================= */

.os-pagehead {
	padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px);
	background:
		radial-gradient(60% 120% at 100% 0%, rgba(220, 170, 76, .10), transparent 60%),
		var(--os-paper);
	border-bottom: 1px solid var(--os-line);
}

.os .os-pagehead__title {
	margin: 14px 0 0;
	font-size: var(--os-fs-h1);
	line-height: 1;
	letter-spacing: var(--os-track-tight);
}

.os-pagehead__lead {
	max-width: 56ch;
	margin: 18px 0 0;
	font-size: var(--os-fs-lead);
	line-height: 1.5;
}

.os-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

/* =========================================================================
   Subsolul
   ========================================================================= */

.os-footer {
	position: relative;
	overflow: hidden;
	padding-top: clamp(64px, 8vw, 112px);
	background: var(--os-night);
	color: var(--os-on-night-2);
	font-size: .94rem;
}

.os-footer::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -40%;
	width: 120%;
	height: 90%;
	transform: translateX(-50%);
	background: radial-gradient(50% 50% at 50% 50%, rgba(220, 170, 76, .16), transparent 70%);
	pointer-events: none;
}

.os-footer > .os-container { position: relative; }

.os-footer__top {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 40px;
}

.os-footer__brand p {
	max-width: 36ch;
	margin: 20px 0 0;
	line-height: 1.6;
}

.os-logo--light { color: var(--os-on-night); }

.os .os-footer h2 {
	margin: 4px 0 18px;
	color: var(--os-on-night-3);
	font-family: var(--os-mono);
	font-size: .74rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.os .os-footer ul { margin: 0; padding: 0; list-style: none; }
.os .os-footer li { margin: 0 0 10px; }

.os .os-footer a {
	color: var(--os-on-night);
	text-decoration: none;
	transition: color .2s var(--os-ease);
}

.os .os-footer a:hover { color: var(--os-gold-soft); }

.os-footer__big {
	margin: clamp(48px, 7vw, 96px) 0 0;
	font-size: clamp(4.5rem, 19vw, 17.5rem);
	font-weight: 700;
	line-height: .78;
	letter-spacing: -.07em;
	text-align: center;
	background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 88%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	user-select: none;
}

.os-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding: 22px 0 28px;
	border-top: 1px solid var(--os-night-line);
	font-size: .82rem;
	color: var(--os-on-night-3);
}

.os-footer__bottom p { margin: 0; }

.os-footer__meta {
	display: flex;
	flex: 1 1 520px;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
}

/* Sigla NETOPIA: scriptul pune un div cu imaginea (418 × 75) la 100% din container. */
.os-footer__pay {
	display: flex;
	align-items: center;
	gap: 14px;
}

.os-footer__pay > span {
	font-family: var(--os-mono);
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.os-footer__netopia {
	width: 178px;
	height: 32px;
	flex: none;
}

.os-footer__netopia img { display: block; }

@media (max-width: 560px) {
	.os-footer__pay { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.os-footer .os-contact-list { margin-top: 24px; }
.os-footer .os-contact-list small { color: var(--os-on-night-3); }

@media (max-width: 900px) {
	.os-footer__top { grid-template-columns: 1fr 1fr; }
	.os-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
	.os-footer__top { grid-template-columns: 1fr; gap: 28px; }
}

/* Doar pentru capturile locale (?os-eager): Chrome headless nu avansează tranzițiile. */
.os-eager .os-layer,
.os-eager .os-layer * { transition: none !important; }

/* =========================================================================
   Butonul WhatsApp, plutitor
   ========================================================================= */

.os .os-wa {
	position: fixed;
	right: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom));
	z-index: 800;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 20px 6px 6px;
	border-radius: var(--os-pill);
	background: var(--os-white);
	color: var(--os-ink);
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(11, 11, 12, .06), 0 18px 40px -16px rgba(11, 11, 12, .35);
	transition: transform .35s var(--os-ease-out), bottom .45s var(--os-ease-out), opacity .3s var(--os-ease), box-shadow .3s var(--os-ease);
}

.os .os-wa:hover {
	color: var(--os-ink);
	transform: translateY(-3px);
	box-shadow: 0 2px 6px rgba(11, 11, 12, .06), 0 24px 50px -16px rgba(11, 11, 12, .45);
}

/* Verdele WhatsApp: oamenii îl recunosc din prima, de aceea rămâne verde. */
.os-wa__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	flex: none;
}

.os-wa__icon::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
	animation: os-wa-pulse 2.4s var(--os-ease-out) 1.2s 3;
}

@keyframes os-wa-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
	100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

.os-wa__glyph { width: 28px; height: 28px; }

.os-wa__label { display: grid; line-height: 1.2; }
.os-wa__label b { font-size: .92rem; font-weight: 600; letter-spacing: -.01em; }
.os-wa__label small { margin-top: 2px; font-family: var(--os-mono); font-size: .72rem; color: var(--os-mute); }

/* Peste bara fixă de cumpărare WoodMart, nu sub ea. */
body:has(.wd-sticky-btn-shown) .os-wa { bottom: calc(var(--wd-sticky-btn-height, 95px) + 16px); }

/* Ascuns cât timp e deschis un strat (meniu, coș, căutare). */
body.os-locked .os-wa { opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
	.os .os-wa { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 0; background: transparent; box-shadow: none; }
	.os .os-wa:hover { box-shadow: none; }
	.os-wa__label { display: none; }
	.os-wa__icon { width: 58px; height: 58px; box-shadow: 0 14px 30px -10px rgba(11, 11, 12, .45); }
	.os-wa__glyph { width: 30px; height: 30px; }
	body.os-cookie-open .os-wa { opacity: 0; pointer-events: none; }
}

/* =========================================================================
   Bannerul de cookie-uri
   ========================================================================= */

.os-cookie {
	position: fixed;
	left: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom));
	z-index: 850;
	width: min(430px, calc(100vw - 40px));
}

.os-cookie[hidden] { display: none; }

.os-cookie__card {
	padding: 22px;
	border: 1px solid var(--os-line);
	border-radius: var(--os-radius-lg);
	background: rgba(255, 255, 255, .97);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	backdrop-filter: saturate(180%) blur(16px);
	box-shadow: 0 2px 6px rgba(11, 11, 12, .05), 0 30px 70px -24px rgba(11, 11, 12, .4);
	transform: translateY(18px);
	opacity: 0;
	transition: transform .5s var(--os-ease-out), opacity .35s var(--os-ease);
}

.os-cookie.is-open .os-cookie__card { transform: none; opacity: 1; }

.os-cookie__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.os-cookie__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--os-ink);
	color: var(--os-gold-soft);
}

.os-cookie__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.os .os-cookie h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.02em; }

.os .os-cookie p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--os-text); }
.os .os-cookie p a { color: var(--os-ink); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }

.os-cookie__prefs { display: grid; gap: 2px; margin-top: 16px; border-radius: var(--os-radius); overflow: hidden; }
.os-cookie__prefs[hidden] { display: none; }

.os .os-cookie__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 12px 14px;
	background: var(--os-paper);
	cursor: pointer;
}

.os-cookie__row b { display: block; font-size: .88rem; color: var(--os-ink); }
.os-cookie__row small { display: block; margin-top: 2px; font-size: .76rem; line-height: 1.35; color: var(--os-mute); }

/* Comutatoare */
.os .os-cookie__row input[type='checkbox'] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: none;
	width: 42px;
	height: 24px;
	margin: 0;
	border-radius: var(--os-pill);
	background: #d4d4d8;
	cursor: pointer;
	transition: background-color .25s var(--os-ease);
}

.os .os-cookie__row input[type='checkbox']::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	transition: transform .25s var(--os-ease-out);
}

.os .os-cookie__row input[type='checkbox']:checked { background: var(--os-ink); }
.os .os-cookie__row input[type='checkbox']:checked::after { transform: translateX(18px); }
.os .os-cookie__row input[type='checkbox']:disabled { opacity: .45; cursor: default; }

.os-cookie__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 16px;
}

.os .os-cookie__actions .os-btn { width: 100%; min-height: 44px; }
.os .os-cookie__actions [data-os-cookie-save] { grid-column: 1 / -1; }
.os .os-cookie__actions [hidden] { display: none; }

.os .os-cookie__more {
	grid-column: 1 / -1;
	justify-self: center;
	padding: 4px 8px;
	border: 0;
	background: none;
	color: var(--os-mute);
	font-family: var(--os-font);
	font-size: .82rem;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: .2em;
	cursor: pointer;
}

.os .os-cookie__more:hover { color: var(--os-ink); }

@media (max-width: 640px) {
	.os-cookie { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; }
	.os-cookie__card { padding: 18px; }
}

.os-eager .os-cookie__card,
.os-eager .os-wa__icon::before { transition: none !important; animation: none !important; }

/* =========================================================================
   Subsol: legătura-buton pentru setările cookie și datele firmei
   ========================================================================= */

.os .os-footer__linkbtn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--os-on-night);
	font: inherit;
	cursor: pointer;
	transition: color .2s var(--os-ease);
}

.os .os-footer__linkbtn:hover { color: var(--os-gold-soft); }

.os-footer__company {
	flex-basis: 100%;
	font-size: .76rem;
	line-height: 1.5;
}
.os .os-footer__linkbtn { min-height: 0; height: auto; line-height: inherit; text-align: left; text-transform: none; letter-spacing: inherit; }

/* În coș și la finalizare, doar iconița: nu acoperă butonul de comandă. */
.os.woocommerce-cart .os-wa,
.os.woocommerce-checkout .os-wa { padding: 0; background: transparent; box-shadow: none; }
.os.woocommerce-cart .os-wa__label,
.os.woocommerce-checkout .os-wa__label { display: none; }
.os.woocommerce-cart .os-wa__icon,
.os.woocommerce-checkout .os-wa__icon { box-shadow: 0 14px 30px -10px rgba(11, 11, 12, .45); }
