@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
:root {
  --assistant-max-width: 1050px;
  --assistant-min-width: 540px;
  --assistant-window-background: #fff;
  --assistant-window-border-radius: 12px;
  --assistant-window-shadow: 0 0 22px rgba(0,0,0,.08);
  --primary-color: #b84a39;
  --secondary-color: #1e293b;
  --sale-bg: #b84a39;
  --novelty-bg: #1052c5;
  --animate: all .2s ease-in-out;
  --google-font: 'Open Sans',sans-serif;
  --main-header-background: transparent;
  --main-header-font-color: #1e293b;
  --category-link-color: #1e293b;
  --category-link-background: #f1f5f9;
}
::backdrop {
  background: rgba(0,0,0,.7);
}
#shop-assistant,
#shop-assistant p,
#shop-assistant a,
#shop-assistant span,
#shop-assistant div,
#shop-assistant section,
#shop-assistant li,
#shop-assistant button {
  font-family: 'Open Sans',sans-serif;
  box-sizing: border-box;
}
#shop-assistant ul,
#shop-assistant li {
  padding: 0;
  margin: 0;
  list-style: none;
}
#shop-assistant li {
  display: flex;
}
#shop-assistant a {
  text-decoration: none;
}
#shop-assistant {
  width: 95%;
  max-width: var(--assistant-max-width);
  min-width: var(--assistant-min-width);
  background: var(--assistant-window-background);
  border-radius: var(--assistant-window-border-radius);
  box-shadow: var(--assistant-window-shadow);
  padding: 2em !important;
  border: 1px solid #e5e7eb;
  margin: 20px auto;
  position: relative;
  z-index: 999999;
}
.shop-assistant-content,
.sa-section {
  width: 100%;
}

/*.header-wrapper {
  background: var(--main-header-background);
  padding: 0 0 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-header {
  text-align: left;
  color: var(--main-header-font-color);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin: 0;
}*/

.main-header {font-weight: 700;font-size: 14px;}

.main-header::before {
  content: "✦";
  color: #eab308;
  font-size: 20px;
  margin-right: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.main-header img {
  display: none;
}
#function-icons {
  display: flex;
  justify-content: center;
  align-items: center;
}
.function-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 4px;
  background: #fff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.function-icon img {
  max-width: 14px;
  height: auto;
}
.assistant-navi {
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 0;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.assistant-navi::-webkit-scrollbar,
.brand-img-wrapper::-webkit-scrollbar {
  display: none;
}
.assistant-navi ul {
  display: flex;
  gap: 8px;
}
.assistant-navi a {
  display: inline-block;
  background: var(--category-link-background);
  color: var(--category-link-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}
a.assSelected {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.piilo-input {
  display: none;
}
.suodatin-alue {
  display: flex;
  margin-bottom: 24px;
}
.suodatin-palkki.valilehti-ryhma {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  width: 100%;
}
.suodatin-nappi {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #475569;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  user-select: none;
}
#tab-suositukset:checked ~ .shop-assistant-content .suositukset-leimo,
#tab-uutuudet:checked ~ .shop-assistant-content .uutuudet-leimo,
#tab-alennukset:checked ~ .shop-assistant-content .alennukset-leimo {
  background: #fff;
  color: #000;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tuote-kontti {
  width: 100%;
  min-height: 250px;
}
.product-carousel {
  position: relative;
  width: 100%;
  display: none;
}
#tab-suositukset:checked ~ .shop-assistant-content .lista-suositukset-carousel,
#tab-uutuudet:checked ~ .shop-assistant-content .lista-uutuudet-carousel,
#tab-alennukset:checked ~ .shop-assistant-content .lista-alennukset-carousel {
  display: block;
}
.product-listing {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}
.product-item {
  padding: 0;
  position: relative;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-item .product-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.15/1;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
}
.product-item .product-img-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-item .p-img {
  width: 100% !important;
  height: 100% !important;
  max-height: 140px !important;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}
.product-item .product-img-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.75);
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  transition: opacity .2s ease,visibility .2s;
  pointer-events: none;
}
.product-item .product-img-wrapper::after {
  content: "KATSO TUOTE";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-35%);
  background: var(--primary-color);
  color: #fff;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  z-index: 3;
  transition: transform .2s ease,opacity .2s,visibility .2s;
  pointer-events: none;
}
@media (min-width:769px) {
  .product-item:hover .product-img-wrapper::before {
    opacity: 1;
    visibility: visible;
  }
  .product-item:hover .product-img-wrapper::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%,-50%);
  }
}
.product-item .p-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  min-height: 34px;
  padding: 14px 14px 4px;
  color: #1e293b;
  margin: 0;
}
.product-item .p-price {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  padding: 0 14px 14px;
  line-height: 120%;
  text-align: left;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}
.product-item .p-price.sale-price {
  color: var(--primary-color);
}
.product-item .p-normal-price {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 6px;
}
.endorse-header {
  font-family: var(--google-font);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-color);
  z-index: 4;
  padding: 3px 8px;
  color: #fff;
  border-radius: 2px;
  letter-spacing: .5px;
}
.product-carousel-button {
  height: auto;
  padding: 0;
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 16px;
}
.product-carousel-button:hover {
  text-decoration: underline;
}
.product-carousel-button[hidden] {
  display: block !important;
  color: #f1f1f1;
  pointer-events: none;
}
.product-carousel-prev {
  left: 8px;
}
.product-carousel-next {
  right: 8px;
}
.sa-section.brands {
  margin-top: 25px;
  border-top: 1px solid #e5e7eb;
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.sa-section.brands::before {
  content: "SUOSITUIMMAT TUOTEMERKIT";
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.brand-img-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
}
.brand-img-wrapper a {
  flex: 1;
  min-width: 120px;
  height: 60px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 6px;
}
.brand-img {
  max-width: 80px;
  max-height: 40px;
  object-fit: contain;
}
.sa-section.additional-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
  margin-top: 20px;
}
.additional-link {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-block;
  line-height: 140%;
}
#contact-section {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 4px;
}
.contact-item {
  display: inline-flex;
}
.contact-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 600;
}
.contact-item img {
  display: none;
}
@media only screen and (max-width:850px) {
  #shop-assistant {
    padding: 16px !important;
    min-width: calc(100% - 2em);
  }
  .product-item .product-img-wrapper::before,
  .product-item .product-img-wrapper::after {
    display: none !important;
  }
}
@media only screen and (max-width:768px) {
  .product-listing {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  .product-carousel-button {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }
  .product-carousel-prev {
    left: 5px;
  }
  .product-carousel-next {
    right: 5px;
  }

  .product-listing {
    touch-action: pan-y;
  }
}
@media only screen and (max-width:600px) {
  .sa-section.additional-links {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .additional-link {
    text-align: center;
  }
  .suodatin-palkki.valilehti-ryhma {
    flex-direction: column;
    gap: 4px;
    padding: 6px;
  }
}

.product-carousel {
  display: none;
  opacity: 0;
}

.product-carousel.carousel-active {
  display: block;
  animation: carouselFadeIn 0.3s ease forwards;
}

@keyframes carouselFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}