/* === LOVELLA – titulka: blok „Vítejte v našem obchodě“ jako 5 karet, celé krátké texty (návrh v2, 28. 10. 2026) ===
   Nahrát na FTP: /user/documents/css/uvod-karty-v2.css
   Záhlaví (pod main-fixed.css): <link href="/user/documents/css/uvod-karty-v2.css?v=1" rel="stylesheet" />
   Vrácení: smazat ten řádek <link>.
   Platí jen pro titulku (.welcome). Stejný text na detailu produktu zůstává beze změny.
   Počítá s krátkými texty z uvodni-text-kratky.html (vložit do uvítacího textu v adminu) – texty se nezkracují.
   Opravuje i nadpis: main-fixed.css skrývá `.welcome h1`, ale Shoptet ho dnes vypisuje jako `div.h1`.
*/
.homepage-box.welcome-wrapper { margin: 0 !important; padding: 0 0 20px !important; }
.welcome { margin-top: 0 !important; }

/* nadpis ve stylu GANGY / OBLÍBENÉ: „Proč Lovella“ místo „Vítejte v našem obchodě“ */
.welcome > .h1 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 40px 0 30px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: center;
  background: linear-gradient(#cfcfcf, #cfcfcf) center / 100% 1px no-repeat;
}
.welcome > .h1::after {
  content: "Proč Lovella";
  display: inline-block;
  padding: 0 20px;
  background: #fff;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .welcome > .h1 { margin: 80px 0 50px !important; }
  .welcome > .h1::after { font-size: 40px; }
}

/* 5 karet vedle sebe */
.welcome .detail-description {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: none !important;
}
.welcome .detail-description__section,
.welcome .detail-description__section:nth-child(even) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 18px 16px 20px;
  background: #faf5f0;
  border-radius: 12px;
}
.welcome .detail-description__image,
.welcome .detail-description__section:nth-child(even) .detail-description__image {
  margin: 0 0 14px !important;
  max-width: none !important;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome .detail-description__image img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.welcome .detail-description__content { flex: 1; max-width: none !important; }
.welcome .detail-description h2 {
  margin: 0 0 8px !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  text-align: center;
}
.welcome .detail-description p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #555;
  text-align: center;
}

/* menší počítač / tablet a mobil: karty vodorovně posuvné */
@media (max-width: 1023px) {
  .welcome .detail-description {
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -10px !important;
    padding: 0 10px 8px;
    -webkit-overflow-scrolling: touch;
  }
  .welcome .detail-description__section,
  .welcome .detail-description__section:nth-child(even) {
    flex: 0 0 38% !important;
    scroll-snap-align: start;
  }
}
@media (max-width: 767px) {
  .welcome .detail-description__section,
  .welcome .detail-description__section:nth-child(even) { flex-basis: 78% !important; }
  .welcome .detail-description__image { height: 100px; }
  .welcome .detail-description__image img { max-height: 100px; }
}
