/*--------------------------------------------------------------
Yamato Romania — Pagină Cerere Ofertă

Se încarcă doar pe paginile cu șablonul „Pagină Cerere Ofertă” (vezi yamato_romania_scripts() din functions.php).
Depinde de style.css: variabilele --yamato-*, butonul .btn, antetul .page-header-bar și formularele .yf-*.

>>> CUPRINS:
# Zona principală (fundal bej, card alb centrat)
# Produsele din listă (poză, nume, cantitate − / +, ștergere)
--------------------------------------------------------------*/

.of-main {
	padding: 3rem 0 3.5rem;
	background-color: var(--yamato-paper);
}

.of-inner {
	max-width: 880px;
	margin: 0 auto;
	padding: 0 1.25em;
}

.of-card {
	display: grid;
	gap: 2rem;
	padding: 1.75rem 1.25rem;
	border: 1px solid var(--yamato-line);
	background-color: var(--yamato-surface);
}

.of-form-title,
.of-produse-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--yamato-ink);
}

.of-form {
	padding-top: 2rem;
	border-top: 1px solid var(--yamato-line);
}

/*--------------------------------------------------------------
# Produsele din listă
--------------------------------------------------------------*/
.of-produse-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 1rem;
}

.of-produse-count {
	display: inline-grid;
	place-items: center;
	min-width: 1.6rem;
	height: 1.6rem;
	margin-left: 0.4rem;
	padding: 0 0.4rem;
	background-color: var(--yamato-red);
	font-size: 0.75rem;
	vertical-align: middle;
	color: var(--yamato-surface);
}

.of-golire {
	padding: 0;
	border: 0;
	background: none;
	font-size: 0.8125rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--yamato-muted);
	cursor: pointer;
}

.of-golire:hover {
	color: var(--yamato-red);
}

.of-lista {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--yamato-line);
	list-style: none;
}

/* Rând: poză | nume | cantitate | × ; pe telefon cantitatea trece sub nume */
.of-rand {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	grid-template-areas:
		"img titlu sterge"
		"img qty   sterge";
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--yamato-line);
}

.of-rand-img {
	grid-area: img;
	display: block;
	width: 64px;
	height: 64px;
	border: 1px solid var(--yamato-line);
}

.of-rand-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

a.of-rand-titlu,
a.of-rand-titlu:visited {
	grid-area: titlu;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--yamato-ink);
	text-decoration: none;
}

a.of-rand-titlu:hover {
	color: var(--yamato-red);
}

.of-qty {
	grid-area: qty;
	display: inline-flex;
	justify-self: start;
	border: 1px solid var(--yamato-line);
}

.of-qty-btn,
.of-rand-sterge {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 1.125rem;
	line-height: 1;
	color: var(--yamato-ink);
	cursor: pointer;
}

.of-qty-btn:hover {
	background-color: var(--yamato-paper);
}

.of-qty-input {
	width: 3rem;
	height: 36px;
	padding: 0;
	border: 0;
	border-right: 1px solid var(--yamato-line);
	border-left: 1px solid var(--yamato-line);
	font-size: 1rem;
	text-align: center;
	color: var(--yamato-ink);
	-moz-appearance: textfield;
}

.of-qty-input::-webkit-outer-spin-button,
.of-qty-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.of-rand-sterge {
	grid-area: sterge;
	color: var(--yamato-muted);
}

.of-rand-sterge:hover {
	color: var(--yamato-red);
}

/* Explicație sub listă: trimite cererea sau adaugă alte produse din catalog */
.of-continua {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	padding-top: 1.25rem;
}

.of-continua[hidden] {
	display: none;
}

.of-continua p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--yamato-muted);
}

a.of-continua-link,
a.of-continua-link:visited {
	flex: 0 0 auto;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--yamato-red);
	text-decoration: none;
	white-space: nowrap;
}

a.of-continua-link:hover {
	color: var(--yamato-red-hover);
}

.of-gol {
	padding: 1.25rem 0 0.25rem;
}

.of-gol p {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--yamato-muted);
}

@media screen and (min-width: 640px) {
	.of-continua {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 2rem;
	}

	.of-rand {
		grid-template-columns: 64px minmax(0, 1fr) auto auto;
		grid-template-areas: "img titlu qty sterge";
	}
}

@media screen and (min-width: 1024px) {
	.of-main {
		padding: 4.5rem 0 5rem;
	}

	.of-card {
		padding: 2.5rem;
	}
}
