/* ==========================================================
   BEORGANIC Mobile Restore v5 (safe)
   Scope: mobil only. Desktop bez zmeny.
   ========================================================== */

/* 1) Sekcia "Prečo si vybrať BeOrganic" bola v base CSS skrytá pod 900px */
@media (max-width: 900px) {
  #page_home_out .bo-why-clean-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* 2) Mobil/tablet: vycentrovat "Vyberáme pre vás" + zachovat citelny layout */
@media (max-width: 900px) {
  #page_home_out .bo-why-clean-footer {
    text-align: center !important;
    margin-top: 14px !important;
  }

  #page_home_out .bo-why-clean-footer .bo-why-clean-p-foot {
    text-align: center !important;
    margin: 0 auto 8px !important;
  }

  #page_home_out .bo-why-clean-footer .bo-why-clean-p-foot > span {
    display: block !important;
    text-align: center !important;
  }

  #page_home_out .bo-why-clean-footer > p:first-child {
    display: none !important;
  }

  #page_home_out .bo-why-clean-footer .bo-why-clean-p-foot:nth-child(2),
  #page_home_out .bo-why-clean-footer .bo-why-clean-p-foot:nth-child(2) > span {
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
  }

  #page_home_out .bo-why-clean-footer .bo-why-clean-p-foot:nth-child(3),
  #page_home_out .bo-why-clean-footer .bo-why-clean-p-foot:nth-child(3) > span {
    font-size: 15px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    margin: 0 0 10px 0 !important;
  }

  /* 2b) Prečo si vybrať BeOrganic - mobilne male obdlzniky 2x2 */
  #page_home_out .bo-why-clean-section {
    padding: 22px 12px !important;
  }

  #page_home_out .bo-why-clean-header {
    margin-bottom: 12px !important;
  }

  #page_home_out .bo-why-clean-h2 {
    font-size: 26px !important;
    line-height: 1.22 !important;
    margin-bottom: 8px !important;
  }

  #page_home_out .bo-why-clean-sub {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
  }

  #page_home_out .bo-why-clean-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  #page_home_out .bo-why-clean-card {
    flex: 0 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    min-width: 0 !important;
    padding: 12px 10px !important;
    border-radius: 14px !important;
    min-height: 0 !important;
    text-align: center !important;
  }

  #page_home_out .bo-why-clean-card img {
    width: 38px !important;
    height: 38px !important;
    margin: 0 auto 8px !important;
  }

  #page_home_out .bo-why-clean-h3 {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin: 0 0 6px 0 !important;
  }

  #page_home_out .bo-why-clean-p {
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* 2c) Novi v prirodnej kozmetike - kompaktna karta */
  #page_home_out .bo-guide-section {
    padding: 20px 12px !important;
  }

  #page_home_out .bo-guide-wrap {
    padding: 0 !important;
  }

  #page_home_out .bo-guide-card {
    border-radius: 16px !important;
    padding: 20px 14px !important;
  }

  #page_home_out .bo-guide-h2 {
    font-size: 24px !important;
    line-height: 1.12 !important;
    margin: 0 0 10px 0 !important;
  }

  #page_home_out .bo-guide-p {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 auto !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  #page_home_out .bo-guide-btn-wrap {
    margin-top: 12px !important;
  }

  #page_home_out .bo-guide-btn-wrap > a {
    width: 100% !important;
    max-width: 280px !important;
    font-size: 14px !important;
    padding: 12px 18px !important;
    border-radius: 999px !important;
  }

  /* 2d) Blog - vacsie mobilne karty (podobne velkosti ako produkty) */
  #page_home_out .bo-blog-section {
    padding: 22px 12px !important;
  }

  #page_home_out .bo-blog-header {
    margin-bottom: 12px !important;
  }

  #page_home_out .bo-blog-title {
    font-size: 26px !important;
    line-height: 1.22 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }

  #page_home_out .bo-blog-subtitle {
    font-size: 15px !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  #page_home_out .bo-blog-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 14px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  #page_home_out .bo-blog-list::-webkit-scrollbar {
    display: none !important;
  }

  #page_home_out .bo-blog-item {
    flex: 0 0 calc(48% - 6px) !important;
    width: calc(48% - 6px) !important;
    min-width: calc(48% - 6px) !important;
    max-width: calc(48% - 6px) !important;
    scroll-snap-align: start !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  #page_home_out .bo-blog-img {
    aspect-ratio: 1 / 1 !important;
  }

  #page_home_out .bo-blog-text {
    padding: 10px 10px 12px !important;
  }

  #page_home_out .bo-blog-name {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  #page_home_out .bo-blog-desc {
    font-size: 14px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* 3) Recenzie: cely text citelny na mobilu */
  #page_home_out .bo-review-section {
    overflow: visible !important;
  }

  #page_home_out .bo-review-section .bors-btn,
  #page_home_out .bo-review-section .bors-dots,
  #page_home_out .bo-review-section #borsDots {
    display: none !important;
    pointer-events: none !important;
  }

  #page_home_out .bo-review-section .bors-outer {
    display: block !important;
    overflow: visible !important;
    gap: 0 !important;
  }

  #page_home_out .bo-review-section .bors-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #page_home_out .bo-review-section .bors-track,
  #page_home_out .bo-review-section #borsTrack {
    display: flex !important;
    gap: 10px !important;
    width: max-content !important;
    min-width: 100% !important;
    transform: none !important;
    transition: none !important;
  }

  #page_home_out .bo-review-section .bors-card,
  #page_home_out .bo-review-section .bors-card[style] {
    box-sizing: border-box !important;
    flex: 0 0 calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    min-width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-right: 0 !important;
    padding: 16px !important;
    scroll-snap-align: start !important;
  }

  #page_home_out .bo-review-section .bors-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
    display: block !important;
    overflow: visible !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

@media (max-width: 480px) {
  #page_home_out .bo-blog-item {
    flex: 0 0 calc(48% - 6px) !important;
    width: calc(48% - 6px) !important;
    min-width: calc(48% - 6px) !important;
    max-width: calc(48% - 6px) !important;
  }
}

/* Tablet mobil viewporty (napr. 769-900) */
@media (max-width: 900px) {
  #page_home_out .bo-review-section .bors-btn,
  #page_home_out .bo-review-section .bors-dots,
  #page_home_out .bo-review-section #borsDots {
    display: none !important;
    pointer-events: none !important;
  }

  #page_home_out .bo-review-section .bors-track,
  #page_home_out .bo-review-section #borsTrack {
    transform: none !important;
    transition: none !important;
  }
}
