/* CTL Preț pe Volum v1.2 – tabel curat, aliniat cu ctlambalaje.ro */
.ctl-pv {
	--pv-accent: #fc5504;
	--pv-accent-dark: #e04b00;
	--pv-accent-soft: #fff4ee;
	--pv-text: #242424;
	--pv-muted: #767676;
	--pv-line: #e6e6e6;
	--pv-line2: #f0f0f0;
	--pv-bg2: #f7f7f7;
	--pv-ok: #22662a;
	--pv-ok-bg: #f0f9f1;
	--pv-head: "Poppins", Arial, Helvetica, sans-serif;

	border: 1px solid var(--pv-line);
	background: #fcfcfc;
	color: var(--pv-text);
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.45;
}
.ctl-pv *, .ctl-pv *::before, .ctl-pv *::after { box-sizing: border-box; }
.ctl-pv button {
	font-family: inherit; text-transform: none; letter-spacing: 0; box-shadow: none;
	margin: 0; border-radius: 0; line-height: 1.2; min-height: 0;
}

/* Header */
.ctl-pv-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--pv-line); }
.ctl-pv-title { font-family: var(--pv-head); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.ctl-pv-pack { font-size: 13px; color: var(--pv-muted); }
.ctl-pv-pack b { color: var(--pv-text); font-weight: 700; }
.ctl-pv-pack i { font-style: normal; margin: 0 4px; color: #b5b5b5; }

/* Secțiuni */
.ctl-pv-sec { padding: 14px 18px; border-bottom: 1px solid var(--pv-line); }
.ctl-pv-label { font-family: var(--pv-head); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.ctl-pv-label span { font-family: inherit; font-weight: 400; font-size: 12px; color: var(--pv-muted); margin-left: 4px; }

/* Opțiuni (greutate / grosime) – stil ca butoanele site-ului */
.ctl-pv-opts { display: grid; gap: 6px; }
.ctl-pv-opts-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ctl-pv-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ctl-pv .ctl-pv-opt {
	width: 100%; min-width: 0; height: 42px; padding: 0 4px;
	background: #fff; border: 1px solid var(--pv-line); color: var(--pv-text);
	font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
	transition: border-color .15s, color .15s, box-shadow .15s;
}
.ctl-pv .ctl-pv-opt:hover { border-color: #b5b5b5; }
.ctl-pv .ctl-pv-opt.is-active {
	border-color: var(--pv-accent); color: var(--pv-accent-dark); background: #fff;
	box-shadow: inset 0 0 0 1px var(--pv-accent);
}

/* Tabel praguri */
.ctl-pv-table { width: 100%; margin: 0; border-collapse: collapse; background: #fff; border: 1px solid var(--pv-line); font-size: 14px; }
.ctl-pv-table th {
	padding: 9px 12px; background: var(--pv-bg2); border-bottom: 1px solid var(--pv-line);
	font-size: 12px; font-weight: 600; color: var(--pv-muted); text-transform: none; text-align: right; white-space: nowrap;
}
.ctl-pv-table th:first-child, .ctl-pv-table td:first-child { text-align: left; }
.ctl-pv-table td { padding: 12px 12px; border-bottom: 1px solid var(--pv-line2); text-align: right; white-space: nowrap; vertical-align: middle; }
.ctl-pv-table tr:last-child td { border-bottom: 0; }
.ctl-pv-tier { cursor: pointer; transition: background .15s; }
.ctl-pv-tier:hover td { background: #fff8f4; }
.ctl-pv-tier:focus { outline: none; }
.ctl-pv-tier:focus-visible td { background: #fff8f4; }
.ctl-pv-radio {
	position: relative; display: inline-block; vertical-align: -4px; margin-right: 10px; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid #c8c8c8; background: #fff; transition: border-color .15s;
}
.ctl-pv-tier:hover .ctl-pv-radio { border-color: var(--pv-accent); }
.ctl-pv-tier.is-active .ctl-pv-radio { border-color: var(--pv-accent); }
.ctl-pv-tier.is-active .ctl-pv-radio::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--pv-accent);
}
.ctl-pv-tier td:first-child { box-shadow: inset 3px 0 0 transparent; }
.ctl-pv-tier.is-active td { background: var(--pv-accent-soft); }
.ctl-pv-tier.is-active td:first-child { box-shadow: inset 3px 0 0 var(--pv-accent); font-weight: 700; }
.ctl-pv-c-price { font-weight: 700; }
.ctl-pv-tier.is-active .ctl-pv-c-price { color: var(--pv-accent-dark); }
.ctl-pv-c-bax { color: var(--pv-muted); }
.ctl-pv-c-save { width: 1%; padding-left: 4px !important; }
.ctl-pv-c-save span { display: inline-block; min-width: 44px; padding: 2px 6px; background: var(--pv-ok-bg); color: var(--pv-ok); font-size: 12px; font-weight: 700; text-align: center; }
.ctl-pv-badge { display: inline-block; margin-left: 6px; padding: 2px 7px; background: var(--pv-accent); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; vertical-align: 1px; }

/* Cantitate */
.ctl-pv-qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ctl-pv-qty { display: inline-flex; height: 42px; border: 1px solid var(--pv-line); background: #fff; }
.ctl-pv .ctl-pv-qty-btn { width: 42px; height: 100%; padding: 0; border: 0; background: var(--pv-bg2); color: var(--pv-text); font-size: 18px; cursor: pointer; }
.ctl-pv .ctl-pv-qty-btn:hover { background: #ededed; }
.ctl-pv .ctl-pv-qty-input {
	width: 64px; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
	border-left: 1px solid var(--pv-line); border-right: 1px solid var(--pv-line); background: #fff;
	text-align: center; font-size: 16px; font-weight: 700; -moz-appearance: textfield;
}
.ctl-pv .ctl-pv-qty-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--pv-accent); }
.ctl-pv .ctl-pv-qty-input::-webkit-outer-spin-button, .ctl-pv .ctl-pv-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ctl-pv-qty-eq { font-size: 14px; color: var(--pv-muted); }
.ctl-pv-qty-eq b { color: var(--pv-text); }
.ctl-pv-qty-eq span:not(:empty)::before { content: " · "; }

.ctl-pv-progress { margin-top: 12px; }
.ctl-pv-bar { height: 4px; background: #ececec; overflow: hidden; }
.ctl-pv-bar-fill { display: block; height: 100%; width: 0; background: var(--pv-accent); transition: width .3s ease; }
.ctl-pv-progress-txt { margin-top: 6px; font-size: 13px; color: var(--pv-muted); }
.ctl-pv-progress-txt b { color: var(--pv-text); }
.ctl-pv-progress-txt .is-ok { color: var(--pv-ok); font-weight: 600; }

/* Sumar */
.ctl-pv-summary { padding: 16px 18px 18px; background: #fff; }
.ctl-pv-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ctl-pv-total-left { min-width: 0; }
.ctl-pv-total-lbl { display: block; font-family: var(--pv-head); font-weight: 600; font-size: 15px; }
.ctl-pv-unit { display: block; margin-top: 2px; font-size: 13px; color: var(--pv-muted); }
.ctl-pv-unit b { color: var(--pv-text); }
.ctl-pv-total-right { text-align: right; flex-shrink: 0; }
.ctl-pv-total-val { display: block; font-family: var(--pv-head); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--pv-accent); white-space: nowrap; }
.ctl-pv-total-vat { display: block; margin-top: 3px; font-size: 13px; color: var(--pv-muted); white-space: nowrap; }
.ctl-pv-save-line { margin-top: 10px; padding: 7px 10px; background: var(--pv-ok-bg); color: var(--pv-ok); font-size: 13px; font-weight: 600; }
.ctl-pv-save-line:empty { display: none; }

.ctl-pv .ctl-pv-cta {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 14px;
	background: var(--pv-accent); color: #fff; border: 0; cursor: pointer;
	font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
	transition: background .15s;
}
.ctl-pv .ctl-pv-cta:hover { background: var(--pv-accent-dark); }
.ctl-pv .ctl-pv-cta.loading { opacity: .7; pointer-events: none; }
.ctl-pv .ctl-pv-cta.is-done { background: #27ae60; }
.ctl-pv .ctl-pv-cta:disabled { background: #b5b5b5; cursor: not-allowed; }

.ctl-pv-feedback { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 12px; background: var(--pv-ok-bg); color: var(--pv-ok); font-size: 13px; font-weight: 600; }
.ctl-pv-feedback[hidden] { display: none; }
.ctl-pv-feedback a { color: var(--pv-ok); text-decoration: underline; white-space: nowrap; }

/* Mobil */
@media (max-width: 576px) {
	.ctl-pv-head, .ctl-pv-sec, .ctl-pv-summary { padding-left: 14px; padding-right: 14px; }
	.ctl-pv .ctl-pv-opt { height: 44px; }
	.ctl-pv-table { font-size: 14px; }
	.ctl-pv-table th, .ctl-pv-table td { padding: 11px 10px; }
	.ctl-pv-qty-row { gap: 12px; }
	.ctl-pv-qty { height: 46px; }
	.ctl-pv .ctl-pv-qty-btn { width: 46px; }
	.ctl-pv .ctl-pv-qty-input { width: 70px; }
	.ctl-pv-total-val { font-size: 23px; }
	.ctl-pv .ctl-pv-cta { height: 52px; }
}
@media (max-width: 360px) {
	.ctl-pv-badge { display: none; }
}
