/* Coș, finalizare, căutare, pagina de succes. Prefix pl-. Paleta: crem #FBF7F0, cerneală #24171F, chihlimbar #D98E04 / #9A6200, verde #2E7D4F, panou #F4E8DA, bordură #E6D9C7, roșu #B3261E. */
[hidden] { display: none !important; }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pl-muted { color: #6b5a52; font-size: .92rem; }
.pl-lead { font-size: 1.15rem; }

.pl-cartpage, .pl-checkout, .pl-searchpage, .pl-result { max-width: 1100px; margin: 0 auto; padding: 16px 14px 40px; color: #24171F; }
.pl-cartpage h1, .pl-checkout h1, .pl-searchpage h1, .pl-result h1 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-size: 1.7rem; margin: .4em 0 .6em; }
.pl-cartpage h2, .pl-checkout h2 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-size: 1.2rem; margin: 0 0 .6em; }

/* butoane: o singură familie (.pl-btn din site.css); aici doar butonul-link și focusul */
.pl-link-btn:focus-visible, .pl-qty-b:focus-visible { outline: 3px solid #24171F; outline-offset: 2px; }
.pl-link-btn { background: none; border: 0; padding: 4px 0; min-height: 44px; min-width: 44px; font: inherit; color: #9A6200; text-decoration: underline; cursor: pointer; }

/* panouri, mesaje */
.pl-panel { background: #F4E8DA; border: 1px solid #E6D9C7; border-radius: 14px; padding: 16px; margin: 0 0 16px; min-width: 0; }
.pl-panel legend { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-weight: 700; font-size: 1.1rem; padding: 0 6px; }
.pl-notices:empty { display: none; }
.pl-notice { background: #fff; border: 1px solid #D98E04; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.pl-testband { background: #24171F; color: #FBF7F0; border-radius: 10px; padding: 10px 14px; font-weight: 700; text-align: center; margin: 0 0 14px; }
.pl-errbox { background: #fff; border: 1px solid #B3261E; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; color: #B3261E; }
.pl-errbox ul { margin: .4em 0 0; padding-left: 1.2em; }
.pl-err { display: block; color: #B3261E; font-size: .9rem; margin-top: 4px; }
.pl-nudge { background: #F4E8DA; border-radius: 10px; padding: 10px 12px; margin: 0; color: #24171F; font-size: .95rem; }
.pl-nudge-ok { background: #E6F2EA; color: #1F5E3A; }
.pl-neg { color: #B3261E; }
.pl-empty { background: #F4E8DA; border: 1px solid #E6D9C7; border-radius: 14px; padding: 24px 18px; text-align: center; }

/* coș */
.pl-cartgrid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pl-lines { list-style: none; margin: 0; padding: 0; }
.pl-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: start; background: #fff; border: 1px solid #E6D9C7; border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.pl-line-img img { width: 80px; height: 80px; object-fit: contain; border-radius: 10px; background: #fff; display: block; }
.pl-line-name a { color: #24171F; font-weight: 600; text-decoration: none; }
.pl-line-name a:hover { text-decoration: underline; }
.pl-line-unit { color: #6b5a52; font-size: .9rem; margin: 2px 0 8px; }
.pl-line-total { font-weight: 700; white-space: nowrap; }
.pl-qty { display: inline-flex; align-items: center; margin-right: 12px; }
.pl-qty-b { width: 44px; height: 44px; border: 1px solid #E6D9C7; background: #FBF7F0; border-radius: 10px; font-size: 1.2rem; cursor: pointer; color: #24171F; }
.pl-qty-i { width: 52px; height: 44px; text-align: center; border: 1px solid #E6D9C7; border-radius: 10px; margin: 0 4px; font: inherit; background: #fff; }
.pl-row { display: flex; justify-content: space-between; gap: 10px; margin: .4em 0; }
.pl-row-total { font-size: 1.15rem; border-top: 1px solid #E6D9C7; padding-top: .6em; }

/* finalizare */
.pl-cogrid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.pl-field { margin: 0 0 12px; }
.pl-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.pl-opt-note { font-weight: 400; color: #6b5a52; font-size: .85rem; }
.pl-field input, .pl-field select, .pl-vrow input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; font: inherit; color: #24171F; background: #fff; border: 1px solid #cdbba3; border-radius: 10px; }
.pl-field input:focus, .pl-field select:focus, .pl-vrow input:focus, #pl-search-q:focus { outline: 3px solid #D98E04; outline-offset: 1px; }
.pl-bad { border-color: #B3261E !important; }
.pl-opt { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E6D9C7; border-radius: 12px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.pl-opt input { flex: none; width: 20px; height: 20px; accent-color: #D98E04; }
.pl-opt-t { flex: 1; font-weight: 600; }
.pl-opt-t small { font-weight: 400; color: #6b5a52; }
.pl-opt-p { font-weight: 700; white-space: nowrap; }
.pl-opt-off { opacity: .5; cursor: not-allowed; }
.pl-eb { background: #fff; border: 1px dashed #D98E04; border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.pl-eb p { margin: 0 0 8px; }
.pl-eb-sum { color: #24171F; }
.pl-voucher summary { cursor: pointer; font-weight: 700; color: #9A6200; }
.pl-vrow { display: flex; gap: 8px; margin: 12px 0 0; }
.pl-vrow input { flex: 1; }
.pl-vmsg { margin: 8px 0 0; min-height: 1.2em; }
.pl-vmsg-ok { color: #2E7D4F; }
.pl-vmsg-bad { color: #B3261E; }
.pl-co-items { list-style: none; margin: 0 0 10px; padding: 0; }
.pl-co-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #E6D9C7; font-size: .95rem; }
.pl-co-q { color: #6b5a52; }
.pl-co-items li > span:last-child, .pl-row > :last-child, .pl-line-unit { white-space: nowrap; }
.pl-pay { background: #fff; border: 1px solid #E6D9C7; border-radius: 10px; padding: 10px 12px; }
.pl-terms label { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.pl-terms input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: #D98E04; }
.pl-terms a { color: #9A6200; }

/* căutare */
.pl-searchform { display: flex; gap: 8px; margin-bottom: 10px; }
#pl-search-q { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; font: inherit; border: 1px solid #cdbba3; border-radius: 12px; background: #fff; color: #24171F; }
.pl-scgrid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pl-sc { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #E6D9C7; border-radius: 14px; padding: 10px; }
.pl-sc-img { display: block; aspect-ratio: 1 / 1; }
.pl-sc-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pl-sc-name { color: #24171F; font-weight: 600; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pl-sc-brand { color: #6b5a52; font-size: .85rem; }
.pl-sc-price { font-size: 1.15rem; font-weight: 700; }
.pl-sc-add { margin-top: auto; padding: 10px 8px; min-height: 44px; }

/* succes / eroare */
.pl-result-ok h1 { color: #2E7D4F; }
.pl-result-err h1 { color: #B3261E; }
.pl-errlist { background: #fff; border: 1px solid #B3261E; border-radius: 12px; padding: 12px 14px 12px 32px; }
.pl-sum { width: 100%; border-collapse: collapse; margin: 12px 0; background: #fff; border: 1px solid #E6D9C7; }
.pl-sum th, .pl-sum td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #E6D9C7; }
.pl-sum td:last-child, .pl-sum th:last-child { text-align: right; white-space: nowrap; }
.pl-sum-total td { font-weight: 700; font-size: 1.1rem; }

/* mesaj la adăugarea în coș */
.pl-toast { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 20px); max-width: calc(100% - 28px); background: #24171F; color: #FBF7F0; border-radius: 12px; padding: 12px 16px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000; }
.pl-toast a { color: #F4C36A; font-weight: 700; }
.pl-toast-undo { margin-left: 6px; min-height: 44px; padding: 0 10px; background: none; border: 0; color: #F4C36A; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.pl-toast-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* coș: progres spre transportul gratuit, coș gol */
.pl-cartmain { min-width: 0; }
.pl-prog { height: 10px; border-radius: 999px; background: #EADFCC; margin: 16px 0 6px; position: relative; }
.pl-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #E8A92B, #D98E04); transition: width .6s var(--ease); }
.pl-prog-full i { background: #2E7D4F; }
.pl-prog-tk { position: absolute; top: -10px; left: 2%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: #fff; border: 2px solid #D98E04; display: grid; place-items: center; transition: left .6s var(--ease), border-color .3s; }
.pl-prog-full .pl-prog-tk { border-color: #2E7D4F; }
.pl-prog-tk svg { width: 15px; height: 15px; stroke: #24171F; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-prog-full .pl-prog-tk svg { stroke: #2E7D4F; }
.pl-prog-l { display: flex; justify-content: space-between; margin-bottom: 14px; }
.pl-free { color: #2E7D4F; }
.pl-reass { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .85rem; color: #6b5a52; margin: 10px 0; }
.pl-reass svg { flex: none; stroke: #2E7D4F; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pl-empty h2 { font-size: 1.5rem; margin: 14px 0 6px; }
.pl-empty p { max-width: 36ch; margin: 0 auto 16px; color: #6b5a52; }
.pl-empty .pl-chips { justify-content: center; }
.pl-emb { width: 140px; height: 110px; position: relative; margin: 0 auto; }
.pl-emb-bb { position: absolute; inset: 30px 0 0; background: linear-gradient(180deg, #E4CFAB, #D6BC92); border-radius: 4px 4px 12px 12px; }
.pl-emb-lid { position: absolute; left: -6px; right: -6px; top: 16px; height: 20px; background: #EAD8B8; border-radius: 5px; transform-origin: 0 100%; transform: rotate(-14deg); animation: pl-lidw 3.4s ease-in-out 3; }
.pl-emb-h { position: absolute; left: 50%; margin-left: -12px; top: -4px; width: 24px; fill: #D98E04; opacity: .9; animation: pl-floatu 3.4s ease-in-out 3; }
@keyframes pl-lidw { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(-4deg); } }
@keyframes pl-floatu { 0%, 100% { transform: translateY(8px); opacity: 0; } 50% { transform: translateY(-8px); opacity: 1; } }

/* finalizare: antet redus, pași, bifă pe câmpuri valide, rezumat pliat pe telefon */
.pl-head-co { position: relative; top: auto; }
.pl-co-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; }
.pl-co-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .88rem; color: #9A6200; text-decoration: none; }
.pl-co-back:hover { color: #24171F; }
.pl-co-sec { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: #1F5E3A; }
.pl-co-sec svg { stroke: #2E7D4F; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pl-stepper { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 4px 0 0; font-size: .85rem; color: #6b5a52; }
.pl-stepper li + li::before { content: ""; display: inline-block; width: 20px; height: 1px; background: #cdbfa8; vertical-align: middle; margin-right: 8px; }
.pl-stepper b { color: #24171F; }
.pl-hasok { position: relative; }
.pl-hasok input { padding-right: 44px; transition: border-color .2s; }
.pl-tick { position: absolute; right: 12px; bottom: 11px; width: 24px; height: 24px; border-radius: 50%; background: #2E7D4F; display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--ease); pointer-events: none; }
.pl-ok .pl-tick { transform: scale(1); }
.pl-ok input { border-color: #9ccbb0; }
.pl-tick svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pl-cosum-m { background: #fff; border: 1px solid #E6D9C7; border-radius: 12px; margin: 0 0 14px; }
.pl-cosum-m summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.pl-cosum-m summary::-webkit-details-marker { display: none; }
.pl-cosum-m summary strong { padding-right: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2324171F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 18px no-repeat; transition: background-position .3s; }
.pl-cosum-m[open] summary strong { transform: none; }
.pl-cosum-m small { display: block; font-weight: 400; color: #6b5a52; }
.pl-cosum-m .pl-co-items { padding: 0 14px 8px; margin: 0; }
.pl-field input:focus, .pl-field select:focus { outline: none; border-color: #D98E04; box-shadow: 0 0 0 3px #F3D79A; }

/* succes: cutia se închide, banda se trage, apare bifa; apoi pașii comenzii */
.pl-result-ok { text-align: center; }
.pl-result-ok h1 { color: #24171F; font-size: 2rem; }
.pl-result-ok .pl-lead { color: #6b5a52; margin: 8px 0 14px; }
.pl-result-ok .pl-steps, .pl-result-ok .pl-sum { text-align: left; }
.pl-callnote { margin: 0 0 6px; }
.pl-okbox { width: 150px; height: 130px; position: relative; margin: 0 auto 6px; }
.pl-okbox-bb { position: absolute; inset: 40px 0 0; background: linear-gradient(180deg, #E4CFAB, #D6BC92); border-radius: 4px 4px 14px 14px; box-shadow: 0 14px 20px -12px rgba(36,23,31,.5); }
.pl-okbox-lid { position: absolute; left: -6px; right: -6px; top: 22px; height: 24px; background: #EAD8B8; border-radius: 5px; transform-origin: 0 100%; transform: translateY(-16px) rotate(-8deg); z-index: 3; animation: pl-lidc .7s .1s var(--ease) forwards; }
.pl-okbox-tape { position: absolute; left: 50%; margin-left: -18px; top: 22px; width: 36px; height: 0; background: rgba(255,255,255,.4); border-radius: 2px; z-index: 4; animation: pl-tapeg .5s .7s ease-out forwards; }
.pl-okbox-h { position: absolute; left: 50%; margin-left: -14px; top: -6px; width: 28px; fill: #D98E04; opacity: 0; z-index: 5; animation: pl-heartup 1.1s 1.25s var(--ease) forwards; }
.pl-okbox-chk { position: absolute; left: 50%; margin-left: -19px; top: 70px; width: 38px; height: 38px; border-radius: 50%; background: #2E7D4F; display: grid; place-items: center; transform: scale(0); z-index: 6; animation: pl-pop .5s 1.1s var(--ease) forwards; }
.pl-okbox-chk svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pl-lidc { to { transform: none; } }
@keyframes pl-tapeg { to { height: 62px; } }
@keyframes pl-heartup { 0% { opacity: 0; transform: translateY(20px) scale(.5); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34px) scale(1.2); } }
.pl-steps { list-style: none; margin: 20px 0; padding: 0; }
.pl-steps li { display: flex; gap: 14px; padding-bottom: 16px; position: relative; font-size: .95rem; margin: 0; }
.pl-steps li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: #E6D9C7; }
.pl-steps i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cdbfa8; flex: none; background: #fff; display: grid; place-items: center; }
.pl-steps .pl-done i { background: #2E7D4F; border-color: #2E7D4F; }
.pl-steps .pl-done i::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.pl-steps small { display: block; color: #6b5a52; font-size: .85rem; }
.pl-steps .pl-done small { color: #1F5E3A; }

/* căutare fără rezultate */
.pl-sempty { padding-top: 6px; }
.pl-sempty h2 { font-size: 1.5rem; margin: 6px 0 6px; }
.pl-sempty h3 { font-size: 1.15rem; margin: 26px 0 12px; }
.pl-sempty-p { font-size: 1rem; margin: 0 0 4px; }
.pl-sempty .pl-chips-c { justify-content: flex-start; margin: 0; padding: 0; }

@media (max-width: 599px) {
	.pl-co-sec span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 760px) {
	.pl-cosum-m { display: none; }
	.pl-cartgrid { grid-template-columns: 1fr 340px; }
	.pl-cogrid { grid-template-columns: 1fr 380px; }
	.pl-co-sum, .pl-cartsum { position: sticky; top: 14px; }
	.pl-scgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
	.pl-scgrid { grid-template-columns: repeat(4, 1fr); }
	.pl-cartpage h1, .pl-checkout h1, .pl-searchpage h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .pl-toast { transition: none; } }
