.porvoo-product-finder-host {
  display: block !important;
  width: 460px;
  top: 5px;
  z-index: 10000;
}

.porvoo-pf,
.porvoo-pf * {
  box-sizing: border-box;
}

.porvoo-pf {
  position: relative;
  width: 100%;
  color: #252525;
  font-family: inherit;
  text-align: left;
}

.porvoo-pf-form {
  position: relative;
  margin: 0;
}

.porvoo-pf-input-row {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 42px;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(24, 70, 36, 0.18);
  overflow: hidden;
}

.porvoo-pf-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 8px 48px 8px 16px;
  border: 0;
  border-radius: 22px;
  outline: 0;
  background: #fff;
  color: #202020;
  font: 600 14px/24px 'Karla', sans-serif;
  -webkit-appearance: none;
  appearance: none;
}

.porvoo-pf-input::placeholder {
  color: #526158;
  opacity: 1;
}

.porvoo-pf-input:focus-visible {
  box-shadow: inset 0 0 0 3px #275f38;
}

.porvoo-pf-submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 22px 22px 0;
  background: #275f38;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  line-height: 40px;
}

.porvoo-pf-submit:hover,
.porvoo-pf-submit:focus-visible {
  background: #174625;
  outline: 3px solid #fff;
  outline-offset: -4px;
}

.porvoo-pf-panel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 100%;
  max-height: min(68vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #d9e3dc;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(12, 43, 21, 0.24);
}

.porvoo-pf-panel[hidden] {
  display: none;
}

.porvoo-pf-status {
  min-height: 20px;
  margin: 0;
  padding: 10px 14px 7px;
  color: #526158;
  font: 600 12px/18px 'Karla', sans-serif;
}

.porvoo-pf-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.porvoo-pf-option {
  margin: 0;
  padding: 0;
  border-top: 1px solid #edf1ee;
}

.porvoo-pf-product {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 10px 14px;
  color: #202020;
  text-decoration: none;
}

.porvoo-pf-product:hover,
.porvoo-pf-product:focus-visible,
.porvoo-pf-option.is-active .porvoo-pf-product {
  background: #f0f8f2;
  color: #173e22;
  outline: none;
}

.porvoo-pf-product:focus-visible {
  box-shadow: inset 0 0 0 3px #275f38;
}

.porvoo-pf-image {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 1px solid #e6ece8;
  border-radius: 8px;
  background: #f5f8f6;
  object-fit: contain;
}

.porvoo-pf-details {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.porvoo-pf-name {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font: 700 14px/18px 'Roboto Slab', serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.porvoo-pf-price {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-top: 5px;
  color: #275f38;
  font: 600 14px/18px 'Karla', sans-serif;
}

.porvoo-pf-price del {
  color: #777;
  font-weight: 400;
}

.porvoo-pf-availability {
  margin-top: 2px;
  color: #526158;
  font: 400 11px/16px 'Karla', sans-serif;
}

.porvoo-pf-action {
  margin-top: 3px;
  color: #275f38;
  font: 700 12px/16px 'Karla', sans-serif;
}

.porvoo-pf-show-all {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid #dce6df;
  background: #f7faf8;
  color: #275f38;
  font: 700 14px/20px 'Karla', sans-serif;
  text-align: center;
  text-decoration: none;
}

.porvoo-pf-show-all:hover,
.porvoo-pf-show-all:focus-visible {
  background: #e7f4ea;
  color: #173e22;
  outline: 3px solid #275f38;
  outline-offset: -3px;
}

@media screen and (min-width: 981px) {
  .header-top .top-right {
    width: 555px !important;
  }
}

@media screen and (max-width: 980px) {
  .header-top .top-right {
    float: none;
    width: 100% !important;
  }

  .porvoo-product-finder-host {
    position: relative !important;
    top: auto;
    right: auto;
    float: none;
    clear: both;
    width: 100%;
    max-width: 620px;
    margin: 7px auto 12px;
  }

  .porvoo-pf-input-row,
  .porvoo-pf-input,
  .porvoo-pf-submit {
    min-height: 46px;
  }

  .porvoo-pf-submit {
    height: 46px;
    line-height: 46px;
  }

  .porvoo-pf-panel {
    right: 0;
    left: 0;
    max-height: min(62vh, 520px);
  }
}

@media screen and (max-width: 480px) {
  .porvoo-pf-input {
    padding-left: 13px;
    font-size: 13px;
  }

  .porvoo-pf-product {
    gap: 10px;
    min-height: 86px;
    padding: 8px 10px;
  }

  .porvoo-pf-image {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .porvoo-pf * {
    scroll-behavior: auto !important;
  }
}

/* Homepage featured products: server-rendered by the MU plugin. */
.porvoo-featured-products {
  margin: 38px 0 42px;
  padding: 30px;
  border: 1px solid #dce6df;
  border-radius: 12px;
  background: #f7faf8;
  color: #252525;
}

.porvoo-featured-products__header {
  max-width: 620px;
  margin-bottom: 22px;
}

.porvoo-featured-products__eyebrow,
.porvoo-featured-card__brand {
  margin: 0 0 6px;
  color: #526158;
  font: 700 11px/16px 'Karla', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.porvoo-featured-products h2 {
  margin: 0;
  color: #173e22;
  font: 700 clamp(25px, 3vw, 34px)/1.16 'Roboto Slab', serif;
}

.porvoo-featured-products__header > p:last-child,
.porvoo-featured-products__footer > p {
  margin: 8px 0 0;
  color: #526158;
  font: 400 16px/24px 'Karla', sans-serif;
}

.porvoo-featured-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.porvoo-featured-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce6df;
  border-radius: 10px;
  background: #fff;
}

.porvoo-featured-card__image-link {
  display: block;
  aspect-ratio: 1;
  background: #fff;
}

.porvoo-featured-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.porvoo-featured-card__body {
  display: flex;
  min-height: 176px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 14px;
}

.porvoo-featured-card h3 {
  margin: 0;
  font: 700 15px/20px 'Roboto Slab', serif;
}

.porvoo-featured-card h3 a,
.porvoo-featured-card__link {
  color: #173e22;
  text-decoration: none;
}

.porvoo-featured-card h3 a:hover,
.porvoo-featured-card h3 a:focus-visible,
.porvoo-featured-card__link:hover,
.porvoo-featured-card__link:focus-visible {
  color: #275f38;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.porvoo-featured-card h3 a:focus-visible,
.porvoo-featured-card__link:focus-visible,
.porvoo-featured-products__actions a:focus-visible {
  outline: 3px solid #275f38;
  outline-offset: 3px;
}

.porvoo-featured-card__price {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin: 12px 0 10px;
  color: #275f38;
  font: 600 16px/20px 'Karla', sans-serif;
}

.porvoo-featured-card__price del {
  color: #68716c;
  font-size: 13px;
  font-weight: 400;
}

.porvoo-featured-card__link {
  margin-top: auto;
  font: 700 13px/18px 'Karla', sans-serif;
}

/* EKOHINTA: server-rendered source cards. All current cards remain in the
 * document when JavaScript is unavailable. */
.porvoo-ekohinta-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 0;
}

.porvoo-ekohinta-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce6df;
  border-radius: 10px;
  background: #fff;
}

.porvoo-ekohinta-card__image-link {
  display: block;
  aspect-ratio: 1;
  background: #fff;
}

.porvoo-ekohinta-card__image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.porvoo-ekohinta-card__body {
  display: flex;
  min-height: 210px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 14px;
}

.porvoo-ekohinta-card__badge,
.porvoo-ekohinta-card__category,
.porvoo-ekohinta-card__brand,
.porvoo-ekohinta-card__price {
  margin: 0;
}

.porvoo-ekohinta-card__badge {
  align-self: flex-start;
  padding: 4px 7px;
  border: 1px solid #173e2d;
  border-radius: 5px;
  background: #f6d44b;
  color: #173e2d;
  font: 800 11px/14px 'Karla', sans-serif;
}

.porvoo-ekohinta-card__category,
.porvoo-ekohinta-card__brand {
  margin-top: 8px;
  color: #526158;
  font: 700 11px/15px 'Karla', sans-serif;
}

.porvoo-ekohinta-card__brand { margin-top: 2px; }
.porvoo-ekohinta-card h3 { margin: 7px 0 0; font: 700 15px/20px 'Roboto Slab', serif; }
.porvoo-ekohinta-card h3 a,
.porvoo-ekohinta-card__link { color: #173e22; text-decoration: none; }
.porvoo-ekohinta-card h3 a:hover,
.porvoo-ekohinta-card h3 a:focus-visible,
.porvoo-ekohinta-card__link:hover,
.porvoo-ekohinta-card__link:focus-visible { color: #275f38; text-decoration: underline; text-underline-offset: 3px; }
.porvoo-ekohinta-card h3 a:focus-visible,
.porvoo-ekohinta-card__link:focus-visible { outline: 3px solid #275f38; outline-offset: 3px; }
.porvoo-ekohinta-card__price { margin-top: 10px; color: #275f38; font: 700 18px/22px 'Karla', sans-serif; }
.porvoo-ekohinta-card__link { margin-top: auto; padding-top: 12px; font: 700 13px/18px 'Karla', sans-serif; }
.porvoo-ekohinta-unavailable { margin: 18px 0 0; padding: 14px; border-left: 4px solid #275f38; background: #f7faf8; }
.porvoo-ekohinta-unavailable a { color: #275f38; font-weight: 700; }

.porvoo-featured-products__footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #dce6df;
}

.porvoo-featured-products__footer > p {
  margin: 0;
}

.porvoo-featured-products__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.porvoo-featured-products__actions a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 5px;
  font: 700 13px/18px 'Karla', sans-serif;
  text-decoration: none;
}

.porvoo-featured-products__primary {
  background: #275f38;
  color: #fff;
}

.porvoo-featured-products__primary:hover {
  background: #174625;
  color: #fff;
}

.porvoo-featured-products__secondary {
  border: 1px solid #275f38;
  color: #275f38;
}

.porvoo-featured-products__secondary:hover {
  background: #e7f4ea;
  color: #173e22;
}

@media screen and (max-width: 900px) {
  .porvoo-featured-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .porvoo-ekohinta-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 560px) {
  .porvoo-featured-products { margin: 28px 0 32px; padding: 20px 14px; }
  .porvoo-featured-products__grid { gap: 10px; }
  .porvoo-featured-card__body { min-height: 170px; padding: 11px; }
  .porvoo-featured-card h3 { font-size: 13px; line-height: 18px; }
  .porvoo-featured-card__brand { font-size: 10px; line-height: 14px; }
  .porvoo-featured-card__price { margin: 9px 0; font-size: 15px; }
  .porvoo-ekohinta-products { gap: 10px; }
  .porvoo-ekohinta-card__body { min-height: 205px; padding: 11px; }
  .porvoo-ekohinta-card h3 { font-size: 13px; line-height: 18px; }
  .porvoo-featured-products__footer { display: block; }
  .porvoo-featured-products__actions { margin-top: 16px; }
}

/* Homepage: local-store positioning and conversion. The old Nivo slider is
 * replaced by the real storefront image in the semantic page hero below. */
.home .slider-main { display: none; }
.home .entry-content { max-width: 1160px; margin: 0 auto; }
.home .entry-content > * { box-sizing: border-box; }

.porvoo-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin: 42px 0 34px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 14px;
  background: #edf5ef;
}
.porvoo-home-hero__eyebrow, .porvoo-home-section-eyebrow { margin: 0 0 8px; color: #275f38; font: 700 12px/18px 'Karla', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.porvoo-home-hero h1 { margin: 0; color: #173e22; font: 700 clamp(32px, 4.2vw, 52px)/1.08 'Roboto Slab', serif; }
.porvoo-home-hero__lead { max-width: 640px; margin: 18px 0; color: #33413a; font: 400 18px/28px 'Karla', sans-serif; }
.porvoo-home-value-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.porvoo-home-value-row li { padding: 7px 10px; border-radius: 999px; background: #fff; color: #173e22; font: 700 13px/18px 'Karla', sans-serif; }
.porvoo-home-hero__actions, .porvoo-home-highlight__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.porvoo-home-button { display: inline-block; padding: 12px 16px; border: 1px solid #275f38; border-radius: 5px; font: 700 14px/20px 'Karla', sans-serif; text-decoration: none; }
.porvoo-home-button--primary { background: #275f38; color: #fff; }
.porvoo-home-button--primary:hover, .porvoo-home-button--primary:focus-visible { background: #174625; color: #fff; }
.porvoo-home-button--secondary { background: transparent; color: #275f38; }
.porvoo-home-button--secondary:hover, .porvoo-home-button--secondary:focus-visible { background: #e7f4ea; color: #173e22; }
.porvoo-home-button:focus-visible, .porvoo-home-text-link:focus-visible, .porvoo-home-categories a:focus-visible { outline: 3px solid #275f38; outline-offset: 3px; }
.porvoo-home-hero__webshop { margin: 14px 0 0; font: 700 14px/20px 'Karla', sans-serif; }
.porvoo-home-hero__webshop a, .porvoo-home-text-link { color: #275f38; text-decoration: underline; text-underline-offset: 3px; }
.porvoo-home-hero__location { margin: 16px 0 0; color: #526158; font: 400 14px/21px 'Karla', sans-serif; }
.porvoo-home-hero__image { margin: 0; overflow: hidden; border-radius: 10px; background: #dce6df; }
.porvoo-home-hero__image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.porvoo-home-hero__image figcaption { padding: 8px 10px; color: #526158; font: 400 12px/18px 'Karla', sans-serif; }

.porvoo-home-search { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr); gap: 28px; align-items: center; margin: 34px 0 0; padding: 28px; border: 1px solid #dce6df; border-radius: 12px; background: #fff; }
.porvoo-home-search h2, .porvoo-home-categories h2, .porvoo-home-highlight h2, .porvoo-home-trust h2, .porvoo-home-store h2 { margin: 0; color: #173e22; font: 700 clamp(25px, 3vw, 34px)/1.16 'Roboto Slab', serif; }
.porvoo-home-search p:not(.porvoo-home-section-eyebrow), .porvoo-home-highlight p:not(.porvoo-home-section-eyebrow), .porvoo-home-trust p:not(.porvoo-home-section-eyebrow), .porvoo-home-store p { margin: 9px 0 0; color: #526158; font: 400 16px/24px 'Karla', sans-serif; }
.porvoo-product-finder-host--home { width: 100%; max-width: none; }
.porvoo-product-finder-host--home .porvoo-pf-input-row { border-color: #275f38; border-radius: 7px; box-shadow: none; }
.porvoo-product-finder-host--home .porvoo-pf-input { height: 48px; padding-left: 16px; border-radius: 5px; font-size: 15px; }
.porvoo-product-finder-host--home .porvoo-pf-submit { width: 54px; height: 48px; border-radius: 0 5px 5px 0; line-height: 48px; }

.porvoo-home-categories { margin: 46px 0; }
.porvoo-home-categories__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.porvoo-home-categories__grid a { display: flex; min-height: 132px; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid #dce6df; border-radius: 10px; background: #fff; color: #173e22; text-decoration: none; }
.porvoo-home-categories__grid a:hover { border-color: #9fbeaa; background: #f7faf8; }
.porvoo-home-categories__grid strong { font: 700 19px/24px 'Roboto Slab', serif; }
.porvoo-home-categories__grid span { color: #275f38; font: 700 13px/18px 'Karla', sans-serif; }

.porvoo-home-highlight { display: flex; gap: 28px; align-items: center; justify-content: space-between; margin: 34px 0; padding: 32px; border-radius: 12px; }
.porvoo-home-highlight--ekohinta { background: #f3eee0; }
.porvoo-home-highlight--pickup { background: #edf5ef; }
.porvoo-home-highlight > div { max-width: 760px; }
.porvoo-home-highlight > .porvoo-home-button { flex: 0 0 auto; }

.porvoo-home-reviews { display: flex; gap: 28px; align-items: center; justify-content: space-between; margin: 38px 0; padding: 30px 32px; border: 1px solid #dce6df; border-radius: 12px; background: #fff; }
.porvoo-home-reviews > div { max-width: 720px; }
.porvoo-home-reviews h2 { margin: 0; color: #173e22; font: 700 clamp(25px, 3vw, 34px)/1.16 'Roboto Slab', serif; }
.porvoo-home-reviews p:not(.porvoo-home-section-eyebrow) { margin: 9px 0 0; color: #526158; font: 400 16px/24px 'Karla', sans-serif; }

.porvoo-home-trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 36px; margin: 48px 0; padding: 4px 0; }
.porvoo-home-trust ul { display: grid; gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid #dce6df; border-radius: 10px; list-style: none; }
.porvoo-home-trust li { padding: 16px 18px; background: #f7faf8; }
.porvoo-home-trust strong, .porvoo-home-trust span { display: block; }
.porvoo-home-trust strong { color: #173e22; font: 700 16px/22px 'Roboto Slab', serif; }
.porvoo-home-trust span { margin-top: 2px; color: #526158; font: 400 14px/20px 'Karla', sans-serif; }
.porvoo-home-store { display: flex; gap: 32px; justify-content: space-between; margin: 38px 0 50px; padding: 32px; border: 1px solid #dce6df; border-radius: 12px; background: #f7faf8; }
.porvoo-home-store address { margin-top: 14px; color: #33413a; font: 400 16px/25px 'Karla', sans-serif; font-style: normal; }
.porvoo-home-store address a { color: #275f38; font-weight: 700; }
.porvoo-home-store h3 { margin: 0; color: #173e22; font: 700 18px/24px 'Roboto Slab', serif; }

@media screen and (min-width: 981px) {
  .home #sitemain { width: 100%; }
  .home .sitenav li a { padding: 25px 5px 18px; font-size: 11px; }
  .home .header-right, .home .sitenav { min-height: 61px; }
  .porvoo-home-hero { margin-top: 22px; padding: 28px; }
  .porvoo-home-hero h1 { font-size: 44px; line-height: 1.1; }
  .porvoo-home-hero__lead { margin: 12px 0; }
}

@media screen and (max-width: 800px) {
  .porvoo-home-hero, .porvoo-home-search, .porvoo-home-trust { grid-template-columns: 1fr; }
  .porvoo-home-hero { margin-top: 24px; }
  .porvoo-home-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .porvoo-home-highlight, .porvoo-home-reviews, .porvoo-home-store { display: block; }
  .porvoo-home-highlight__actions, .porvoo-home-highlight > .porvoo-home-button, .porvoo-home-reviews .porvoo-home-button, .porvoo-home-store .porvoo-home-button { margin-top: 18px; }
  .porvoo-home-store > div + div { margin-top: 26px; }
}
@media screen and (max-width: 480px) {
  .home .entry-content { width: 100%; }
  .porvoo-home-hero { gap: 20px; margin: 18px 0 24px; padding: 22px 16px; border-radius: 0; }
  .porvoo-home-hero h1 { font-size: 32px; }
  .porvoo-home-hero__eyebrow { display: none; }
  .porvoo-home-hero__lead { font-size: 16px; line-height: 24px; }
  .porvoo-home-search, .porvoo-home-highlight, .porvoo-home-reviews, .porvoo-home-store { padding: 22px 16px; border-radius: 0; }
  .porvoo-home-categories { margin: 34px 0; }
  .porvoo-home-categories__grid { gap: 10px; }
  .porvoo-home-categories__grid a { min-height: 116px; padding: 14px; }
  .porvoo-home-categories__grid strong { font-size: 16px; line-height: 21px; }
  .porvoo-home-value-row { display: none; }
}
