/* =========================================================
ZÁKLADNÍ ÚPRAVY ŠABLONY / INPAGE
========================================================= */






/* zvětší logo */
.navbar__brand-logo-img { max-width: 13rem; max-height: 6rem; }

/* zarovná ikony (obrázky) v H3 k textu */
.section-content h3 { white-space: normal; /* pro jistotu, kdyby tam bylo nowrap */ }
.section-content h3 img {
  display: inline-block !important;
  vertical-align: middle !important;
  margin-right: 6px;
  max-width: 24px;
  height: auto;
}

/* přepíše barvu paty */
#footer {
  background-color: #333 !important; /* tmavě šedé pozadí */
  color: #fff !important;           /* bílý text */
}

/* ošetří zvětšený banner */
.motive, .motive.fullscreen { height: 22rem !important; /* desktop */ }
@media (max-width: 992px) { .motive, .motive.fullscreen { height: 14rem !important; /* tablety */ } }
@media (max-width: 576px) { .motive, .motive.fullscreen { height: 9rem !important;  /* mobily */ } }

/* fade-in pozadí banneru (pokud přidáváš .loaded) */
.motive__background{
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.motive__background.loaded{ opacity: 1; }

/* zarovná sloupce */
.section-2-col-left-text > .row{ align-items: flex-start !important; }

/* POZOR: původní .section-content img mohl rozbít inline ikony apod.
-> ZÚŽENO jen na obrázky, které jsou samostatně v obsahu sekcí. */
.section-content > img,
.section-content p > img:only-child,
.section-content figure img{
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
Camledian – univerzální styly stránek (scoped do .cam-page)
========================================================= */

/* 1) Layout stránky (šířka + typografie) */
.cam-page{
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 16px;

  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
}

@media (min-width: 1200px){ .cam-page{ max-width: 1240px; } }
@media (min-width: 1500px){ .cam-page{ max-width: 1400px; } }

/* 2) Typografie – nadpisy a text */
.cam-page h1{
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
}
.cam-page h2{
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}
.cam-page h3{
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.cam-page p{ margin: 0 0 12px; }
.cam-page ul,
.cam-page ol{
  margin: 0 0 14px 20px;
  padding: 0;
}
.cam-page li{ margin: 4px 0; }

/* 3) Karty a boxy */
.cam-card{
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  margin: 0 0 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cam-card--soft{ background: #fafafa; }

.cam-box{
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #fafafa;
  padding: 12px;
  transition: box-shadow .18s ease, border-color .18s ease;
}

/* 4) Hero – zrušení velkých mezer (override šablon) */
.cam-page .cam-card.cam-card--soft h1{
  margin: 0 0 4px !important;
  line-height: 1.12 !important;
}
.cam-page .cam-card.cam-card--soft p{
  margin: 0 0 10px !important;
}

/* Mobilní typografie hero */
@media (max-width: 480px){
  .cam-page .cam-card.cam-card--soft h1{
    font-size: 24px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.2px;
  }
  .cam-page .cam-card.cam-card--soft p{ font-size: 15px !important; }
}

/* 5) Pilulky (hero benefity) */
.cam-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  margin: 6px 10px 0 0;
  padding: 6px 10px;

  border: 1px solid #e1e1e1;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;

  white-space: nowrap;
  animation: camFadeUp .45s ease forwards;
  opacity: 0;

  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

/* Wrapper pro pilulky (doporučeno: <div class="cam-pills">…</div>) */
.cam-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* Mobil: pilulky vždy 2 vedle sebe */
@media (max-width: 480px){
  .cam-card.cam-card--soft{ text-align: center; }

  .cam-pills{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cam-pills .cam-pill{
    width: 100%;
    margin: 0;
    text-align: center;
    white-space: normal;
  }

  .cam-pills .cam-pill:last-child:nth-child(odd){
    grid-column: 1 / -1;
    justify-self: center;
  }

  /* Fallback bez wrapperu .cam-pills */
  .cam-card.cam-card--soft > div:not(.cam-card):not(.cam-box){
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .cam-card.cam-card--soft > div:not(.cam-card):not(.cam-box) .cam-pill{
    width: 100%;
    margin: 0;
    text-align: center;
    white-space: normal;
  }
  .cam-card.cam-card--soft > div:not(.cam-card):not(.cam-box) .cam-pill:last-child:nth-child(odd){
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* 6) Maskot (obtečení textem) */
.cam-mascot{
  float: right;
  width: 280px;
  max-width: 42%;
  height: auto;
  margin: 0 0 10px 16px;
}
@media (max-width: 760px){
  .cam-mascot{
    float: none;
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 12px;
  }
}

/* 7) Dvou-sloupcové bloky */
.cam-grid{
  display: flex;
  gap: 12px;
  margin: 0 0 10px;
  align-items: stretch;
}
.cam-col{
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 760px){
  .cam-grid{ flex-direction: column; }
}

/* 8) Ceník */
.cam-price{ margin-top: 8px; }
.cam-price-row{
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0;
  border-top: 1px dashed #e2e2e2;
}
.cam-price-row:first-child{ border-top: 0; }
.cam-price-name{ flex: 1 1 auto; min-width: 0; }
.cam-price-amount{ flex: 0 0 auto; white-space: nowrap; font-weight: 700; }
.cam-note{
  display: block;
  color: #555;
  font-size: 13px;
  margin-top: 2px;
}

/* 9) Fotky (mřížka 4 vedle sebe) */
.cam-photos{
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 12px;
  margin: 0 0 10px;
}
.cam-photo{ display: table-cell; width: 25%; }
.cam-photo img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
@media (max-width: 760px){
  .cam-photos, .cam-photo{ display: block; width: 100%; }
  .cam-photo{ margin: 0 0 10px; }
}

/* 10) Tlačítko (CTA) */
.cam-btn{
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #0b57d0;
  border-radius: 12px;
  text-decoration: none;
  color: #0b57d0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .08s ease, box-shadow .18s ease;
}
.cam-btn:hover{
  background: #0b57d0;
  color: #fff;
  border-color: #0b57d0;
}
.cam-btn:active{ transform: translateY(1px); }
.cam-btn:focus,
.cam-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,87,208,.25), 0 10px 24px rgba(11,87,208,.18);
}

/* 11) Drobnosti */
.cam-muted{ color: #555; }
.cam-strong{ font-weight: 700; }
.cam-divider{
  border: 0;
  border-top: 1px solid #ddd;
  margin: 18px 0;
}

/* 12) Hover efekty – jen tam, kde hover existuje */
@media (hover: hover){
  .cam-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  }
  .cam-card--soft:hover{
    box-shadow: 0 10px 24px rgba(11,87,208,.08);
    border-color: rgba(11,87,208,.18);
  }
  .cam-pill:hover{
    background: #f0f6ff;
    border-color: #0b57d0;
    box-shadow: 0 8px 18px rgba(11,87,208,.10);
    transform: translateY(-1px);
  }
  .cam-photo img:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    filter: saturate(1.04);
  }
  .cam-btn:hover{
    box-shadow: 0 10px 24px rgba(11,87,208,.18);
    transform: translateY(-1px);
  }
}

/* Přepínání desktop vs mobil nadpis */
.cam-only-mobile{ display: none !important; }
.cam-only-desktop{ display: block !important; }
.cam-only-desktop{ white-space: nowrap !important; }

@media (max-width: 480px){
  .cam-only-desktop{ display: none !important; }
  .cam-only-mobile{ display: block !important; }

  .cam-only-mobile{
    text-align: center !important;
    line-height: 1.12 !important;
    margin: 0 0 4px !important;
  }

  .cam-only-mobile .cam-hero-brand{
    display: block;
    font-size: 30px;
    font-weight: 800;
    margin: 0;
  }
  .cam-only-mobile .cam-hero-sub{
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin: 0;
  }
}

/* Hero H1 na desktopu se přizpůsobí šířce */
.cam-page .cam-only-desktop{
  font-size: clamp(22px, 2.2vw, 30px) !important;
}

/* Animace pilulek */
@keyframes camFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===========================================================
CAM GALERIE – STABILNÍ VERZE PRO INPAGE
=========================================================== */

/* GRID KONTEJNER */
.row.categories.categories--root{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;

  max-width: 1020px;
  margin: 0 auto;
  padding: 16px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 16px;

  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;

  box-sizing: border-box;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

/* RESPONSIVITA */
@media (max-width: 760px){
  .row.categories.categories--root{ grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px){
  .row.categories.categories--root{ grid-template-columns: repeat(2, 1fr) !important; }
}

/* ZRUŠENÍ BOOTSTRAP SLOUPCŮ */
.row.categories.categories--root > .category-wrapper{
  width: auto !important;
  max-width: none !important;
  flex: initial !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* KARTA */
.row.categories.categories--root .category{
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;

  border: 1px solid #e7e7e7;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);

  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease, box-shadow .18s ease, border-color .18s ease;
}

/* pokud používáš JS reveal */
.cam-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* OBRÁZEK */
.row.categories.categories--root .category img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: block;

  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

/* TEXT */
.category__info{ text-align: center; }
.category__title{
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}
.category__title-link{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  color: #222;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color .18s ease, text-decoration-color .18s ease;
}

/* OPRAVY / BEZPEČNÉ OVERRIDE */
.row.categories.categories--root a{
  aspect-ratio: auto !important;
  flex: initial !important;
}
.row.categories.categories--root .category img{
  max-width: 100%;
  height: auto;
}
.row.categories.categories--root .category.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* HOVER */
@media (hover:hover){
  .row.categories.categories--root .category:hover{
    transform: translateY(-2px);
    border-color: rgba(11,87,208,.20);
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
  }
  /*  .row.categories.categories--root .category:hover img{
  transform: scale(1.015);
  transition: transform .25s ease;
}*/
  .row.categories.categories--root .category:hover .category__title-link{
    color: #0b57d0;
    text-decoration-color: rgba(11,87,208,.35);
  }
}


/* ===========================================================
ESHOP – PRODUKT DETAIL (scoped do #cam-product-wrap)
=========================================================== */

#cam-product-wrap .product-detail{
  max-width: 1020px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  line-height: 1.55;
  color: #1f2937;
}

#cam-product-wrap .product-detail h1{
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
}

#cam-product-wrap .product-detail h2{
  margin: 18px 0 10px;
  font-size: 18px;
}

#cam-product-wrap .product-detail__intro{
  margin: 0 0 18px;
  font-size: 16px;
}

#cam-product-wrap .product-detail__grid{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start;
}

#cam-product-wrap .product-detail__media{
  margin: 0;
  flex: 1 1 320px;
  max-width: 420px;
}

#cam-product-wrap .product-detail__img{
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  display: block;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: transform .18s ease, box-shadow .18s ease;
}

@media (hover:hover){
  #cam-product-wrap .product-detail__img:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
  }
}

#cam-product-wrap .product-detail__caption{
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

#cam-product-wrap .product-detail__content{
  flex: 1 1 380px;
  min-width: 280px;
}

#cam-product-wrap .product-detail__list{
  margin: 0 0 16px 18px;
  padding: 0;
}

#cam-product-wrap .product-detail__list li{ margin: 0 0 8px; }

#cam-product-wrap .product-detail__table{
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14.5px;
}

#cam-product-wrap .product-detail__table td{
  padding: 8px 10px;
  border: 1px solid #e7e7e7;
  vertical-align: top;
}

#cam-product-wrap .product-detail__table td:first-child{
  width: 45%;
  background: #fafafa;
}

#cam-product-wrap .product-detail__note{
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(11,87,208,.18);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

#cam-product-wrap .product-detail__note p{ margin: 0; }

@media (max-width: 720px){
  #cam-product-wrap .product-detail h1{ font-size: 22px; }
  #cam-product-wrap .product-detail__media{ max-width: 100%; }
}


/* ===========================================================
FOOTER – drobné sjednocení linků na tmavém pozadí
=========================================================== */

#footer a{
  color: rgba(255,255,255,.92) !important;
  text-decoration-color: rgba(255,255,255,.35);
}
@media (hover:hover){
  #footer a:hover{
    color: #fff !important;
    text-decoration-color: rgba(255,255,255,.7);
  }
}


/* ===========================================================
PŘÍSTUPNOST A RESPEKT K ANIMACÍM
=========================================================== */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}




/* =========================================================
HOMEPAGE – DOROVNÁNÍ MEZERY POD BANNEREM
(protože chybí navigační cesta)
========================================================= */

/* výchozí chování – ostatní stránky */
.motive + *{
  margin-top: 0px !important;
  padding-top: 0 !important;
}

@media (max-width: 992px){
  .motive + *{
    margin-top: 30px !important;
    padding-top: 0 !important;
  }
}
