/* =====================================================================
   StareFoto.eu – centrálne CSS (revízia 2026-11-05)
   CMS: LiteCart 2.7.2 / default.catalog

   Zachované: úvodná stránka, katalógové bloky, odkazy, galéria,
   responzívne rozloženie a poradie názov → logo → galéria.

   Opravené: rámček hlavnej fotografie v .sf-gallery-stage;
   odstránené neaktuálne pravidlá absolútnej pozície názvu/loga,
   zrušená zbytočná medzera nad nadpisom.

   Zapínanie/vypínanie systémových prvkov rieši samostatný vMod
   „StareFoto – Ovládanie prvkov katalógu“.
   ===================================================================== */

/* 0. Izolácia štýlov úvodnej stránky */
.sf-home-intro,
.sf-home-intro *,
.sf-collections,
.sf-collections * {
  box-sizing: border-box;
}

/* 1. Úvodný informačný blok pod hlavným bannerom */
.sf-home-intro {
  width: 100%;
  max-width: none;
  margin: 28px auto 42px;
  padding: 30px 36px;
  background: #fff;
  color: #303030;
  border: 1px solid #e6e6ea;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  font-size: 17px;
  line-height: 1.75;
}

.sf-home-intro h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.sf-home-intro p {
  margin: 0 0 20px;
  text-align: justify;
  hyphens: auto;
  text-justify: inter-word;
}

.sf-home-intro__notice {
  margin: 22px 0;
  padding: 18px 22px;
  background: #fff9ef;
  border-left: 4px solid #c38c36;
  border-radius: 4px;
  font-style: italic;
}

.sf-home-intro__notice p,
.sf-home-intro .sf-home-intro__thanks {
  margin-bottom: 0;
}

/* 2. Katalógové bloky – celá šírka nadradeného kontajnera */
.sf-collections {
  width: 100% !important;
  max-width: none !important;
  margin: 32px auto 48px;
  padding: 30px 32px 40px;
  background: #f7f7f8;
  border-radius: 8px;
  color: #373737;
}

/* 2a. Hlavičky katalógov: aktuálna trieda __heading */
.sf-collections > .sf-collections__heading {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 auto 36px !important;
  text-align: center !important;
}

.sf-collections > .sf-collections__heading > h2 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 22px !important;
  font-size: clamp(30px, 3vw, 38px) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

.sf-collections__heading .sf-collections__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sf-collections__heading .sf-collections__lead {
  width: 100% !important;
  margin: 18px auto 0 !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
}

.sf-collections__lead {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: #777;
  text-align: center;
}

.sf-collections__button {
  display: inline-block;
  padding: 12px 24px;
  background: #08a8e4;
  border: 0;
  border-radius: 4px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  text-decoration: none !important;
  letter-spacing: .02em;
  transition: background-color .15s ease;
}

.sf-collections__button:hover,
.sf-collections__button:focus-visible {
  background: #067da9;
  color: #fff !important;
}

/* 3. Položky: na PC obrázok a opis vedľa seba, striedavo */
.sf-collections .sf-collections__items {
  display: flex;
  flex-direction: column;
  gap: 54px;
}

.sf-collections .sf-collections__item {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center;
  gap: 38px;
  width: 100%;
  min-width: 0;
}

.sf-collections .sf-collections__item--reverse {
  flex-direction: row-reverse !important;
}

/* Priamy img alebo obrázok zabalený do a/figure/picture */
.sf-collections .sf-collections__item > :not(.sf-collections__description) {
  display: block;
  flex: 0 0 44% !important;
  width: 44% !important;
  max-width: 500px;
  min-width: 0;
  margin: 0;
}

.sf-collections .sf-collections__item > a,
.sf-collections .sf-collections__item > figure,
.sf-collections .sf-collections__item > picture {
  border-radius: 12px !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
  overflow: hidden;
}

.sf-collections .sf-collections__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 12px !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
}

.sf-collections .sf-collections__item > figure > img,
.sf-collections .sf-collections__item > picture > img,
.sf-collections .sf-collections__item > a > img {
  max-width: 100%;
}

.sf-collections .sf-collections__description {
  flex: 1 1 0 !important;
  min-width: 0;
  width: auto;
  max-width: none;
}

.sf-collections__description h3 {
  margin: 0 0 18px;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.25;
}

.sf-collections__description p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: #686868;
  font-style: italic;
}

.sf-collections__item--reverse .sf-collections__description {
  text-align: right;
}

/* 4. Posledná sekcia – 2 € mince */
.sf-collections--coins {
  margin-top: 34px;
  margin-bottom: 90px;
  padding-bottom: 54px;
}

/* 5. Tablety */
@media (max-width: 900px) {
  .sf-collections {
    padding: 26px 22px 38px;
  }

  .sf-collections .sf-collections__item {
    gap: 24px;
  }

  .sf-collections .sf-collections__items {
    gap: 42px;
  }

  .sf-collections__description h3 {
    font-size: 27px;
  }

  .sf-collections__description p {
    font-size: 16px;
  }
}

/* 6. Mobily – obrázok nad opisom */
@media (max-width: 767px) {
  .sf-home-intro {
    margin: 20px auto 30px;
    padding: 22px 19px;
    font-size: 16px;
  }

  .sf-home-intro h2 {
    font-size: 24px;
  }

  .sf-collections {
    margin: 24px auto 34px;
    padding: 22px 18px 32px;
  }

  .sf-collections > .sf-collections__heading {
    margin-bottom: 24px !important;
  }

  .sf-collections > .sf-collections__heading > h2 {
    font-size: 30px !important;
  }

  .sf-collections .sf-collections__items {
    gap: 36px;
  }

  .sf-collections .sf-collections__item,
  .sf-collections .sf-collections__item--reverse {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100%;
    min-width: 0;
  }

  .sf-collections .sf-collections__item > :not(.sf-collections__description) {
    order: 0;
    display: block;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-inline: auto;
  }

  .sf-collections .sf-collections__item img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    border-radius: 12px !important;
  }

  .sf-collections .sf-collections__item .sf-collections__description,
  .sf-collections .sf-collections__item--reverse .sf-collections__description {
    order: 1;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    text-align: center !important;
  }

  .sf-collections__description h3 {
    margin: 0 0 12px;
    font-size: clamp(22px, 5.5vw, 26px);
    line-height: 1.3;
  }

  .sf-collections__description p {
    font-size: 16px;
    line-height: 1.65;
  }

  .sf-collections--coins {
    margin-bottom: 65px;
    padding-bottom: 35px;
  }
}

/* =====================================================================
   7. GALÉRIA PRODUKTOV – existujúce usporiadanie doplnkových náhľadov
   ===================================================================== */

#box-product .images.row > div {
  box-sizing: border-box;
  min-width: 0;
}

#box-product .images .thumbnail {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

#box-product .images .thumbnail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

#box-product .images .extra-image.thumbnail {
  padding: 5px;
  margin: 0;
  transition: border-color .2s ease;
}

#box-product .images .extra-image.thumbnail:hover {
  border-color: #249bd3;
}

/* PC – náhľady napravo od hlavnej fotografie */
@media (min-width: 992px) {
  #box-product .images.row {
    display: flow-root !important;
    margin: 0;
  }

  #box-product .images.row > .col-xs-12 {
    float: left !important;
    width: 78%;
    padding: 0;
  }

  #box-product .images.row > .col-xs-4 {
    float: right !important;
    clear: right;
    width: 20%;
    padding: 0;
    margin: 0 0 10px 0;
  }

  #box-product .images.row > .col-xs-12:only-child {
    float: none !important;
    width: 100%;
  }
}

/* Mobil/tablet – náhľady pod hlavnou fotografiou */
@media (max-width: 991px) {
  #box-product .images.row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
  }

  #box-product .images.row > .col-xs-12 {
    grid-column: 1 / -1 !important;
    float: none !important;
    width: 100%;
    padding: 0;
  }

  #box-product .images.row > .col-xs-4 {
    grid-column: span 1 !important;
    float: none !important;
    clear: none;
    width: 100%;
    padding: 0;
    margin: 0;
  }
}

/* =====================================================================
   8. HLAVIČKA DETAILU PRODUKTU – názov → logo → galéria
   Zachované rozloženie, ktoré už funguje; popis/údaje bez zásahu.
   ===================================================================== */

/* Horný priestor už nepotrebuje pôvodných 115/130 px. */
#box-product > .card:first-of-type > .card-body {
  position: relative;
  padding-top: 20px !important;
}

#box-product > .card:first-of-type > .card-body > .row {
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
}

#box-product > .card:first-of-type > .card-body > .row > .col-md-6 {
  display: block !important;
  float: none !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

#box-product > .card:first-of-type > .card-body > .row > .col-md-6:last-child {
  margin-bottom: 24px !important;
}

#box-product > .card:first-of-type h1.title {
  position: static !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center !important;
  overflow-wrap: break-word;
}

#box-product > .card:first-of-type .manufacturer {
  position: static !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
}

#box-product > .card:first-of-type .manufacturer a {
  display: inline-block !important;
}

#box-product > .card:first-of-type .manufacturer img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 200px !important;
  max-height: 70px !important;
  margin: 0 auto !important;
  object-fit: contain;
}

/* Ak výrobca nemá obrázok, vycentrovať aj text. */
#box-product > .card:first-of-type .manufacturer h3 {
  margin: 0;
  text-align: center !important;
}

#box-product > .card:first-of-type .images.row {
  width: 100% !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 700px) {
  #box-product > .card:first-of-type > .card-body {
    padding-top: 15px !important;
  }

  #box-product > .card:first-of-type h1.title {
    margin-bottom: 14px !important;
    font-size: 22px;
  }

  #box-product > .card:first-of-type .manufacturer img {
    max-width: 160px !important;
    max-height: 60px !important;
  }

  #box-product > .card:first-of-type > .card-body > .row > .col-md-6:last-child {
    margin-bottom: 20px !important;
  }
}

/* =====================================================================
   9. RÁMČEK HLAVNEJ FOTOGRAFIE – skutočná štruktúra vModu
   .sf-gallery-stage > a.main-image.thumbnail > img
   Neupravovať celé .images ani doplnkové miniatury.
   ===================================================================== */

/* Priestor galérie môže byť široký, no jeho šírka nemá určovať rámček. */
#box-product .sf-gallery-stage {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  min-width: 0;
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Samotný klikateľný rámček sa prispôsobí zobrazenej fotografii. */
#box-product .sf-gallery-stage > a.main-image.thumbnail {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 6px !important;
  border: 1px solid #e5e9f0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  background: #fff !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

/* Viditeľné zaostrenie odkazu pri ovládaní klávesnicou. */
#box-product .sf-gallery-stage > a.main-image.thumbnail:focus-visible {
  outline: 2px solid #17629a !important;
  outline-offset: 3px;
}

/* Žiadne natiahnutie img na 100 % šírky rámčeka alebo stage. */
#box-product .sf-gallery-stage > a.main-image.thumbnail > img {
  display: block !important;
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 520px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
}

/* =====================================================================
   10. FAREBNÉ ODLÍŠENIE TEXTOVÝCH ODKAZOV
   ===================================================================== */

.sf-home-intro a[href],
.sf-collections__description a[href]:not(.sf-collections__button),
#box-product .description a[href],
#box-product .tab-content a[href],
.page-content p a[href],
.page-content li a[href] {
  color: #17629a;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.sf-home-intro a[href]:hover,
.sf-collections__description a[href]:not(.sf-collections__button):hover,
#box-product .description a[href]:hover,
#box-product .tab-content a[href]:hover,
.page-content p a[href]:hover,
.page-content li a[href]:hover {
  color: #0b4672;
  text-decoration-thickness: 2px;
}

.sf-home-intro a[href]:focus-visible,
.sf-collections__description a[href]:focus-visible,
#box-product .description a[href]:focus-visible,
#box-product .tab-content a[href]:focus-visible,
.page-content p a[href]:focus-visible,
.page-content li a[href]:focus-visible {
  outline: 2px solid #17629a;
  outline-offset: 3px;
}
