/* Blocul „Felicitare” de pe pagina produsului (și din fereastra din coș). */
form.cart:has(.chc-card) { flex-wrap: wrap; }
.chc-card { flex: 0 0 100%; width: 100%; margin: 0 0 20px; padding: 16px 18px; border: 2px solid #c9a46a; border-radius: 10px; background: #fbf6ee; color: #3b2416; font-size: 15px; line-height: 1.45; text-align: left; box-sizing: border-box; scroll-margin-top: 140px; }
.chc-card *, .chc-card *::before, .chc-card *::after { box-sizing: border-box; }
.chc-card p { margin: 0; padding: 0; }
.chc-card__comutator { display: flex; gap: 12px; align-items: center; cursor: pointer; margin: 0; }
.chc-card__comutator input { width: 22px; height: 22px; flex: none; accent-color: #5a3825; margin: 0; }
.chc-card__eticheta { flex: 1; min-width: 0; }
.chc-card__eticheta strong { display: block; font-size: 17px; color: #3b2416; }
.chc-card__sub { display: block; font-size: 13.5px; color: #6f5a4b; margin-top: 2px; }
.chc-card__pret { display: inline-block; color: #8a5530; font-weight: 700; white-space: nowrap; }
/* trei felicitări mici, ca exemplu */
.chc-mini { display: inline-flex; flex: none; padding-right: 8px; }
.chc-mini img { width: 54px !important; height: auto !important; aspect-ratio: 8 / 5; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 2px 5px rgba(60,30,10,.28); margin: 0 0 0 -16px !important; max-width: none; display: block; }
.chc-mini img:first-child { margin-left: 0 !important; transform: rotate(-6deg); }
.chc-mini img:nth-child(2) { transform: translateY(-4px) rotate(2deg); }
.chc-mini img:nth-child(3) { transform: rotate(7deg); }
.chc-card--cos { border: 0; padding: 0; margin: 0; background: transparent; }
.chc-card__titlu { font-weight: 700; font-size: 17px; }
.chc-card__panou { margin-top: 14px; }
.chc-card__panou[hidden] { display: none; }
.chc-card__pas { font-weight: 700; color: #5a3825; margin: 14px 0 8px !important; }
.chc-card__pas span { font-weight: 400; color: #8a7565; }
.chc-card__taburi { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chc-card__taburi[hidden] { display: none; }
.chc-card .chc-card__tab { appearance: none; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 7px 13px; border: 1px solid #cdb9a6; border-radius: 999px; background: #fff; color: #5a3825; cursor: pointer; text-transform: none; letter-spacing: 0; margin: 0; }
.chc-card .chc-card__tab:hover { border-color: #a8693a; }
.chc-card .chc-card__tab.is-activ { background: #5a3825; border-color: #5a3825; color: #fff; }
.chc-card__grup { margin-bottom: 10px; }
.chc-card__grup[hidden] { display: none; }
.chc-card.are-taburi .chc-card__categorie { display: none; }
.chc-card__categorie { font-size: 13px; color: #8a5530; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px !important; }
.chc-card__modele { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.chc-card__model-cutie { position: relative; }
.chc-card__model { display: block; margin: 0; cursor: pointer; text-align: center; }
.chc-card__model input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chc-card__model img { width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: 4px; border: 3px solid transparent; box-shadow: 0 1px 4px rgba(60,30,10,.28); transition: transform .12s; display: block; margin: 0; max-width: none; }
.chc-card__model:hover img { transform: translateY(-2px); }
.chc-card__model input:checked + img { border-color: #a8693a; box-shadow: 0 0 0 2px #fbf6ee, 0 0 0 4px #a8693a; }
.chc-card__model input:focus-visible + img { outline: 2px solid #5a3825; outline-offset: 3px; }
.chc-card__nume { display: block; font-size: 12.5px; line-height: 1.25; color: #5a4a40; margin-top: 5px; }
.chc-card__model input:checked ~ .chc-card__nume { color: #5a3825; font-weight: 700; }
.chc-card .chc-card__lupa { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; padding: 4px; opacity: .88; margin: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer; line-height: 0; }
.chc-card .chc-card__lupa svg { width: 100%; height: 100%; fill: none; stroke: #3b2416; stroke-width: 2.2; stroke-linecap: round; }
.chc-card .chc-card__lupa:hover { background: #fff; transform: scale(1.08); }

/* mărire la click */
.chc-zoom { position: fixed; inset: 0; z-index: 1000001; background: rgba(30,18,10,.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.chc-zoom[hidden] { display: none; }
.chc-zoom__cutie { background: #fbf6ee; border-radius: 12px; padding: 16px; max-width: 560px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.4); text-align: center; position: relative; }
.chc-zoom__cutie img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 2px 8px rgba(60,30,10,.25); }
.chc-zoom__nume { font-size: 17px; font-weight: 700; color: #3b2416; margin: 12px 0 10px; }
.chc-zoom__butoane { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.chc-zoom button { appearance: none; font: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 8px; cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; line-height: 1.2; }
.chc-zoom__alege { background: #5a3825; color: #fff; border: 1px solid #5a3825; }
.chc-zoom__inchide { background: #fff; color: #5a3825; border: 1px solid #cdb9a6; }
.chc-zoom__nav { position: absolute; top: 40%; width: 40px; height: 40px; padding: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.95); border: 0; font-size: 22px !important; color: #3b2416; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.chc-zoom__nav--inapoi { left: -12px; }
.chc-zoom__nav--inainte { right: -12px; }
.chc-card__campuri { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.chc-card__campuri label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin: 0; }
.chc-card__campuri label:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
.chc-card__campuri small { font-weight: 400; color: #8a7565; }
.chc-card__campuri input, .chc-card__campuri textarea { width: 100%; font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid #cdb9a6; border-radius: 6px; background: #fff !important; color: #2b1a10 !important; }
.chc-card__campuri textarea { resize: vertical; min-height: 70px; }
.chc-card__contor { align-self: flex-end; font-size: 12px; font-weight: 400; color: #8a7565; }
.chc-card__contor.is-plin { color: #b3261e; font-weight: 600; }
.chc-card__previzualizare { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.chc-card__previzualizare figure { margin: 0; }
.chc-card__previzualizare figcaption { font-size: 12px; color: #8a7565; margin-top: 6px; text-align: center; }
.chc-card__fata img { width: 300px; height: auto; aspect-ratio: 8 / 5; max-width: 100%; display: block; border-radius: 4px; box-shadow: 0 2px 6px rgba(60,30,10,.25); }
.chc-card__fata[hidden] { display: none; }
/* eticheta de 70 × 40 mm, mărită ușor ca să aibă cam cât fața cardului (300 px) */
.chc-et-cutie { width: calc(70mm * 1.15); height: calc(40mm * 1.15); }
.chc-et-cutie .chc-et { transform: scale(1.15); transform-origin: top left; box-shadow: 0 1px 4px rgba(0,0,0,.22); border-radius: 2mm; }
.chc-card__test { margin: 0 0 12px !important; padding: 7px 10px; border-radius: 6px; background: #fff3cd; border: 1px solid #e9c46a; color: #6b4e00; font-size: 13px; font-weight: 600; }
.chc-card__nota { font-size: 12px; color: #8a7565; margin-top: 12px !important; }
/* caseta din coș */
.chc-cos { margin: 0 0 16px; padding: 12px 14px; border: 2px solid #c9a46a; border-radius: 10px; background: #fbf6ee; color: #3b2416; font-size: 14px; line-height: 1.4; text-align: left; }
.chc-cos * { box-sizing: border-box; }
.chc-cos__cap { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.chc-cos__cap b { display: block; font-size: 15.5px; }
.chc-cos__cap > div > span { display: block; font-size: 12.5px; color: #6f5a4b; }
.chc-cos > .chc-cos__rand:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.chc-cos .chc-mini img { width: 42px !important; margin-left: -12px !important; }
.chc-cos .chc-mini img:first-child { margin-left: 0 !important; }
.chc-cos__rand { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0 0; border-top: 1px dashed #e2d3c2; margin-top: 8px; }
.chc-cos__cap + .chc-cos__rand { border-top: 0; margin-top: 0; }
.chc-cos__produs { font-weight: 600; min-width: 0; }
.chc-cos__produs small { display: block; font-weight: 600; color: #8a5530; font-size: 12.5px; }
.chc-cos__rand--are .chc-cos__produs { font-weight: 400; color: #4b6b3a; }
.chc-cos .chc-cos__buton { appearance: none; flex: none; font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.2; padding: 9px 14px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #d3b07a, #b98d50); color: #fff; cursor: pointer; text-transform: none; letter-spacing: 0; margin: 0; white-space: nowrap; }
.chc-cos .chc-cos__buton--mic { background: #fff; color: #5a3825; border: 1px solid #cdb9a6; padding: 6px 12px; font-weight: 600; }
.chc-cos[hidden] { display: none !important; }
/* butonul mic de pe rândul produsului, în coșul lateral */
.chc-cos-mic { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 13px; line-height: 1.3; color: #4b6b3a; }
.chc-cos-mic small { font-size: 12px; color: #8a5530; font-weight: 600; }
.chc-cos-mic .chc-cos__buton--mic2 { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.2; padding: 6px 11px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #d3b07a, #b98d50); color: #fff; cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.chc-cos-mic .chc-cos__buton--link { appearance: none; font: inherit; font-size: 13px; font-weight: 600; padding: 0; border: 0; background: none; color: #8a5530; text-decoration: underline; cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; }
/* fereastra din coș */
.chc-fereastra { position: fixed; inset: 0; z-index: 1000000; background: rgba(30,18,10,.7); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; }
.chc-fereastra__cutie { position: relative; width: 100%; max-width: 720px; margin: auto 0; background: #fbf6ee; border-radius: 12px; padding: 22px 22px 18px; box-shadow: 0 16px 50px rgba(0,0,0,.45); color: #3b2416; font-size: 15px; line-height: 1.45; text-align: left; }
.chc-fereastra__cutie * { box-sizing: border-box; }
.chc-fereastra .chc-fereastra__x { appearance: none; position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; color: #5a3825; cursor: pointer; padding: 0; margin: 0; }
.chc-fereastra__asteapta { margin: 20px 0; text-align: center; color: #6f5a4b; }
.chc-fereastra__titlu { font-size: 19px; font-weight: 700; margin: 0 36px 4px 0 !important; padding: 0; }
.chc-fereastra__titlu .chc-card__pret { font-size: 14px; margin-left: 4px; }
.chc-fereastra__eroare { margin: 12px 0 0 !important; padding: 8px 12px; border-radius: 6px; background: #fdecea; color: #8c1d18; font-weight: 600; }
.chc-fereastra__eroare[hidden] { display: none; }
.chc-fereastra__butoane { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chc-fereastra__butoane button { appearance: none; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; padding: 11px 20px; border-radius: 999px; cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; }
.chc-fereastra__butoane button:disabled { opacity: .6; cursor: wait; }
.chc-fereastra .chc-fereastra__salveaza { background: linear-gradient(180deg, #d3b07a, #b98d50); color: #fff; border: 0; }
.chc-fereastra .chc-fereastra__scoate { background: #fff; color: #8c1d18; border: 1px solid #e0b4b0; }
.chc-fereastra .chc-fereastra__renunta { background: #fff; color: #5a3825; border: 1px solid #cdb9a6; }
@media (max-width: 480px) {
	.chc-card { padding: 14px; }
	.chc-card__comutator { flex-wrap: wrap; }
	.chc-card__comutator .chc-mini { order: -1; width: 100%; padding: 4px 0 6px 2px; }
	.chc-fereastra { padding: 10px 6px; }
	.chc-fereastra__cutie { padding: 18px 14px 14px; }
	.chc-cos__rand { flex-wrap: wrap; }
	.chc-cos .chc-cos__buton { width: 100%; }
	.chc-cos .chc-cos__buton--mic { width: auto; }
	.chc-card__campuri { grid-template-columns: 1fr; }
	.chc-card__campuri label:nth-child(2) { grid-row: auto; }
	.chc-card__modele { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.chc-card__nume { font-size: 11.5px; }
	.chc-card .chc-card__lupa { width: 24px; height: 24px; top: 3px; right: 3px; }
	.chc-card__fata, .chc-card__fata img { width: 100%; height: auto; max-width: 300px; }
	.chc-zoom__nav--inapoi { left: 4px; }
	.chc-zoom__nav--inainte { right: 4px; }
	.chc-et-cutie { width: calc(70mm * 1.0); height: calc(40mm * 1.0); }
	.chc-et-cutie .chc-et { transform: scale(1.0); }
}
