/* ==========================================================================
   MC-Kuchnie — strona główna (makieta 2a, paleta 3d)
   Ładowany na kontrolerze index (index.tpl, block 'head'), PO _tokens
   i _components. Układ sekcji strony głównej powstaje w iqitelementor
   (builder w panelu) — ten plik daje:
   1) natychmiastowy skin istniejących sekcji (nagłówki, karuzele, przyciski),
   2) klasy mck-* do przypisania sekcjom w builderze wg makiety 2a
      (instrukcja: _dokumentacja/przebudowa_2026/WDROZENIE_KARTA_PRODUKTU.md).
   Zasady: bez !important, kolory tylko z tokenów.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Skin natychmiastowy — typografia sekcji i przyciski
   -------------------------------------------------------------------------- */
/* kotwica #content.page-home: wygrywa z per-widgetowymi regułami elementora
   (.elementor-element-xxx .elementor-heading-title) bez !important */
#content.page-home .section-title,
#content.page-home .elementor-heading-title.section-title,
#content.page-home h2.section-title span {
  font-family: var(--mck-font-head);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--mck-text);
  text-transform: none;
  background: none;
}
#content.page-home .section-title::after { background: var(--mck-accent); }

.page-home .elementor-button,
.page-home .btn-primary {
  border-radius: var(--mck-radius);
}

/* odstęp rytmiczny między sekcjami najwyższego poziomu */
.page-home > .elementor-section,
.page-home .elementor > .elementor-section,
.page-home section.elementor-section.elementor-top-section {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   2. Komponenty 2a — klasy do przypisania sekcjom w builderze
   -------------------------------------------------------------------------- */

/* sekcja bazowa: pionowy oddech 64px */
.page-home .mck-sec { padding-top: var(--mck-sp-7); padding-bottom: var(--mck-sp-7); }
.page-home .mck-sec--surface { background: var(--mck-surface); }
.page-home .mck-sec--tight { padding-top: var(--mck-sp-5); padding-bottom: var(--mck-sp-5); }

/* HERO 1.25fr/1fr na szarym tle: kicker, h1 48px, lead, 2 przyciski, foto */
.page-home .mck-hero-home {
  background: var(--mck-surface);
  border-radius: var(--mck-radius);
}
.page-home .mck-hero-home .elementor-container,
.page-home .mck-hero-home__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: var(--mck-sp-6);
}
.page-home .mck-hero-home__kicker,
.page-home .mck-hero-home .mck-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mck-muted);
}
.page-home .mck-hero-home h1,
.page-home .mck-hero-home .h1 {
  font-family: var(--mck-font-head);
  font-size: 48px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--mck-text);
  text-wrap: balance;
}
.page-home .mck-hero-home__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mck-text-2);
  max-width: 52ch;
}
.page-home .mck-hero-home img { object-fit: contain; max-width: 100%; height: auto; }
.page-home .mck-hero-home .mck-btns { display: flex; gap: var(--mck-sp-3); flex-wrap: wrap; }

/* PAS ARGUMENTÓW: 4 kolumny oddzielone liniami */
.page-home .mck-args .elementor-container,
.page-home .mck-args__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.page-home .mck-args .elementor-column,
.page-home .mck-args__item {
  border-left: 1px solid var(--mck-line);
  padding: var(--mck-sp-4) var(--mck-sp-5);
}
.page-home .mck-args .elementor-column:first-child,
.page-home .mck-args__item:first-child { border-left: 0; }
.page-home .mck-args h3,
.page-home .mck-args__title {
  font-family: var(--mck-font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--mck-text);
  margin: 0 0 4px;
}
.page-home .mck-args p,
.page-home .mck-args__desc { font-size: 14px; line-height: 1.5; color: var(--mck-text-2); margin: 0; }

/* KATEGORIE: kafle 4 kolumny — zdjęcie 150px + nazwa + licznik */
.page-home .mck-cats .elementor-container,
.page-home .mck-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--mck-sp-4);
}
.page-home .mck-cats a { text-decoration: none; }
.page-home .mck-cats .mck-cat-tile,
.page-home .mck-cats .elementor-column {
  background: #fff;
  border: 1px solid var(--mck-line);
  border-radius: var(--mck-radius);
  padding: var(--mck-sp-4);
  text-align: center;
}
.page-home .mck-cats .mck-cat-tile:hover { border-color: var(--mck-ink); }
.page-home .mck-cats img {
  height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto var(--mck-sp-3);
}
.page-home .mck-cats .mck-cat-tile__name,
.page-home .mck-cats h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--mck-text);
  margin: 0 0 2px;
}
.page-home .mck-cats .mck-cat-tile__count { font-size: 13px; color: var(--mck-muted); }

/* BESTSELLERY na --mck-surface + zakładki: aktywna podkreślona czerwienią */
.page-home .mck-tabs-nav {
  display: flex;
  gap: var(--mck-sp-5);
  border-bottom: 1px solid var(--mck-line);
  margin-bottom: var(--mck-sp-5);
}
.page-home .mck-tabs-nav a,
.page-home .mck-sec--surface .nav-tabs .nav-link {
  font-size: 15px;
  color: var(--mck-muted-2);
  padding: 12px 0;
  border: 0;
  background: none;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.page-home .mck-tabs-nav a.mck-active,
.page-home .mck-tabs-nav a:hover,
.page-home .mck-sec--surface .nav-tabs .nav-link.active {
  color: var(--mck-text);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--mck-accent);
}

/* MARKI: rząd 6 logotypów, równe 72px, skala szarości -> kolor na hover */
.page-home .mck-brands .elementor-container,
.page-home .mck-brands__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--mck-sp-4);
  align-items: stretch;
}
.page-home .mck-brands a,
.page-home .mck-brands .elementor-column,
.page-home .mck-brands__item {
  border: 1px solid var(--mck-line);
  border-radius: var(--mck-radius);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #fff;
}
.page-home .mck-brands img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .15s ease, opacity .15s ease;
}
.page-home .mck-brands a:hover img,
.page-home .mck-brands .elementor-column:hover img { filter: grayscale(0); opacity: 1; }

/* --------------------------------------------------------------------------
   3. Responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .page-home .mck-hero-home h1, .page-home .mck-hero-home .h1 { font-size: 38px; }
  .page-home .mck-cats .elementor-container, .page-home .mck-cats__grid { grid-template-columns: repeat(4, 1fr); }
  .page-home .mck-brands .elementor-container, .page-home .mck-brands__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 899px) {
  .page-home .mck-hero-home .elementor-container, .page-home .mck-hero-home__grid { grid-template-columns: 1fr; }
  .page-home .mck-args .elementor-container, .page-home .mck-args__grid { grid-template-columns: 1fr 1fr; }
  .page-home .mck-args .elementor-column, .page-home .mck-args__item { border-left: 0; border-top: 1px solid var(--mck-line); }
  .page-home .mck-cats .elementor-container, .page-home .mck-cats__grid { grid-template-columns: repeat(2, 1fr); }
  .page-home .mck-sec { padding-top: var(--mck-sp-6); padding-bottom: var(--mck-sp-6); }
}
@media (max-width: 599px) {
  .page-home .mck-hero-home h1, .page-home .mck-hero-home .h1 { font-size: 28px; }
  .page-home .mck-hero-home .mck-btns a { width: 100%; }
  .page-home .mck-brands .elementor-container, .page-home .mck-brands__grid { grid-template-columns: repeat(2, 1fr); }
  .page-home .section-title, .page-home .elementor-heading-title.section-title { font-size: 24px; }
}
