/* ============================================================
 * Glasdekor – obraz-do-interieru.cz
 * Custom styles
 * verze: 2026-06-05  (rev24 — 3-col grid fluid, žádný hover transform)
 *
 * Obsahuje:
 *   1) Telefon v hlavičce
 *   2) Patička v2 (světlá, bez podbarvení, 4 sloupce)
 *   3) Trust row (platby + dopravci)
 *   4) Galerie (Shoptet "Plus" plugin) — odlehčený grid pro VŠECHNY stránky
 *   5) Stránka Kontakty (typografie, max-width, hierarchie)
 *   6) Custom HTML obsah s inline styly — responzivní (homepage, kategorie, stránky)
 *   7) Container/padding pro článkové a listingové stránky
 *      (manuály, blog, galerie realizací, zakázková výroba)
 *   8) (odstraněno — blog vrácen na Shoptet default)
 * ============================================================ */


/* === 1) Telefon v hlavičce ============================ */
.ra-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color .15s ease;
}
.ra-header-phone:hover,
.ra-header-phone:focus {
  background-color: rgba(0, 0, 0, .06);
  text-decoration: none;
}
.ra-header-phone svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
@media (max-width: 767px) {
  .ra-header-phone { padding: 6px 8px; font-size: 14px; }
  .ra-header-phone__prefix { display: none; }
}
#header .navigation-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}


/* === 2) Patička v2 ==================================== */
#footer {
  background: #f7f6f3 !important;
  color: #1f2937 !important;
  margin-top: 48px;
}
#footer .container.footer-rows .row.custom-footer {
  display: none !important;
}
#footer .footer-bottom-full-width {
  background: #ecebe7 !important;
  color: #4b5563 !important;
}
#footer a { color: inherit; }

.ra-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding: 48px 0 32px;
}
@media (max-width: 991px) {
  .ra-footer { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 0 24px; }
}
@media (max-width: 575px) {
  .ra-footer { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 20px; }
}

.ra-footer h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #111827;
}
.ra-footer ul { list-style: none; padding: 0; margin: 0; }
.ra-footer li { margin: 0 0 10px; line-height: 1.45; }
.ra-footer a { color: inherit; text-decoration: none; }
.ra-footer a:hover { color: #c19a3b; }

.ra-footer__about p {
  margin: 0 0 10px;
  line-height: 1.55;
  color: #4b5563;
}
.ra-footer__about strong {
  font-size: 16px;
  color: #111827;
}

.ra-footer__contact dl { margin: 0; }
.ra-footer__contact dt {
  font-size: 11px;
  font-weight: 700;
  margin-top: 14px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ra-footer__contact dt:first-child { margin-top: 0; }
.ra-footer__contact dd {
  margin: 4px 0 0;
  line-height: 1.45;
}

.ra-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  color: #111827;
}
.ra-footer__phone svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* Soc. ikony — vyšší specificity než Shoptet generic #footer a */
#footer .ra-footer__social { display: flex; gap: 12px; margin-top: 20px; }
#footer .ra-footer__social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1f2937 !important;
  color: #ffffff !important;
  transition: transform .15s ease, background-color .15s ease;
}
#footer .ra-footer__social a:hover {
  background: #c19a3b !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}
#footer .ra-footer__social a svg {
  width: 18px;
  height: 18px;
  fill: #ffffff !important;
  pointer-events: none;
}
#footer .ra-footer__social a svg path { fill: #ffffff !important; }


/* === 3) Trust row (platby + dopravci) ================= */
.ra-trust {
  border-top: 1px solid #e5e7eb;
  padding: 24px 0 28px;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
@media (max-width: 575px) {
  .ra-trust { padding: 20px 0 24px; }
}
.ra-trust__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ra-trust__label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 4px;
}
.ra-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: .03em;
}
.ra-badge--visa  { color: #1a1f71; }
.ra-badge--mc    { padding: 0 8px; gap: 0; }
.ra-badge--mc .ra-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.ra-badge--mc .ra-dot--red { background: #eb001b; }
.ra-badge--mc .ra-dot--yel {
  background: #f79e1b;
  margin-left: -6px;
  mix-blend-mode: multiply;
}
.ra-badge--apay {
  background: #000;
  color: #fff;
  border-color: #000;
  gap: 3px;
}
.ra-badge--gpay { gap: 3px; }
.ra-badge--cash,
.ra-badge--bank { gap: 6px; }
.ra-badge svg { width: 14px; height: 14px; }

/* Reálná PNG loga (Zásilkovna, FOFR) — kontejner přizpůsobíme obrázku */
.ra-badge--logo {
  height: 32px;
  padding: 4px 12px;
  background: #fff;
}
.ra-badge--logo img {
  display: block;
  height: 100%;
  width: auto;
  max-height: 24px;
  object-fit: contain;
}

.ra-footer-legal {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  padding: 20px 16px 24px;
  line-height: 1.55;
}


/* === 4) Galerie — uniformní inline-block grid =================
 * Struktura ze Shoptet "Plus" pluginu:
 *   <div class="plus-gallery-item" style="height:200px;width:200px;text-align:center">
 *     <a><img></a>
 *   </div>
 * Items mají inline style 200×200 — přebijeme to.
 * 12 items je orphan (přímo v article body), 24 v .plus-gallery-wrap
 * (stejný markup). Stylem cílíme oba sets uniformně. */

/* Skrýt sidebar na /galerie-realizaci/ */
body.in-galerie-realizaci #content .sidebar.sidebar-left {
  display: none !important;
}
body.in-galerie-realizaci #content > .row > .col-md-9,
body.in-galerie-realizaci #content > .row > .col-lg-9 {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* Wrap container — 3-col grid s fixní 300px buňkou, centrovaný.
 * JS wrappuje i orphan items do .plus-gallery-wrap, takže CSS funguje
 * uniformně. Pokud by JS nedoběhl, orphan items zůstanou inline-block
 * (default browser pro <div>... ale s našimi !important pravidly).
 */
.plus-gallery-wrap {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin: 32px 0 !important;
  padding: 0 !important;
}
@media (max-width: 991px) {
  .plus-gallery-wrap {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}
@media (max-width: 600px) {
  .plus-gallery-wrap {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* Společný styl pro všechny items */
.plus-gallery-item {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  max-width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: #f3f4f6 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  position: relative !important;
  text-align: center !important;
  transition: box-shadow .2s ease;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box !important;
  display: block !important;
  margin: 0 !important;
}
.plus-gallery-item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12) !important;
}

/* Items mimo wrapper (fallback, kdyby JS nedoběhl) — chovají se jako bloky 33% */
.plus-gallery-item:not(.plus-gallery-wrap .plus-gallery-item) {
  display: inline-block !important;
  vertical-align: top !important;
  width: calc(33.333% - 20px) !important;
  margin: 8px !important;
}
@media (max-width: 991px) {
  .plus-gallery-item:not(.plus-gallery-wrap .plus-gallery-item) {
    width: calc(50% - 20px) !important;
  }
}

/* Skrýt prázdné items (které mají jen &nbsp;, bez <a>) — :has() fallback v JS */
.plus-gallery-item:not(:has(a)) {
  display: none !important;
}

/* Link uvnitř — vyplní celý item */
.plus-gallery-item a {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 0 !important;
}

/* Obrázek — vyplní celý link (object-fit cover), bez hover animace */
.plus-gallery-item img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* === 5) Stránka Kontakty =============================== */
body.in-kontakty .pageArticleDetail {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
body.in-kontakty .pageArticleDetail > header {
  text-align: center;
  margin-bottom: 8px;
}
body.in-kontakty .pageArticleDetail h1 {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
body.in-kontakty .contact-rich {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px 48px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-top: 24px;
}
@media (max-width: 575px) {
  body.in-kontakty .contact-rich { padding: 28px 24px; }
}

body.in-kontakty .contact-rich h3 {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
}
body.in-kontakty .contact-rich h3 b { font-weight: 600; }

body.in-kontakty .contact-rich p {
  margin: 0 0 4px;
  line-height: 1.55;
  color: #111827;
}

/* Prázdné spacer odstavce → menší výška místo full line */
body.in-kontakty .contact-rich p.p2 {
  height: 12px;
  margin: 0;
  font-size: 0;
}

/* Labely (Adresa provozovny:, Provozovatel:, atd.) */
body.in-kontakty .contact-rich p.p3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
}
body.in-kontakty .contact-rich p.p3:first-of-type { margin-top: 0; }
body.in-kontakty .contact-rich p.p3 b {
  color: inherit;
  font-weight: inherit;
}

/* Hodnoty */
body.in-kontakty .contact-rich p.p4 {
  font-size: 16px;
  color: #111827;
}
body.in-kontakty .contact-rich p.p4 b { font-weight: 600; }

/* "Kontaktujte nás" / "Bankovní účty pro platby" jsou h-podobné v textu klientky */
body.in-kontakty .contact-rich p.p3 + p.p3 { margin-top: 4px; }

/* Formulář ozdravit */
body.in-kontakty .pageArticleDetail form {
  margin-top: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
body.in-kontakty .pageArticleDetail form input[type="text"],
body.in-kontakty .pageArticleDetail form input[type="email"],
body.in-kontakty .pageArticleDetail form textarea {
  border-radius: 6px;
}
body.in-kontakty .pageArticleDetail form button[type="submit"] {
  border-radius: 6px;
  padding: 12px 28px;
}


/* === 6) Custom HTML s inline styly — responzivní ======= */
/* Klientka má v adminu HTML s inline gridy a font-sizy (homepage,
 * kategorie /sklenene-obrazy/, individuální stránky jako
 * /zakazkova-vyroba/). Inline styly se přebijí jen přes !important.
 *
 * Cílíme tyto wrappery:
 *   - .category-perex          (kategorie)
 *   - body.in-index #content    (homepage)
 *   - body.in-zakazkova-vyroba---vas-original-na-skle #content
 *   - body[class*="in-"] .pageArticleDetail (individuální stránky)
 *
 * Selektory s [style*="..."] cílí jen elementy, kterým klientka
 * nastavila danou inline vlastnost — ne celý Shoptet markup.
 */

/* Společný kontainer alias */
.category-perex,
body.in-index #content,
body[class*="in-zakazkova-vyroba"] #content,
body[class*="in-"] .pageArticleDetail {
  overflow-x: hidden;
}

/* Safety-net pro obrázky uvnitř klientčina custom HTML s inline styly.
 * Cílí jen <img> samotné, NE všechny img uvnitř libovolného [style] elementu
 * (to by zachytilo i galerii, kde Shoptet Plus má inline style na wrapperu). */
.category-perex img,
body.in-index #content img[style],
body[class*="in-zakazkova-vyroba"] #content img[style],
body[class*="in-"] .pageArticleDetail img[style] {
  max-width: 100% !important;
  height: auto !important;
}

/* === Tablet a menší (≤991 px) — 1 sloupec, menší fonty === */
@media (max-width: 991px) {
  /* Force jakýkoliv inline grid → 1 sloupec */
  .category-perex [style*="grid-template-columns"],
  body.in-index #content [style*="grid-template-columns"],
  body[class*="in-zakazkova-vyroba"] #content [style*="grid-template-columns"],
  body[class*="in-"] .pageArticleDetail [style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Vnější wrappery — menší marginy */
  .category-perex > div,
  body.in-index #content [style*="max-width"][style*="margin"],
  body[class*="in-zakazkova-vyroba"] #content [style*="max-width"][style*="margin"] {
    margin-top: 32px !important;
    margin-bottom: 40px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Fonty inline-styled odstavců a divů */
  .category-perex p[style*="font-size"],
  .category-perex div[style*="font-size"],
  body.in-index #content p[style*="font-size"],
  body.in-index #content div[style*="font-size"],
  body[class*="in-zakazkova-vyroba"] #content p[style*="font-size"],
  body[class*="in-zakazkova-vyroba"] #content div[style*="font-size"] {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  .category-perex span[style*="font-size"],
  body.in-index #content span[style*="font-size"],
  body[class*="in-zakazkova-vyroba"] #content span[style*="font-size"] {
    font-size: 16px !important;
  }
}

/* === Mobil (≤575 px) — ještě menší fonty, kompaktnější mezery === */
@media (max-width: 575px) {
  .category-perex [style*="grid-template-columns"],
  body.in-index #content [style*="grid-template-columns"],
  body[class*="in-zakazkova-vyroba"] #content [style*="grid-template-columns"] {
    gap: 20px !important;
  }
  .category-perex > div,
  body.in-index #content [style*="max-width"][style*="margin"],
  body[class*="in-zakazkova-vyroba"] #content [style*="max-width"][style*="margin"] {
    margin-top: 24px !important;
    margin-bottom: 32px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .category-perex p[style*="font-size"],
  .category-perex div[style*="font-size"],
  body.in-index #content p[style*="font-size"],
  body.in-index #content div[style*="font-size"],
  body[class*="in-zakazkova-vyroba"] #content p[style*="font-size"],
  body[class*="in-zakazkova-vyroba"] #content div[style*="font-size"] {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }
  .category-perex span[style*="font-size"],
  body.in-index #content span[style*="font-size"],
  body[class*="in-zakazkova-vyroba"] #content span[style*="font-size"] {
    font-size: 15px !important;
  }
  .category-perex img[style*="border-radius"],
  body.in-index #content img[style*="border-radius"],
  body[class*="in-zakazkova-vyroba"] #content img[style*="border-radius"] {
    border-radius: 16px !important;
  }
}


/* === 7) Container/padding pro článkové a listingové stránky === */
/* Šablona "wide" v Shoptetu má .content-inner ~1680 px wide
 * → text/obrázky tečou od hrany k hraně. Tady zužujeme a přidáváme
 * vzduch po stranách i nahoře/dole.
 *
 * Strategie:
 *   - default .pageArticleDetail → max-width 1100, padding side 24px
 *   - galerie a zakázková výroba (širší obsah) → 1320
 *   - blog listing → 1280 (cards grid)
 *   - kontakty zůstávají 720 (sekce 5 si je zachová – !important)
 *   - homepage NETUŠÍME pro tuto sekci (custom layout dělá sekce 6)
 */

/* Default narrow container pro všechny stránky type-page */
body.template-14.type-page:not(.in-index) .pageArticleDetail {
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 32px 24px 64px !important;
  box-sizing: border-box;
}
@media (max-width: 575px) {
  body.template-14.type-page:not(.in-index) .pageArticleDetail {
    padding: 20px 16px 40px !important;
  }
}

/* Wider container pro stránky s mřížkami/galeriemi */
body.in-galerie-realizaci .pageArticleDetail,
body.in-zakazkova-vyroba---vas-original-na-skle .pageArticleDetail {
  max-width: 1320px !important;
}

/* Kontakty zůstávají úzké (override 1100 z general rule) */
body.in-kontakty .pageArticleDetail {
  max-width: 720px !important;
}

/* H1 v článkových stránkách — víc vzduchu dole, větší velikost */
body.template-14.type-page:not(.in-index):not(.in-kontakty) .pageArticleDetail > header {
  text-align: left;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
body.template-14.type-page:not(.in-index):not(.in-kontakty) .pageArticleDetail > header h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
@media (max-width: 575px) {
  body.template-14.type-page:not(.in-index):not(.in-kontakty) .pageArticleDetail > header h1 {
    font-size: 26px;
  }
}

/* === Blog listing (type-posts-listing) === */
body.in-blog #content { padding-top: 24px !important; padding-bottom: 64px !important; }
body.in-blog .content-inner > h1,
body.in-blog .content-inner > h2,
body.in-blog .sectionDescription,
body.in-blog .news-wrapper,
body.in-blog .listingControls {
  max-width: 1280px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
@media (max-width: 575px) {
  body.in-blog .content-inner > h1,
  body.in-blog .content-inner > h2,
  body.in-blog .sectionDescription,
  body.in-blog .news-wrapper,
  body.in-blog .listingControls {
    padding-left: 16px;
    padding-right: 16px;
  }
}
body.in-blog .content-inner > h1 {
  font-size: 32px;
  margin: 16px auto 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

/* Drobečková navigace nad H1 — taky centrovat */
body.template-14:not(.in-index) #content + nav,
body.template-14:not(.in-index) .breadcrumbs,
body.template-14:not(.in-index) .breadcrumb-navigation {
  max-width: 1320px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
@media (max-width: 575px) {
  body.template-14:not(.in-index) .breadcrumbs,
  body.template-14:not(.in-index) .breadcrumb-navigation {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* === 8) Blog — sekce odstraněna ============================
 * Pokus o předělání cards z overlay na klasický layout selhal
 * — Samba má vlastní markup, který by chtěl live debug. Necháme
 * Shoptet default. */
