/* Savonia 2026-11-03: footer in the new Savonia look (template savonia/footer/footer.phtml, switch catalog/savonia_footer/enabled).
   Light green like the top bar / menu, scalloped top edge and a faint stamp from logo/savonia-flow.svg,
   white cards for contact and the ANPC images, payments + company data in the bottom bar.
   Every image has a fixed box (width/height or aspect-ratio): no layout shift. */
.sv-ft {
    --sv-ft-bg: #f3f8e6;          /* = --sv-green-soft */
    --sv-ft-bar: #e9f2d2;         /* = --sv-menu-bar (top bar / menu) */
    --sv-ft-ink: #4f6b10;         /* dark green text: 5.6:1 on --sv-ft-bg */
    --sv-ft-text: #2f2f2f;
    --sv-ft-muted: #545f45;       /* 6.6:1 on --sv-ft-bar */
    --sv-ft-green: #a9cf45;
    --sv-ft-radius: 16px;
    --sv-ft-shadow: 0 2px 12px rgba(79, 107, 16, .08);
    margin-top: 16px;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--sv-ft-text);
    text-align: left;
    background: transparent;
}
.sv-ft .footer { background: transparent; padding: 0; border: 0; text-align: left; }
/* Bootstrap clearfix pseudo elements would be flex items of the bottom bar */
.sv-ft .container::before, .sv-ft .container::after { display: none; }

/* ---------- main area ---------- */
.sv-ft-main { position: relative; background: var(--sv-ft-bg); padding: 44px 0 36px; overflow: hidden; }
/* scalloped top edge: the soap-stamp outline of savonia-flow.svg (green bumps above the band, inside .sv-ft margin) */
.sv-ft .footer { position: relative; }
.sv-ft .footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; z-index: 1;
    background: radial-gradient(circle at 50% 100%, var(--sv-ft-bg) 0 11.5px, transparent 12px) 0 0 / 24px 12px repeat-x;
    transform: translateY(-100%); pointer-events: none;
}
.sv-ft-stamp {
    position: absolute; right: -60px; bottom: -80px; width: 300px; height: 300px;
    fill: #fff; opacity: .7; pointer-events: none;
}
.sv-ft-main > .container { position: relative; }

.sv-ft-grid {
    display: grid; gap: 32px 40px; align-items: start;
    grid-template-columns: minmax(200px, 1fr) minmax(190px, 1fr) minmax(250px, 1.25fr) 250px;
}

/* brand column */
.sv-ft-logo { display: inline-block; line-height: 0; border-radius: 8px; }
.sv-ft-logo svg { display: block; width: 200px; height: 42px; fill: var(--sv-ft-green); }
.sv-ft-ribbon {
    display: flex; align-items: center; gap: 8px; margin: 14px 0 0;
    font-family: "Shadows Into Light", cursive; font-size: 22px; line-height: 1.2; color: var(--sv-ft-ink);
}
.sv-ft-ribbon svg { flex: none; width: 28px; height: 19px; fill: var(--sv-ft-green); }
.sv-ft .sv-ft-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.sv-ft-social li { margin: 0; padding: 0; }
.sv-ft-social a {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    background: #fff; box-shadow: var(--sv-ft-shadow); color: var(--sv-ft-ink); transition: background-color .2s, color .2s, transform .2s;
}
.sv-ft-social svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.sv-ft-social a:hover, .sv-ft-social a:focus-visible { background: var(--sv-ft-green); color: #fff; transform: translateY(-2px); }

/* CMS columns (porto_footer_links, porto_footer_contact_information) */
.sv-ft .block { margin: 0; background: none; border: 0; padding: 0; }
.sv-ft .block .block-title { margin: 0 0 14px; padding: 0; border: 0; background: none; }
.sv-ft .block .block-title strong {
    display: block; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: .01em;
    text-transform: none; color: var(--sv-ft-ink);
}
.sv-ft .block .block-title strong span { font: inherit; color: inherit; }
.sv-ft .block .block-content { padding: 0; background: none; }
.sv-ft ul { margin: 0; padding: 0; list-style: none; }

.sv-ft ul.links li { margin: 0; padding: 0; border: 0; }
.sv-ft ul.links li > i { display: none; }
.sv-ft ul.links a {
    display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 0;
    font-size: 14px; line-height: 1.35; color: var(--sv-ft-text); text-decoration: none;
}
.sv-ft ul.links a::before {
    content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sv-ft-green);
    transition: transform .2s;
}
.sv-ft ul.links a:hover, .sv-ft ul.links a:focus-visible { color: var(--sv-ft-ink); text-decoration: underline; text-underline-offset: 3px; }
.sv-ft ul.links a:hover::before { transform: scale(1.5); }

/* contact: white card, round icons */
.sv-ft-col .contact-info {
    background: #fff; border-radius: var(--sv-ft-radius); box-shadow: var(--sv-ft-shadow); padding: 6px 18px;
}
.sv-ft .contact-info li {
    position: relative; margin: 0; padding: 14px 0 14px 48px; min-height: 64px;
    font-size: 14px; line-height: 1.5; color: var(--sv-ft-text); border-bottom: 1px solid #edf2df;
}
.sv-ft .contact-info li:last-child { border-bottom: 0; }
.sv-ft .contact-info li p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.sv-ft .contact-info li strong { color: var(--sv-ft-text); font-weight: 700; }
.sv-ft .contact-info li::before {
    content: ""; position: absolute; left: 0; top: 14px; width: 36px; height: 36px; border-radius: 50%;
    background: var(--sv-ft-bg) var(--sv-ft-ico) center / 18px no-repeat;
}
.sv-ft .contact-info li:nth-child(1)::before { --sv-ft-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6b10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11.5a7 7 0 0 1 14 0C19 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.sv-ft .contact-info li:nth-child(2)::before { --sv-ft-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6b10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.sv-ft .contact-info li:nth-child(3)::before { --sv-ft-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6b10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.sv-ft .contact-info em.icon-mail { display: none; }
.sv-ft .contact-info a { color: var(--sv-ft-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.sv-ft .contact-info a:hover, .sv-ft .contact-info a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.sv-ft .contact-info a[href^="tel:"] {
    display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; padding: 0 12px;
    border-radius: 999px; background: var(--sv-ft-green); color: #22300a; white-space: nowrap;
}
.sv-ft .contact-info a[href^="tel:"]:hover { background: #98bd3a; text-decoration: none; }

/* ANPC SAL / SOL (legal, must stay visible): fixed 250x62 box, white rounded frame */
.sv-ft-legal { display: flex; flex-direction: column; gap: 12px; }
.sv-ft-legal > br { display: none; }
.sv-ft-legal a {
    display: block; width: 250px; max-width: 100%; line-height: 0; border-radius: 12px;
    background: #fff; box-shadow: var(--sv-ft-shadow); transition: transform .2s, box-shadow .2s;
}
.sv-ft-legal a:hover, .sv-ft-legal a:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(79, 107, 16, .14); }
.sv-ft-legal img { display: block; width: 250px !important; max-width: 100%; height: auto; aspect-ratio: 250 / 62; border-radius: 12px; }

/* ---------- bottom bar: payments + company data ---------- */
.sv-ft-bottom { background: var(--sv-ft-bar); padding: 18px 0; border-top: 1px solid #dde9bf; }
.sv-ft-bottom > .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.sv-ft-pay { flex: none; line-height: 0; }
.sv-ft-pay img { display: block; width: 359px !important; max-width: 100% !important; height: auto; aspect-ratio: 359 / 28; }
.sv-ft-bottom address {
    flex: 1 1 380px; margin: 0; padding-right: 56px; text-align: right; font-style: normal; /* room for #totop */
    font-size: 12.5px; line-height: 1.75; color: var(--sv-ft-muted);
}
.sv-ft-bottom address a { color: var(--sv-ft-ink); font-weight: 600; text-decoration: none; padding: 0 2px; }
.sv-ft-bottom address a:hover, .sv-ft-bottom address a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* focus ring like the rest of the new look */
.sv-ft a:focus-visible, #totop:focus-visible { outline: 2px solid var(--sv-ft-ink, #4f6b10); outline-offset: 2px; }

/* ---------- back to top ---------- */
#totop {
    right: 16px; bottom: 16px; width: 44px; height: 44px; padding: 0; border-radius: 50%;
    background: #4f6b10; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    line-height: 44px; text-align: center;
}
#totop:hover { background: #3f560c; color: #fff; }
#totop i { font-size: 18px; line-height: 44px; }

/* ---------- tablet / small desktop: logo row on top, three columns ---------- */
@media (max-width: 1199px) {
    .sv-ft-grid { grid-template-columns: 1fr 1.2fr 250px; }
    .sv-ft-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
    .sv-ft-ribbon { margin: 0; }
    .sv-ft-brand .sv-ft-social { margin: 0 0 0 auto; }
}
@media (max-width: 991px) {
    .sv-ft-grid { grid-template-columns: 1fr 1fr; }
    .sv-ft-legal { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .sv-ft-bottom > .container { flex-direction: column; text-align: center; }
    .sv-ft-bottom { padding-bottom: 72px; }   /* #totop sits below the text, never on it */
    .sv-ft-bottom address { flex-basis: auto; padding-right: 0; text-align: center; }
}

/* ---------- phone: one column, links in two columns, 44 px targets ---------- */
@media (max-width: 767px) {
    .sv-ft { margin-top: 16px; }
    .sv-ft-main { padding: 36px 0 28px; }
    .sv-ft-main > .container, .sv-ft-bottom > .container { padding-left: 16px; padding-right: 16px; }
    .sv-ft-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .sv-ft-brand { justify-content: space-between; gap: 10px 16px; }
    .sv-ft-brand .sv-ft-social { margin: 0; }
    .sv-ft-ribbon { flex-basis: 100%; }
    .sv-ft-logo svg { width: 180px; height: 38px; }
    .sv-ft ul.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .sv-ft ul.links a { min-height: 44px; }
    .sv-ft-legal { flex-direction: column; align-items: flex-start; }
    .sv-ft-stamp { width: 220px; height: 220px; right: -70px; bottom: -70px; }
    .sv-ft-bottom { padding: 20px 0 72px; }
    /* product page: the sticky add-to-cart bar (savonia-pp.css) lifts #totop above itself */
    body.sv-sticky-on .sv-ft-bottom { padding-bottom: calc(var(--sv-sticky-h, 72px) + 72px); }
    .sv-ft-bottom address { font-size: 12.5px; }
    .sv-ft-bottom address a { display: inline-block; padding: 12px 4px; margin: -4px 0; line-height: 20px; }
    .sv-ft-logo { padding: 3px 0; }
    .sv-ft .contact-info a[href^="tel:"] { min-height: 44px; padding: 0 16px; }
    .sv-ft .contact-info a[href^="mailto:"] { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
@media (max-width: 359px) {
    .sv-ft ul.links { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .sv-ft *, #totop { transition: none !important; }
}
