/*! iStage · Patička ve stylu bannerů (celý web) · v1.0.1
 *  Styly jsou uzavřené pod #footer .pf a třídou html.pf-on – nic jiného na e-shopu neovlivní.
 */

/* ---------- Písmo Poppins – stejné soubory jako bannery (složka homepage/fonts, licence OFL) ---------- */
@font-face{font-family:'HP Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/user/documents/homepage/fonts/poppins-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'HP Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/user/documents/homepage/fonts/poppins-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'HP Poppins';font-style:italic;font-weight:500;font-display:swap;src:url(/user/documents/homepage/fonts/poppins-500i-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'HP Poppins';font-style:italic;font-weight:500;font-display:swap;src:url(/user/documents/homepage/fonts/poppins-500i-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'HP Poppins';font-style:italic;font-weight:700;font-display:swap;src:url(/user/documents/homepage/fonts/poppins-700i-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'HP Poppins';font-style:italic;font-weight:700;font-display:swap;src:url(/user/documents/homepage/fonts/poppins-700i-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- 0) Než se skript připojí: původní patičku neukazovat (šablona Merkur ji skrývá stejně).
   Pojistka: kdyby skript nedorazil, původní patička se po 3 s ukáže. ---------- */
html[lang="cs"]:not(.pf-on):not(.pf-off) #footer > .container { animation: pf-failsafe 0s linear 3s both; }
@keyframes pf-failsafe { from { visibility: hidden; } to { visibility: visible; } }

/* ---------- 1) Po připojení: původní obsah patičky pryč, nová patička vidět ---------- */
html.pf-on #footer.pf-footer {
  opacity: 1 !important; margin-top: 64px; padding: 44px 0 0; border: 0;
  background: #f4f5f7; color: #3d434c;
}
html.pf-on #footer.pf-footer > .container { display: none !important; }

#footer .pf {
  --pf-font: 'HP Poppins', 'Poppins', 'Roboto', Arial, sans-serif;
  --pf-ink-900: #111418; --pf-text: #3d434c; --pf-muted: #5b626d; --pf-line: #e1e4ea;
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
#footer .pf *, #footer .pf *::before, #footer .pf *::after { box-sizing: border-box; }
/* základ bez okrajů – přes :where() s nízkou prioritou, aby ho odsazení jednotlivých prvků níž vždy přebilo */
#footer .pf :where(p) { margin: 0; }
#footer .pf :where(ul) { margin: 0; padding: 0; list-style: none; }
#footer .pf :where(li) { margin: 0; padding: 0; line-height: inherit; }
#footer .pf :where(li)::before { content: none; display: none; }
#footer .pf .pf-ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }
#footer .pf a:focus-visible { outline: 3px solid #0063c7; outline-offset: 2px; border-radius: 6px; }

/* ---------- 2) Banner „Potřebujete poradit?“ – stejný styl jako bannery na úvodní stránce, uvnitř patičky ---------- */
#footer .pf-help {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
  align-items: center; min-height: 206px; margin: 0; border-radius: 16px; background: #fff;
  box-shadow: 0 20px 40px -30px rgba(17, 20, 24, .45), 0 0 0 1px rgba(17, 20, 24, .06);
}
#footer .pf-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#footer .pf-help-copy { position: relative; z-index: 1; padding: 28px 32px; text-align: center; }
#footer .pf-brand {
  margin: 0 0 8px; font: 600 12px/1.2 var(--pf-font); letter-spacing: .16em; text-transform: uppercase; color: var(--pf-ink);
}
/* nadpisy h3: vlastní CSS e-shopu a šablona nastavují všem h3 velikost i písmo s !important → tady je přebijeme */
#footer .pf .pf-title {
  margin: 0; font-family: var(--pf-font) !important; font-size: 30px !important; font-weight: 600; line-height: 1.08;
  color: var(--pf-ink-900); text-transform: none; letter-spacing: .005em;
}
#footer .pf-sub { margin: 4px 0 0; font: 600 24px/1.1 var(--pf-font); color: var(--pf-ink); }
#footer .pf-text { margin: 8px 0 0; font: italic 500 15px/1.4 var(--pf-font); color: #2f343a; }
#footer .pf-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 18px; }
#footer .pf .pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px;
  border-radius: 12px; background: var(--pf-btn); background: linear-gradient(180deg, var(--pf-btn), var(--pf-btn2));
  color: #fff; font: italic 700 15px/1 var(--pf-font); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 24px -14px var(--pf-btn); transition: transform .15s, filter .15s, box-shadow .15s;
}
#footer .pf .pf-btn:hover { transform: translateY(-1px); filter: brightness(1.07); color: #fff; text-decoration: none; }
#footer .pf .pf-btn .pf-ico { width: 19px; height: 19px; }
#footer .pf .pf-btn--ghost { background: #fff; color: var(--pf-ink-900); box-shadow: inset 0 0 0 1.5px var(--pf-line), 0 10px 22px -16px rgba(17, 20, 24, .45); }
#footer .pf .pf-btn--ghost:hover { color: var(--pf-ink-900); box-shadow: inset 0 0 0 1.5px var(--pf-ink), 0 10px 22px -16px rgba(17, 20, 24, .45); }
#footer .pf .pf-btn--ghost .pf-ico { color: var(--pf-ink); }
#footer .pf-help-media { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%; padding: 18px 0; }
#footer .pf-disc {
  width: 148px; height: 148px; border-radius: 50%; background: #fff; color: var(--pf-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 44px -24px rgba(17, 20, 24, .55), 0 0 0 10px rgba(255, 255, 255, .28);
}
#footer .pf .pf-disc .pf-ico { width: 66px; height: 66px; stroke-width: 1.55; }
#footer .pf-badge {
  position: absolute; left: calc(50% + 38px); top: calc(50% + 14px); width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center; background: #fff; color: var(--pf-ink);
  font: italic 700 13px/1.15 var(--pf-font); box-shadow: 0 14px 26px -16px rgba(17, 20, 24, .6); transform: rotate(-8deg);
}

/* ---------- 3) Sloupce: o nás · odkazy z administrace · platby ---------- */
#footer .pf-main {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px 40px; padding: 46px 0 38px;
}
#footer .pf-logo { display: inline-block; }
#footer .pf-logo img { display: block; width: 150px; max-width: 100%; height: auto; }
#footer .pf-about-t { max-width: 270px; margin-top: 14px; color: var(--pf-text); }
#footer .pf-social { display: flex; gap: 10px; margin-top: 18px; }
#footer .pf .pf-social a {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--pf-ink-900); box-shadow: inset 0 0 0 1px var(--pf-line);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
#footer .pf .pf-social a:hover { background: var(--pf-btn); color: #fff; box-shadow: none; transform: translateY(-2px); }
#footer .pf .pf-h {
  position: relative; margin: 2px 0 18px; padding: 0 0 12px; font-family: var(--pf-font) !important;
  font-size: 15px !important; font-weight: 600; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; color: var(--pf-ink-900);
}
#footer .pf .pf-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; border-radius: 3px; background: var(--pf-acc); }
#footer .pf .pf-links li { margin: 0 0 11px; line-height: 1.4; }
#footer .pf .pf-links a {
  color: var(--pf-text); font-size: 14px; font-weight: 400; text-decoration: none; transition: color .15s;
}
#footer .pf .pf-links a:hover { color: var(--pf-ink); text-decoration: underline; text-underline-offset: 3px; }
#footer .pf-pay-logo { margin: 0 0 16px; }
#footer .pf-pay-logo img { display: block; width: 124px; height: auto; }
#footer .pf-cards { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
/* řada platebních karet: všechny jako tmavé kartičky stejné velikosti */
#footer .pf .pf-card {
  width: 52px; height: 40px; border-radius: 7px; background: #1f2328; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
#footer .pf-card svg { display: block; width: 38px; height: 30px; fill: currentColor; }
#footer .pf .pf-card--shape { background: none; color: #1f2328; }
#footer .pf-card--shape svg { width: 52px; height: 40px; }
#footer .pf-pay-t { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--pf-muted); }
#footer .pf .pf-pay-t .pf-ico { width: 18px; height: 18px; margin-top: 1px; color: var(--pf-ink); }
#footer .pf .pf-pay-t a { display: flex; align-items: flex-start; gap: 9px; color: inherit; font-size: 13px; font-weight: 400; text-decoration: none; }
#footer .pf .pf-pay-t a:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 4) Spodní lišta – copyright, nastavení cookies, podpis Shoptetu (zůstávají původní) ---------- */
#footer .pf-bar { border-top: 1px solid var(--pf-line); }
#footer .pf-bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 16px 0 20px; }
#footer .pf-copy .copyright { display: block; margin: 0; font-size: 13px; line-height: 1.5; color: var(--pf-muted); text-align: left; }
#footer .pf-copy .copyright strong { color: var(--pf-ink-900); font-weight: 600; }
#footer .pf-copy .cookies-settings { margin-left: 12px; color: var(--pf-muted); text-decoration: underline; text-underline-offset: 3px; }
#footer .pf-copy .cookies-settings:hover { color: var(--pf-ink-900); }
#footer .pf-sign #signature { flex: none; margin: 0; font-size: 13px; text-align: right; }
#footer .pf-sign #signature a { color: var(--pf-muted); }
#footer .pf-sign #signature a:hover { color: var(--pf-ink-900); }

/* ---------- 5) Menší obrazovky ---------- */
@media (max-width: 1199px) {
  #footer .pf-main { gap: 30px 28px; }
  #footer .pf .pf-title { font-size: 26px !important; }
  #footer .pf-sub { font-size: 21px; }
}
@media (max-width: 991px) {
  #footer .pf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #footer .pf-help { grid-template-columns: minmax(0, 1fr) minmax(0, 32%); }
}
@media (max-width: 767px) {
  html.pf-on #footer.pf-footer { margin-top: 48px; padding-top: 24px; }
  #footer .pf .pf-wrap { padding-left: 12px; padding-right: 12px; }       /* šablona tu nemá boční odsazení */
  /* banner: text zarovnaný vlevo, místo vlny červený kruh v rohu jako „zakousnutí“ na bannerech */
  #footer .pf-help {
    display: block; min-height: 0; border-radius: 14px;
    background: radial-gradient(circle at 112% -18%, var(--pf-acc) 0 31%, rgba(255, 255, 255, 0) 31.4%), #fff;
  }
  #footer .pf-swoosh { display: none; }
  #footer .pf-help-copy { padding: 24px 18px 20px; text-align: left; }
  #footer .pf-brand, #footer .pf .pf-title, #footer .pf-sub { padding-right: 62px; }   /* místo pro sluchátko v rohu */
  #footer .pf .pf-title { font-size: 23px !important; }
  #footer .pf-sub { font-size: 17px; }
  #footer .pf-text { font-size: 14px; }
  #footer .pf-cta { flex-direction: column; align-items: stretch; }
  #footer .pf .pf-btn { height: 48px; }
  #footer .pf-help-media { position: absolute; top: 10px; right: 10px; height: auto; padding: 0; }
  #footer .pf-disc { width: 54px; height: 54px; box-shadow: 0 10px 18px -12px rgba(17, 20, 24, .6); }
  #footer .pf .pf-disc .pf-ico { width: 28px; height: 28px; stroke-width: 1.8; }
  #footer .pf-badge { display: none; }
  #footer .pf-main { gap: 28px 16px; padding: 32px 0 22px; }
  #footer .pf-about { grid-column: 1 / -1; text-align: center; }
  #footer .pf-logo img { width: 132px; }
  #footer .pf-about-t { margin: 12px auto 0; }
  #footer .pf-social { justify-content: center; }
  #footer .pf-pay { grid-column: 1 / -1; }
  #footer .pf .pf-h { font-size: 14px !important; margin-bottom: 14px; }
  #footer .pf .pf-links a { font-size: 14px; }
  #footer .pf-bar-in { flex-direction: column; justify-content: center; text-align: center; padding-bottom: 24px; }
  #footer .pf-copy .copyright { text-align: center; }
  #footer .pf-copy .cookies-settings { display: inline-block; margin: 4px 0 0; }
  #footer .pf-sign #signature { text-align: center; }
}

/* ---------- 6) Omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  #footer .pf .pf-btn, #footer .pf .pf-social a, #footer .pf .pf-links a { transition: none; }
}
