/* ============================================================================
   22. Mobilā versija (telefons + iPad) — CSS labojumu kārta ESOŠAJAI tēmai (ec.aplv.tv, 22.10.2026)
   Spec.: 22-mobila-versija.md (v3 „kompromiss”, A1–A11, B1–B11 + B12 Elektrocentrs 22.10.). Attēli: 22-mobila-atteli/ (SARAKSTS.md).
   Uzliekama PĒC /assets/css/ec.css UN PĒC 23-datora-labojumi.css (kartīte T2, nosaukums 2 rindas,
   pieejamība 2 statusi — tie jau saskaņoti un paliek; šeit tikai mobilais/planšetes slānis).
   Nekas no dizaina nemainās: krāsas #FFB200 / #0B1B2B / #666, Poppins, logo oriģināls (tikai proporcionāls
   mērogs), kartīšu forma, lapu struktūra. Selektori — no dzīvās lapas 390×714 un 820×1106 skatā (22.10.).
   Apzīmējums „S” = vajag servera/JS daļu (HTML, teksts, uzvedība); CSS tikai sagatavo izskatu.
   Izkārtojumu izvēlas TIKAI platums (A9): ≤ 599 telefons · 600–899 telefona izkārtojums (planšete stāvus)
   · ≥ 900 datora izkārtojums; `pointer: coarse` papildus → 44 px mērķi arī datora izkārtojumā.
   S (A9): tēmas robeža `lg` = 992 px (d-lg-none u.c.). 900–991 px joprojām rāda tēmas mobilo galveni —
   programmētājam robežu pārcelt uz 900 vai atstāt 992 (tad visi šeit esošie `899.98` → `991.98`).
   ============================================================================ */

/* ---------------------------------------------------------------------------
   A1 ✅ Apakšējā 5 ciļņu josla (.ec-bottom-nav, 58 px, fixed) — NOST.
   Tēma body dod padding-bottom 58 px joslai → 0 (+ drošā zona).
   Mērīts 390: nekustīgais apakšā 58 (+61 preces lapā) → 0 (preces lapā tikai A8 josla, kad poga nav redzama).
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .ec-bottom-nav, body:has(.ec-product-bar) .ec-bottom-nav { display: none !important; }   /* ec.css ≤767: body:has(.ec-product-bar) … flex !important */
  body { padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
}

/* ---------------------------------------------------------------------------
   A2 ✅ Viena galvenes rinda 56 px (✅ Elektrocentrs 22.10.: 56, ne 52 — logo salasāmāks): ☰ · oriģinālais logo · 🔍 · grozs (pogas 44×44).
   Tagad: .header-middle 79 px (logo 189×59) + .ec-mobile-search 60 px (ar „‹” .ec-back) = 139 px ielādē;
   ritinot .ec-mini-bar 40 + meklēšana 60 = 100 px nekustīgi.
   Logo: ec-logo.png 640×200, redzamais saturs (alfa > 20) 48–636 × 32–167 px = 67,5 % augstuma →
   img augstums 52 px ⇒ redzamais logo 35 px (burti „ELEKTROCENTRS” ≈ 9 px), platums 166 px, proporcija nemainīta, nekas nenogriezts.
   (52 px variants: img 47 / redzamais 32 / burti ≈ 8,1 px — 22-lemums-galvene-52-56.jpg.)
   S: 🔍 poga galvenē (`<button class="ec-hdr-search" aria-label="Meklēt">`, ikona w-icon-search) pirms groza;
      pieskāriens → body.ec-search-open (josla izbīdās < 150 ms, fokuss laukā); ritinot ≥ 10 px ar tukšu lauku
      vai ✕/atpakaļ → klase nost. „‹” (.ec-back) HTML izņemt. Meklēšanas lauks ielādē NAV.
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .header-middle { height: 56px; min-height: 56px; padding: 0 !important; border-bottom: 1px solid #EEF0F3; }
  .header-middle .container { height: 56px; padding-top: 0 !important; padding-bottom: 0 !important;
    padding-left: 4px !important; padding-right: 4px !important; align-items: center; }
  .header-middle .header-left { align-items: center; margin-right: 0 !important; flex: 1 1 auto; min-width: 0; }
  .header-middle .mobile-menu-toggle { width: 44px; height: 44px; display: flex !important; align-items: center;
    justify-content: center; margin: 0 !important; font-size: 24px; }
  .header-middle a.logo { margin: 0 auto 0 4px !important; flex: none; line-height: 0; }
  /* 9. (28.10.2026): oficiālais logo elektrocentrs-logo.png 589×136 bez malām — 36 px = tāds pats redzamais augstums kā vecajam (35 px) */
  .header-middle a.logo img { height: 36px !important; width: auto !important; max-width: none; }
  .header-middle .header-right { align-items: center; gap: 0; margin-left: 0 !important; }
  .header-middle .header-right .header-call { display: none !important; }   /* WhatsApp/e-pasts ikonas planšetē — ir izvēlnē (A4) */
  .header-middle .cart-dropdown { margin: 0 !important; }
  .header-middle .cart-dropdown > a { width: 44px; height: 44px; display: flex !important; align-items: center; justify-content: center; }
  .ec-hdr-search { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #0B1B2B; background: none; border: 0; padding: 0; }
  /* S v1.46: tēmas ≤ 991 `.header-right > *:not(:last-child)` 20 px atstarpe — rindā ☰ · logo · 🔍 · grozs nevajag */
  .header-middle .header-right > .ec-hdr-search, .header-middle .header-right > .pr-header-link { margin-right: 0 !important; }
  .ec-mobile-search .ec-search-close { display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .ec-mini-bar { display: none !important; }                    /* otrā (ritināšanas) galvene — vairs nevajag */
  .ec-back { display: none !important; }                        /* „‹” dublē pārlūka atpakaļ */
  .ec-mobile-search { display: none !important; }              /* meklēšanas josla ielādē NAV */
  body.ec-search-open .ec-mobile-search { display: flex !important; position: sticky; top: 56px; z-index: 1040;
    height: 60px; background: #fff; box-shadow: 0 6px 16px rgba(11, 27, 43, 0.08); animation: ec-slide-down 120ms ease-out; }
  body.ec-search-open .ec-mobile-search form { flex: 1 1 auto; }
  .ec-mobile-search .ec-search-close { width: 44px; height: 44px; flex: none; background: none; border: 0; font-size: 20px; color: #0B1B2B; }
}
@keyframes ec-slide-down { from { transform: translateY(-100%); } to { transform: none; } }

/* ---------------------------------------------------------------------------
   A3 ✅ Galvene paslēpjas ritinot uz leju, atgriežas uz augšu (telefonā; planšetē 56 px un nepaslēpjas).
   S (JS): pēc ≥ 64 px lejup un scrollTop > 120 → `header.ec-hdr-hidden`; ≥ 24 px augšup vai scrollTop < 56 → nost;
   ne biežāk kā 1×/s. Meta: `viewport-fit=cover, interactive-widget=resizes-content`. Fokusā ievade → body.ec-input-focus.
   --------------------------------------------------------------------------- */
@media (max-width: 599.98px) {
  .header { position: sticky; top: 0; z-index: 1030; background: #fff; transition: transform 200ms ease; }
  /* BEZ will-change:transform — tas padarītu galveni par fixed pēcteču (groza atvilktne .dropdown-box) bloku → pārplūde 390 → 730 px.
     transform tikai paslēptā stāvoklī (tad atvilktnes ir aizvērtas). */
  .header.ec-hdr-hidden { transform: translateY(-100%); }
  .header.ec-hdr-anim { will-change: transform; }   /* S v1.46: tikai ritināšanas laikā un tikai ar aizvērtām atvilktnēm (ec-header.js) */
  /* „Filtri · Kārtot” josla (.ec-list-toolbar, sticky 56 px zem tēmas 100 px galvenes) — telefonā plūsmā,
     ✅ Elektrocentrs 22.10.: variants A — josla aizritinās ar lapu (lejup 0 px, augšup tikai galvene 56 px; 22-lemums-filtri-josla.jpg). */
  .ec-list-toolbar { position: static !important; }
}
@media (min-width: 600px) and (max-width: 991.98px) {
  .header { position: sticky; top: 0; z-index: 1030; background: #fff; }
}   /* planšetē galvene tā pati 56 px, tikai nepaslēpjas */
/* Enkuri / #saites / fokusēti lauki nepazūd zem nekustīgās galvenes */
@media (max-width: 991.98px) { html { scroll-padding-top: 56px; } [id] { scroll-margin-top: 56px; } }
@media (prefers-reduced-motion: reduce) { .header, .ec-product-bar { transition: none !important; } }

/* ---------------------------------------------------------------------------
   A4 Peldošās pogas — NOST: WhatsApp aplis preces cenas joslā (.ec-bar-wa 44 px) un „uz augšu” (#scroll-top).
   WhatsApp paliek: preces lapā „Jautāt par šo preci” (.ec-ask-wa) un izvēlnē (.ec-mm-contacts) — 44 px.
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  #scroll-top, .ec-bar-wa { display: none !important; }
  .ec-ask-wa, .ec-mm-contacts a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------------------------------------------------------------------------
   A5 Groza žetons „0” — nerādīt. S: tukšam grozam `.cart-count` HTML nerenderēt (vai data-count="0");
   skaitlis = gabalu summa; aria-label="Grozā N gab.". Žetons ≥ 11 px treknrakstā (A7).
   --------------------------------------------------------------------------- */
.cart-dropdown .cart-count:empty, .cart-dropdown .cart-count[data-count="0"] { display: none !important; }
@media (max-width: 991.98px) {
  .cart-dropdown .cart-count { font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; top: 2px; right: 2px; }
}

/* ---------------------------------------------------------------------------
   A6 Ievades lauki 16 px (iOS nepietuvina) un ≥ 44 px augsti: meklēšana, daudzums (preces lapā 13 px → 16),
   kartītes daudzums (14 → 16), kupons, kase. S: daudzumam inputmode="numeric"; kodu laukiem
   autocapitalize="off" autocorrect="off" spellcheck="false".
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px), (pointer: coarse) {
  input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="password"], input:not([type]), select, textarea,
  .product-qty-form input.quantity, .ec-card-qty-input { font-size: 16px !important; }
  input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="password"], select { min-height: 44px; }
}

/* ---------------------------------------------------------------------------
   A7 Pieskāriena mērķi ≥ 44×44, teksts ≥ 13 px (tas pats stils, tikai izmērs).
   Mērīts 390 (tagad): variantu čipi 72×36 · preces −/+ 24×24 · kartītes −/+ 32×38 · „Grozā” 126×40 ·
   „‹” 44 · ceļa saites 13 px/18 · meta rindas 11–12 px · žetons 12 px.
   Kartītes zīmols/kods — T2 (23 kārta; Elektrocentrs 22.10.).
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px), (pointer: coarse) {
  .product-size-swatch .size { min-height: 44px; min-width: 44px; display: inline-flex !important; align-items: center; justify-content: center; }
  .product-qty-form .quantity-plus, .product-qty-form .quantity-minus { width: 44px !important; height: 44px !important;
    top: 0 !important; transform: none !important; display: flex; align-items: center; justify-content: center; }
  /* preces lapas „− 1 +”: 24×24 pogas lauka labajā malā → 44×44 abās malās, skaitlis centrā (grupa 140 → 152 px) */
  .product-qty-form, .product-qty-form .input-group { width: 152px !important; flex: none; }
  .product-qty-form .quantity-minus { left: 0 !important; right: auto !important; z-index: 6; }   /* bootstrap .input-group .form-control:focus z-index 5 */
  .product-qty-form .quantity-plus { right: 0 !important; left: auto !important; z-index: 6; }
  .product-qty-form input.quantity { height: 44px; padding: 0 44px !important; text-align: center; }
  .ec-card-qty .ec-qty-btn { width: 44px !important; min-width: 44px !important; height: 44px !important; }
  .ec-card-qty .ec-card-qty-input { height: 44px !important; width: 44px !important; }
  .product-wrap .ec-card-cart { height: 44px !important; min-height: 44px; }
  /* EC v1.46 (programmētājs): „Piegādātāja noliktavā” — servera teksts (ne ::before demonstrācija) → abiem statusiem 13 px */
  .product-wrap .ec-availability,
  .product-wrap .ec-price-novat, .product-wrap .ec-moq { font-size: 13px !important; }
  /* Kartītes tipogrāfija = T2 (Elektrocentrs 22.10., kā 23 kārtā): zīmols parastie burti 13 px/600, kods 12 px #767676
     (T2 izņēmums no „≥ 13 px” — Elektrocentrs izvēle), bloks 33 px; pieejamība telefonā 13 px (A7). T1 lielie burti — noraidīti. */
  .product-wrap .ec-brand-code .ec-brand { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0;
    color: rgba(11, 27, 43, 0.7); line-height: 17px; }
  .product-wrap .ec-brand-code .ec-code { font-size: 12px; line-height: 16px; }
  .product-wrap .ec-brand-code { height: 33px; }
  .product-meta, .product-meta *, .product-single .ec-availability, .ec-note, .ec-avail-note { font-size: 13px !important; }
  .ec-mobile-actions a, .ec-mobile-actions button { min-height: 44px; display: inline-flex; align-items: center; }
  .mobile-menu-close { width: 44px !important; height: 44px !important; display: flex !important; align-items: center; justify-content: center; }
  .breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; column-gap: 4px; }
}

/* ---------------------------------------------------------------------------
   A8 Preces lapa: pirmajā ekrānā nosaukums, cena, pieejamība un pirkšana.
   Tagad 390: ceļš 2 rindas (51 px) + galerija 493 px (sticky) → nosaukums no 728 px (ārpus 714 px skatloga);
   nekustīgi 79+60 galvene … + cenas josla 61 + ciļņu josla 58.
   Pēc: ceļš 1 rinda (ellipsis), galerija ≤ 45 svh, nav sticky; cenas josla ≤ 64 px apakšā (drošā zona) —
   S (JS): IntersectionObserver uz .sticky-content-wrapper .btn-cart → kamēr poga skatlogā vai ievade fokusā,
   `.ec-product-bar.ec-bar-off`. Nekustīgais kopā ≤ 56 + 64 = 120 px (spec. 116 bija ar 52 px galveni).
   --------------------------------------------------------------------------- */
@media (max-width: 599.98px) {
  .product-single .breadcrumb, .breadcrumb.bb-no { flex-wrap: nowrap !important; overflow: hidden; white-space: nowrap;
    height: 44px; padding-top: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; align-items: center; }
  .product-single .breadcrumb li:last-child, .breadcrumb.bb-no li:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .product-gallery.product-gallery-sticky { position: static !important; top: auto !important; }
  .product-single .product-gallery .product-single-swiper,
  .product-single .product-gallery .swiper-container,
  .product-single .product-gallery figure img { max-height: 36svh !important; }   /* ≤ 45 svh (spec.); 36 svh, lai 390×714 (iPhone 13 ar Safari joslām) pieejamība ir virs cenas joslas */
  .product-single .ec-note { margin: 4px 0 6px !important; }
  .product-single .product-meta, .product-single .product-bm-wrapper { margin-bottom: 6px !important; row-gap: 0; }
  .product-single .product-meta > * { line-height: 1.45; margin: 0 !important; }
  .product-single .product-details > .product-price { margin-bottom: 4px !important; }
  .product-single .product-gallery figure img { width: auto !important; margin: 0 auto; object-fit: contain; }
  .product-single .product-thumbs-wrap, .product-single .product-gallery .product-thumbs-wrap { display: none !important; }
  .product-single .product-title { font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
  .ec-product-bar { bottom: 0 !important; min-height: 0; max-height: 64px; padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform 200ms ease; }
  .ec-product-bar .ec-bar-proxy { height: 48px; min-width: 150px; font-size: 15px; }
  .ec-product-bar.ec-bar-off, body.ec-input-focus .ec-product-bar { transform: translateY(110%); }
}

/* ---------------------------------------------------------------------------
   A9 Planšete (600–899, iPad 820×1180 stāvus): telefona izkārtojums, preces lapā un grozā 2 kolonnas
   (tēma 768+ jau dod col-md-6 — paliek), galvene 56 px un nepaslēpjas, apakšējās cenas joslas nav
   (pirkšanas poga skatlogā bez ritināšanas: 820×1106 top 919 → pēc 964 px — čipi 44 px 3 kolonnās). Kategorijā tēmas 3 kolonnas paliek.
   ≥ 900 + pointer:coarse (iPad guļus / iPad Pro ar „datora lapu”): 44 px mērķi (A6/A7 bloki augstāk) un
   bez hover-only: izkrītošās izvēlnes atveras ar pieskārienu (S: `.show` uz pieskārienu), hover pogas redzamas.
   --------------------------------------------------------------------------- */
@media (min-width: 600px) and (max-width: 991.98px) {
  .ec-product-bar { display: none !important; }
  .product-gallery.product-gallery-sticky { top: 72px !important; }
}
@media (pointer: coarse) and (min-width: 992px) {
  .product-wrap .product-action, .product-simple .product-pa-wrapper > .product-action { opacity: 1 !important; visibility: visible !important; }
  .main-nav .menu > li > a, .category-dropdown .category-menu > li > a { min-height: 44px; display: flex; align-items: center; }
}
/* Pārplūde: tēmas body{overflow-x:hidden} paliek (overflow-x:clip uz body nelietot — tas nepāriet uz skatlogu).
   Izmērīts preces lapā 360/390: scrollWidth = platums (sk. A3 piezīmi par will-change). */

/* ---------------------------------------------------------------------------
   A10 Atpakaļ: filtri/kārtošana/lapa — URL (S); pārklājumi pushState → atpakaļ aizver (S).
   CSS: pārklājumu ritināšana neplūst uz lapu.
   --------------------------------------------------------------------------- */
.mobile-menu-container, .sidebar-content, .cart-dropdown .dropdown-box, .cookie-preferences-modal { overscroll-behavior: contain; }

/* ---------------------------------------------------------------------------
   A11 Pievienošana grozam: poga reaģē < 100 ms (S: uzreiz klase `.is-adding` → teksts „Grozā ✓”, bloķēta līdz
   atbildei, idempotences atslēga; kļūdā atgriežas + ecToast('Neizdevās pievienot. Mēģināt vēlreiz')).
   Esošais paziņojums (window.ecToast → .ec-toast) uzreiz, 4 s, virs cenas joslas.
   --------------------------------------------------------------------------- */
.btn-cart.is-adding, .ec-card-cart.is-adding, .ec-bar-proxy.is-adding { pointer-events: none; background-color: #0B1B2B !important;
  border-color: #0B1B2B !important; color: #FFB200 !important; }
@media (max-width: 991.98px) {
  .ec-toast { left: 12px !important; right: 12px !important; bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important; transform: none !important; max-width: none !important; min-height: 48px; display: flex; align-items: center;
    font-size: 14px; border-radius: 10px; z-index: 1065; }
  body:not(.ec-has-bar) .ec-toast { bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---------------------------------------------------------------------------
   B1–B3 Pieejamība — 23 kārtas B2 bloks (kartītē 2 statusi, preces lapā termiņš neitrāli) paliek;
   šeit tikai telefona izmērs (13 px, A7). Provizoriskā piezīme (.ec-avail-note) — S (teksts visām precēm).
   --------------------------------------------------------------------------- */
.product-single .ec-availability .ec-avail-dot { display: none; }
.product-single .ec-availability.ec-in-stock .ec-avail-dot { display: inline-block; background: #15803D !important; }
.ec-avail-note { font-size: 13px; line-height: 1.5; }
.ec-avail-note a { display: inline-block; padding: 12px 2px; margin: -12px 0; color: #0B1B2B; text-decoration: underline; }   /* 44 px pieskāriena laukums, rindstarpa nemainās */

/* ---------------------------------------------------------------------------
   B4 ✏️ Elektrocentrs 22.10.: variantu čipos cenu NErāda — esošais izskats, tikai 44 px izmērs (A7 bloks augstāk).
   Atkarīgo variantu loģika (kuras kombinācijas pieejamas) — servera puse (00 8-07). CSS tikai paslēpšanas/neaktīvai klasei:
   S: kombinācijai bez preces čipam klase `.ec-na` (pelēks, pieskarams → „Šādas kombinācijas nav”) vai `[hidden]`.
   --------------------------------------------------------------------------- */
.product-size-swatch .size.ec-na { color: #9AA5B1 !important; border-style: dashed !important; }
.product-size-swatch .size[hidden] { display: none !important; }

/* ---------------------------------------------------------------------------
   B5 ✏️ Elektrocentrs 22.10. (00 8-08): „EC kods” NAV. Meta blokā rinda „Kods” paslēpta; atsevišķs kodu bloks
   „Kods / EAN / Ražotāja kods” (tikai aizpildītie), katram sava kopēšanas ikona 44×44, pēc pieskāriena „Nokopēts ✓” 1,5 s.
   Tas pats datorā — CSS arī 23-datora-labojumi.css (B5). S: HTML `.ec-codes` (zemāk) + kopēšanas JS (navigator.clipboard);
   meta rinda „Kods:” tēmā = `div.product-sku` (bez .product-brand) — CSS to slēpj; labāk serverī neizvadīt.
   <div class="ec-codes"><div class="ec-code-row"><span class="ec-code-label">Kods</span><span class="ec-code-val">FB1B1010</span>
     <button class="ec-copy-btn" aria-label="Kopēt kodu"></button></div> … EAN … Ražotāja kods …</div>
   --------------------------------------------------------------------------- */
/* CSS — 23-datora-labojumi.css bloks „B5 kodu bloks” (viens noteikumu komplekts datoram un telefonam; šī kārta tiek uzlikta pēc tā). */

/* ---------------------------------------------------------------------------
   B6 ✏️ Elektrocentrs 22.10.: parametri virs pogas NAV. Telefonā dokumentu (PDF) bloks uzreiz zem „Specifikācija” tabulas.
   Tēmā: .ec-pi-row.has-docs > [ .ec-pi-spec (virsraksts · tabula · piezīme „Dati pēc ražotāja…”) ] + [ .ec-pi-docs ] →
   piezīme stāv starp tabulu un PDF. Telefonā .ec-pi-spec = display:contents, secība: virsraksts · tabula · Dokumenti · piezīme.
   Tikai CSS (HTML nemainās). Izmērīts 390: tabulas apakša → „Dokumenti” 80 → 20 px.
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .ec-pi-row.has-docs { display: flex !important; flex-direction: column; }
  .ec-pi-row.has-docs > .ec-pi-spec { display: contents !important; }
  .ec-pi-row.has-docs > .ec-pi-spec > .ec-pi-title { order: 1; }
  .ec-pi-row.has-docs > .ec-pi-spec > .ec-spec-table { order: 2; margin-bottom: 20px !important; }
  .ec-pi-row.has-docs > .ec-pi-docs { order: 3; margin-top: 0 !important; width: 100%; }
  .ec-pi-row.has-docs > .ec-pi-spec > .ec-note { order: 4; margin-top: 12px !important; }
}

/* B7 — IZŅEMTS (Elektrocentrs 22.10.): „Cenas bez PVN” slēdzis un galvenes čips „bez PVN ✕” nav vajadzīgi (B12 rāda cenu bez PVN visur). */

/* Kartītes nosaukums telefonā — maks. 2 rindas ar „…” (tāpat kā datorā, 7-02 / 23 kārta). Telefonā 13 px fonts → rindas 18 px. */
@media (max-width: 991.98px) {
  .product-wrap .product-name, .related-product-section .product-simple .product-name {
    display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important;
    white-space: normal !important; height: 36px !important; min-height: 36px !important; max-height: 36px !important; line-height: 18px !important; }
  .product-wrap .product-name a { white-space: normal !important; }
}

/* ---------------------------------------------------------------------------
   B8 Pievienošana no kartītes: „− 1 +” un „Grozā” 44 px (A7 bloks), poga savā rindā pilnā platumā;
   pievieno bez lapas pārlādes (A11, S).
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .product-wrap .ec-card-buy { display: flex !important; flex-direction: column; flex-wrap: nowrap !important; align-items: stretch;
    gap: 6px; width: 100%; height: auto !important; }
  .product-wrap .ec-card-qty { width: 100%; height: 44px !important; flex: none !important; justify-content: space-between;
    border: 1px solid #E5E5E5; border-radius: 22px; overflow: hidden; }
  .product-wrap .ec-card-qty .ec-qty-btn { background: #F6F7F9; border: 0; }
  .product-wrap .ec-card-qty .ec-card-qty-input { flex: 1 1 auto; border: 0; }
  .product-wrap .ec-card-cart { width: 100%; height: 44px !important; max-height: 44px; flex: none !important; display: flex !important;
    align-items: center; justify-content: center; font-size: 14px; }
  /* telefonā 2 kolonnas (kartīte 190 px): iekšējās atstarpes 10+6 → 8+4 px, satura platums 148 → 158 px —
     „Piegādātāja noliktavā” 13 px (≈ 146 px) ietilpst vienā rindā */
  .product-wrap .product { padding-left: 8px !important; padding-right: 8px !important; }
  .product-wrap .product-details { padding-left: 4px !important; padding-right: 4px !important; }
}

/* ---------------------------------------------------------------------------
   B9 Filtri: lapa pilnā platumā, kārtošana 1. rindā (S: <select> pārvietot uz .sidebar-content sākumu),
   „Notīrīt visu” 44 px, „Rādīt N preces” piesprādzēta apakšā (skaits pirms piemērošanas — esošais
   filters_show_counts=1; 0 → pelēka „0 preču”), aizver ar atpakaļ (A10, S).
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .sidebar-fixed .sidebar-content { width: 100% !important; max-width: 100% !important; padding-bottom: 88px !important; }
  .sidebar-fixed .sidebar-content, .sidebar-fixed { max-width: 100vw !important; }
  .ec-filter-actions { position: fixed !important; left: 0 !important; right: 0; width: 100vw !important; max-width: none !important; box-sizing: border-box; bottom: 0; z-index: 1070; display: flex !important; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important; background: #fff; box-shadow: 0 -6px 16px rgba(11,27,43,.08); }
  .ec-filter-actions .ec-filter-clear { min-height: 48px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; }
  .ec-filter-actions .ec-filter-show { flex: 1 1 auto; min-height: 48px; font-size: 15px; }
  .ec-filter-actions .ec-filter-show:disabled { background: #CBD2D9 !important; border-color: #CBD2D9 !important; color: #3E4C59 !important; }
  .sidebar-content .cf-acc-title { min-height: 48px; display: flex !important; align-items: center; }
  .sidebar-content .cf-widget a { min-height: 44px; display: inline-flex !important; align-items: center; }
  .ec-filter-sort { padding: 0 0 12px; border-bottom: 1px solid #EEF0F3; margin-bottom: 4px; }
  .ec-filter-sort select { width: 100%; }
}

/* ---------------------------------------------------------------------------
   B11 Sīkdatņu logs: 2 vienlīdzīgas pogas 48 px („Tikai nepieciešamās” / „Atļaut visas” — S teksti),
   ≤ 40 % ekrāna, apakšā, neaizsedz cenas joslu (cenas josla paslēpta, kamēr logs atvērts); vienlaikus ≤ 1 pārklājums.
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  #cookie-consent-banner { max-height: 40svh; overflow-y: auto; padding: 16px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    flex-direction: column !important; align-items: stretch !important; gap: 0 !important; }
  #cookie-consent-banner .cookie-text { font-size: 14px; line-height: 1.45; }
  #cookie-consent-banner .cookie-buttons { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 12px 0 0 !important; width: 100%; }
  #cookie-consent-banner .cookie-buttons > * { height: 48px; min-height: 48px; margin: 0 !important; width: 100%; font-size: 14px; padding: 0 8px !important;
    display: inline-flex !important; align-items: center; justify-content: center; white-space: nowrap; }
  #cookie-consent-banner .cookie-buttons > :nth-child(n+3) { grid-column: 1 / -1; min-height: 44px; background: none !important;
    height: 44px; border: 0 !important; text-decoration: underline; color: #fff !important; }   /* logs ir tumšs */
  body:has(#cookie-consent-banner:not(.hidden)) .ec-product-bar { display: none !important; }
}

/* ---------------------------------------------------------------------------
   B12 (Elektrocentrs 22.10.: „telefonā ar mazāko fontu arī varētu uzreiz parādīt cenu bez PVN, līdzīgi kā desktop”).
   Visur, kur cena: cena ar PVN kā tagad + blakus mazākā pelēkā fontā „1,35 € bez PVN” (kā datora kartītē, 23 kārta A5:
   vienā rindā, ja neietilpst — 2. rindā).
   · Kartītes (kategorija, sākumlapa, nesen skatītās): .ec-price-block jau ir (23 kārta) — telefonā 13 px (A7).
   · Preces lapa: „1,63 €” + „1,35 € bez PVN” vienā rindā (līdz šim atsevišķa rinda „Summa bez PVN 1,35 €” 14 px).
   · Apakšējā cenas josla (A8): zem cenas „1,35 € bez PVN” tās rindas vietā, kur tagad „Piegāde 1-2 nedēļas” —
     S: `<span class="ec-bar-novat">`; pieejamība joslā NErāda (ieteikums: tā jau ir pirmajā ekrānā pie cenas, B2; joslā
     abas rindas neietilpst ≤ 64 px). Josla 57 px nemainās.
   · Saistītās preces (.product-simple): S — pievienot to pašu `<span class="ec-price-novat">` kā kartītē.
   · Grozs: kopsavilkumā jau „Preces bez PVN” (naudas noteikums); rindās — tas pats rakstu modelis (S).
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .product-single .product-details > .product-price { display: inline-block !important; margin-right: 10px !important; vertical-align: baseline; }
  .product-single .product-details > .product-price-wo-vat { display: inline-block !important; vertical-align: baseline; font-size: 14px !important; line-height: 1; color: #666; }
  .product-single .product-price-wo-vat .new-price-wo-vat { font-size: 14px !important; font-weight: 400 !important; color: #666 !important; }
  .product-single .product-price-wo-vat .new-price-wo-vat::after { content: " bez PVN"; }
  .product-single .product-price-wo-vat > .wo-vat:not(.new-price-wo-vat) { display: none !important; }   /* „Summa bez PVN” etiķete */
  .ec-product-bar .ec-bar-novat { display: block; font-size: 13px; line-height: 16px; color: #666; font-weight: 400; }
  .ec-product-bar:has(.ec-bar-novat) .ec-product-bar-info > span:not(.ec-bar-novat) { display: none; }
  .product-simple .ec-price-novat { display: block; font-size: 13px; color: #666; font-weight: 400; }
}

/* ---------------------------------------------------------------------------
   A8+ (Elektrocentrs 22.10.: „apakšā nav iespēja pielāgot daudzumu?”) — cenas joslā daudzums:
   [cena ar PVN + „1,35 € bez PVN” (B12)] · [− 1 + : pogas 44×44, lauks 16 px, inputmode=numeric] · [Grozā ≥ 96 px].
   S: `<div class="ec-bar-qty">` (button.ec-bar-minus · input.ec-bar-qty-input · button.ec-bar-plus) pirms .ec-bar-proxy;
      daudzums sinhronizēts ar lapas `.sticky-content-wrapper input.quantity` (abos virzienos, input/change notikumi);
      solis/MOQ — tie paši `step`/`min` atribūti kā galvenajam laukam (šobrīd datu nav — sk. spec. C), ievadi noapaļo uz soli.
   Josla 64 px + drošā zona (iPhone: env(safe-area-inset-bottom) ≈ 34 px nāk klāt apakšā, saturs paliek 64).
   Izmērīts (josla 64 px): 390 px — cena 124 · daudzums 130 (44+40+44 + mala) · „Grozā” 96×48; 360 px — cena 106 · daudzums 126 (44+36+44) · „Grozā” 96×48; scrollWidth = platums
   iPad 820: josla display:none, poga lapā top 947 < 1050 px skatloga.
   (< 375 px: cena 17 → 16 px, lauks 40 → 36 px, atstarpes 8 → 6 px; „1,35 € bez PVN” paliek 13 px un ietilpst). iPad 600–899: josla nerādās (A9), daudzums pie pogas lapā.
   --------------------------------------------------------------------------- */
@media (max-width: 599.98px) {
  .ec-product-bar { height: calc(64px + env(safe-area-inset-bottom, 0px)) !important; max-height: none !important; min-height: 0;
    padding: 0 12px env(safe-area-inset-bottom, 0px) !important; display: flex !important; align-items: center; gap: 8px; box-sizing: border-box; }
  .ec-product-bar .ec-product-bar-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
  .ec-product-bar .ec-product-bar-info strong { font-size: 17px; line-height: 22px; white-space: nowrap; }
  .ec-product-bar .ec-bar-novat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ec-bar-qty { flex: none; display: flex; align-items: stretch; height: 44px; border: 1px solid #E5E5E5; border-radius: 22px; overflow: hidden; background: #fff; }
  .ec-bar-qty button { width: 44px; height: 44px; flex: none; border: 0; background: #F6F7F9; font-size: 18px; color: #0B1B2B; padding: 0;
    display: flex; align-items: center; justify-content: center; }
  .ec-bar-qty input { width: 40px; height: 44px; border: 0; padding: 0; text-align: center; font-size: 16px !important; min-height: 0 !important;
    -moz-appearance: textfield; }
  .ec-bar-qty input::-webkit-outer-spin-button, .ec-bar-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .ec-product-bar .ec-bar-proxy { flex: none; min-width: 96px !important; width: auto; height: 48px; padding: 0 14px !important; margin: 0 !important; }
}
@media (max-width: 374.98px) {
  .ec-product-bar { gap: 6px; padding-left: 10px !important; padding-right: 10px !important; }
  .ec-product-bar .ec-product-bar-info strong { font-size: 16px; }
  .ec-bar-qty input { width: 36px; }
}

/* Kartītes rindā vienā līmenī arī telefonā/planšetē (datorā ≥ 992 to dara 23 kārtas subgrid). Mērīts 390 (ēku automatizācija,
   Finder/Carlo Gavazzi): kartīte ar „Pārdod pa N” + cenu blakus „Cena pēc pieprasījuma” kartītei — pogu apakšmala 442 / 369+72 → abām 442
   (pirkšanas bloks piespiests kartītes apakšai). Pārbaudīts arī 820 un MCB 6 kA 390/820/1280. */
@media (max-width: 991.98px) {
  .product-wrapper > .product-wrap { display: flex; }
  .product-wrapper > .product-wrap > .product { display: flex !important; flex-direction: column; width: 100%; }
  .product-wrapper > .product-wrap .product-details { flex: 1 1 auto; display: flex !important; flex-direction: column; }
  .product-wrapper > .product-wrap .product-pa-wrapper { margin-top: auto !important; }
}

/* ---------------------------------------------------------------------------
   v1.46 (programmētājs, 24.10. mērījums 390 px, 4 lapas): A7 atlikumi — mērķi < 44 px un teksti < 13 px, ko kārta nesedza
   (mūsu klases: .ec-code, .ec-home-more, .ec-doc-*, saistīto kartīšu poga, galerijas lupa, karuseļu bultas).
   Izņēmums pēc spec.: slaidera punkti 18×18 (S5).
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .product-wrap .ec-code, .product-wrap .ec-availability, .product-wrap .product-name, .product-wrap .product-name a,
  .product-single .size, .ec-subcat-count, .ec-doc-text, .ec-doc-open { font-size: 13px !important; }
  .ec-home-more { display: inline-flex !important; align-items: center; min-height: 44px; min-width: 44px; }
  .product-wrap .ec-card-qty-input { min-width: 44px; }
  .product-gallery-btn { width: 44px !important; height: 44px !important; }
  .swiper-button-prev, .swiper-button-next { min-width: 44px; min-height: 44px; }
  .ec-pi-docs a, .ec-doc-text { min-height: 44px; display: inline-flex; align-items: center; }
  .product-simple .btn-cart, .related-product-section .btn-cart { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .ec-filter-open, .ec-list-toolbar select, #ec-sort-select { min-height: 44px; }
  .product-single .product-categories a, .product-single .product-meta a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
@media (max-width: 991.98px) {
  .product-wrap .ec-card-buy .btn-price-request { min-height: 44px; }
  .product-simple .ec-availability, .ec-pi-docs .ec-doc-text, .ec-pi-docs .ec-doc-open { font-size: 13px !important; }
  .product-single .product-categories a, .product-single .product-meta a { padding: 13px 0; margin: -13px 0; }
}
/* v1.46: admina „Labot” (tikai adminam, F8) telefonā nepārsedz cenas joslu — paceļ virs tās */
@media (max-width: 599.98px) {
  body.ec-has-bar .ec-admin-edit { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}
/* v1.46 (24.10. tests 390 px): groza soļu josla — tēma tai fiksē height 44 px; lūstot otrā rinda („Pasūtījums pabeigts”) pārklāja
   pirmo preces rindu. Augstums pēc satura (soļu joslas izkārtojums citādi nemainās — 14-08). */
@media (max-width: 991.98px) {
  ul.breadcrumb.shop-breadcrumb { height: auto !important; min-height: 44px; }
  /* 13-07: groza daudzuma −/+ (tēmā 24×24) */
  .cart-page .quantity-plus, .cart-page .quantity-minus, .shop-table .quantity-plus, .shop-table .quantity-minus { width: 44px !important; height: 44px !important; }
  .shop-table .input-group, .cart-page .input-group { height: 44px; }
  .shop-table input.quantity, .cart-page input.quantity { font-size: 16px !important; height: 44px; }
}
@media (max-width: 991.98px) {
  .cart-qty-group { display: inline-flex !important; align-items: center; width: auto !important; max-width: none !important; border: 1px solid #E5E5E5; border-radius: 4px; }
  .cart-qty-group .quantity-minus, .cart-qty-group .quantity-plus { position: static !important; transform: none !important; flex: 0 0 44px; margin: 0 !important; border: 0 !important; background: none !important; }
  .cart-qty-group .quantity-minus { order: 1; } .cart-qty-group input.quantity { order: 2; width: 52px !important; padding: 0 !important; text-align: center; border: 0 !important; } .cart-qty-group .quantity-plus { order: 3; }
}
/* 13-01 (pieņemšana: „nevienā lapā apakšā nav position:fixed elementa, izņemot preces lapas cenas joslu”) — groza v1.39 lipīgā
   „Kopā · Noformēt” josla telefonā vairs netiek rādīta; kopsavilkums un poga „Noformēt” paliek lapā. */
@media (max-width: 991.98px) { .ec-cart-sticky { display: none !important; } }
/* v1.46: tas pats telefonā — 44 px bērni 44 px blokā ar rāmi pārklāja apakšējo rāmi */
@media (max-width: 991.98px) {
  .ec-card-qty .ec-qty-btn, .ec-card-qty .ec-card-qty-input { height: auto !important; align-self: stretch; }
}
/* v1.46 (ec.aplv.tv tests 24.10.): paslēptā galvene (transform) kļūst par fixed pēcteču bloku — aizvērtā groza atvilktne
   (fixed, aiz labās malas) tad paplašināja lapu par 340 px (scrollWidth 730 pie 390). Atvilktnes atvērtas tikai ar redzamu galveni
   (ec-header.js), tāpēc horizontālo pārplūdi droši nogriež. clip (ne hidden) — nerada ritināšanas konteineru, sticky strādā. */
@media (max-width: 991.98px) {
  html, body { overflow-x: clip; }
}
/* 13-09 / 13-01 (ec.aplv.tv tests 24.10.): tēmas lipīgā pirkšanas josla preces lapā (.product-sticky-content.fix-bottom) < 992 px
   nav vajadzīga — telefonā ir mūsu cenas josla (13-08), planšetē 600–899 apakšējās joslas nav (820 px tā aizņēma 221 px). */
@media (max-width: 991.98px) {
  .product-sticky-content.fix-bottom.fixed { position: static !important; box-shadow: none !important; transform: none !important; animation: none !important; }
  .sticky-content-wrapper:has(> .product-sticky-content.fix-bottom) { height: auto !important; }
}
