/* ============================================================
   BRILED.cz – HP Product Tiles
   Bílý background, IDENTICKÝ styl jako body.type-category #products
   ============================================================ */

/* ── Section — full width, bílá ──────────────────────────── */
#brb-tiles {
  background: #ffffff;
  margin-top: 0;
  padding-top: 27px;
  padding-bottom: 6px;
  box-sizing: border-box;
  width: 100%;
}

/* ── Inner — přepis VSE V93.css (tam je display:grid na .inner) ── */
#brb-tiles .brb-tiles-inner {
  display: block !important;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ── Nadpis ───────────────────────────────────────────────── */
#brb-tiles .brb-tiles-heading::before {
  content: "Bestsellery jara 2026";
  display: block;
  width: fit-content;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #D61118;
  padding-right: 52px;
  margin-bottom: 8px;
  background-image: linear-gradient(#D61118, #D61118);
  background-size: 40px 1px;
  background-repeat: no-repeat;
  background-position: right center;
}

#brb-tiles .brb-tiles-heading {
  font-family: 'Bebas Neue', Impact, Arial, sans-serif;
  font-size: clamp(27.2px, 3.28vw, 46.4px);
  font-weight: 400;
  color: #1D1D1B;
  text-align: left;
  line-height: 0.98;
  margin: 0 0 8px 0;
  padding: 0 0 0 65px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* ── Products grid ────────────────────────────────────────── */
#brb-tiles .brb-tiles-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 26px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 40px;
}

/* ── Reset Bootstrap col-* floats/widths ──────────────────── */
#brb-tiles .brb-tiles-products > .product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* ── Inner ────────────────────────────────────────────────── */
#brb-tiles .product .inner {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 17px;
  box-sizing: border-box;
}

/* ── Obrázek — bez hover efektu ──────────────────────────── */
#brb-tiles .product .img {
  display: block;
  margin-bottom: 14px;
}

#brb-tiles .product .img a {
  display: block;
}

#brb-tiles .product .img img {
  width: 80%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
  transform: none !important;
  transition: none !important;
}

#brb-tiles .product .img img:hover {
  transform: none !important;
  transition: none !important;
}

/* ── Popis ────────────────────────────────────────────────── */
#brb-tiles .product .descr {
  display: block;
  padding: 0;
  text-align: center;
}

/* h3 reset — brání výchozím browser stylům (margin, font-size) z přebití a.name */
#brb-tiles .product .descr a.name h3.brb-product-name {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

#brb-tiles .product .descr a.name {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1D1D1B !important;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  margin: 0 auto 5px;
  max-width: 60%;
  transition: color 0.2s ease;
}

#brb-tiles .product .descr a.name:hover {
  color: #D61118 !important;
}

/* ── Ceny ─────────────────────────────────────────────────── */
#brb-tiles .product .prices.row {
  margin: 0;
}

#brb-tiles .product .prices .col-xs-8,
#brb-tiles .product .prices .col-lg-12 {
  float: none !important;
  width: 100% !important;
  padding: 0;
  text-align: center;
}

#brb-tiles .product .price-additional {
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  color: #aaaaaa;
  text-align: center;
}

#brb-tiles .product .brb-product-note {
  margin: 0 0 6px;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #D61118;
  text-align: center;
}

#brb-tiles .product .price.price-final {
  text-align: center;
}

#brb-tiles .product .price.price-final strong {
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #D61118;
}

#brb-tiles .product .pr-list-unit {
  font-size: 13px;
  font-weight: 700;
  color: #D61118;
}

/* ── CTA – Zobrazit detail ────────────────────────────────── */
#brb-tiles .brb-product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0;
  padding: 11px 22px;
  background: #D61118;
  color: #ffffff;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  border: none;
  border: none;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  box-sizing: border-box;
  min-height: 36px;
  touch-action: manipulation;
}

#brb-tiles .brb-product-cta:hover {
  background: #b80e14;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(214, 17, 24, 0.42);
  color: #ffffff;
  text-decoration: none;
}

#brb-tiles .brb-product-cta:focus-visible {
  outline: 2px solid #D61118;
  outline-offset: 2px;
}

/* Desktop: align tiles content with the same visual edges as footer containers */
@media (min-width: 992px) {
  #brb-tiles {
    padding-left: 0;
    padding-right: 0;
  }

  #brb-tiles .brb-tiles-inner {
    width: var(--brb-footer-width, 100%);
    max-width: none;
    margin-left: var(--brb-footer-left, auto);
    margin-right: var(--brb-footer-right, auto);
    padding-left: 0;
    padding-right: 0;
  }

  #brb-tiles .brb-tiles-heading {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    text-align: left;
  }

  #brb-tiles .brb-tiles-products {
    width: calc(100% + var(--brb-products-left-bleed, 0px) + var(--brb-products-right-bleed, 0px));
    margin-left: calc(var(--brb-products-left-bleed, 0px) * -1);
    margin-right: calc(var(--brb-products-right-bleed, 0px) * -1);
    grid-template-columns: repeat(4, minmax(190px, 238px));
    justify-content: space-between;
    column-gap: clamp(44px, 6vw, 96px);
    row-gap: 32px;
  }
}

/* ── Tablet < 992px — 2 sloupce ──────────────────────────── */
@media (max-width: 991px) {
  #brb-tiles .brb-tiles-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* ── Mobile < 768px ───────────────────────────────────────── */
@media (max-width: 767px) {
  #brb-tiles {
    padding-top: 17px;
    padding-bottom: 12px;
  }

  #brb-tiles .brb-tiles-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #brb-tiles .product .inner {
    padding: 8px 6px;
  }

  #brb-tiles .product .img img {
    width: 90%;
    aspect-ratio: 1 / 1;
  }

  #brb-tiles .brb-product-cta {
    max-width: 100%;
    width: 100%;
    padding: 8px 6px;
    min-height: 40px;
    font-size: 11px;
  }

  #brb-tiles .brb-tiles-heading {
    text-align: left;
    padding-left: 0;
  }

  #brb-tiles .brb-tiles-heading::before {
    text-align: left;
  }
}
