/* =============================================================
   RESPONSIVE — tabletă și telefon
   (se încarcă după style.css și îl suprascrie unde e nevoie)
   ============================================================= */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }

/* Extra contact în meniul mobil + bară fixă pe produs: ascunse pe desktop */
.nav-extra { display: none; }
.buy-bar { display: none; }

/* ---------- Tabletă (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-in { gap: 32px; }
  .split { gap: 40px; }
}

/* ---------- Tabletă portret (≤ 900px) ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .navbar { background: var(--header-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .navbar-in { height: var(--nav-h); }
  .logo-text { font-size: 1.45rem; }
  .logo svg { width: 27px; height: 27px; }

  /* Meniu pe tot ecranul, sub bara de navigare */
  .nav {
    position: fixed; top: var(--menu-top, var(--nav-h)); left: 0; right: 0; bottom: 0;
    height: auto; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column;
    padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
    background: var(--bg); border: 0; box-shadow: none;
  }
  .nav a { font-size: 1.35rem; font-weight: 600; color: var(--ink); padding: 18px 0; }
  .nav a:hover { background: none; }
  .nav a[aria-current="page"] { color: var(--price); }
  .nav .nav-cart { font-size: 1rem; padding: 14px; margin-top: 24px; }
  .nav-extra { display: grid; gap: 10px; margin-top: auto; padding-top: 32px; }
  .nav-extra .btn { width: 100%; padding: 14px; font-size: .95rem; font-weight: 600; border: 1px solid var(--line-strong); }
  .nav-extra .btn-wa { color: #06301a; border-color: var(--wa); }
  .nav-extra small { color: var(--ink-mute); text-align: center; font-size: .78rem; margin-top: 6px; }
  body.nav-open { overflow: hidden; }
  .nav-open .fab, .nav-open .buy-bar { display: none; }

  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .split { grid-template-columns: 1fr 1fr; }
  .split-text h2 { margin: 24px 0; }
  .product-grid { gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Telefon mare / tabletă mică (≤ 760px) ---------- */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-tall { aspect-ratio: 16 / 10; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-grid > * { min-width: 0; }
  .product-media { position: static; aspect-ratio: 4 / 3; }
  .strip { height: 240px; }
}

/* ---------- Tabletă: 3 produse / categorii pe rând (601–900px) ---------- */
@media (min-width: 601px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  #home-featured > :nth-child(n+4), #home-offers > :nth-child(n+4) { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .card-body { padding: 14px 12px 16px; }
  .card-body h3 { font-size: .98rem; }
  .card-dims { font-size: .84rem; }
  .card .btn { padding: 10px 12px; font-size: .8rem; }
  .cat-tile-head { padding: 16px 12px; }
  .cat-tile-head p { font-size: .74rem; }
  .hero h1 { font-size: clamp(2.6rem, 6.4vw, 3.4rem); }
  .hero-side p { max-width: 560px; }
  .product-media { aspect-ratio: 4 / 3; }
}

/* Telefon ținut orizontal: hero mai scund */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100svh; }
  .hero-in { padding: 72px 0 32px; }
  .hero h1 { font-size: 2rem; }
}

/* ---------- Telefon (≤ 600px) ---------- */
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  h2 { font-size: 1.65rem; }

  /* Bara de anunț pe un singur rând */
  .topbar { font-size: .72rem; padding: 7px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Hero */
  .hero { min-height: 78svh; }
  .hero-in { padding: 96px 0 40px; gap: 18px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-side p { font-size: .98rem; margin-bottom: 20px; }
  .hero-side .btn { width: 100%; padding: 14px; }

  .statement h2 { font-size: 1.75rem; }
  .statement p { font-size: .95rem; }
  .strip { height: 190px; }

  /* Produse: 2 pe rând, carduri compacte */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { border-radius: 12px; }
  .card-body { padding: 12px 10px; }
  .card-cat { font-size: .6rem; letter-spacing: .1em; }
  .card-body h3 { font-size: .9rem; margin: 4px 0 2px; }
  .card-dims { font-size: .8rem; line-height: 1.4; }
  .card-price { margin: 8px 0 10px; }
  .price strong { font-size: 1.02rem; }
  .price { font-size: .74rem; }
  .card .btn { padding: 9px 8px; font-size: .74rem; }

  /* Categorii: 2 pe rând, fără descriere */
  .cat-grid { gap: 10px; }
  .cat-tile { border-radius: 12px; }
  .cat-tile-head { padding: 14px 10px; }
  .cat-tile-head h3 { font-size: .9rem; }
  .cat-tile-head p { display: none; }
  .cat-tile .media { aspect-ratio: 4 / 3; }

  .split-small { display: none; }
  .split-text h2 { margin: 20px 0 0; }
  .stats { margin-top: 28px; }
  .stats div { padding: 16px 12px; }
  .stats b { font-size: 1.45rem; }
  .stats span { font-size: .7rem; line-height: 1.35; display: block; }
  .heading-row { margin-bottom: 24px; }

  /* pe telefon: casetă mai scundă, butoanele unul lângă altul */
  .cta-in { padding: 30px 18px; }
  .cta-in h2 { font-size: 1.35rem; margin-bottom: 8px; }
  .cta-in p { font-size: .88rem; line-height: 1.5; margin: 0; }
  .cta .btn-row { flex-direction: row; flex-wrap: nowrap; gap: 10px; margin-top: 18px; }
  .cta .btn { flex: 1; padding: 12px 8px; font-size: .88rem; white-space: nowrap; }

  /* Subpagini */
  .page-head { padding: 40px 0 8px; }
  .page-head h1 { font-size: 2rem; }
  .page-head p { font-size: .92rem; }

  /* Catalog: căutare sus, filtre derulabile orizontal */
  .toolbar { flex-direction: column-reverse; flex-wrap: nowrap; align-items: stretch; gap: 14px; margin: 16px 0 20px; padding-bottom: 0; border: 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; min-width: 0; width: auto; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; scroll-snap-align: start; padding: 10px 16px; }

  /* Pagina produs: imagine pe toată lățimea */
  .crumbs { padding: 14px 0; margin-bottom: 0; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 0; }
  .product-media { margin: 0 -16px; border-radius: 0; }
  .product-grid { gap: 24px; }
  .product-info h1 { font-size: 1.85rem; margin-bottom: 16px; }
  .meta { grid-template-columns: repeat(2, auto); gap: 10px 28px; }
  .price-big strong { font-size: 1.9rem; }
  .order-box { padding: 18px; margin: 16px 0 24px; }
  .qty-row { display: flex; width: 100%; }
  .qty-row input { flex: 1; width: auto; }
  .qty-btn { width: 52px; height: 50px; }
  .order-box .btn-row { flex-direction: column; }
  .order-box .btn { width: 100%; padding: 14px; }
  .related { margin-top: 64px; }

  /* Bară fixă „Adaugă la cerere” */
  .buy-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--bar-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .buy-bar.show { transform: none; }
  .buy-bar .price strong { font-size: 1.15rem; }
  .buy-bar small { display: block; color: var(--ink-mute); font-size: .7rem; }
  .buy-bar .btn { padding: 12px 18px; font-size: .85rem; white-space: nowrap; }
  .has-buy-bar .fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .has-buy-bar footer { padding-bottom: 72px; }

  /* Coș */
  .quote-layout { padding: 8px 0 64px; gap: 28px; }
  .cart-item { grid-template-columns: 64px 1fr auto; gap: 10px 12px; padding: 12px; }
  .cart-media { grid-column: 1; grid-row: 1 / 3; width: 64px; height: 64px; align-self: start; }
  .cart-info { grid-column: 2; grid-row: 1; }
  .cart-info a { font-size: .92rem; }
  .cart-info .card-dims { font-size: .72rem; }
  .cart-remove { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
  .cart-qty { grid-column: 2; grid-row: 2; }
  .cart-line { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; min-width: 0; }
  .cart-qty input { width: 72px; padding: 8px; }
  .cart-total { flex-wrap: wrap; }
  .cart-total strong { font-size: 1.6rem; }

  /* Formulare: 16px ca să nu facă zoom pe iPhone */
  .form-card { padding: 22px 18px; border-radius: 16px; position: static; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field input, .field select, .field textarea, .search input, .qty-row input, .cart-qty input { font-size: 16px; }
  .field input, .field select { min-height: 48px; }
  .form-card .btn[type=submit] { padding: 15px; font-size: .95rem; }

  /* Contact */
  .contact-layout { padding: 8px 0 64px; gap: 28px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .map { height: 240px; }

  /* Footer */
  footer { padding-top: 44px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

  /* Butoane flotante mai mici */
  .fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); gap: 8px; }
  .fab a { width: 48px; height: 48px; }
  .fab svg { width: 25px; height: 25px; }
  .fab-tel svg { width: 21px; height: 21px; }
}

/* ---------- Telefon mic (≤ 360px) ---------- */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.85rem; }
  .card-body h3 { font-size: .84rem; }
  .card .btn { font-size: .7rem; padding: 8px 4px; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Dispozitive tactile: fără efect de mărire la hover */
@media (hover: none) {
  .card:hover .media img, .cat-tile:hover .media img { transform: none; }
  .card:hover { background: var(--surface); }
}

/* ---------- Prima pagină: meniu categorii + slider ---------- */
@media (max-width: 1024px) {
  .home-top { grid-template-columns: 230px 1fr; gap: 14px; }
  .cm-link { padding: 9px 10px; font-size: .9rem; }
  .hs-text { right: 18%; }
}
@media (max-width: 860px) {
  /* Pe tabletă/telefon: aceeași casetă ca pe laptop, cu toate categoriile la vedere, pe două coloane (fără derulare) */
  .home-top { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; gap: 12px; margin-top: 14px; }
  /* sub slider, mai fin: fără fundal, linii subțiri, text mic */
  .hslider { order: -1; }
  .cat-menu { background: none; padding: 4px 0 0; border-radius: 0; }
  .cat-menu-title { margin: 0 0 4px; font-size: .66rem; }
  .cat-menu-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .cm-link { padding: 9px 0; font-size: .72rem; font-weight: 600; gap: 6px; border-radius: 0; }
  .cm-name { letter-spacing: .05em; font-size: .72rem; line-height: 1.3; }
  .cm-item + .cm-item .cm-link { border-top: 0; }
  .cm-item .cm-link { border-bottom: 1px solid var(--line); }
  .cm-link:hover, .cm-item:hover > .cm-link { background: none; }
  .cm-arrow { width: 12px; height: 12px; opacity: .35; }
  .cat-menu-all { display: none; }
  .hslider { aspect-ratio: 16 / 9; }
  .hs-text { right: 12%; }
}
@media (max-width: 600px) {
  .hslider { aspect-ratio: 2 / 3; border-radius: 14px; }
  .hs-slide::after { background: linear-gradient(0deg, rgba(20, 12, 5, .85) 0%, rgba(20, 12, 5, .45) 50%, rgba(20, 12, 5, .05) 85%); }
  .hs-text { left: 20px; right: 20px; top: auto; bottom: 60px; transform: none; }
  .hs-text h1, .hs-text h2 { font-size: 1.6rem; }
  .hs-text p { font-size: .92rem; margin-bottom: 16px; }
  .hs-text .btn { width: 100%; padding: 13px; }
  .hslider.ready .hs-slide.active .hs-text { animation: none; } /* pe telefon textul stă jos, fără animația care îl ridica */
  .hs-btn { display: none; }
  .hs-dots { bottom: 18px; }
}

/* ---------- Prezentare + avantaje ---------- */
@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .intro-text p { max-width: none; }
}
@media (max-width: 600px) {
  .intro-sec { padding: 40px 0 0; }
  .intro-text h2 { font-size: 1.65rem; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 10px; }
  .benefit { flex-direction: column; gap: 10px; padding: 16px 14px; }
  .b-ico { width: 40px; height: 40px; border-radius: 10px; }
  .b-ico svg { width: 21px; height: 21px; }
  .benefit h3 { font-size: .88rem; }
  .benefit p { font-size: .78rem; }
}

/* Cursul BNR: pe ecrane mici nu încape în bara de sus → apare în meniu și în footer */
@media (max-width: 1100px) { .fx-top { display: none !important; } }
@media (min-width: 901px) { .fx-menu { display: none !important; } }
.fx-menu { justify-content: center; flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 600px) { .fx-foot { flex-wrap: wrap; justify-content: center; } .topbar-in { display: block; } }

/* ---------- Bara de sus ---------- */
@media (max-width: 900px) {
  .tb-social > span { display: none; }
}
@media (max-width: 600px) {
  .topbar { white-space: normal; overflow: visible; padding: 0; font-size: .88rem; }
  .topbar-in { display: flex; justify-content: center; min-height: 48px; }
  .tb-program, .tb-social > span { display: none; }
  /* pe telefon: Facebook + email + telefon, pe un rând (se rup pe două dacă nu încap) */
  .topbar-in { flex-wrap: nowrap; gap: 12px; font-size: .8rem; }
  .tb-social { flex: none; }
  /* pe telefon, pe un rând: telefon (stânga) · Facebook (mijloc) · email (dreapta) */
  /* pe telefon, pe un rând, centrat: Facebook · telefon · email */
  .topbar-in { display: flex; justify-content: center; align-items: center; gap: 14px; }
  .tb-contact { display: contents; }
  .tb-social { order: 1; }
  .tb-phone { order: 2; font-size: 1.1em; }
  .tb-mail { order: 3; font-size: .95em; opacity: 1; }
  .tb-phone::after { content: ""; width: 1px; height: 14px; background: rgba(255, 255, 255, .35); margin-left: 14px; }
  .tb-phone i { display: none; }
  .topbar svg { width: 15px; height: 15px; }
  .tb-social a { width: 26px; height: 26px; }
}
@media (max-width: 420px) {
  /* ecrane înguste: fără iconițele de email/telefon, ca totul să încapă pe un rând */
  .tb-mail svg, .tb-phone svg { display: none; }
  .topbar-in { font-size: .78rem; gap: 10px; }
}

/* ---------- File sub produs ---------- */
@media (max-width: 600px) {
  .ptabs { margin-top: 44px; }
  .ptabs-nav { justify-content: flex-start; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .ptabs-nav::-webkit-scrollbar { display: none; }
  .ptabs-nav button { flex: none; font-size: .92rem; }
  .ptabs-panel { padding-top: 22px; }
  .info-table { font-size: .88rem; }
  .info-table th, .info-table td { padding: 12px; }
  .info-table th { width: 42%; }
}

/* Slider pe telefoanele înguste: text mai compact, ca punctele să nu atingă butonul */
@media (max-width: 400px) {
  .hs-text h1, .hs-text h2 { font-size: 1.42rem; margin-bottom: 8px; }
  .hs-text p { font-size: .84rem; line-height: 1.5; margin-bottom: 12px; }
  .hs-text .btn { padding: 11px; }
  .hs-slide:not(.hs-cream) .hs-text { padding: 14px 20px 40px; }
  .hs-slide:not(.hs-cream) img { margin-top: 22px; }
}

/* Slide „Banner” pe telefon: imaginea întreagă (are text pe ea, nu se taie) */
@media (max-width: 600px) {
  /* imaginea verticală umple tot slide-ul; textul ei e deja pe ea → doar butonul, jos */
  .hs-slide.hs-banner:not(.hs-banner-text) { display: block; }
  .hs-slide.hs-banner:not(.hs-banner-text) img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center top; margin-top: 0 !important; }
  .hs-slide.hs-banner:not(.hs-banner-text) .hs-text { position: absolute; left: 20px; right: 20px; bottom: 40px; padding: 0; display: block; }
  .hs-banner:not(.hs-banner-text) .hs-text h1, .hs-banner:not(.hs-banner-text) .hs-text h2, .hs-banner:not(.hs-banner-text) .hs-text p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hs-banner:not(.hs-banner-text) .hs-text .btn { box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
  /* banner cu poză separată pentru telefon: poza sus, textul dedesubt */
  .hs-slide.hs-banner-text img { object-fit: contain; background: #f3efe8; margin-top: 12px !important; }
}

/* ---------- Meniul de pe telefon: categoriile în meniu (☰), ca o listă cu săgeți ---------- */
.nav-cats { display: none; }
@media (max-width: 900px) {
  .nav > a:not(.nav-cart) { font-size: .92rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 15px 2px; border-bottom: 1px solid var(--line); }
  .nav-cats { display: block; margin-top: 4px; }
  .nc-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
  .nc-link { flex: 1; font-size: .86rem !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .05em; padding: 14px 2px !important; border: 0 !important; color: var(--ink); }
  .nc-toggle { flex: none; width: 52px; display: grid; place-items: center; background: none; border: 0; border-left: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; }
  .nc-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  .nc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nc-sub { padding: 4px 0 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .nc-sub a { display: block; font-size: .88rem !important; font-weight: 500 !important; padding: 10px 2px !important; border: 0 !important; color: var(--ink); }
  .nc-sub a.nc-tip { text-transform: uppercase; letter-spacing: .04em; font-size: .82rem !important; }
  .nc-sub small { display: block; font-size: .74rem; color: var(--ink-mute); margin-top: 1px; }
  .nc-sub .nc-all { color: var(--accent); font-weight: 600 !important; }
  /* pe telefon, categoriile nu mai apar pe prima pagină (sunt în meniu) */
  .home-top .cat-menu { display: none; }
}

/* Meniul de pe telefon: Acasă, Despre noi, Contact, Produse (ultimul), iar sub Produse categoriile, într-o casetă separată */
@media (max-width: 900px) {
  .nav > a[href="index.html"] { order: 1; }
  .nav > a[href="produse.html"] { order: 2; border-bottom: 0; }
  .nav-cats { order: 3; }
  .nav > a[href*="despre"] { order: 4; }
  .nav > a[href="contact.html"] { order: 5; }
  .nav .nav-cart { order: 6; }
  .nav-extra { order: 7; }
  .nav-cats { margin: 0 0 6px; padding: 4px 14px; background: var(--surface); border-radius: 12px; }
  .nc-row { border-bottom-color: rgba(0, 0, 0, .06); }
  .nc-item:last-child .nc-row { border-bottom: 0; }
  .nc-link { text-transform: none; letter-spacing: 0; font-size: .92rem !important; font-weight: 500 !important; padding: 12px 0 !important; color: var(--ink-soft); }
  .nc-link::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 10px 2px 0; vertical-align: middle; opacity: .7; }
  .nc-toggle { border-left: 0; width: 44px; }
  .nc-sub { background: transparent; border-bottom: 1px solid rgba(0, 0, 0, .06); padding: 0 0 8px 16px; }
}

/* Telefon: categoriile ca butoane, 3 pe rând: primul rând deasupra slider-ului, restul dedesubt */
.cat-top { display: none; }
@media (max-width: 900px) {
  .home-top .cat-menu { display: block; background: none; padding: 0; border-radius: 0; }
  .home-top .cat-menu-title, .home-top .cat-menu-all { display: none; }
  .home-top .cat-menu-list, .cat-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-top { order: -2; }
  .home-top .cat-menu-list > .cm-item:nth-child(-n+3), .home-top .cat-menu-list > .cm-item:nth-child(n+7) { display: none; } /* doar 3 sus + 3 jos; restul în meniul ☰ */
  .home-top .cm-link, .cat-top .cm-link { display: flex; justify-content: center; align-items: center; text-align: center; min-height: 44px; padding: 8px 6px; border: 1px solid var(--line-strong) !important; border-radius: 999px; background: var(--bg); text-decoration: none; color: var(--ink); }
  .home-top .cm-name { font-size: .66rem; letter-spacing: .03em; line-height: 1.2; text-transform: uppercase; font-weight: 600; }
  .home-top .cm-arrow { display: none; }
}

/* butonul cu săgeată de lângă categorii (telefon) → toate categoriile */
.cm-more { display: none; }
@media (max-width: 900px) {
  .home-top .cat-menu-list { grid-template-columns: 1fr 1fr 1fr 44px; }
  .cat-top { grid-template-columns: 1fr 1fr 1fr 44px; }
  .cat-top::after { content: ""; }
  .cm-more { display: grid; place-items: center; grid-column: 4; grid-row: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); border: 0; color: #fff; text-decoration: none; }
  .cm-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
}

/* telefon: doar rândul de sus (3 categorii + săgeata spre toate); sub slider nu mai sunt butoane */
@media (max-width: 900px) {
  .home-top .cat-menu { display: none !important; }
}

/* telefon: butonul „Mai multe ↗” în rândul de categorii de deasupra slider-ului */
@media (max-width: 900px) {
  .cat-top { grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; }
  .cat-top .cm-link { padding: 8px 4px; }
  .cm-more { width: auto; height: 44px; border-radius: 999px; padding: 0 12px; display: flex; align-items: center; gap: 4px; white-space: nowrap; font: 600 .62rem var(--font, Montserrat, sans-serif); letter-spacing: .03em; text-transform: uppercase; }
  .cm-more::before { content: "Mai multe"; }
  .cm-more svg { width: 13px; height: 13px; }
}

/* telefon: rândul de categorii mai aerisit, text mai mic */
@media (max-width: 900px) {
  .cat-top { gap: 8px; }
  .cat-top .cm-link { min-height: 40px; padding: 6px 4px; }
  .cat-top .cm-name { font-size: .58rem; letter-spacing: .04em; font-weight: 700; }
  .cm-more { height: 40px; padding: 0 12px; font-size: .56rem; letter-spacing: .04em; font-weight: 700; }
  .cm-more svg { width: 12px; height: 12px; }
}

/* telefon: foișorul (slide cu „Produs mărit”) și bidonul Bochemit centrate și mai mari */
@media (max-width: 600px) {
  .hs-slide.hs-cream.hs-zoom img { transform: scale(1.32); transform-origin: 50% 50%; }
  .hs-slide.hs-banner-text img { transform: scale(1.05); transform-origin: 50% 60%; }
  .hs-slide.hs-banner-text { overflow: hidden; }
}

/* telefon: două rânduri de câte 4 deasupra slider-ului; „Mai multe” ultimul */
@media (max-width: 900px) {
  .cat-top { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .cat-top .cm-link { padding: 6px 3px; }
  .cat-top .cm-name { font-size: .56rem; letter-spacing: .02em; }
  .cm-more { grid-column: auto; grid-row: auto; width: auto; padding: 0 4px; justify-content: center; font-size: .56rem; letter-spacing: .02em; }
}

/* telefon: butoanele de categorii mai joase */
@media (max-width: 900px) {
  .cat-top .cm-link { min-height: 34px; padding: 4px 3px; }
  .cm-more { height: auto; min-height: 34px; }
  .cat-top .cm-name { line-height: 1.15; }
}

/* telefon: butonul de meniu (☰) în stânga, logo-ul imediat lângă el, tema în dreapta */
@media (max-width: 900px) {
  .navbar-in { justify-content: flex-start; gap: 10px; }
  .navbar-in .nav-actions { display: contents; }
  .navbar-in .nav-toggle { order: -2; margin-left: -10px; }
  .navbar-in .logo { order: -1; }
  .navbar-in .theme-toggle { order: 2; margin-left: auto; }
}

/* meniu telefon: categoriile cu litere mari, linii maro, fără buline și fără fundal crem; apăsarea pe nume deschide produsele */
@media (max-width: 900px) {
  .nav-cats { background: none; padding: 0; border-radius: 0; margin: 0 0 6px; border-top: 1px solid var(--price); }
  .nc-row { border-bottom: 1px solid var(--price); }
  .nc-item:last-child .nc-row { border-bottom: 1px solid var(--price); }
  .nc-link { text-transform: uppercase; letter-spacing: .05em; font-size: .82rem !important; font-weight: 600 !important; color: var(--ink); padding: 14px 2px 14px 14px !important; }
  .nc-link::before { display: none; }
  .nc-toggle { display: none; }
  .nc-sub { background: none; padding: 2px 0 8px 26px; border-bottom: 1px solid var(--price); }
  .nc-item:has(.nc-sub:not([hidden])) .nc-row { border-bottom-color: transparent; }
}

/* telefon: fără butoanele de categorii pe prima pagină (categoriile sunt în meniul ☰) */
@media (max-width: 900px) {
  .cat-top { display: none !important; }
}

/* ---------- Telefon, prima pagină: produsele recomandate înaintea casetelor cu text, ca slider pe 2 rânduri ---------- */
@media (max-width: 600px) {
  .home-main { display: flex; flex-direction: column; }
  .home-main > * { order: 5; }
  .home-main > .home-top { order: 1; }
  .home-main > #home-feat { order: 2; }
  .home-main > #home-intro { order: 3; }
  #home-feat .statement { margin-bottom: 18px !important; }
  #home-feat { padding-bottom: 28px; }
  #home-feat [data-price-note] { margin-top: 14px !important; }
  .home-main > #home-intro { padding-top: 28px; }
  /* Oferta lunii și Cele mai căutate: câte un rând care se derulează stânga-dreapta */
  #home-offers, #home-featured {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; scrollbar-width: none;
  }
  #home-offers::-webkit-scrollbar, #home-featured::-webkit-scrollbar { display: none; }
  #home-offers > .card, #home-featured > .card { scroll-snap-align: start; }
  .feat-block + .feat-block { margin-top: 26px; }
  .offer-badge { top: 8px; right: 8px; width: 36px; height: 36px; font-size: .82rem; }
}
