/* 8kājis Veikals (katalogs) - scoped under body.veikals-page */
body.veikals-page{--navy:#1E2A5E;--teal:#16808e;--teal-dark:#157f8c;--bg:#F2F8FC;--text:#1E2A5E;--muted:#4a5680;--border:#D8E3F0;--violet:#9b35bd;
  margin:0;font-family:'Nunito Sans',sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
body.veikals-page *{box-sizing:border-box}
.veikals-page .wrap{max-width:1280px;margin:0 auto;padding:0 32px}
.veikals-page img{display:block;max-width:100%}

.veikals-page .vk-header{background:var(--navy);color:#fff}
.veikals-page .topbar{display:flex;align-items:center;gap:28px;padding:16px 0}
.veikals-page .logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.veikals-page .logo img{width:46px;height:46px;object-fit:contain}
.veikals-page .logo b{font-size:25px;font-weight:800;letter-spacing:-.01em;color:#fff}
.veikals-page .logo b span{display:block;font-size:10px;font-weight:700;letter-spacing:.14em;color:#8EF6FF;text-transform:uppercase}
.veikals-page .search{flex:1;position:relative}
.veikals-page .search input{width:100%;border-radius:999px;padding:13px 20px 13px 48px;font:600 16px 'Nunito Sans';color:var(--navy)}
.veikals-page .search svg{position:absolute;left:18px;top:50%;transform:translateY(-50%);width:20px;height:20px}
.veikals-page .icons{display:flex;align-items:center;gap:14px}
.veikals-page .iconbtn{position:relative;width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.12)}
.veikals-page .iconbtn svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2}
.veikals-page .iconbtn.cart{background:var(--teal)}
.veikals-page .badge{position:absolute;top:-6px;right:-6px;background:#8EF6FF;color:var(--navy);font-size:12px;font-weight:800;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--navy)}
.veikals-page .subbar{padding:0 0 16px}
.veikals-page .toggle{display:inline-flex;background:rgba(255,255,255,.12);border-radius:999px;padding:5px}
.veikals-page .toggle a{font-weight:700;font-size:15px;padding:11px 26px;border-radius:999px;text-decoration:none;color:#cdd6f0}
.veikals-page .toggle a.active{background:var(--teal);color:#fff}
.veikals-page .toggle a.bimini{color:#d9b8ff}

.veikals-page .hero{background:linear-gradient(100deg,#E3F1F7,#EAF4FB);border-bottom:1px solid var(--border)}
.veikals-page .hero .wrap{display:flex;align-items:center;justify-content:space-between;min-height:150px;padding:18px 32px}
.veikals-page .hero h1{font-size:34px;font-weight:800;letter-spacing:-.02em;color:var(--navy)}
.veikals-page .hero p{color:var(--muted);font-size:16px;margin-top:6px}
.veikals-page .hero img{width:120px;height:120px;object-fit:contain}

.veikals-page .fbar{display:none}

.veikals-page .main{display:grid;grid-template-columns:262px 1fr;gap:36px;padding:36px 0 56px}
.veikals-page .filters{background:#fff;border:1px solid var(--border);border-radius:16px;padding:22px;align-self:start;box-shadow:0 6px 22px rgba(30,42,94,.06)}
.veikals-page .filters h3{font-size:19px;font-weight:800;margin-bottom:6px;color:var(--navy)}
.veikals-page .fgroup{padding:18px 0;border-bottom:1px solid #EAF1F8}
.veikals-page .fgroup:last-of-type{border-bottom:none}
.veikals-page .fgroup h4{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-dark);margin-bottom:12px}
.veikals-page .check{display:flex;align-items:center;gap:10px;margin:9px 0;font-size:15px;color:var(--text)}
.veikals-page .check i{width:20px;height:20px;border:2px solid #B8C6DE;border-radius:6px;flex-shrink:0}
.veikals-page .check.on i{background:var(--teal);border-color:var(--teal);position:relative}
.veikals-page .check.on i::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.veikals-page .chips{display:flex;flex-wrap:wrap;gap:8px}
.veikals-page .chip{border:2px solid #CDE6EA;color:var(--teal-dark);font-weight:700;font-size:14px;padding:7px 14px;border-radius:999px}
.veikals-page .chip.on{background:var(--teal);color:#fff;border-color:var(--teal)}
.veikals-page .slider{height:6px;background:#DCE6F2;border-radius:999px;position:relative;margin:18px 4px}
.veikals-page .slider::before{content:"";position:absolute;left:10%;right:30%;top:0;bottom:0;background:var(--teal);border-radius:999px}
.veikals-page .knob{position:absolute;top:50%;width:18px;height:18px;background:#fff;border:3px solid var(--teal);border-radius:50%;transform:translate(-50%,-50%)}
.veikals-page .pricerow{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);font-weight:700}
.veikals-page .clearlink{color:var(--teal-dark);font-weight:700;font-size:14px;margin-top:14px;display:inline-block}

.veikals-page .resbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.veikals-page .resbar .count{font-weight:800;font-size:18px;color:var(--navy)}
.veikals-page .sort{border:2px solid var(--border);background:#fff;border-radius:999px;padding:10px 18px;font-weight:700;font-size:14px;color:var(--muted);display:flex;gap:8px;align-items:center}
.veikals-page .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.veikals-page .card{background:#fff;border:1px solid #E1EAF4;border-radius:16px;overflow:hidden;box-shadow:0 6px 22px rgba(30,42,94,.07);display:flex;flex-direction:column}
.veikals-page .card .ph{position:relative;background:linear-gradient(135deg,#EAF4FB,#E3F1F7);aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}
.veikals-page .card .ph img{width:86%;height:86%;object-fit:contain;mix-blend-mode:multiply}
.veikals-page .agebadge{position:absolute;top:12px;left:12px;background:var(--teal);color:#fff;font-weight:800;font-size:13px;padding:5px 12px;border-radius:999px}
.veikals-page .card .body{padding:16px 16px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.veikals-page .card .cat{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--teal-dark)}
.veikals-page .card .name{font-size:17px;font-weight:700;line-height:1.3;color:var(--navy)}
.veikals-page .card .price{font-size:22px;font-weight:800;color:var(--navy);margin-top:4px}
.veikals-page .card button{margin-top:12px;width:100%;background:var(--teal);color:#fff;border:none;border-radius:999px;padding:13px;font:800 15px 'Nunito Sans';cursor:pointer}
.veikals-page .card button:hover{background:var(--teal-dark)}

.veikals-page .pager{display:flex;gap:10px;justify-content:center;margin:40px 0 0}
.veikals-page .pager span{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:700;border:1px solid var(--border);background:#fff;color:var(--muted)}
.veikals-page .pager span.on{background:var(--teal);color:#fff;border-color:var(--teal)}

.veikals-page .vk-footer{background:var(--navy);color:#c6d0ec;padding:48px 0;margin-top:40px}
.veikals-page .vk-footer .wrap{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap}
.veikals-page .vk-footer b{color:#fff;font-size:18px;display:block;margin-bottom:12px}
.veikals-page .vk-footer p{font-size:14px;line-height:1.9;color:#a8b4d8}
.veikals-page .bnote{background:rgba(155,53,189,.25);border:1px solid rgba(169,124,255,.4);color:#e9d8ff;border-radius:12px;padding:14px 18px;font-size:13px;max-width:300px}
.veikals-page .bottomnav{display:none}

/* ---- mobile ---- */
@media (max-width:880px){
  body.veikals-page{padding-bottom:74px}
  .veikals-page .wrap{padding:0 16px}
  .veikals-page .topbar{gap:14px;padding:13px 16px}
  .veikals-page .search{order:3;flex-basis:100%}
  .veikals-page .logo b span{display:none}
  .veikals-page .subbar .toggle{display:flex;width:100%}
  .veikals-page .subbar .toggle a{flex:1;text-align:center;padding:10px;font-size:14px}
  .veikals-page .hero .wrap{min-height:auto;padding:16px}
  .veikals-page .hero h1{font-size:21px}.veikals-page .hero p{display:none}
  .veikals-page .hero img{width:64px;height:64px}
  .veikals-page .fbar{display:flex;gap:8px;overflow-x:auto;padding:16px 16px 6px}
  .veikals-page .fbar .fb{border:2px solid #CDE6EA;color:var(--teal-dark);font-weight:700;font-size:13px;padding:8px 14px;border-radius:999px;white-space:nowrap;display:flex;align-items:center;gap:6px}
  .veikals-page .fbar .fb.solid{background:var(--teal);color:#fff;border-color:var(--teal)}
  .veikals-page .main{grid-template-columns:1fr;gap:0;padding:6px 0 40px}
  .veikals-page .filters{display:none}
  .veikals-page .grid{grid-template-columns:1fr 1fr;gap:14px}
  .veikals-page .card .name{font-size:14px}.veikals-page .card .price{font-size:17px}
  .veikals-page .agebadge{font-size:11px;padding:3px 9px;top:9px;left:9px}
  .veikals-page .resbar .count{font-size:15px}
  .veikals-page .vk-footer{padding:32px 0}
  .veikals-page .vk-footer .wrap{gap:24px}
  .veikals-page .bottomnav{position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--navy);display:flex;justify-content:space-around;padding:9px 0 12px}
  .veikals-page .bn{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:700;color:#9aa6cc;text-decoration:none}
  .veikals-page .bn svg{width:24px;height:24px;stroke:#9aa6cc;fill:none;stroke-width:2}
  .veikals-page .bn.active{color:#8EF6FF}.veikals-page .bn.active svg{stroke:#8EF6FF}
}

/* functional catalog additions */
.veikals-page .card .ph{text-decoration:none;cursor:pointer}
.veikals-page .card .atc{margin-top:12px;width:100%;display:block;text-align:center;background:var(--teal);color:#fff;border:none;border-radius:999px;padding:13px;font:800 15px 'Nunito Sans';cursor:pointer;text-decoration:none}
.veikals-page .card .atc:hover{background:var(--teal-dark)}
.veikals-page .card .name{text-decoration:none}
.veikals-page .pager a{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:700;border:1px solid var(--border);background:#fff;color:var(--muted);text-decoration:none}
.veikals-page .pager a.on{background:var(--teal);color:#fff;border-color:var(--teal)}
.veikals-page .fbar a.fb{text-decoration:none}
.veikals-page a.logo{text-decoration:none}
@media(max-width:880px){.veikals-page .pager a{width:38px;height:38px}}

/* ---- functional filters ---- */
.veikals-page .filters .fhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.veikals-page .filters .fhead h3{margin:0}
.veikals-page .filters .clearlink{font-size:13px;margin:0}
.veikals-page .filters .check{cursor:pointer;text-decoration:none;color:var(--text)}
.veikals-page .filters .check:hover{color:var(--teal-dark)}
.veikals-page .filters .check:hover i{border-color:var(--teal)}
.veikals-page .filters h4 .soon{font-size:10px;font-weight:700;color:#9aa6cc;text-transform:none;letter-spacing:0;background:#eef3f9;padding:2px 7px;border-radius:999px;margin-left:6px}
.veikals-page .chips .chip{opacity:.55}
.veikals-page #cena-slider{height:6px;margin:20px 6px 8px;border:none;box-shadow:none;background:#DCE6F2;border-radius:999px}
.veikals-page #cena-slider .noUi-connects{border-radius:999px}
.veikals-page #cena-slider .noUi-connect{background:var(--teal)}
.veikals-page #cena-slider .noUi-handle{width:18px;height:18px;top:-6px;right:-9px;border-radius:50%;background:#fff;border:3px solid var(--teal);box-shadow:0 2px 6px rgba(30,42,94,.25);cursor:grab}
.veikals-page #cena-slider .noUi-handle::before,.veikals-page #cena-slider .noUi-handle::after{display:none}

/* category show-more + age chips as links + sort select */
.veikals-page .filters .cat-more{display:none}
.veikals-page .catmore-btn{margin-top:10px;background:none;border:none;color:var(--teal-dark);font-weight:800;font-size:14px;cursor:pointer;padding:4px 0}
.veikals-page .catmore-btn:hover{text-decoration:underline}
.veikals-page .chips .chip{opacity:1;text-decoration:none;cursor:pointer}
.veikals-page .chips .chip.on{background:var(--teal);color:#fff;border-color:var(--teal)}
.veikals-page .resbar .sort{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--border);background:#fff;border-radius:999px;padding:4px 8px 4px 16px;font-weight:700;font-size:14px;color:var(--muted)}
.veikals-page .resbar .sort-select{border:none;background:none;font:700 14px 'Nunito Sans';color:var(--navy);cursor:pointer;padding:4px 6px;outline:none}

/* ensure card image relative for age badge */
.veikals-page .card .ph{position:relative}
.veikals-page .card .agebadge{position:absolute;top:12px;left:12px;z-index:2;background:var(--teal);color:#fff;font-weight:800;font-size:13px;padding:5px 12px;border-radius:999px}

/* FILTERS-MOBILE-OPEN */
.veikals-page .pager{flex-wrap:wrap;justify-content:center}
@media(max-width:880px){
  .veikals-page .filters.open{display:block!important;margin:0 16px 16px}
}

/* ============ UX-POLISH ============ */
.veikals-page .card .body{display:flex;flex-direction:column;flex:1}
.veikals-page .card .body .name{flex:0 0 auto}
.veikals-page .card .body .price{margin-top:auto;padding-top:6px}
.veikals-page .card .body .atc{margin-top:12px}
.veikals-page .card{transition:transform .2s ease,box-shadow .2s ease}
.veikals-page .card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(30,42,94,.14)}
.veikals-page .card .ph img{transition:transform .35s ease}
.veikals-page .card:hover .ph img{transform:scale(1.05)}
.veikals-page .card .atc,.veikals-page .fb,.veikals-page .pager a,.veikals-page .catmore-btn{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,color .18s ease}
.veikals-page .card .atc:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(27,154,170,.35);background:var(--teal-dark)}
.veikals-page .fb:hover{background:var(--teal);color:#fff;border-color:var(--teal)}
.veikals-page .pager a:hover{border-color:var(--teal);color:var(--teal-dark)}
.veikals-page .fbar{scrollbar-width:none;-ms-overflow-style:none}
.veikals-page .fbar::-webkit-scrollbar{display:none}
@media(max-width:880px){
  .veikals-page .resbar{flex-wrap:wrap;gap:10px;padding:10px 16px 14px}
}


/* ============ PRASMES FILTRS (Ko attīsta) ============ */
.veikals-page .fgroup-skill{background:#F2FAFB;border:2px solid #CDE6EA;border-radius:14px;padding:16px 16px 12px;margin-bottom:22px}
.veikals-page .fgroup-skill h4{color:var(--teal-dark);display:flex;align-items:center;gap:7px}
.veikals-page .fgroup-skill h4::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal);flex-shrink:0}
.veikals-page .fgroup-skill .check{font-weight:600}
.veikals-page .fgroup-skill .check:hover{color:var(--teal-dark)}


/* "Uz pasūtījumu" kartiņā */
.veikals-page .card .orderbadge{position:absolute;top:12px;right:12px;z-index:2;background:#FEF3C7;color:#92400E;font-weight:800;font-size:12px;padding:5px 11px;border-radius:999px;border:1px solid #FDE68A}


/* Apakškategorijas sānjoslā (Rasas kategoriju koks 04.08.2026) */
.filters .check.check-sub{padding-left:30px;font-size:14px;opacity:.9}
.filters .check.check-sub i{transform:scale(.86)}


/* Atlaižu rinda kategoriju sarakstā (05.08.2026) */
.filters .check.check-sale{color:#c2410c;font-weight:600}


/* ============ UX-FIX 03.09.2026 ============ */
.veikals-page .fsheet-close,.fsheet-apply{display:none}   /* redzamas TIKAI mobilajā (code review 03.09.) */
.veikals-page .vk-footer a{color:#a8b4d8;text-decoration:none}          /* #8 rozā saites */
.veikals-page .vk-footer a:hover{color:#fff}
@media(max-width:880px){
  .veikals-page .bottomnav{padding-bottom:calc(12px + env(safe-area-inset-bottom))}  /* #13 */
  .veikals-page{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  /* #10 filtri kā apakšas panelis, nevis 848 px inline bloks */
  .veikals-page .filters.open{position:fixed!important;left:0;right:0;bottom:0;top:auto;z-index:90;margin:0!important;max-height:78vh;overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -14px 40px rgba(30,42,94,.28);padding:8px 16px calc(84px + env(safe-area-inset-bottom))}
  .veikals-page .filters.open .fhead{position:sticky;top:0;background:#fff;padding:12px 0 10px;margin:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #E1EAF4}
  .veikals-page .filters.open .fhead h3{flex:1}
  .veikals-page .fsheet-close{display:flex!important;align-items:center;justify-content:center;order:3;flex:0 0 auto;width:44px;height:44px;border:none;background:#EEF5F9;border-radius:50%;font-size:24px;line-height:1;color:#1E2A5E;cursor:pointer}
  .veikals-page .fsheet-apply{position:fixed;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:92;display:none;background:#16808e;color:#fff;border:none;border-radius:999px;padding:15px;font:800 16px 'Nunito Sans';box-shadow:0 10px 26px rgba(27,154,170,.4)}
  body.filters-open .fsheet-apply{display:block}
  body.filters-open{overflow:hidden}
  body.filters-open .filters-veil{position:fixed;inset:0;z-index:88;background:rgba(15,23,42,.45)}
  /* #19 norāde, ka čipu rindu var vilkt */
  .veikals-page .fbar{position:relative;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
}
/* P1 kontrasts 2026-10-01: #16808e uz balta = 3,36:1; #16808e = 4,65:1 (AA) */
.button,.button.product_type_simple,.add_to_cart_button,.ajax_add_to_cart,.atc,.ek-enq-open,.ptl-enq{
  background-color:#16808e!important;border-color:#16808e!important;color:#fff!important}
.button:hover,.add_to_cart_button:hover,.atc:hover{background-color:#126b77!important}
.skip-link{background-color:#16808e!important}
.pg.on{background-color:#16808e!important;border-color:#16808e!important}

/* === 2026-10-01 dzīvais ui-ux-pro (2. vilnis) === */
.veikals-page .pager .pg-gap{display:flex;align-items:flex-end;justify-content:center;width:24px;height:42px;color:#4a5680;font-weight:700}
.veikals-page .pager .pg-nav{font-size:22px;line-height:1}
.veikals-page .ek-cnt{color:#4a5680;font-weight:600}
/* kontrasts AA: čipi un "Ko attīsta" uz gaiša fona */
.veikals-page .fbar .fb:not(.solid),.veikals-page .fgroup-skill h4{color:#126b77}
@media (max-width:880px){
  .veikals-page .main{padding:6px 16px 40px}
  .veikals-page .fbar .fb:not(.solid){color:#126b77}
  .veikals-page .pager{gap:6px}
}

/* 2026-10-01 4. vilnis: P0 lapotne nedrīkst izstiept lapu 320-375 px */
.veikals-page main{min-width:0}
.veikals-page .pager{flex-wrap:wrap;row-gap:8px;max-width:100%}
@media (max-width:420px){.veikals-page .pager .pg-nav{display:none}}

/* 2026-10-01 5. vilnis: kartīšu pogas 320-374 px bez nogriezta teksta; "…" nav poga */
@media (max-width:374px){
  .veikals-page .card .body{padding-left:10px;padding-right:10px}
  .veikals-page .card .atc,.veikals-page .card .ek-enq-open{font-size:14px;padding:13px 6px;white-space:nowrap;min-height:48px}
}
@media (max-width:340px){.veikals-page .card .atc,.veikals-page .card .ek-enq-open{font-size:13px;padding:13px 4px;letter-spacing:-.1px}}
.veikals-page .pager span.pg-gap{border:0!important;background:none!important;width:20px;box-shadow:none!important}
