/* ═══════════════════════════════════════════════════════════════════════════
 * TEMA: EDITABILA  (Admin -> Teme)
 *
 * Structura de magazin clasic, ca OpenCart: bara de sus cu contactul, antetul
 * cu sigla si cautarea, banda de meniu, coloana de categorii pe o parte.
 *
 * Nicio culoare, niciun font si nicio marime nu sunt scrise aici direct: totul
 * vine din variabilele editorului (<style id="themeVars">, din
 * Support\TemaFront). Valorile din :root de mai jos sunt doar plasa de
 * siguranta, daca blocul acela lipseste.
 *
 * Alegerile care schimba STRUCTURA (pozitia coloanei, bara de sus, cautarea,
 * cusatura, cardurile 3D) sunt atribute pe <html>: data-sidebar, data-topbar...
 * Asa previzualizarea din admin le poate schimba fara reincarcare.
 * ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --primary: #04708c; --primary-dark: #035a70; --primary-light: #e3f1f4;
    --accent: #04708c; --accent-text: #ffffff;
    --bg: #f2f6f7; --surface: #ffffff; --surface2: #e8eff1; --border: #d3dfe2;
    --text: #13201f; --text2: #4a5b5f; --text3: #7b8b8f;
    --topbar-bg: #13201f; --topbar-text: #cfdcdf;
    --header-bg: #ffffff; --header-text: #13201f; --logo-h: 58px;
    --nav-bg: #04708c; --nav-text: #ffffff; --nav-hover: rgba(255,255,255,.16); --nav-h: 48px;
    --sidebar-w: 270px; --sidebar-head-bg: #13201f; --sidebar-head-text: #ffffff;
    --footer-bg: #13201f; --footer-text: #b9c8cb;
    --font-display: 'Bodoni Moda', Georgia, serif; --font-body: 'Jost', system-ui, sans-serif; --font-size: 16px;
    --radius: 4px; --radius-lg: 6px; --shadow: 0 2px 10px rgba(19,32,31,.08); --layout-w: 1240px;
    --stitch-color: #04708c;
    --font-mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
    --gap: 1.5rem;
    --t: 180ms cubic-bezier(.4, 0, .2, 1);
}

/* ─── Baza ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--font-size); scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--text); margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1rem; }
.muted { color: var(--text3); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--text2); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; }

.container { max-width: var(--layout-w); margin: 0 auto; padding: 0 16px; }

/* ─── Butoane ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .7rem 1.35rem;
    font: 600 .95rem/1.2 var(--font-body);
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.btn-primary, .cta-contact .btn { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover, .cta-contact .btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--accent-text); }
.btn-secondary { background: transparent; border-color: currentColor; color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); color: var(--primary-dark); }

/* ═══ ANTET ═══════════════════════════════════════════════════════════════ */
.site-header { background: var(--header-bg); color: var(--header-text); position: relative; z-index: 100; }

/* Bara de sus */
.topbar { background: var(--topbar-bg); color: var(--topbar-text); font-size: .82rem; }
html[data-topbar="nu"] .topbar { display: none; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; align-items: center; min-height: 34px; padding-top: .3rem; padding-bottom: .3rem; }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }
.topbar-program { margin-left: auto; opacity: .8; }

/* Sigla + cautarea */
.header-main { display: flex; align-items: center; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.site-brand { display: flex; align-items: center; gap: .8rem; color: var(--header-text); flex-shrink: 0; }
.site-brand:hover { color: var(--header-text); }
.brand-icon, .brand-logo { height: var(--logo-h); width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: clamp(1.3rem, calc(var(--logo-h) * .42), 2.1rem); font-weight: 600; letter-spacing: -.01em; }
/* Langa sigla completa: o linie subtire intre sigla firmei si numele site-ului. */
.brand-text-sep { border-left: 1px solid var(--border); padding-left: .9rem; align-self: center; }
.brand-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 4px; font-weight: 600; }

.site-search { flex: 1; max-width: 560px; margin-left: auto; display: flex; }
html[data-search="nu"] .site-search { display: none; }
.site-search input {
    flex: 1; min-width: 0;
    font: inherit; font-size: .95rem;
    padding: .65rem .9rem;
    border: 2px solid var(--border); border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--surface); color: var(--text);
}
.site-search input:focus { outline: none; border-color: var(--primary); }
.site-search button {
    font: 600 .9rem var(--font-body);
    padding: 0 1.2rem;
    border: 0; border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--primary); color: var(--accent-text); cursor: pointer;
}
.site-search button:hover { background: var(--primary-dark); }

/* Banda de meniu */
.nav-band { background: var(--nav-bg); color: var(--nav-text); }
.nav-band .nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; min-height: var(--nav-h); flex-wrap: wrap; }
.nav-band .nav-list > li { position: relative; display: flex; }
.nav-band .nav-list > li > a {
    display: flex; align-items: center; gap: .3rem;
    /* Fiecare element are inaltimea benzii: cu multe categorii (ca in OpenCart)
       banda trece pe doua randuri, fiecare la fel de inalt, nu turtite. */
    min-height: var(--nav-h);
    padding: 0 .95rem;
    color: var(--nav-text);
    font-size: .84rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.nav-band .nav-list > li > a:hover,
.nav-band .nav-list > li:hover > a,
.nav-band .nav-list > li.open > a { background: var(--nav-hover); color: var(--nav-text); }
.nav-band .chev { display: inline-block; transition: transform 200ms; }
.nav-band .nav-list > li:hover > a > .chev { transform: rotate(90deg); }
.nav-band .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 250px;
    list-style: none; margin: 0; padding: .4rem 0;
    background: var(--surface);
    border: 1px solid var(--border); border-top: 3px solid var(--nav-bg);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity 180ms, transform 180ms, visibility 180ms;
    z-index: 120;
}
.nav-band .nav-list > li:hover > .sub-menu,
.nav-band .nav-list > li:focus-within > .sub-menu,
.nav-band .nav-list > li.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-band .sub-menu li { position: relative; }
.nav-band .sub-menu a { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem 1.1rem; color: var(--text); font-size: .9rem; }
.nav-band .sub-menu a:hover { background: var(--primary-light); color: var(--primary-dark); }
/* "Vezi tot: <categorie>" la finalul dropdown-ului (ca "Show All" din OpenCart) */
.nav-band .sub-menu li.meniu-tot { border-top: 1px solid var(--border); margin-top: .3rem; padding-top: .3rem; }
.nav-band .sub-menu li.meniu-tot a { color: var(--primary); font-weight: 600; }
.nav-band .sub-menu .sub-menu { top: -.4rem; left: 100%; border-top-width: 1px; border-radius: var(--radius); }
.nav-band .sub-menu li:hover > .sub-menu,
.nav-band .sub-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--header-text); cursor: pointer; padding: .25rem .5rem; }

/* ─── Breadcrumb ─────────────────────────────────────────────────────── */
.breadcrumb { padding: .9rem 0 0; }
.breadcrumb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--text3); }
.breadcrumb-list li:not(:last-child)::after { content: '›'; margin-left: .4rem; }
.breadcrumb-list a { color: var(--text2); }
.breadcrumb-list a:hover { color: var(--primary); }

/* ═══ STRUCTURA: COLOANA + CONTINUT ══════════════════════════════════════ */
.shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    grid-template-areas: "side main";
    gap: 2rem;
    padding-top: 1.5rem; padding-bottom: 3rem;
    align-items: start;
}
html[data-sidebar="dreapta"] .shell { grid-template-columns: minmax(0, 1fr) var(--sidebar-w); grid-template-areas: "main side"; }
html[data-sidebar="fara"] .shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
html[data-sidebar="fara"] .cat-sidebar { display: none; }
.cat-sidebar { grid-area: side; display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 1rem; }
.shell-main { grid-area: main; min-width: 0; }
/* Sabloanele de pagina au fiecare .container-ul lor; in coloana nu mai trebuie. */
.shell-main .container { max-width: none; padding: 0; }

/* Casetele din coloana */
.cat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cat-box-head {
    display: block; list-style: none; cursor: default;
    pointer-events: none; /* pe ecran lat caseta nu se strange; pe telefon da (mai jos) */
    background: var(--sidebar-head-bg); color: var(--sidebar-head-text);
    font: 600 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase;
    padding: .8rem 1rem;
}
.cat-box-head::-webkit-details-marker { display: none; }
.cat-tree, .cat-tree ul { list-style: none; margin: 0; padding: 0; }
.cat-tree > li + li { border-top: 1px solid var(--border); }
.cat-tree a { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .62rem 1rem; color: var(--text); font-size: .93rem; line-height: 1.35; }
.cat-tree a:hover { background: var(--primary-light); color: var(--primary-dark); }
.cat-tree ul { background: var(--surface2); padding: .25rem 0; }
.cat-tree ul a { padding: .38rem 1rem .38rem 1.6rem; font-size: .87rem; }
.cat-tree ul ul a { padding-left: 2.3rem; }
.cat-tree ul a::before { content: '–'; color: var(--text3); margin-right: .45rem; }
.cat-tree a > span:first-child { flex: 1; }
.cat-tree .is-active > a { color: var(--primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
.cat-count { font-size: .75rem; color: var(--text3); font-variant-numeric: tabular-nums; }
html[data-counts="nu"] .cat-count { display: none; }
.brand-list { display: flex; flex-wrap: wrap; gap: .4rem; padding: .9rem 1rem; }
.brand-list a { font-size: .8rem; font-weight: 600; letter-spacing: .04em; padding: .25rem .6rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text2); }
.brand-list a:hover { border-color: var(--primary); color: var(--primary); }

/* ═══ TITLURI DE SECTIUNE + CUSATURA ═════════════════════════════════════ */
.section-title { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-bottom: 1.25rem; }
html[data-stitch="titluri"] .section-title::after,
html[data-stitch="peste_tot"] .section-title::after,
html[data-stitch="titluri"] .page-header h1::after,
html[data-stitch="peste_tot"] .page-header h1::after {
    content: ''; display: block;
    width: 72px; height: 2px; margin-top: .55rem;
    background: repeating-linear-gradient(90deg, var(--stitch-color) 0 8px, transparent 8px 13px);
}
html[data-stitch="peste_tot"] .card:hover { outline: 2px dashed var(--stitch-color); outline-offset: -7px; }

/* ═══ CARDURI ════════════════════════════════════════════════════════════ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--gap); }
.card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.card:hover { border-color: var(--primary); color: var(--text); }
.card-media { display: block; background: #fff; border-bottom: 1px solid var(--border); }
.card img, .card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: .75rem; background: #fff; }
.card-body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.card-body h3 { font-size: 1rem; margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
.card-body p { margin: 0; font-size: .85rem; color: var(--text2); }
.card-body .muted { color: var(--text3); }
.card-model { font-family: var(--font-mono); font-size: .78rem; color: var(--primary); }

/* Placi compacte: categoriile de pe prima pagina si subcategoriile. Multe
   categorii n-au poza; ca carduri mari ar lasa randuri goale si inegale. */
.cards-cat, .children-grid .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.cards-cat .card, .children-grid .card { flex-direction: row; align-items: center; min-height: 64px; }
.cards-cat .card-media, .children-grid .card-media { flex: none; width: 76px; align-self: stretch; border-bottom: 0; border-right: 1px solid var(--border); }
.cards-cat .card-media img, .children-grid .card-media img { aspect-ratio: 1; height: 100%; padding: 6px; }
.card-initiala {
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary);
    font: 600 1.6rem var(--font-display);
}
.cards-cat .card-body, .children-grid .card-body { padding: .7rem .95rem; justify-content: center; }
.children-grid .card-body p { display: none; }
.children-grid .card-body h3 { font-size: .95rem; }

/* Pe pagina de categorie subcategoriile vin deasupra produselor, ca in OpenCart. */
.page-article > .container { display: flex; flex-direction: column; }
.page-article .page-header, .page-article .page-intro { order: -2; }
.page-article .children-grid { order: -1; margin-top: 0; margin-bottom: 1rem; }

/* ═══ PRIMA PAGINA (structura OpenCart) ═══════════════════════════════════ */
.home-banner { display: block; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: var(--surface); }
.home-banner img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
/* Sliderul (partials/slider.php + assets/js/slider.js). Slide-urile stau unul
   peste altul si se schimba prin opacitate; inaltimea o da raportul 3:1. */
.slider { position: relative; aspect-ratio: 3 / 1; overflow: hidden; background: var(--surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.slider-pista, .slide { position: absolute; inset: 0; }
.slide { display: block; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-activ { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; }
.slide-umple img { object-fit: cover; }
.slide-intreaga img { object-fit: contain; background: #fff; }
.slide-titlu { position: absolute; left: 1.25rem; bottom: 1.25rem; max-width: 70%;
    background: rgba(19, 32, 31, .72); color: #fff; padding: .45rem .85rem; border-radius: var(--radius);
    font: 600 1.05rem var(--font-body); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .85); color: var(--text); font-size: 1.7rem; line-height: 1;
    box-shadow: var(--shadow); opacity: 0; transition: opacity var(--t); }
.slider:hover .slider-btn, .slider-btn:focus-visible { opacity: 1; }
.slider-inapoi { left: .75rem; } .slider-inainte { right: .75rem; }
.slider-puncte { position: absolute; left: 0; right: 0; bottom: .7rem; z-index: 2; display: flex; justify-content: center; gap: .45rem; }
.slider-punct { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
    background: rgba(255, 255, 255, .35); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.slider-punct.is-activ { background: var(--primary); }
@media (hover: none) { .slider-btn { opacity: 1; width: 34px; height: 34px; font-size: 1.4rem; } }

/* Banda de producatori (partials/banda_producatori.php): lista e de doua ori,
   pista se muta cu -50% => bucla fara cusatura, de la dreapta la stanga. */
.banda { overflow: hidden; padding: .4rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.banda-pista { display: flex; width: max-content; animation: bandaMerge var(--banda-secunde, 40s) linear infinite; }
.banda:hover .banda-pista, .banda:focus-within .banda-pista { animation-play-state: paused; }
.banda-set { display: flex; gap: 1rem; padding-right: 1rem; }
.banda-card { flex: none; display: flex; align-items: center; justify-content: center;
    width: 190px; height: 92px; padding: .7rem 1rem;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); }
.banda-card:hover { border-color: var(--primary); }
.banda-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.banda-text strong { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .04em; color: var(--text2); }
@keyframes bandaMerge { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .banda { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .banda-pista { animation: none; }
    .banda-set[aria-hidden] { display: none; }
}

.home-intro {
    background: var(--primary); color: var(--accent-text);
    padding: 1.6rem 1.75rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
    margin-bottom: 2.5rem;
}
.home-intro.solo { border-radius: var(--radius-lg); }
.home-intro > div { flex: 1 1 340px; }
.home-intro h1 { color: inherit; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .4rem; }
.home-intro p { margin: 0; opacity: .9; max-width: 62ch; }
.home-intro .btn-primary { background: var(--accent-text); border-color: var(--accent-text); color: var(--primary-dark); }
.home-intro .btn-primary:hover { background: transparent; color: var(--accent-text); }
.home-intro .btn-secondary { color: var(--accent-text); }
.home-intro .btn-secondary:hover { background: rgba(255,255,255,.12); color: var(--accent-text); }
.home-block { margin-bottom: 2.75rem; }
.home-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.home-block-head a { font-size: .9rem; font-weight: 600; }
.brand-strip { display: flex; flex-wrap: wrap; gap: .6rem; }
.brand-strip a {
    flex: 1 1 140px;
    display: flex; flex-direction: column; align-items: center; gap: .1rem;
    padding: .9rem .75rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    color: var(--text);
}
.brand-strip a:hover { border-color: var(--primary); color: var(--primary); }
.brand-strip strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .02em; }
.brand-strip span { font-size: .75rem; color: var(--text3); }

/* Prima pagina generica (alte site-uri pe aceeasi tema) */
.hero { padding: 2rem 0 2.5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
.stat-num { font-family: var(--font-display); font-size: 2rem; color: var(--primary); line-height: 1; }
.stat-unit { font-size: 1rem; margin-left: .15rem; }
.stat-label { font-size: .8rem; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; }
.top-categories, .manufacturers, .about-section, .cta-strip { padding: 1.5rem 0 2rem; }
.manufacturers-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.manufacturer { padding: .7rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.manufacturer .country { font-size: .75rem; color: var(--text3); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.about-map iframe { width: 100%; min-height: 280px; border: 0; border-radius: var(--radius-lg); }
.cta-strip .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
    background: var(--surface2); padding: 1.5rem; border-radius: var(--radius-lg); }
.cta-strip h2 { margin-bottom: .3rem; font-size: 1.4rem; }
.cta-strip p { margin: 0; color: var(--text2); }

/* ═══ PAGINI: CATEGORIE, PRODUCATOR, CAUTARE, INFORMATII ════════════════ */
.page-article { padding: 0; }
.page-header { margin-bottom: 1.25rem; }
.page-intro { color: var(--text2); max-width: 75ch; }
.page-content { max-width: 78ch; line-height: 1.7; }
.page-content img, .prose img { border-radius: var(--radius); margin: 1.25rem 0; }
.prose table, .page-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; background: var(--surface); }
.prose th, .prose td, .page-content th, .page-content td { padding: .55rem .75rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th, .page-content th { background: var(--surface2); font-weight: 600; }
.products-grid, .children-grid { margin-top: 2rem; }
.models-table-wrap, .table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.models-table { width: 100%; border-collapse: collapse; font-size: .875rem; background: var(--surface); }
.models-table th { background: var(--text); color: var(--surface); padding: .65rem .75rem; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.models-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--border); }
.models-table .model-code, .models-table code { font-family: var(--font-mono); color: var(--primary); font-weight: 600; }
.cta-contact {
    margin-top: 2.5rem; padding: 1.4rem 1.6rem;
    background: var(--primary-light); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.cta-contact p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 500; }
.search-empty { padding: 1.5rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text2); }

/* ─── Produs ─────────────────────────────────────────────────────────── */
.product-article .page-header h1 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.model-code { font-family: var(--font-mono); font-size: .85rem; color: var(--text2); }
.model-code strong { color: var(--primary); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.product-main-image { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; width: 100%; }
.product-no-image { background: var(--surface2); color: var(--text3); padding: 4rem 1rem; text-align: center; border-radius: var(--radius-lg); }
.product-gallery { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.product-gallery img { width: 76px; height: 76px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; cursor: pointer; }
.product-gallery img:hover { border-color: var(--primary); }
.product-short { color: var(--text2); line-height: 1.7; }
.specs-table { width: 100%; border-collapse: collapse; margin: .75rem 0 1.25rem; font-size: .9rem; background: var(--surface); }
.specs-table th { width: 40%; text-align: left; background: var(--surface2); padding: .5rem .75rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.specs-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
.product-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.product-content { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border); line-height: 1.75; }
.prose [style*="color"] { color: inherit !important; }

/* ─── Contact ────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; }
.contact-form label { display: block; margin-bottom: 1rem; font-weight: 500; font-size: .92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; margin-top: .25rem; padding: .6rem .8rem;
    font: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .gdpr-consent { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.contact-form .gdpr-consent input { width: auto; margin-top: .3rem; }
.contact-form button { background: var(--accent); color: var(--accent-text); border: 0; padding: .8rem 1.8rem; border-radius: var(--radius); font: 600 1rem var(--font-body); cursor: pointer; }
.contact-form button:hover { background: var(--primary-dark); }
.contact-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; }

/* ─── 404 ────────────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 1rem 0 2rem; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 7rem); color: var(--primary); line-height: 1; margin-bottom: .5rem; }
.error-lead { color: var(--text2); max-width: 60ch; margin: 0 auto 2rem; }
.error-suggestions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; text-align: left; }
.error-suggestion { display: block; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); }
.error-suggestion:hover { border-color: var(--primary); color: var(--text); }
.error-suggestion strong { display: block; color: var(--primary); margin-bottom: .25rem; }
.error-suggestion span { font-size: .85rem; color: var(--text2); }
.error-actions { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

/* ═══ SUBSOL ═════════════════════════════════════════════════════════════ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 2.75rem 0 1.25rem; font-size: .92rem; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer h3 { font-family: var(--font-body); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .9rem; }
.site-footer .muted { color: inherit; opacity: .75; }
.site-footer p { margin-bottom: .4rem; }
.footer-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1rem; }

/* ═══ SCHITE IN FUNDAL ═══════════════════════════════════════════════════
   Plansa SVG pusa ca MASCA peste o suprafata colorata, ca in PB: culoarea
   creionului vine din tema, nu e arsa in fisier. Fara suport de masca,
   stratul nu exista deloc (nu are voie sa ramana un dreptunghi colorat). */
@supports ((-webkit-mask-image: url(#s)) or (mask-image: url(#s))) {
    body { isolation: isolate; }
    body::before {
        content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
        background-color: var(--sketch-color, #04708c);
        opacity: calc(var(--sketch-opacity, 0) / 100);
        -webkit-mask-image: var(--sketch-url, none); mask-image: var(--sketch-url, none);
        -webkit-mask-repeat: repeat; mask-repeat: repeat;
        -webkit-mask-position: center top; mask-position: center top;
        -webkit-mask-size: auto; mask-size: auto;
    }
}

/* ═══ TELEFON / TABLETA ══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .header-main { flex-wrap: wrap; gap: .75rem 1rem; }
    .site-search { order: 3; flex-basis: 100%; max-width: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .nav-band .nav-list { display: none; flex-direction: column; padding: .25rem 0; }
    .nav-band .nav-list.open { display: flex; }
    .nav-band .nav-list > li { flex-direction: column; }
    .nav-band .nav-list > li > a { padding: .7rem 16px; }
    .nav-band .sub-menu, .nav-band .sub-menu .sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none; display: none;
        box-shadow: none; border: 0; border-radius: 0; min-width: 0;
    }
    .nav-band li.open > .sub-menu { display: block; }
    .topbar-program { margin-left: 0; }
    .shell, html[data-sidebar="dreapta"] .shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; gap: 1.25rem; padding-top: 1rem; }
    .cat-sidebar { position: static; }
    .cat-box-head { cursor: pointer; pointer-events: auto; display: flex; justify-content: space-between; }
    .cat-box-head::after { content: '▾'; }
    .cat-box[open] .cat-box-head::after { content: '▴'; }
    .cat-box-brands { display: none; }
    .product-grid, .contact-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-banner img { aspect-ratio: 2 / 1; }
}
@media (max-width: 540px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .cards-cat, .children-grid .cards { grid-template-columns: minmax(0, 1fr); }
    .card-body { padding: .75rem; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); }
    .brand-text strong { font-size: 1.4rem; }
    .brand-logo { height: min(var(--logo-h), 56px); }
}
@media print {
    body::before, .topbar, .nav-band, .cat-sidebar, .site-search { display: none; }
    .shell { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
