/* Tuotelistan hintarivi (kauppa-, osasto- ja hakusivut, 10/10-arvio 2, 23.10.2026): sama kieli kuin osastosivun
   korteissa – "Factory price" ja hinta isona, palvelumaksu pienenä rivinä. Ei vanhaa magentaa hintamerkkiä. */
.woocommerce ul.products li.product .ebf-loop-pricing{display:flex;flex-direction:column;align-items:center;gap:4px;margin:10px 0 14px;text-align:center}
.woocommerce ul.products li.product .ebf-loop-factory-price{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:4px 8px}
.woocommerce ul.products li.product .ebf-loop-price-label{font-size:14px;font-weight:500;color:#a1a9b8}
.woocommerce ul.products li.product .ebf-loop-hinta{font-size:26px;font-weight:800;line-height:1.1;letter-spacing:-.02em;color:#fff;white-space:nowrap}
.woocommerce ul.products li.product .ebf-loop-hinta-kysy{font-size:16px;font-weight:600;white-space:normal}
.woocommerce ul.products li.product .ebf-loop-service-fee{font-size:13px;color:#a1a9b8}
@media(max-width:600px){.woocommerce ul.products li.product .ebf-loop-hinta{font-size:22px}.woocommerce ul.products li.product .ebf-loop-price-label{font-size:13px}}
.woocommerce ul.products li.product .button{border-radius:999px}
/* Hakutulossivun hakukenttä (10/10-arvio 3) */
.ebf-haku-uudelleen{max-width:640px;margin:0 0 18px}
.ebf-haku-uudelleen form{position:relative;display:flex;margin:0}
.ebf-haku-uudelleen input[type=search]{width:100%;height:50px;margin:0;padding:0 60px 0 18px;background:#111a2b;border:1px solid rgba(255,255,255,.14);border-radius:14px;font:inherit;font-size:16px;color:#f5f5f7}
.ebf-haku-uudelleen button[type=submit]{position:absolute;top:5px;right:5px;width:40px;height:40px;padding:0;background:#0071E3 url(../images/suurennuslasi-valkoinen.svg) center/18px auto no-repeat;border:0;border-radius:10px;font-size:0;color:transparent;cursor:pointer}
.ebf-haku-uudelleen label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Hakutulokset valkoisella kuten osastosivut (Kim 23.10.2026: pelkistetty, valkoinen ostopolku); nappi ostopolun oranssilla */
body.search main#main{background:#fff;box-shadow:0 0 0 100vmax #fff;clip-path:inset(0 -100vmax);color:#0b1220}
body.search main#main :is(h1,h2,h3,.woocommerce-loop-product__title,.woocommerce-result-count){color:#0b1220}
body.search main#main .woocommerce-breadcrumb,body.search main#main .woocommerce-breadcrumb a{color:#5b6474}
body.search ul.products li.product .ebf-loop-price-label,body.search ul.products li.product .ebf-loop-service-fee{color:#5b6474}
body.search ul.products li.product .ebf-loop-hinta{color:#0b1220}
body.search ul.products li.product a img{border-radius:18px;box-shadow:inset 0 0 0 1px #e3e8f0}
body.search .ebf-haku-uudelleen input[type=search]{background:#fff;border-color:#c9d2df;color:#0b1220}
.woocommerce ul.products li.product .button.ebf-loop-katso,.woocommerce ul.products li.product .button.ebf-loop-katso:hover{background:#C94300;color:#fff}
/* Hakutulossivu 10/10 (Kim 27.10.2026, inc/haku.php): korjausilmoitus, osastopikalinkki, ryhmäsuodatin ja tyhjä tulos */
.ebf-haku-yla{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin:0 0 18px}
.ebf-haku-korjaus{flex:1 1 100%;margin:0;padding:12px 16px;background:#f5f7fb;border:1px solid #e3e8f0;border-radius:14px;font-size:16px;line-height:1.4;color:#0b1220}
.ebf-haku-korjaus b{font-weight:700}
.ebf-haku-osasto{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 18px;background:#fff;border:1.5px solid #0071E3;border-radius:999px;font-size:16px;font-weight:600;text-decoration:none;color:#0071E3}
.ebf-haku-osasto:hover{background:#f5f7fb}
.ebf-haku-ryhmat{display:flex;flex:1 1 100%;gap:8px;margin:2px 0 0;padding:2px 2px 6px;overflow-x:auto;scrollbar-width:none}
.ebf-haku-ryhmat::-webkit-scrollbar{display:none}
.ebf-haku-ryhmat a{display:inline-flex;flex:none;align-items:center;gap:6px;min-height:44px;padding:0 16px;background:#f5f7fb;border:1px solid #e3e8f0;border-radius:999px;font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap;color:#0b1220}
.ebf-haku-ryhmat a b{font-weight:500;color:#5b6474}
.ebf-haku-ryhmat a[aria-current=true]{background:#0b1220;border-color:#0b1220;color:#fff}
.ebf-haku-ryhmat a[aria-current=true] b{color:#c9d2df}
.ebf-haku-tyhja{max-width:720px;margin:6px 0 40px;font-size:17px;line-height:1.45;color:#0b1220}
.ebf-haku-tyhja p{margin:0 0 12px}
.ebf-haku-tyhja .ebf-haku-tyhja-ots{margin-top:8px;font-size:22px;font-weight:700}
.ebf-haku-tyhja-osastot{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin:16px 0 22px;padding:0;list-style:none}
.ebf-haku-tyhja-osastot a{display:flex;justify-content:space-between;align-items:center;min-height:56px;padding:0 18px;background:#f5f7fb;border:1px solid #e3e8f0;border-radius:14px;font-weight:700;text-decoration:none;color:#0b1220}
.ebf-haku-tyhja-osastot a:hover{border-color:#0071E3}
.ebf-haku-tyhja-apu a{font-weight:700;color:#0071E3}
body.search main#main .woocommerce-breadcrumb{margin-bottom:10px}
/* Kapeimmat puhelimet: kaksi korttia rinnakkain myös 380 px:ssä (yksi kortti vei koko ruudun, vain 1 tuote näkyvissä) */
@media(max-width:380px){body.search ul.products,body.tax-product_cat ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.search ul.products li.product .woocommerce-loop-product__title,body.tax-product_cat ul.products li.product .woocommerce-loop-product__title{font-size:15px}}
/* Osastosivut 10/10-kierros 27.10.2026: kuvaus tuotteiden alla (inc/frontend.php), murupolun kontrasti tummalla
   (4,34 -> 7,5), "View model" ja sivunumerot 44 px kosketusalueina */
.ebf-osasto-kuvaus{max-width:800px;margin:48px 0 0;padding-top:28px;border-top:1px solid rgba(255,255,255,.12);font-size:16px;line-height:1.6;color:#a1a9b8}
.ebf-osasto-kuvaus p{margin:0 0 12px}
body.tax-product_cat .woocommerce-breadcrumb,body.tax-product_cat .woocommerce-breadcrumb a,body.tax-ebf_compat .woocommerce-breadcrumb,body.tax-ebf_compat .woocommerce-breadcrumb a{color:#a1a9b8}
.woocommerce ul.products li.product .button{min-height:44px}
.woocommerce nav.woocommerce-pagination ul li a.page-numbers,.woocommerce nav.woocommerce-pagination ul li span.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
/* Kortin otsikko omana linkkinään kuvalinkin jälkeen (inc/frontend.php ebf_loop_otsikko, 27.10.2026): kuvalinkki ei enää
   sisällä otsikkoa ja hintaa, joten ne saavat saman järjestyksen kuin linkki (kuva → otsikko → hinta → nappi) */
.woocommerce ul.products li.product>:not(.button):not(.wvs-archive-variations-wrapper){order:1}
.woocommerce ul.products li.product .woocommerce-loop-product__title a{color:inherit;text-decoration:none}
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover{text-decoration:underline;text-underline-offset:3px}
/* Otsikkolinkin kosketusalue (QA 27.10.2026: tekstirivin korkuinen linkki oli alle 24 px mobiilissa): otsikon pystyväli
   linkin sisään ja linkki koko kortin levyiseksi – näyttää samalta, osuma-alue noin 44 px */
.woocommerce ul.products li.product .woocommerce-loop-product__title{align-self:stretch;padding:0!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title a{display:block;padding:.72rem 0 .68rem}
