/* BUBUBU – produktový pás „Odporúčame“ na titulke
   Izolované štýly: cielia výhradne na natívnu skupinu #products-2 na titulke. */

body.type-index .homepage-products-heading-2 {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto 30px;
  color: #282624;
  font-size: clamp(36px, 3vw, 52px) !important;
  font-weight: 700 !important;
  letter-spacing: -.045em;
  line-height: 1.05;
  text-align: left;
}

body.type-index #products-2 {
  --bb-product-gap: 16px;
  --bb-product-card: calc((min(1480px, 100vw - 64px) - 48px) / 4.35);
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto 86px;
}

/* Na desktope nahrádza pevný počet kariet natívneho slidera horizontálny pás. */
@media (min-width: 768px) {
body.type-index #products-2 .slick-list {
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding: 0 0 14px !important;
  scrollbar-color: #a7a39e #efeeec;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

body.type-index #products-2 .slick-list::-webkit-scrollbar {
  height: 7px;
}

body.type-index #products-2 .slick-list::-webkit-scrollbar-track {
  background: #efeeec;
}

body.type-index #products-2 .slick-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #a7a39e;
}

body.type-index #products-2 .slick-track {
  display: flex !important;
  width: max-content !important;
  transform: none !important;
}

body.type-index #products-2 .slick-slide {
  display: block !important;
  float: none !important;
  width: var(--bb-product-card) !important;
  height: auto !important;
  margin: 0 var(--bb-product-gap) 0 0;
  scroll-snap-align: start;
}

body.type-index #products-2 .slick-slide:last-child {
  margin-right: 0;
}

/* Šípky natívneho slidera už nepotrebujeme — pás sa posúva prirodzene. */
body.type-index #products-2 > .slick-arrow,
body.type-index #products-2 .slick-dots {
  display: none !important;
}
}

body.type-index #products-2 .product,
body.type-index #products-2 .p {
  height: 100%;
}

body.type-index #products-2 .p {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.type-index #products-2 .image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}

body.type-index #products-2 .image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

body.type-index #products-2 .flags {
  top: 12px;
  right: auto;
  bottom: auto;
  left: 12px;
  z-index: 2;
}

body.type-index #products-2 .flag {
  padding: 6px 9px;
  border-radius: 0;
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.15;
  text-transform: uppercase;
}

body.type-index #products-2 .p-in {
  display: flex;
  min-height: 85px;
  flex-direction: column;
  padding: 16px 0 8px;
}

body.type-index #products-2 .p-in-in {
  min-width: 0;
}

body.type-index #products-2 .name {
  display: -webkit-box;
  min-height: 43px;
  overflow: hidden;
  color: #282624;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.018em;
  line-height: 1.32;
  text-decoration: none;
  white-space: normal !important;
  word-break: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.type-index #products-2 .ratings-wrapper {
  margin-top: 9px;
}

body.type-index #products-2 .availability {
  color: #328025;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

body.type-index #products-2 .availability span {
  color: inherit !important;
}

body.type-index #products-2 .p-bottom {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 15px;
  border-bottom: 1px solid #e6e4e1;
}

body.type-index #products-2 .p-bottom > div[data-micro="offer"] {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.type-index #products-2 .prices {
  order: 1;
}

body.type-index #products-2 .price,
body.type-index #products-2 .price strong {
  color: #282624;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}

body.type-index #products-2 .p-tools {
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
}

body.type-index #products-2 .p-tools .btn {
  display: inline-flex;
  min-width: 0 !important;
  min-height: auto !important;
  align-items: center;
  padding: 0 0 3px !important;
  border: 0 !important;
  border-bottom: 1px solid #282624 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #282624 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}

body.type-index #products-2 .p-tools .btn::after {
  content: " →" !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: currentColor !important;
  font-size: 16px;
  line-height: 1 !important;
  transition: transform .2s ease, color .2s ease;
}

body.type-index #products-2 .widget-parameter-wrapper {
  display: block;
  min-height: 38px;
  margin: 13px 0 0;
}

body.type-index #products-2 .widget-parameter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

body.type-index #products-2 .widget-parameter-value {
  margin: 0;
}

body.type-index #products-2 .widget-parameter-value a {
  display: inline-flex;
  min-width: 30px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid #d6d3cf;
  border-radius: 999px;
  color: #494541;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

body.type-index #products-2 .widget-parameter-more {
  display: none !important;
}

body.type-index #products-2 .p-code {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  body.type-index #products-2 .image:hover img {
    transform: scale(1.035);
  }

  body.type-index #products-2 .p:hover .p-tools .btn {
    border-bottom-color: #c63c36 !important;
    color: #c63c36 !important;
  }

  body.type-index #products-2 .p:hover .p-tools .btn::after {
    color: #c63c36 !important;
    transform: translateX(3px);
  }

  body.type-index #products-2 .widget-parameter-value a:hover {
    border-color: #282624;
    color: #282624;
  }
}

body.type-index #products-2 a:focus-visible {
  outline: 2px solid #c63c36;
  outline-offset: 3px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.type-index #products-2 {
    --bb-product-card: calc((100vw - 64px - 32px) / 3.35);
  }
}

@media (max-width: 767px) {
  body.type-index .homepage-products-heading-2 {
    width: calc(100% - 32px);
    margin-bottom: 24px;
    font-size: 32px;
  }

  body.type-index #products-2 {
    --bb-product-gap: 12px;
    --bb-product-card: calc((100vw - 44px) / 1.18);
    width: calc(100% - 32px);
    margin-bottom: 52px;
  }

  body.type-index #products-2 .p-in {
    min-height: 79px;
    padding-top: 14px;
  }

  body.type-index #products-2 .name {
    font-size: 15px;
  }

  body.type-index #products-2 .price,
  body.type-index #products-2 .price strong {
    font-size: 21px;
  }
}
