/* ==========================================================================
   blaturidebucatarie.ro — pagina de produs (B4): aspectul paginii WooCommerce de azi (tema MyMedi + WAPF + cardul bej),
   valorile din captura/stiluri.json și din CSS-ul de azi (WAPF frontend, bdb-fullprice, wa-cta-blat, custom_css #20117).
   Variabilele și clasele comune (.bb-cont, --bb-accent …) sunt în site.css (B1).
   ========================================================================== */

.bbp { padding-bottom: 20px; }
.bbp-sus {
    display: grid; grid-template-columns: minmax(0, 538fr) minmax(0, 602fr); column-gap: 30px; align-items: start;
    margin-top: 10px;
}
.bbp-stanga { min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.bbp-rezumat { min-width: 0; }

/* ---------- galeria: PĂTRATĂ (B11 — decupajele de pe server, /bb/patrat/…; locul rezervat din CSS, fără CLS) ---------- */
.bbp-galerie { position: relative; min-width: 0; }
.bbp-galerie__scena {
    position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 4px; background: #f7f8fa; border: 1px solid #eef0f3;
}
.bbp-galerie__mare { position: absolute; inset: 0; cursor: zoom-in; touch-action: pan-y pinch-zoom; }
.bbp-galerie__mare img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* zoom 1:1 pe decupajul mare (mărimea fundalului o pune produs.js) */
.bbp-galerie__zoom {
    position: absolute; inset: 0; opacity: 0; pointer-events: none; background: #fff no-repeat; background-size: 200% auto;
    transition: opacity .15s ease;
}
.bbp-galerie__contor {
    position: absolute; right: 14px; bottom: 14px; z-index: 3; padding: 0 10px; border-radius: 30px;
    background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; line-height: 24px; font-variant-numeric: tabular-nums; pointer-events: none;
}
.bbp-galerie__zoom.is-activ { opacity: 1; }
.bbp-galerie__lupa {
    position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center;
    padding: 0; border: 0; border-radius: 50%; background: #fff; color: #000; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.bbp-galerie__lupa:hover { color: var(--bb-accent, #a2805c); }
.bbp-galerie__insigne {
    position: absolute; top: 25px; left: 25px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    pointer-events: none;
}
.bbp-insigna {
    display: inline-grid; place-items: center; color: #fff; font-size: 14px; font-weight: 600; line-height: 18px; text-transform: uppercase;
}
.bbp-insigna[hidden] { display: none; }
.bbp-insigna--reducere { width: 50px; height: 50px; border-radius: 100%; background: var(--bb-rosu, #c70000); }
.bbp-insigna--lichidare { padding: 4px 10px; border-radius: 30px; background: #000; font-size: 12px; }
.bbp-galerie__miniaturi {
    list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
}
.bbp-galerie__miniaturi li { min-width: 0; }
.bbp-mini {
    position: relative; display: block; width: 100%; padding: 2px; border: 1px solid transparent; border-radius: 4px; background: none; cursor: pointer;
    opacity: .8; transition: opacity .15s ease, border-color .15s ease;
}
.bbp-mini img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; background: #f0f2f5; }
.bbp-mini:hover, .bbp-mini[aria-current="true"] { opacity: 1; }
.bbp-mini[aria-current="true"] { border-color: #000; }
/* ultima miniatură când sunt mai multe poze: „+N” (deschide toate imaginile pe tot ecranul) */
.bbp-mini__mai {
    position: absolute; inset: 2px; display: grid; place-items: center; border-radius: 2px;
    background: rgba(0, 0, 0, .55); color: #fff; font-size: 15px; font-weight: 600;
}
.bbp-mini--mai { opacity: 1; }

/* ---------- blatul 3D: sub galerie, lipit cât se derulează calculatorul (desktop); pe telefon deasupra calculatorului ---------- */
.bbp-3d { position: sticky; top: 96px; margin-top: 30px; }
.bbp-3d-loc-mobil { display: none; }
@media (max-width: 991px) {
    .bbp-3d { display: none; }
    .bbp-3d-loc-mobil { display: block; height: calc(clamp(220px, 34svh, 440px) + 16px); margin: 0 0 10px; }
    .bbp-3d-loc-mobil.is-ocupat { display: none; }
    .bbp .bbv { margin: 0 0 10px; }
}

/* ---------- rezumatul ---------- */
.bbp-stoc {
    display: inline-block; margin: 0 0 20px; padding: 0 8px; border-radius: 30px; background: var(--bb-verde, #12a05c); color: #fff;
    font-size: 12px; line-height: 18px; font-weight: 600; text-transform: uppercase;
}
.bbp-stoc.out-of-stock { background: #d6d8db; color: #000; }
.bbp-brand { margin: 0 0 6px; font-size: 14px; line-height: 20px; }
.bbp-brand a { color: #000; }
.bbp-brand a:hover { color: var(--bb-accent, #a2805c); }
.bbp-titlu { margin: 0 0 10px; font-size: 24px; line-height: 36px; font-weight: 600; color: #000; }
.bbp-rating {
    display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid #eef0f3; font-size: 12px; line-height: 18px;
}
.bbp-rating a { color: #000; }
.bbp-stele {
    position: relative; display: inline-block; width: 75px; height: 13px; flex: none;
    background: linear-gradient(90deg, #d8cbbd 0 100%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 75 13'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M6.5 0l1.9 4.1 4.6.5-3.4 3.1.9 4.5-4-2.3-4 2.3.9-4.5L0 4.6l4.6-.5z'/%3E%3Cuse href='%23s' x='15.5'/%3E%3Cuse href='%23s' x='31'/%3E%3Cuse href='%23s' x='46.5'/%3E%3Cuse href='%23s' x='62'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 75px 13px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 75 13'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M6.5 0l1.9 4.1 4.6.5-3.4 3.1.9 4.5-4-2.3-4 2.3.9-4.5L0 4.6l4.6-.5z'/%3E%3Cuse href='%23s' x='15.5'/%3E%3Cuse href='%23s' x='31'/%3E%3Cuse href='%23s' x='46.5'/%3E%3Cuse href='%23s' x='62'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 75px 13px no-repeat;
}
.bbp-stele > span { position: absolute; left: 0; top: 0; bottom: 0; background: #a2805c; }

.bbp-pret-bloc { margin: 25px 0 0; padding-top: 20px; }
.bbp-pret { margin: 0 0 5px; font-size: 28px; line-height: 35px; font-weight: 400; color: var(--bb-accent, #a2805c); }
.bbp-pret ins { text-decoration: none; font-weight: 600; color: var(--bb-accent, #a2805c); }
.bbp-pret del { margin-left: 4px; font-size: 15.68px; color: var(--bb-pret-vechi, #4d4d4d); }
.bbp-pret__interval { font-weight: 400; }
.bbp-novat { margin: 2px 0 0; font-size: 12.5px; line-height: 28px; color: #8a8a8a; }
.bbp-scurta { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #eef0f3; font-size: 16px; line-height: 28px; }
.bbp-scurta p { margin: 0 0 8px; }
.bbp-epuizat { margin: 30px 0; color: var(--bb-verde, #12a05c); font-size: 16px; }

/* variantele (pastilele WooCommerce / temei) */
.bbp-variante { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.bbp-variante__eticheta { padding: 0; margin: 0 0 8px; font-size: 16px; line-height: 20px; color: #000; }
.bbp-variante__optiuni { display: flex; flex-wrap: wrap; gap: 10px; }
.bbp-varianta { position: relative; cursor: pointer; }
.bbp-varianta input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bbp-varianta span {
    display: inline-flex; align-items: center; min-height: 30px; padding: 2px 18px; border: 1px solid #e3e5e8; border-radius: 30px; background: #fff;
    font-size: 14px; line-height: 20px; font-weight: 600; color: #000; transition: border-color .15s ease;
}
.bbp-varianta:hover span { border-color: #000; }
.bbp-varianta input:checked + span { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.bbp-varianta input:focus-visible + span { outline: 2px solid var(--bb-accent, #a2805c); outline-offset: 2px; }
.bbp-variante__sterge {
    display: inline-block; margin: 10px 0 0; padding: 0; border: 0; background: none; color: #ff0000; font: inherit; font-size: 14px; cursor: pointer;
}
.bbp-variante__sterge[hidden] { display: none; }
.bbp-varianta-stoc { margin: 0 0 18px; color: var(--bb-verde, #12a05c); font-size: 15px; }

/* ---------- cardul bej „Calculează prețul blatului…” (stilurile inline de azi) ---------- */
.bbp-cta {
    max-width: 780px; margin: 32px auto; padding: 32px 24px; border-radius: 24px; background: #ac8c6e; color: #fff;
    font-size: 16px; text-align: center; box-shadow: 0 8px 28px rgba(0, 0, 0, .10);
}
.bbp-cta__titlu { margin: 0 0 30px; font-size: 18px; line-height: 28px; color: #fff; }
.bbp-cta__butoane { display: inline-flex; flex-direction: column; align-items: stretch; max-width: 100%; }
.bbp-cta__rand { display: flex; justify-content: center; align-items: center; gap: 22px; }
.bbp-cta__btn {
    display: flex; align-items: center; gap: 11px; padding: 15px 26px; border-radius: 16px; font: inherit; font-size: 15px; line-height: 24px;
    font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: background .18s, color .18s;
}
.bbp-cta__btn svg { flex: none; }
.bbp-cta__btn--calc { background: #fff; color: #ac8c6e; border: 0; }
.bbp-cta__btn--calc:hover { background: #e8d4be; color: #86653e; }
.bbp-cta__btn--calc.is-inactiv { background: #e8d4be; color: #86653e; }
.bbp-cta__btn--oferta { background: transparent; color: #fff; border: 2px solid #fff; }
.bbp-cta__btn--oferta:hover { background: #86653e; color: #fff; }
.wa-cta-blat {
    display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; box-sizing: border-box; background: #25d366; color: #fff;
    font-weight: 700; padding: 16px 24px; border-radius: 16px; font-size: 16px; line-height: 28px; text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .35); margin-top: 18px; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    position: relative; overflow: hidden; will-change: transform; animation: bbpWaPuls 2.6s ease-in-out infinite;
}
.wa-cta-blat:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 10px 28px rgba(37, 211, 102, .5); filter: brightness(1.05); color: #fff; text-decoration: none; animation: none; }
.wa-cta-blat:active { transform: translateY(-1px) scale(.99); box-shadow: 0 4px 14px rgba(37, 211, 102, .35); }
.wa-cta-blat svg { flex-shrink: 0; width: 24px; height: 24px; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.wa-cta-blat:hover svg { transform: rotate(-12deg) scale(1.15); }
.wa-cta-blat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-100%); transition: transform .6s ease; }
.wa-cta-blat:hover::before { transform: translateX(100%); }
.wa-cta-blat > * { position: relative; z-index: 1; }
@keyframes bbpWaPuls { 0%, 100% { box-shadow: 0 4px 14px rgba(37, 211, 102, .35); } 50% { box-shadow: 0 4px 22px rgba(37, 211, 102, .55); } }
@media (prefers-reduced-motion: reduce) { .wa-cta-blat, .wa-cta-blat svg, .wa-cta-blat::before { animation: none !important; transition: none !important; } }
@media (max-width: 700px) {
    .bbp-cta__rand { flex-direction: column; gap: 14px; }
}

/* ==========================================================================
   CALCULATORUL (aspectul WAPF 2.7 + tema MyMedi)
   ========================================================================== */
.bbc-form { margin: 0; scroll-margin-top: 110px; }
.bbc-indemn { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #f7f3ee; color: #6b5440; font-size: 15px; line-height: 22px; }
.bbc-indemn[hidden], .bbc[hidden], .bbc-final[hidden] { display: none; }
.bbc-final { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.bbc-campuri { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.bbc-camp { box-sizing: border-box; width: 100%; padding: 0 5px 15px; }
.bbc-camp[hidden] { display: none; }
.bbc-camp--jum { width: 50%; }
.bbc-eticheta { padding: 0 0 5px; font-size: 16px; line-height: 18px; font-weight: 400; color: #000; }
.bbc-eticheta label { font-weight: 400; cursor: pointer; }
.bbc-eticheta abbr { text-decoration: none; border: 0; color: inherit; }
.bbc-desc { padding: 5px 0 0; font-size: 13.6px; line-height: 28px; color: #000; }
.bbc-p { font-size: 13.6px; line-height: 28px; color: #000; }
.bbc-p h2 { margin: 8px 0 6px; font-size: 24px; line-height: 30px; font-weight: 600; color: #000; }
.bbc-p p { margin: 0 0 6px; }
.bbc-ghid { font-size: 16px; color: #a2805c; text-decoration: underline; }
.bbc-ghid:hover { color: #86653e; }
.bbc-camp--p .bbc-eticheta { padding-bottom: 2px; }

/* pozele opțiunilor (wapf-image-swatch-wrapper) */
.bbc-poze { display: grid; grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); gap: 10px; }
.bbc-poza {
    position: relative; display: block; box-sizing: border-box; border: 2px solid transparent; text-align: center; cursor: pointer;
    transition: border-color .1s; font-size: 12px; line-height: 28px;
}
.bbc-poza input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; }
.bbc-poza img, .bbc-poza__gol { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; vertical-align: bottom; background: #f1f1f1; }
.bbc-poza__text { display: block; padding: 4px; font-size: 16px; line-height: 18px; color: #000; text-align: center; word-break: normal; overflow-wrap: anywhere; }
.bbc-poza:hover { border-color: rgba(53, 60, 78, .35); }
.bbc-poza.wapf-checked, .bbc-poza:has(input:checked) { border-color: #353c4e; }
/* conturul de focus doar la tastatură: după clic cu mouse-ul / degetul, opțiunea bifată are o singură linie (și la hover) */
.bbc-poza:has(input:focus-visible) { outline: 2px solid var(--bb-accent, #a2805c); outline-offset: 2px; }

/* câmpurile text / select (pastile #F0F2F5 ca tema) */
.bbc-text, .bbc-select, .bbc-textarea {
    display: block; width: 100%; box-sizing: border-box; margin: 0; border: 0; border-radius: 60px; background-color: #f0f2f5; color: #000;
    font: inherit; font-size: 18px; line-height: 26px; outline: none;
}
.bbc-text { padding: 10px 25px; }
.bbc-select {
    padding: 9px 40px 9px 20px; -webkit-appearance: none; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 20px center; background-size: 12px 8px;
}
.bbc-textarea { border-radius: 25px; padding: 12px 25px; min-height: 96px; resize: vertical; }
.bbc-text:focus, .bbc-select:focus, .bbc-textarea:focus { box-shadow: 0 0 0 2px rgba(162, 128, 92, .45); }
.bbc-text::placeholder { color: #8a8a8a; }
.bbc-camp--eroare .bbc-text, .bbc-camp--eroare .bbc-select { box-shadow: 0 0 0 2px #e2401c; }
.bbc-camp--eroare .bbc-poze { outline: 2px solid #e2401c; outline-offset: 4px; }
.bbc-eroare { display: block; margin-top: 6px; color: #e2401c; font-size: 13px; line-height: 18px; }
.bbc-schite {
    position: relative; display: grid; place-items: center; min-height: 92px; padding: 18px; border: 2px dashed #000; border-radius: 4px;
    font-size: 13px; text-align: center; cursor: pointer;
}
.bbc-schite input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bbc-nota .bbc-p p { margin: 0; }
.bbc-montaj-titlu .bbc-p h2 { margin-top: 4px; }

/* ---------- caseta de totaluri (WAPF + bdb-price-reveal de azi) ---------- */
.bbc-totaluri { margin: 18px 0 0; font-size: 16px; line-height: 28px; transition: opacity .15s ease; }
.bbc-totaluri[hidden] { display: none; }
.bbc-totaluri.is-incarca { opacity: .55; }
.bdb-breakdown { margin: 0 0 6px; }
.bdb-breakdown .bdb-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 3px 0; }
.bdb-breakdown .bdb-row > span:first-child { color: #555; font-weight: 700; }
.bdb-breakdown .bdb-full del { color: #9b9b9b; font-weight: 600; text-decoration: line-through; }
.bdb-breakdown .bdb-disc { color: #d2222a; font-weight: 700; }
.bdb-breakdown .bdb-disc > span:first-child { color: #d2222a; }
.bdb-save-wrap { display: flex; justify-content: flex-end; padding: 5px 0 7px; }
.bdb-save-badge {
    display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #12a35f, #0a7a43); color: #fff; font-weight: 700;
    font-size: 13.5px; letter-spacing: .2px; padding: 7px 16px; border-radius: 999px; box-shadow: 0 3px 10px rgba(10, 122, 67, .32); white-space: nowrap;
}
.bdb-save-badge svg { width: 15px; height: 15px; flex: none; }
.bdb-breakdown .bdb-net > span:last-child { font-weight: 800; font-size: 1.05em; color: #111; }
.bdb-breakdown .bdb-transport > span:last-child { font-weight: 600; }
.bdb-breakdown .bdb-netto { border-top: 1px solid #e8e2d6; margin-top: 6px; padding-top: 7px; }
.bdb-breakdown .bdb-netto > span:first-child, .bdb-breakdown .bdb-vat > span:first-child { color: #555; }
.bdb-breakdown .bdb-vat > span:last-child { font-weight: 600; }
.bbc-total { padding: 6px 0 4px; }
.bbc-total[hidden] { display: none; }
.bbc-total > span:first-child { display: block; font-weight: 700; color: #000; }
.bbc-total__suma { display: block; font-size: 28px; line-height: 35px; color: var(--bb-accent, #a2805c); }
.bbc-total--tva .bbc-total__suma { font-weight: 800; }
.bbc-total--lei .bbc-total__suma { font-weight: 300; }
.bnr-exchange-rate { padding-top: 6px; text-align: right; font-size: 16px; }
.bnr-exchange-rate[hidden] { display: none; }
.bnr-exchange-rate strong { font-weight: 400; }
.bnr-exchange-rate span { font-weight: 700; }
.bbc-mesaj { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #f7f3ee; color: #6b5440; font-size: 14px; line-height: 21px; }
.bbc-mesaj[hidden] { display: none; }

/* „Comanda” (single_add_to_cart_button: pastilă bej 200 × 46) */
.bbc-comanda { margin: 20px 0 0; }
.bbc-comanda__btn {
    min-width: 200px; padding: 10px 25px; border: 1px solid var(--bb-accent, #a2805c); border-radius: 60px; background: var(--bb-accent, #a2805c);
    color: #fff; font: inherit; font-size: 18px; line-height: 24px; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s;
}
.bbc-comanda__btn:hover, .bbc-comanda__btn:focus-visible { background: #000; border-color: #000; color: #fff; }
.bbc-comanda__btn[disabled] { opacity: .6; cursor: progress; }
.bbc-cos-mesaj { margin: 12px 0 0; font-size: 14px; line-height: 21px; color: var(--bb-verde, #12a05c); }
.bbc-cos-mesaj.is-eroare { color: #e2401c; }
.bbc-cos-mesaj[hidden] { display: none; }

/* ---------- distribuire, brand ---------- */
.bbp-meta { margin-top: 28px; padding-top: 25px; border-top: 1px solid #eef0f3; font-size: 14px; line-height: 28px; }
.bbp-meta__sku { margin: 0 0 14px; font-size: 16px; }
.bbp-meta__sku span:first-child { margin-right: 10px; }
.bbp-distribuie { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 8px; }
.bbp-distribuie a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; color: #fff; }
.bbp-distribuie a:hover { color: #fff; opacity: .85; }
.bbp-distribuie svg { width: 14px; height: 14px; }
.bbp-distribuie__fb { background: #4267b2; }
.bbp-distribuie__tw { background: #55acee; }
.bbp-distribuie__pin { background: #cb2027; }
.bbp-distribuie__in { background: #0077b5; }
.bbp-distribuie__rd { background: #ff4500; }
.bbp-meta__brand { margin: 0; }
.bbp-meta__brand a { color: #000; }

/* ==========================================================================
   Taburile
   ========================================================================== */
.bbp-taburi { margin: 70px 0 0; }
.bbp-taburi__lista { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 38px; }
.bbp-taburi__lista a { font-size: 22px; line-height: 25px; font-weight: 600; color: #000; text-decoration: none; }
.bbp-taburi__lista a[aria-selected="true"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.bbp-taburi__lista a:hover { color: var(--bb-accent, #a2805c); }
.bbp-panou { margin: 0 0 80px; padding: 50px; border: 1px solid #f0f2f5; border-radius: 4px; font-size: 16px; line-height: 24px; }
.bbp-panou[hidden] { display: none; }
.bbp-text { overflow-wrap: anywhere; }
.bbp-text h1, .bbp-text h2.bbp-h1 { font-size: 28px; line-height: 35px; margin: 0 0 16px; }
.bbp-text h2 { font-size: 24px; line-height: 30px; margin: 22px 0 14px; }
.bbp-text h3 { font-size: 22px; line-height: 25px; margin: 20px 0 12px; }
.bbp-text > :first-child { margin-top: 0; }
.bbp-text p { margin: 0 0 16px; }
.bbp-text ul, .bbp-text ol { margin: 0 0 16px; padding-left: 20px; }
.bbp-text li { margin: 0 0 12px; }
.bbp-text img { max-width: 100%; height: auto; }
.bbp-tabel { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 16px; }
.bbp-tabel table { border-collapse: collapse; min-width: 100%; }
.bbp-tabel th, .bbp-tabel td { padding: 8px 12px; border: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.bbp-text .ul-style-none { list-style: none; padding-left: 0; }

/* stilurile de azi ale taburilor (custom_css #20117) */
.garantie-mgm, .intretinere-mgm {
    --mgm: #ac8c6e; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px 28px; max-width: 900px; margin: 0 auto 40px;
    line-height: 1.6; font-size: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.garantie-mgm h2 { color: var(--mgm); font-size: 28px; margin: 0 0 14px; font-weight: 700; line-height: 1.25; }
.garantie-mgm h3 { color: var(--mgm); font-size: 20px; margin: 22px 0 10px; font-weight: 600; }
.garantie-mgm p, .intretinere-mgm p { margin: 0 0 14px; }
.garantie-mgm ul, .garantie-mgm .mgm-terms { list-style: none !important; margin: 0; padding: 0; }
.garantie-mgm .mgm-terms li { position: relative; padding-left: 36px; margin: 12px 0; }
.garantie-mgm .mgm-terms li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--mgm); font-weight: 800; font-size: 18px; line-height: 1; }
.garantie-mgm a { color: var(--mgm); font-weight: 600; text-decoration: none; }
.garantie-mgm a:hover { text-decoration: underline; }
.intretinere-mgm h2, .intretinere-mgm h3, .intretinere-mgm h4 { color: var(--mgm); margin: 20px 0 10px; font-weight: 600; line-height: 1.3; }
.intretinere-mgm h2 { font-size: 24px; margin-top: 0; }
.intretinere-mgm h3 { font-size: 20px; }
.intretinere-mgm h4 { font-size: 17px; }
.intretinere-mgm .mgm-note { color: #6b7280; font-size: 14px; margin-top: 8px; }
.intretinere-mgm ul { list-style: none; margin: 0; padding: 0; }
.intretinere-mgm li { position: relative; padding-left: 34px; margin: 10px 0; }
.intretinere-mgm li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--mgm); font-weight: 700; font-size: 18px; line-height: 1; }
.intretinere-mgm .mgm-steps { counter-reset: step; }
.intretinere-mgm .mgm-steps li { padding-left: 42px; }
.intretinere-mgm .mgm-steps li::before {
    content: counter(step); counter-increment: step; width: 26px; height: 26px; display: grid; place-items: center; background: #f3f4f6; color: var(--mgm);
    border-radius: 50%; font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #e5e7eb;
}
.mgm-profil-cant {
    --brand: #ac8c6e; --border: #e8eaee; --text: #111827; position: relative; background: #fff; color: var(--text); border: 1px solid var(--border);
    border-radius: 24px; padding: 18px 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
    transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease; margin: 0 auto 24px;
}
.mgm-profil-cant::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(172, 140, 110, .12); }
.mgm-profil-cant:hover { transform: translateY(-3px); border-color: rgba(172, 140, 110, .45); box-shadow: 0 14px 36px rgba(172, 140, 110, .15), 0 6px 20px rgba(0, 0, 0, .06); }
.mgm-profil-cant > h3, .mgm-profil-cant > h4 { text-align: center; color: var(--brand); margin: 0 0 12px; }
.mgm-profil-cant > h3 { font-size: 22px; font-weight: 700; }
.mgm-profil-cant > h4 { font-size: 16px; font-weight: 800; margin-top: 14px; }
.mgm-profil-cant .mgm-grid { display: grid; grid-template-columns: repeat(4, 200px); gap: 16px; justify-content: center; }
.mgm-profil-cant figure {
    width: 200px; margin: 0; padding: 10px; box-sizing: border-box; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; display: flex;
    flex-direction: column; align-items: center; gap: 8px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mgm-profil-cant figure:hover { transform: translateY(-2px); border-color: rgba(172, 140, 110, .45); box-shadow: 0 10px 20px rgba(172, 140, 110, .14); }
.mgm-profil-cant figure img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 10px; display: block; }
.mgm-profil-cant figcaption { text-align: center; font-size: 13px; line-height: 1.4; color: #6b7280; }
.mgm-profil-cant figcaption b { color: var(--brand); font-weight: 800; }
@media (max-width: 960px) { .mgm-profil-cant .mgm-grid { grid-template-columns: repeat(2, minmax(0, 200px)); } }
@media (max-width: 480px) { .mgm-profil-cant .mgm-grid { grid-template-columns: minmax(0, 200px); } }

/* recenziile */
.bbp-recenzii__lista { list-style: none; margin: 0 0 40px; padding: 0; }
.bbp-recenzie { display: grid; grid-template-columns: 60px 150px 100px minmax(0, 1fr); gap: 16px 24px; align-items: center; }
.bbp-recenzie__avatar {
    width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #ece5dc; color: #6b5440; font-size: 22px; font-weight: 600;
}
.bbp-recenzie__cap { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; }
.bbp-recenzie__cap strong { font-weight: 600; }
.bbp-recenzie__text p { margin: 0; font-size: 15px; line-height: 22px; }
.bbp-recenzii__titlu { font-size: 22px; margin: 0 0 12px; }
.bbp-recenzii__nota { margin: 30px 0 0; }

/* ==========================================================================
   Ferestrele: oferta rapidă, ghidul de măsurare, imaginile pe tot ecranul
   ========================================================================== */
html.bbp-fara-derulare { overflow: hidden; }
.bbp-popup {
    position: fixed; inset: 0; z-index: 99996; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(0, 0, 0, .40); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.bbp-popup[hidden] { display: none; }
.bbp-popup__panou {
    position: relative; width: 95%; max-width: 400px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 36px 26px; border-radius: 18px;
    background: #fff; box-shadow: 0 8px 32px rgba(0, 0, 0, .13); animation: bbpApare .22s;
}
@keyframes bbpApare { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.bbp-popup__x { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border: 0; background: none; color: #a2805c; font-size: 26px; line-height: 1; cursor: pointer; }
.bbp-popup__titlu { margin: 0 0 16px; color: #a2805c; font-size: 23px; line-height: 1.3; font-weight: 700; }
.bbp-popup__camp {
    display: block; width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 10px 11px; border: 1px solid #ddd; border-radius: 8px;
    background: #fff; font: inherit; font-size: 16px; line-height: 22px; color: #000;
}
textarea.bbp-popup__camp { margin-bottom: 15px; resize: vertical; }
.bbp-popup__camp:focus { outline: none; border-color: #a2805c; box-shadow: 0 0 0 2px rgba(162, 128, 92, .25); }
.bbp-popup__trimite {
    padding: 12px 26px; border: 0; border-radius: 8px; background: #a2805c; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.bbp-popup__trimite:hover { background: #86653e; }
.bbp-popup__trimite[disabled] { opacity: .6; cursor: progress; }
.bbp-popup__stare { margin-top: 12px; font-size: 14px; line-height: 20px; }
.bbp-popup__stare.bb-stare--ok { color: var(--bb-verde, #12a05c); }
.bbp-popup__stare.bb-stare--eroare { color: #e2401c; }
.bbp-popup .bb-eroare { display: block; margin: -4px 0 8px; color: #e2401c; font-size: 13px; }

.bbp-ghid { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 44px 20px 20px; border: 0; border-radius: 12px; }
.bbp-ghid::backdrop, .bbp-ecran::backdrop { background: rgba(0, 0, 0, .7); }
.bbp-ghid__poze { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bbp-ghid__poze img { display: block; width: 100%; height: auto; }
.bbp-ghid__x, .bbp-ecran__x {
    position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: #000; cursor: pointer;
}
.bbp-ecran {
    width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .92);
}
.bbp-ecran[open] { display: grid; place-items: center; }
.bbp-ecran__img { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); width: auto; height: auto; object-fit: contain; }
.bbp-ecran__x { color: #fff; top: 10px; right: 10px; }
.bbp-ecran__sag {
    position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.bbp-ecran__sag--st { left: 14px; }
.bbp-ecran__sag--dr { right: 14px; }
.bbp-ecran__contor { position: absolute; top: 18px; left: 18px; color: #fff; font-size: 14px; }

/* ==========================================================================
   Tabletă / telefon (o coloană: galerie, rezumat, cardul bej, 3D, calculator, buton, taburi)
   ========================================================================== */
@media (max-width: 991px) {
    .bbp-sus { grid-template-columns: minmax(0, 1fr); row-gap: 50px; }
    .bbp-taburi { margin-top: 50px; }
    .bbp-panou { padding: 30px; }
}
@media (max-width: 900px) {
    .bbc-poze { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .bbp-sus { row-gap: 40px; }
    .bbp-titlu { font-size: 30px; line-height: 36px; }
    .bbp-cta { padding: 28px 24px; margin: 28px 0; }
    .bbp-cta__titlu { font-size: 18px; }
    .bbp-cta__btn { justify-content: center; }
    .bbp-cta__rand .bbp-cta__btn--calc { width: 100%; }
    .bbp-galerie__insigne { top: 18px; left: 18px; }
    .bbp-galerie__lupa { top: 12px; right: 12px; }
    .bbp-galerie__miniaturi { gap: 6px; margin-top: 8px; }
    .bbp-mini { padding: 1px; }
    .bbp-mini__mai { inset: 1px; font-size: 13px; }
    .bbp-galerie__contor { right: 10px; bottom: 10px; }
    .bbp-taburi__lista { flex-wrap: nowrap; overflow-x: auto; gap: 24px; padding-bottom: 6px; scrollbar-width: none; }
    .bbp-taburi__lista::-webkit-scrollbar { display: none; }
    .bbp-taburi__lista li { flex: none; }
    .bbp-taburi__lista a { font-size: 18px; }
    .bbp-panou { padding: 20px 16px; margin-bottom: 50px; }
    .garantie-mgm, .intretinere-mgm { padding: 18px 16px; }
    .garantie-mgm h2 { font-size: 22px; }
    .bbp-recenzie { grid-template-columns: 60px minmax(0, 1fr); }
    .bbp-recenzie .bbp-stele, .bbp-recenzie__text { grid-column: 2; }
    .bbp-ghid__poze { grid-template-columns: minmax(0, 1fr); }
    .bbp-ecran__img { max-width: 100vw; }
    .bbc-text, .bbc-select { font-size: 16px; }
    .bbc-poza__text { font-size: 15px; }
    .bnr-exchange-rate { text-align: left; }
}
