/* Biolica: category images from the uploaded Webasyst category logos. */
a.js-cat-link[href='/category/gribnye-kompleksy/'] .cat-tile_image {
  background: #f6f3eb url('https://nsgroup.webasyst.cloud/wa-data/public/shop/categories/41/00/41/images/0/0.384x384.png?v=1788070496') center / cover no-repeat;
}
a.js-cat-link[href='/category/funktsionalnye-griby/'] .cat-tile_image {
  background: #f6f3eb url('https://nsgroup.webasyst.cloud/wa-data/public/shop/categories/40/00/40/images/0/0.384x384.png?v=1788070586') center / cover no-repeat;
}
a.js-cat-link[href='/category/gribnye-kompleksy/'] .js-cat-item-image,
a.js-cat-link[href='/category/funktsionalnye-griby/'] .js-cat-item-image {
  opacity: 0;
}

/* Biolica: hero panel with the complete approved product render. */
.homepage-text {
  overflow: hidden;
  width: min(1280px, calc(100% - 48px)) !important;
  max-width: 1280px !important;
  min-height: 390px;
  margin: 32px auto !important;
  border-radius: 20px;
  background-color: #153b39;
  background-image: linear-gradient(90deg, rgba(21,59,57,.70) 0%, rgba(21,59,57,.42) 38%, rgba(21,59,57,.08) 72%, rgba(21,59,57,0) 100%), url('/wa-data/public/site/themes/free/img/promoone.png?v=1788071511');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.homepage-text .container {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52% 48px 56px !important;
}
.homepage-text .title,
.homepage-text p {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

/* Biolica: article covers in the homepage knowledge cards. */
.home-prev-news_item__wrap {
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(29, 41, 40, .10);
}
.home-prev-news_item__wrap::before {
  content: '';
  display: block;
  height: 168px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.home-prev-news_item__wrap:has(a[href*='kak-proveryat-gribnoy-produkt-syryo-forma-massa-i-dokumenty'])::before {
  background-image: url('/wa-data/public/blog/img/article-01-proverka-produkta.png');
}
.home-prev-news_item__wrap:has(a[href*='chaga-sostav-i-granitsy-laboratornogo-pokazatelya'])::before {
  background-image: url('/wa-data/public/blog/img/article-02-chaga-sostav.png');
}
.home-prev-news_item__wrap:has(a[href*='meytake-i-x-fraktsiya-molekula-model-preparat'])::before {
  background-image: url('/wa-data/public/blog/img/article-03-maitake-x-fraction.png');
}
.home-prev-news_item__wrap:has(a[href*='reyshi-polisakharidy-i-triterpeny-bez-lishnikh-obeshchaniy'])::before {
  background-image: url('/wa-data/public/blog/img/article-04-reishi-polysaccharides.png');
}
.home-prev-news_item__wrap:has(a[href*='shiitake-i-lentinan-kak-chitat-yaponskiy-klinicheskiy-kontekst'])::before {
  background-image: url('/wa-data/public/blog/img/article-05-shiitake-lentinan.png');
}
.home-prev-news_item__wrap:has(a[href*='trametes-psk-i-krestin-preparat'])::before {
  background-image: url('/wa-data/public/blog/img/article-06-trametes-psk-krestin.png');
}
.home-prev-news_item__wrap:has(a[href*='yezhovik-i-erinatsiny-chto-imenno-izuchali-u-lyudey'])::before {
  background-image: url('/wa-data/public/blog/img/article-07-lions-mane-erinacines.png');
}
.home-prev-news_item__wrap:has(a[href*='zernomitseliy-chto-eto-i-kak-chitat-sostav-produkta'])::before {
  background-image: url('/wa-data/public/blog/img/article-08-grain-mycelium.png');
}
.home-prev-news_item-info {
  padding: 14px 18px 18px;
}
@media (max-width: 640px) {
  .homepage-text {
    width: calc(100% - 24px);
    max-width: none;
    min-height: 390px;
    margin: 16px 12px;
    border-radius: 16px;
    background-image: linear-gradient(180deg, rgba(21,59,57,.68) 0%, rgba(21,59,57,.38) 58%, rgba(21,59,57,.08) 100%), url('/wa-data/public/site/themes/free/img/promoone.png?v=1788071511');
    background-position: center bottom;
    background-size: auto 100%;
  }
  .homepage-text .container {
    min-height: 390px;
    padding: 34px 24px 190px !important;
  }
  .home-prev-news_item__wrap::before {
    height: 170px;
  }
}

/* Biolica: product cards show the first image only; hover must not switch the product photo. */
.Product-grid.js-Product-grid .grid-gallery__list,
.Product-grid.js-Product-grid .dotted-img {
  display: none !important;
}


/* Biolica: homepage knowledge cards show image and title only. */
.home-prev-news_item-text,
.home-prev-news_item-date,
.home-prev-news_item-more {
  display: none !important;
}
.home-prev-news_item-info {
  padding: 18px 20px 22px !important;
}
.home-prev-news_item-name,
.home-prev-news_item-name a {
  display: block;
  color: #1d2928 !important;
  line-height: 1.35;
}


/* Biolica: product names centered; rating stars are not shown on the homepage. */
.Product-grid.js-Product-grid .Product-grid_name,
.Product-grid.js-Product-grid .Product-grid_name a {
  text-align: center !important;
}
.Product-grid.js-Product-grid .rating {
  display: none !important;
}

/* Biolica UI polish: prevent clipped knowledge-card titles. */
.home-prev-news_item-name,
.home-prev-news_item-name a {
    height: auto !important;
    min-height: 47px;
}

.home-prev-news_item-name a {
    display: block;
    overflow: visible !important;
    line-height: 1.2;
}

.home-prev-news_item,
.home-prev-news_item-info {
    height: auto !important;
    min-height: 107px;
    box-sizing: border-box;
}

/* Give product tiles a clear, warm-white surface against the shop background. */
.Product-grid {
    box-sizing: border-box;
    background: #fffefa;
    border: 1px solid rgba(23, 87, 82, 0.10);
    border-radius: 18px;
    padding: 12px 12px 10px;
    box-shadow: 0 8px 20px rgba(22, 67, 63, 0.08);
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.Product-grid:hover {
    box-shadow: 0 12px 26px rgba(22, 67, 63, 0.14);
    transform: translateY(-2px);
}

.Product-grid .product__box--image,
.Product-grid .Product-grid_img {
    border-radius: 14px;
    overflow: hidden;
}

.Product-grid .Product-grid_bottom {
    margin-top: 4px;
}

/* Keep the carousel width stable: spacing belongs inside existing layout, not in the tile width calculation. */
.Product-grid {
    padding: 0 0 8px;
}

@media (min-width: 700px) {
    .Product-grid {
        width: 200px !important;
    }
}


/* Biolica: restore carousel card width against the -four grid rule. */
.products-grid-outer .owl-carousel .Product-grid.-four {
  width: 200px !important;
  min-width: 200px !important;
  flex: 0 0 200px !important;
}
@media (max-width: 699px) and (min-width: 450px) {
  .products-grid-outer .owl-carousel .Product-grid.-four {
    width: 173px !important;
    min-width: 173px !important;
    flex-basis: 173px !important;
  }
}
@media (max-width: 449px) {
  .products-grid-outer .owl-carousel .Product-grid.-four {
    width: 100% !important;
    min-width: 100% !important;
    flex-basis: 100% !important;
  }
}


/* Biolica: allow long product names to wrap without clipping. */
.Product-grid.js-Product-grid .Product-grid_name,
.Product-grid.js-Product-grid .Product-grid_name a {
  height: auto !important;
  min-height: 2.7rem;
  overflow: visible !important;
  line-height: 1.3;
}
