/* Hlavička: telefon a e-mail z "ouška" přímo do horní lišty vedle měny (desktop) */
@media (min-width: 992px) {
  .top-navigation-bar .container { align-items: center; }
  .top-navigation-bar .container > .top-navigation-menu { flex: 1 1 auto; min-width: 0; }

  body .top-navigation-bar .container > div.top-navigation-contacts,
  body .top-navigation-bar .container > div.top-navigation-contacts.is-top {
    position: static;
    order: 2;
    flex: 0 0 auto;
    height: 24px;
    margin: 0 24px 0 auto;
    padding: 0 24px 0 0;
    background: none;
    border-radius: 0;
    border-right: 1px solid #dadde3;
    gap: 28px;
  }
  body .top-navigation-bar .container > .top-navigation-tools { order: 3; flex: 0 0 auto; }

  .top-navigation-bar .top-navigation-contacts a { padding: 0; }
  .top-navigation-bar .top-navigation-contacts a::before { color: #0f0f0f; font-size: 16px; }
  .top-navigation-bar .top-navigation-contacts a span {
    margin-left: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #0f0f0f;
  }

  .top-navigation-bar #topNavigationDropdown,
  .top-navigation-bar #topNavigationDropdown::before,
  .top-navigation-bar #topNavigationDropdown::after,
  .top-navigation-bar #topNavigationDropdown .caret::before { font-weight: 500; color: #0f0f0f; }
}

/* ===== Patička – tmavý design ===== */
#footer {
  --ft-bg: #15181c;
  --ft-text: #ffffff;
  --ft-muted: #a9adb5;
  --ft-line: rgba(255, 255, 255, .12);
  --ft-accent: #e2231a;
  color: var(--ft-muted);
}
/* šablona má zapnutou bílou patičku (.is-white) */
#footer, #footer.is-white { background-color: var(--ft-bg); }
#footer.footer .footer-bottom-bg::before { background-color: var(--ft-bg); }

/* logo + claim */
#footer .footer-brand__logo img { display: block; width: 210px; max-width: 100%; height: auto; }
#footer .footer-brand__text { margin: 20px 0 0; color: var(--ft-text); font-size: 16px; font-weight: 700; line-height: 1.5; }

/* sloupce s odkazy */
#footer .custom-footer h4 {
  margin: 0 0 18px;
  color: var(--ft-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#footer .custom-footer ul { margin: 0; padding: 0; list-style: none; }
#footer .custom-footer li a { padding: 6px 0; color: var(--ft-muted); font-size: 15px; transition: color .15s; }
/* šablona má #footer.is-white ul a:hover { color: #0f0f0f } – stejná specificita, takže musí být tady */
#footer ul a:hover,
#footer.is-white ul a:hover { color: var(--ft-text); text-decoration: none; }

/* bannery bez vnitřního centrování ze šablony */
#footer .custom-footer .banner,
#footer .custom-footer .banner-wrapper,
#footer .custom-footer .banner-wrapper > span { display: block; width: 100%; text-align: left; }

/* doprava a platba – bílé dlaždice */
#footer .custom-footer__banner61 a { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
#footer .custom-footer__banner61 img {
  box-sizing: content-box;
  width: 36px; max-width: none; height: 26px;
  padding: 7px 10px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

/* sociální sítě – kulatá tlačítka s obrysem */
#footer .custom-footer__banner62 .social-icons { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
#footer .custom-footer__banner62 .social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0;
  color: var(--ft-text); font-size: 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  transition: background-color .15s, border-color .15s;
}
#footer .custom-footer__banner62 .social-icons a:hover { background: var(--ft-accent); border-color: var(--ft-accent); }

/* heureka */
#footer .custom-footer__banner64 img { display: block; width: 72px; height: auto; }

/* spodní pruh: weby + copyright + podpis Shoptet */
#footer .footer-links a { color: var(--ft-muted); }
#footer .footer-bottom, #footer .footer-bottom a { color: var(--ft-muted); }
#footer .footer-bottom .copyright strong { color: var(--ft-text); }
#footer .footer-bottom a:hover { color: var(--ft-text); }

@media (max-width: 991px) {
  #footer .custom-footer > div { margin-bottom: 32px; }
}

@media (min-width: 992px) {
  #footer .custom-footer {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    grid-template-areas:
      "brand c1  c2  c3"
      "heur  c1  c2  c3"
      "pay   pay soc soc";
    column-gap: 40px;
    padding: 64px 0 0;
  }
  #footer .custom-footer > div { width: auto; max-width: none; padding: 0; }
  #footer .custom-footer__banner53 { grid-area: brand; }
  #footer .custom-footer__banner47 { grid-area: c1; }
  #footer .custom-footer__banner48 { grid-area: c2; }
  #footer .custom-footer__banner52 { grid-area: c3; }
  #footer .custom-footer__banner64 { grid-area: heur; align-self: start; margin-top: 24px; }
  #footer .custom-footer > .custom-footer__banner61,
  #footer .custom-footer > .custom-footer__banner62 {
    align-items: center;
    margin-top: 48px;
    padding: 28px 0;
    border-top: 1px solid var(--ft-line);
  }
  #footer .custom-footer__banner61 { grid-area: pay; }
  /* záporný margin přes mezeru mezi sloupci, ať je čára nahoře souvislá */
  #footer .custom-footer > .custom-footer__banner62 { grid-area: soc; margin-left: -40px; padding-left: 40px; }
  #footer .custom-footer__banner62 .social-icons { justify-content: flex-end; }

  #footer .footer-links-icons { margin-top: 0; border-top: 1px solid var(--ft-line); }
  #footer .footer-links { justify-content: flex-start; gap: 28px; padding: 22px 20px 0; }
  #footer .footer-bottom { padding: 6px 20px 28px; }
}
