/**
 * 2026-003 Atelier - paticka: A Sloupce (vychozi, komponenty/paticka-a.latte Atelieru) + skin B, C, D
 * (Latte jadra beze zmeny). Navrh 08-Paticky: --tpl-footer-bg (secondary), linka nahore, nadpisy sloupcu
 * 12 / 700 verzalky .14em, newsletter se spodni linkou a sipkou, C pas v --tpl-primary (README odchylka 8).
 */

div#bottom {
    clear: both;
    margin-top: var(--tpl-section-gap);
    padding: 0;
    background: var(--tpl-footer-bg);
    color: var(--tpl-footer-text);
    border-top: 1px solid var(--tpl-footer-line);
}
div#in_bottom { width: 100%; max-width: none; margin: 0; padding: 0; background: none; }
div#bottom footer { max-width: none; margin: 0; padding: 0; background: none; }
#banner_copyright { display: none; }
#bottom a { color: var(--tpl-footer-link); }
#bottom a:hover { color: var(--tpl-link-hover); }

/* ================================================================
   A – Sloupce (Atelier)
   ================================================================ */
.tpl-foot--a.at-pat { display: block; padding: 64px 0 28px; font-size: 15px; }
.at-pat-logo { display: flex; justify-content: center; margin-bottom: 56px; }
.at-logo--paticka,
#bottom a.at-logo--paticka { color: var(--tpl-footer-text); font-size: 24px; }
.at-logo--paticka.at-logo--obrazek img { max-width: 160px; max-height: 40px; }
.at-pat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; padding-bottom: 56px; }
.at-pat-sl { min-width: 0; }
.at-pat-h,
#bottom .at-pat-h,
#bottom .paticka_nadpis,
#bottom .ramec_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px;
    padding: 0;
    background: none;
    color: var(--tpl-footer-heading);
    font: 700 12px/1.4 var(--tpl-font);
    letter-spacing: .14em;
    text-transform: uppercase;
    list-style: none;
}
.at-pat-h::-webkit-details-marker { display: none; }
summary.at-pat-h { pointer-events: none; }
summary.at-pat-h .at-ico { display: none; }
#bottom .paticka_modul .paticka_nadpis,
#bottom .paticka_modul .ramec_top { display: none; }
.at-pat-odkazy,
#paticka_moduly.at-pat-odkazy { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
#paticka_moduly ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
#paticka_moduly li { margin: 0; padding: 0; background: none; }
#bottom .at-pat-odkazy a,
#bottom #paticka_moduly a { color: var(--tpl-footer-link); text-decoration: none; }
#bottom .at-pat-odkazy a:hover,
#bottom #paticka_moduly a:hover { color: var(--tpl-link-hover); text-decoration: underline; text-underline-offset: 3px; }
#bottom a.at-pat-akcent { color: var(--tpl-sale-price); }
.at-pat-muted,
#bottom p.at-pat-muted { margin: 0; color: var(--tpl-footer-muted); }
.at-pat-site { display: flex; gap: 16px; }

/* newsletter: e-mail jen se spodni linkou + sipka */
.at-pat-news p { margin-bottom: 20px; }
.at-pat .tpl-foot-news-form { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--tpl-footer-text); }
#bottom .at-pat .tpl-foot-news-form input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 40px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--tpl-footer-text);
    font: 400 15px/1.3 var(--tpl-font);
    box-shadow: none;
}
#bottom .at-pat .tpl-foot-news-form input[type="email"]::placeholder { color: var(--tpl-footer-muted); opacity: 1; }
#bottom .at-pat .tpl-foot-news-form input[type="email"]:focus { outline: none; }
.at-pat .tpl-foot-news-form:focus-within { border-bottom-width: 2px; }
#bottom .at-pat .tpl-foot-news-form button[type="submit"] {
    position: absolute;
    right: -10px;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tpl-footer-text);
    cursor: pointer;
}
.at-pat .tpl-foot-news-form button[type="submit"] svg { display: none; }
.at-pat .tpl-foot-news-form button[type="submit"] span { font-size: 0; }
.at-pat .tpl-foot-news-form button[type="submit"]::before { content: '→'; font: 400 20px/1 var(--tpl-font); }
.tpl-foot-news-note { margin-top: 12px; color: var(--tpl-footer-muted); font-size: 13px; line-height: 1.5; }

/* platba a doprava: odznaky pat_js jadra jako hranate chipy s linkou */
.tpl-foot-strip.at-pat-platby {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    padding: 20px 0;
    border-top: 1px solid var(--tpl-footer-line);
    border-bottom: 1px solid var(--tpl-footer-line);
}
#bottom .at-pat-platby-h { margin: 0; align-self: center; }
.at-pat .tpl-foot-pay,
.at-pat .tpl-foot-del { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.at-pat .tpl-foot-strip-label { display: none; }
.tpl-foot-items { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.tpl-foot-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--tpl-footer-line);
    border-radius: 0;
    color: var(--tpl-footer-muted);
    font: 600 11px/1 var(--tpl-font);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.tpl-foot-items svg { width: 32px; height: 22px; color: var(--tpl-footer-muted); }

.tpl-foot-bottom.at-pat-spodek {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 20px;
    border: 0;
    font-size: 13px;
    color: var(--tpl-footer-muted);
}
#bottom .at-pat-spodek a { color: var(--tpl-footer-muted); }
.at-pat-spodek .copyright_podpis { color: var(--tpl-footer-muted); }

/* jazyk a mena v paticce (J-A8, panel nahoru) */
#bottom .tpl-jazyk-mena { gap: 0; font-size: 12px; }
#bottom .tpl-jm-skupina + .tpl-jm-skupina { display: flex; align-items: center; }
.at-pat-modul:not(:has(a)) { display: none; }
#bottom .tpl-jm-tlacitko { min-height: 44px; padding: 0 2px; color: var(--tpl-footer-text); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
#bottom .tpl-jm-panel { min-width: 160px; padding: 0; border-radius: 0; border-color: var(--tpl-line); background: var(--tpl-surface); color: var(--tpl-text); box-shadow: var(--tpl-shadow-pop); }
#bottom .tpl-jm-polozka { min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 0; color: var(--tpl-text); font-size: 14px; }
#bottom .tpl-jm-polozka:hover { background: var(--tpl-secondary); text-decoration: none; }

@media (max-width: 1024px) {
    .at-pat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .tpl-foot--a.at-pat { padding: 40px 0 24px; }
    .at-pat-logo { margin-bottom: 24px; }
    .at-pat-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 24px; }
    details.at-pat-sl { border-top: 1px solid var(--tpl-footer-line); }
    details.at-pat-sl:last-of-type { border-bottom: 1px solid var(--tpl-footer-line); }
    #bottom summary.at-pat-h { pointer-events: auto; min-height: 56px; margin: 0; cursor: pointer; }
    summary.at-pat-h .at-ico { display: block; transition: transform .2s; }
    details[open] > summary.at-pat-h .at-ico { transform: rotate(180deg); }
    details.at-pat-sl > .at-pat-odkazy { gap: 0; padding-bottom: 16px; }
    details.at-pat-sl > .at-pat-odkazy > li,
    details.at-pat-sl > .at-pat-odkazy > a,
    #paticka_moduly li { min-height: 40px; display: flex; align-items: center; }
    .at-pat-news { padding-top: 28px; }
    .at-pat-news > .at-pat-h { margin-bottom: 12px; }
    .tpl-foot-strip.at-pat-platby { border-bottom: 0; }
    #bottom .at-pat-platby .at-pat-platby-h { display: none; }
    .tpl-foot-bottom.at-pat-spodek { padding-top: 16px; border-top: 1px solid var(--tpl-footer-line); }
}

/* ================================================================
   B, C, D – skin Atelieru (markup jadra, komponenty/paticka-{b,c,d}.latte)
   ================================================================ */
.tpl-foot--b,
.tpl-foot--c,
.tpl-foot--d {
    max-width: calc(var(--tpl-max-width) + 2 * var(--tpl-gutter));
    margin: 0 auto;
    padding: 48px var(--tpl-gutter) 28px;
    font-size: 14px;
}
#bottom .tpl-foot--b .tpl-foot-h,
#bottom .tpl-foot--c .tpl-foot-h,
#bottom .tpl-foot--d .tpl-foot-h,
#bottom .tpl-foot-news-h {
    margin: 0 0 12px;
    color: var(--tpl-footer-heading);
    font: 700 12px/1.4 var(--tpl-font);
    letter-spacing: .14em;
    text-transform: uppercase;
}
.tpl-foot--b .tpl-foot-brand,
.tpl-foot--c .tpl-foot-brand,
.tpl-foot--d .tpl-foot-brand {
    color: var(--tpl-footer-heading);
    font-family: var(--tpl-font-head);
    font-weight: var(--tpl-head-weight);
    font-size: 22px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.tpl-foot--b .tpl-foot-tag,
.tpl-foot--b .tpl-foot-claim,
.tpl-foot--c .tpl-foot-tag,
.tpl-foot--d .tpl-foot-tag { color: var(--tpl-footer-muted); }
.tpl-foot--b input[type="email"],
.tpl-foot--c input[type="email"],
.tpl-foot--d input[type="email"],
#bottom .tpl-foot--b input[type="text"] {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--tpl-footer-line);
    border-radius: 0;
    background: var(--tpl-surface);
    color: var(--tpl-text);
    font: 400 15px/1.3 var(--tpl-font);
}
#bottom .tpl-foot--b button[type="submit"],
#bottom .tpl-foot--c button[type="submit"],
#bottom .tpl-foot--d button[type="submit"] {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--tpl-cta);
    border-radius: 0;
    background: var(--tpl-cta);
    color: var(--tpl-cta-text);
    font: 600 13px/1 var(--tpl-font);
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}
.tpl-foot--b .tpl-foot-strip,
.tpl-foot--b .tpl-foot-bottom,
.tpl-foot--c .tpl-foot-bottom,
.tpl-foot--c .tpl-foot-c-spodek,
.tpl-foot--d .tpl-foot-bottom { border-top: 1px solid var(--tpl-footer-line); color: var(--tpl-footer-muted); }
/* C: newsletter pas v --tpl-primary (secondary by u Kremu splynul s patickou) */
.tpl-foot--c .tpl-foot-c-news { border-radius: 0; background: var(--tpl-primary); color: var(--tpl-primary-text); }
#bottom .tpl-foot--c .tpl-foot-c-news .tpl-foot-c-news-h,
#bottom .tpl-foot--c .tpl-foot-c-news h2,
#bottom .tpl-foot--c .tpl-foot-c-news h3 {
    color: var(--tpl-primary-text);
    font-family: var(--tpl-font-head);
    font-weight: var(--tpl-head-weight);
    font-size: 26px;
    letter-spacing: var(--tpl-head-ls);
    text-transform: none;
}
#bottom .tpl-foot--c .tpl-foot-c-news p,
#bottom .tpl-foot--c .tpl-foot-c-news .tpl-foot-news-note,
#bottom .tpl-foot--c .tpl-foot-c-news a { color: var(--tpl-primary-text); }
#bottom .tpl-foot--c .tpl-foot-c-news button[type="submit"] { background: var(--tpl-primary-text); border-color: var(--tpl-primary-text); color: var(--tpl-primary); }
@media (max-width: 768px) {
    .tpl-foot--b,
    .tpl-foot--c,
    .tpl-foot--d { padding: 32px var(--tpl-gutter) 24px; }
}
