/* Nest-inspired homepage: featured categories, promo cards, product grid */
.nest {
  --nest-green: var(--themeColorOne, #3bb77e);
  --nest-green-dark: var(--themeColorHover, #29a56c);
  --nest-soft: var(--themeColorSoft, #def9ec);
  --nest-ink: #253d4e;
  --nest-muted: #7e7e7e;
  padding: 28px 0 8px;
  background: #fff;
  font-family: inherit;
}
.nest-block { margin-bottom: 28px; }
.nest-block--products { margin-top: 8px; margin-bottom: 10px; }

.nest-head {
  display: flex;
  align-items: center;
  gap: 18px 22px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.nest-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--nest-ink);
  letter-spacing: -0.03em;
}
.nest-tabs {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
  min-width: 0;
}
.nest-tabs--right { margin-left: auto; }
.nest-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--nest-muted);
  cursor: pointer;
  line-height: 1.2;
}
.nest-tab:hover,
.nest-tab.is-active { color: var(--nest-green); }
.nest-arrows {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.nest-tabs + .nest-arrows { margin-left: auto; }
.nest-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ececec;
  background: #fff;
  color: var(--nest-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.nest-arrow:hover {
  color: var(--nest-green);
  border-color: #d7f0e4;
}

.nest-cats {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.nest-cats::-webkit-scrollbar { display: none; }
.nest-cat {
  flex: 0 0 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--nest-bg, #f2fce4);
  border-radius: 16px;
  padding: 22px 12px 16px;
  min-height: 196px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.nest-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 61, 78, 0.08);
}
.nest-cat__img {
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--nest-green);
  font-size: 28px;
}
.nest-cat__img img {
  width: 100% !important;
  height: 100% !important;
  max-width: 104px;
  max-height: 104px;
  object-fit: contain !important;
  object-position: center center !important;
}
.nest-cat strong {
  display: block;
  color: var(--nest-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.nest-cat span {
  display: block;
  margin-top: 4px;
  color: var(--nest-muted);
  font-size: 13px;
  font-weight: 500;
}

.nest-banners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 34px;
}
.nest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 210px;
  padding: 24px 0 24px 26px;
  border-radius: 16px;
  background: var(--nest-bg, #f6f1e7);
  text-decoration: none;
  overflow: hidden;
}
.nest-banner__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  flex: 1 1 46%;
}
.nest-banner__copy strong {
  color: var(--nest-ink);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nest-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nest-green);
  color: #fff;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}
.nest-banner:hover .nest-banner__btn { background: var(--nest-green-dark); }
.nest-banner__img {
  flex: 0 0 46%;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 180px;
  margin: -24px 0;
}
.nest-banner__img img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.nest-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.nest-prod[hidden] { display: none !important; }
.nest .os-card {
  height: 100%;
  border: 1px solid #ececec;
  border-radius: 15px;
  padding: 16px 16px 18px;
  background: #fff;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.nest .os-card:hover {
  border-color: #bce3c9;
  box-shadow: 0 10px 28px rgba(37, 61, 78, 0.06);
}
.nest .os-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 12px;
  background: #f7f8f9;
  margin-bottom: 12px;
  overflow: hidden;
}
.nest .os-card__img > .os-zoom,
.nest .os-card__img > .os-flip,
.nest .os-card__img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nest .os-card__img img,
.nest .os-card__img video,
.nest .os-flip__front,
.nest .os-flip__back {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
.nest .os-card__cat {
  color: var(--nest-muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.nest .os-card__title {
  color: var(--nest-ink);
  font-size: 15px;
  font-weight: 700;
  min-height: 42px;
  line-height: 1.35;
}
.nest .os-card__title:hover { color: var(--nest-green); }
.nest .os-card__badge {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 4px 8px;
  top: 18px;
  left: 18px;
  background: var(--themeColorSale, #f74b81);
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}
.nest .os-card__price strong { color: var(--nest-green); font-size: 18px; }
.nest .os-card__price del { color: #adadad; }
.nest .os-card__btn,
.nest .os-btn.os-card__btn {
  background: var(--nest-soft, #def9ec) !important;
  color: var(--nest-green) !important;
  border-radius: 4px !important;
  font-weight: 700;
}
.nest .os-card:hover .os-card__btn,
.nest .os-card:hover .os-btn.os-card__btn {
  background: var(--nest-green) !important;
  color: #fff !important;
}

@media (max-width: 1199px) {
  .nest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nest-banner__copy strong { font-size: 22px; }
}
@media (max-width: 991px) {
  .nest-head h2 { font-size: 26px; }
  .nest-tabs--right { margin-left: 0; }
  .nest-banners { grid-template-columns: 1fr; }
  .nest-banner { min-height: 170px; }
  .nest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .nest { padding-top: 18px; }
  .nest-cat { flex-basis: 132px; min-height: 176px; }
  /* Rovnako ako na PC: text vľavo, obrázok vpravo */
  .nest-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 148px;
    padding: 16px 0 16px 16px;
  }
  .nest-banner__copy {
    flex: 1 1 52%;
    gap: 12px;
    padding: 0;
  }
  .nest-banner__copy strong {
    font-size: 18px;
  }
  .nest-banner__btn {
    padding: 7px 12px;
    font-size: 12px;
  }
  .nest-banner__img {
    flex: 0 0 42%;
    align-self: stretch;
    min-height: 120px;
    max-height: none;
    margin: -16px 0;
  }
}
