/* =====================================================================
   AURI.sk – pätička (redizajn) v1.1
   Súbor: /user/documents/auri-footer.css
   Platí iba vtedy, keď JS auri-footer.js pridá pätičke triedu .auri-ft-on.
   Ak by sa JS nenačítal, ostane pôvodná pätička Shoptetu bez zmeny.
   Odstránenie: zmaž <link> na tento súbor v HTML kóde (Záhlavie).
   ===================================================================== */

#footer.auri-ft-on {
  --ft-bg: #F8F3E8;
  --ft-gold: #AE8D3F;
  --ft-pink: #EE719E;
  --ft-text: #514238;
  --ft-muted: #7A6A5C;
  --ft-line: #E8DDC8;
  background: var(--ft-bg);
  color: var(--ft-text);
  font-family: 'PT Serif', serif;
}

/* pôvodný riadok Shoptetu ostáva v kóde (napr. štruktúrované dáta), len sa nezobrazuje */
#footer.auri-ft-on .custom-footer { display: none !important; }

#footer.auri-ft-on .footer-rows { padding-top: 0; padding-bottom: 0; }

/* ---------- Mriežka 4 stĺpcov ---------- */
#footer .auri-ft {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.2fr;
  gap: 40px 48px;
  padding: 56px 0 44px;
  text-align: left;
}

#footer .auri-ft * { box-sizing: border-box; }

#footer .auri-ft ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer .auri-ft a {
  color: var(--ft-text);
  text-decoration: none;
  transition: color .25s ease-out;
}

#footer .auri-ft a:hover,
#footer .auri-ft a:focus-visible { color: var(--ft-pink); }

#footer .auri-ft a:focus-visible,
#footer .auri-ft__toggle:focus-visible,
#footer .auri-ft-pay a:focus-visible,
#footer .footer-bottom a:focus-visible {
  outline: 2px solid var(--ft-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- A. Značka ---------- */
#footer .auri-ft__logo { display: inline-block; line-height: 0; }

#footer .auri-ft__logo img {
  width: 132px !important;
  max-width: 100%;
  height: auto !important;
  display: block;
}

#footer .auri-ft__slogan {
  margin: 6px 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ft-muted);
}

#footer .auri-ft__social {
  display: flex;
  gap: 10px;
}

#footer .auri-ft__social li { margin: 0; padding: 0; }

#footer .auri-ft__social .social-icon {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 50%;
  background: #fff !important;
  border: 1px solid var(--ft-line);
  color: var(--ft-text) !important;
  transition: border-color .25s ease-out, color .25s ease-out;
}

#footer .auri-ft__social .social-icon:before { color: inherit !important; }

#footer .auri-ft__social .social-icon:hover,
#footer .auri-ft__social .social-icon:focus-visible {
  border-color: var(--ft-pink);
  color: var(--ft-pink) !important;
}

/* ---------- B, C. Skupiny odkazov ---------- */
#footer .auri-ft__h {
  margin: 0 0 16px;
  padding: 0;
  font: 700 17px/1.3 'PT Serif', serif;
  color: var(--ft-gold);
  letter-spacing: .2px;
  text-transform: none;
}

#footer .auri-ft__h:before,
#footer .auri-ft__h:after { display: none !important; }

#footer .auri-ft__toggle {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: default;
}

#footer .auri-ft__chev { display: none; }

/* meranie: klik vždy zachytí samotné tlačidlo/odkaz, nie vnorený prvok */
#footer .auri-ft__toggle > span,
#footer .auri-ft__logo img { pointer-events: none; }

#footer .auri-ft__links li { margin: 0 0 10px; padding: 0; }
#footer .auri-ft__links li:last-child { margin-bottom: 0; }

#footer .auri-ft__links a {
  font-size: 15px;
  line-height: 1.5;
}

#footer .auri-ft__panel[hidden] { display: none !important; }

/* ---------- D. Kontakt ---------- */
#footer .auri-ft__contact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

#footer .auri-ft__pic {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--ft-line);
  background: #fff;
}

#footer .auri-ft__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#footer .auri-ft__ask {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 4px;
  color: var(--ft-text);
}

#footer .auri-ft__mail {
  font-size: 15px;
  color: var(--ft-gold) !important;
}

#footer .auri-ft__mail:hover { color: var(--ft-pink) !important; }

#footer .auri-ft__hours {
  display: block;
  margin: 2px 0 12px;
  font-size: 14px;
  color: var(--ft-muted);
}

#footer .auri-ft__cta {
  font-size: 15px;
  font-weight: 700;
  color: var(--ft-gold) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px;
}

#footer .auri-ft__cta:hover { color: var(--ft-pink) !important; }

/* ---------- Platby a doprava ---------- */
#footer .auri-ft-pay {
  border-top: 1px solid var(--ft-line);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 30px;
  list-style: none;
  margin: 0;
}

#footer .auri-ft-pay li { margin: 0; padding: 0; line-height: 0; }

#footer .auri-ft-pay__logo {
  display: block;
  background-repeat: no-repeat;
}

/* ---------- Spodný riadok ---------- */
#footer.auri-ft-on .footer-bottom-full-width {
  background: var(--ft-bg) !important;
}

#footer.auri-ft-on .footer-bottom {
  background: transparent !important;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  border-top: 1px solid var(--ft-line);
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ft-muted);
}

#footer.auri-ft-on .footer-bottom .copyright,
#footer.auri-ft-on .footer-bottom .copyright strong {
  font-size: 13px;
  font-weight: 400;
  color: var(--ft-muted);
}

#footer .auri-ft-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

#footer .auri-ft-legal li { margin: 0; padding: 0; }

#footer .auri-ft-legal a {
  font-size: 13px;
  font-weight: 400 !important;
  color: var(--ft-muted);
  text-decoration: none;
  transition: color .25s ease-out;
}

#footer .auri-ft-legal a:hover { color: var(--ft-pink); }

#footer.auri-ft-on #signature,
#footer.auri-ft-on #signature a {
  font-size: 12px;
  color: var(--ft-muted);
}

/* ---------- TABLET ---------- */
@media (max-width: 991px) {
  #footer .auri-ft {
    grid-template-columns: 1fr 1fr;
    gap: 40px 40px;
    padding: 44px 0 36px;
  }
}

/* ---------- MOBIL ---------- */
@media (max-width: 767px) {
  #footer .auri-ft {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 36px 0 8px;
  }

  /* poradie: značka → kontakt → nakupovanie → zo sveta AURI */
  #footer .auri-ft__col--brand { order: 1; text-align: center; padding-bottom: 26px; }
  #footer .auri-ft__col--contact { order: 2; padding-bottom: 26px; }
  #footer .auri-ft__col--shop { order: 3; }
  #footer .auri-ft__col--world { order: 4; }

  #footer .auri-ft__logo img { width: 116px !important; margin: 0 auto; }
  #footer .auri-ft__slogan { margin: 12px 0 16px; }
  #footer .auri-ft__social { justify-content: center; }

  #footer .auri-ft__contact {
    background: #fff;
    border: 1px solid var(--ft-line);
    border-radius: 12px;
    padding: 16px;
  }

  /* rozbaľovacie skupiny */
  #footer .auri-ft__col--shop,
  #footer .auri-ft__col--world { border-top: 1px solid var(--ft-line); }
  #footer .auri-ft__col--world { border-bottom: 1px solid var(--ft-line); }

  #footer .auri-ft__h { margin: 0; }
  #footer .auri-ft__col--contact .auri-ft__h { margin: 0 0 12px; }

  #footer .auri-ft__toggle {
    cursor: pointer;
    min-height: 52px;
    padding: 4px 2px;
  }

  #footer .auri-ft__chev {
    display: block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .25s ease-out;
  }

  #footer .auri-ft__toggle[aria-expanded="true"] .auri-ft__chev {
    transform: rotate(-135deg) translateY(-1px);
  }

  #footer .auri-ft__panel { padding: 2px 2px 18px; }

  #footer .auri-ft__links li { margin-bottom: 0; }
  #footer .auri-ft__links a {
    display: block;
    padding: 7px 0;
    font-size: 16px;
  }

  #footer .auri-ft-pay {
    border-top: 0;
    padding: 24px 0 22px;
    gap: 14px 22px;
  }

  #footer.auri-ft-on .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 84px; /* miesto pre plávajúcu ikonu chatu */
  }

  #footer .auri-ft-legal {
    margin: 0;
    justify-content: center;
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #footer .auri-ft *,
  #footer .auri-ft-legal a { transition: none !important; }
}
