/* =======================================================================
   HOME + LISTING (mobile + homepage only)
======================================================================= */

/* =========================================================
   HOME SEO BLOCK
========================================================= */

.home-seo-block {
  margin: 28px 0 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #444;
}

.home-seo-block h1 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
  color: #333;
}

.home-seo-block h2 {
  margin: 0.8rem 0 0.3rem;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
}

.home-seo-block h3 {
  margin: 0.2rem 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.home-seo-block p {
  margin: 0.25rem 0 0.4rem;
  font-size: 0.95rem;
  color: #374151;
}

.seo-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

/* =========================================================
   HOME BANER (compact info)
========================================================= */

.home-compact-info {
  background: #f3f2f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0 14px;
}

/* =========================================================
   MOBILE LISTING – GRID 2 kolumny
========================================================= */

@media (max-width: 767px) {

  .products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -8px;
    margin-right: -8px;
  }

  .products .js-product {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
  }

  .product-title {
    font-size: 13px;
    line-height: 1.25;
    margin: 10px 0 6px;
    min-height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-price-and-shipping {
    margin-top: 6px;
    min-height: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
  }
}

/* =========================================================
   MOBILE – stabilne miniatury (CLS fix)
========================================================= */

@media (max-width: 767px) {

  body#index .product-miniature .product-thumbnail,
  body#category .product-miniature .product-thumbnail,
  body#search .product-miniature .product-thumbnail {
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
    overflow: hidden;
    border-radius: 10px;
  }

  body#index .product-miniature img,
  body#category .product-miniature img,
  body#search .product-miniature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body#index .product-miniature,
  body#category .product-miniature,
  body#search .product-miniature {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
  }
}

/* =========================================================
   HOMEPAGE spacing fix
========================================================= */

body#index .featured-products {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

body#index .products-section-title {
  margin-bottom: 8px !important;
}