/**
 * bububu.sk — spodný obsah kategórie
 * Načítajte po globálnych a kategóriových štýloch.
 */

.bb-category-story {
  --bb-story-charcoal: #211f1d;
  --bb-story-paper: #f6f2ec;
  --bb-story-line: #deded9;
  --bb-story-ink: #171717;
  --bb-story-muted: #686864;
  margin-top: clamp(72px, 9vw, 144px);
  color: var(--bb-story-ink);
}

/*
 * Shoptet v desktopovej kategórii vkladá druhý popis do stĺpca napravo
 * od filtra. Blok preto najskôr rozšírime späť po okraje hlavného obsahu.
 */
@media (min-width: 992px) {
  .bb-category-story {
    width: calc(100vw - 64px);
    max-width: none;
    margin-left: calc(100% - (100vw - 64px));
  }
}

.bb-category-story,
.bb-category-story * {
  box-sizing: border-box;
}

.bb-category-story__visual {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: clamp(380px, 38vw, 560px);
  margin-right: 0;
  margin-left: 0;
  overflow: hidden;
  background: var(--bb-story-charcoal);
  color: #fff;
}

.bb-category-story__visual picture,
.bb-category-story__visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.bb-category-story__visual img {
  object-fit: cover;
  object-position: center;
}

.bb-category-story__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 19, 18, 0.7) 0%,
    rgba(20, 19, 18, 0.42) 42%,
    rgba(20, 19, 18, 0.08) 72%,
    rgba(20, 19, 18, 0) 100%
  );
}

.bb-category-story__visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(calc(100% - 48px), 1200px);
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) 0;
}

.bb-category-story__eyebrow,
.bb-category-guide__eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bb-category-story__eyebrow::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 12px 2px 0;
  border-radius: 50%;
  background: #c63c36;
  content: "";
}

.bb-category-story__visual-content h2 {
  max-width: 680px;
  margin: 0;
  color: inherit;
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.bb-category-story__visual-content > p:not(.bb-category-story__eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
}

.bb-category-story__visual-link {
  align-self: flex-start;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.bb-category-story__visual-link:hover,
.bb-category-story__visual-link:focus-visible,
.bb-category-guide a:hover,
.bb-category-guide a:focus-visible {
  color: #c63c36;
}

.bb-category-guide {
  width: min(calc(100% - 48px), 1200px);
  margin: 0 auto;
  padding: clamp(64px, 7vw, 96px) 0 clamp(80px, 8vw, 112px);
}

.bb-category-guide__intro {
  max-width: 760px;
}

.bb-category-guide__eyebrow {
  color: #c63c36;
}

.bb-category-guide__intro h2 {
  margin: 0;
  font-size: clamp(36px, 3.8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.bb-category-guide__intro > p:not(.bb-category-guide__eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--bb-story-muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.bb-category-guide__topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--bb-story-line);
}

.bb-category-guide__topic {
  padding-top: 30px;
}

.bb-category-guide__topic h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.bb-category-guide__topic p {
  margin: 22px 0 0;
  color: var(--bb-story-muted);
  font-size: 16px;
  line-height: 1.65;
}

.bb-category-guide__topic a {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--bb-story-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.bb-category-guide__topic a::after {
  margin-left: 7px;
  content: "→";
}

.bb-category-guide__help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-top: clamp(64px, 7vw, 88px);
  padding: clamp(32px, 4vw, 48px);
  border-radius: 7px;
  background: var(--bb-story-paper);
}

.bb-category-guide__help h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.bb-category-guide__help p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--bb-story-muted);
  font-size: 17px;
  line-height: 1.6;
}

.bb-category-guide__help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--bb-story-charcoal);
  border-radius: 7px;
  background: var(--bb-story-charcoal);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .bb-category-story {
    margin-top: 72px;
  }

  .bb-category-story__visual {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
  }

  .bb-category-guide__topics {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bb-category-guide__topic {
    padding: 30px 0;
    border-bottom: 1px solid var(--bb-story-line);
  }

  .bb-category-guide__help {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .bb-category-guide__help-link {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .bb-category-story__visual {
    min-height: clamp(440px, 118vw, 560px);
  }

  .bb-category-story__visual img {
    object-position: center;
  }

  .bb-category-story__shade {
    background: linear-gradient(
      0deg,
      rgba(20, 19, 18, 0.76) 0%,
      rgba(20, 19, 18, 0.38) 52%,
      rgba(20, 19, 18, 0.04) 100%
    );
  }

  .bb-category-story__visual-content {
    width: min(calc(100% - 40px), 1200px);
    padding: 36px 0;
  }

  .bb-category-story__visual-content h2 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .bb-category-story__visual-content > p:not(.bb-category-story__eyebrow) {
    margin-top: 20px;
    font-size: 17px;
  }

  .bb-category-story__visual-link {
    margin-top: 24px;
  }

  .bb-category-guide {
    width: min(calc(100% - 32px), 1440px);
    padding: 72px 0 88px;
  }

  .bb-category-guide__intro h2 {
    font-size: 38px;
  }

  .bb-category-guide__intro > p:not(.bb-category-guide__eyebrow) {
    margin-top: 20px;
    font-size: 17px;
  }

  .bb-category-guide__topics {
    margin-top: 52px;
  }

  .bb-category-guide__help {
    gap: 28px;
    margin-top: 64px;
    padding: 28px 22px;
  }

  .bb-category-guide__help-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-category-story__visual-link,
  .bb-category-guide a {
    scroll-behavior: auto;
  }
}
/* ==========================================================
   Kategória Značky — redakčný spodný blok
   Izolované cez .bb-category-story--brands
   ========================================================== */
.bb-category-story--brands {
  background: #fff;
}

.bb-category-story--brands .bb-brands {
  width: min(calc(100% - 48px), 1200px);
  margin: 0 auto;
  padding: clamp(64px, 7vw, 96px) 0 clamp(80px, 8vw, 112px);
}

.bb-brands__header {
  max-width: 760px;
}

.bb-brands__eyebrow,
.bb-brand-card__meta {
  margin: 0 0 14px;
  color: #c93d35;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bb-brands__header h2,
.bb-brands__help h2 {
  margin: 0;
  color: var(--bb-story-ink, #171717);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.03;
}

.bb-brands__header > p:last-child,
.bb-brands__help > div > p:last-child {
  margin: 24px 0 0;
  color: var(--bb-story-muted, #686864);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}

.bb-brands__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(42px, 5vw, 64px);
}

.bb-brand-card {
  overflow: hidden;
  border: 1px solid var(--bb-story-line, #deded9);
  border-radius: 9px;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.bb-brand-card > a {
  display: grid;
  grid-template-columns: minmax(155px, .72fr) minmax(0, 1.28fr);
  min-height: 310px;
  color: inherit;
  text-decoration: none;
}

.bb-brand-card__visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.bb-brand-card__visual span {
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: .95;
}

.bb-brand-card__visual small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bb-brand-card--joma .bb-brand-card__visual {
  color: #fff;
  background: #211f1d;
}

.bb-brand-card--froddo .bb-brand-card__visual {
  color: #211f1d;
  background: #ece6dc;
}

.bb-brand-card--kilpi .bb-brand-card__visual {
  color: #fff;
  background: #343834;
}

.bb-brand-card--new .bb-brand-card__visual {
  color: #211f1d;
  background: #f3f0eb;
}

.bb-brand-card__body {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.bb-brand-card__body h3 {
  margin: 0;
  color: var(--bb-story-ink, #171717);
  font-size: clamp(23px, 2.1vw, 28px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.bb-brand-card__body > p:not(.bb-brand-card__meta) {
  margin: 18px 0 0;
  color: var(--bb-story-muted, #686864);
  font-size: 16px;
  line-height: 1.6;
}

.bb-brand-card__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 24px;
  border-bottom: 1px solid currentColor;
  color: var(--bb-story-ink, #171717);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.bb-brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(33, 31, 29, .09);
}

.bb-brand-card a:focus-visible,
.bb-brands__help-link:focus-visible {
  outline: 2px solid #c93d35;
  outline-offset: 3px;
}

.bb-brands__help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  margin-top: clamp(64px, 7vw, 88px);
  padding: clamp(34px, 4vw, 54px);
  border-radius: 9px;
  background: var(--bb-story-paper, #f6f2ec);
}

.bb-brands__help h2 {
  font-size: clamp(30px, 3vw, 42px);
}

.bb-brands__help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 7px;
  color: #fff;
  background: #343230;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}

.bb-brands__help-link:hover {
  color: #fff;
  background: #211f1d;
}

@media (max-width: 991px) {
  .bb-brands__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .bb-category-story--brands .bb-brands {
    width: min(calc(100% - 32px), 1200px);
    padding: 52px 0 72px;
  }

  .bb-brand-card > a {
    grid-template-columns: 1fr;
  }

  .bb-brand-card__visual {
    min-height: 150px;
    padding: 24px;
  }

  .bb-brand-card__body {
    min-height: 270px;
    padding: 26px 24px;
  }

  .bb-brands__help {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    padding: 30px 24px;
  }

  .bb-brands__help-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-brand-card,
  .bb-brands__help-link {
    transition: none;
  }

  .bb-brand-card:hover {
    transform: none;
  }
}
