/* =====================================================================
   electro_storefront — footer layer (5 of 6)

   Electro footer structure:
   1. footer widgets      (white, 20px titles with yellow tick)
   2. footer bottom       (--sf-footer-bg, contact + newsletter)
   3. copyright bar       (--sf-copyright-bg, 3em line height)
   ===================================================================== */

.sf-footer {
    margin-top: 2em;
    color: var(--sf-footer-text, var(--sf-text));
    border-top: 1px solid var(--sf-footer-border, var(--sf-border));
}

/* ------------------------------------------------------------ widgets */
.sf-footer-widgets {
    padding: 2em 0 1.8em;
}

.sf-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sf-gutter);
}

.sf-footer-col {
    font-size: 0.929em;
}

.sf-footer-title {
    position: relative;
    color: var(--sf-footer-text, var(--sf-text));
    font-size: 1.286em;
    font-weight: 500;
    padding-bottom: 0.75em;
    margin: 0 0 1.6em;
    border-bottom: 1px solid var(--sf-footer-border, var(--sf-border));
}

.sf-footer-title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -1px;
    width: 83px;
    height: 2px;
    background: var(--sf-primary);
}

.sf-footer-links {
    margin: 0;
    padding: 0;
}

.sf-footer-links li {
    margin-bottom: 0.55em;
}

.sf-footer-links a {
    color: var(--sf-footer-text, var(--sf-text));
}

.sf-footer-links a:hover {
    color: var(--sf-footer-text, var(--sf-dark));
    text-decoration: underline;
}

/* ------------------------------------------------------- bottom widgets */
.sf-footer-bottom {
    background: var(--sf-footer-bg);
    padding: 1.7em 0 1.9em;
}

.sf-footer-bottom__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sf-gutter);
}

.sf-footer-bottom-title {
    font-size: 1.143em;
    color: var(--sf-footer-text, var(--sf-text));
    font-weight: 700;
    margin: 0 0 1.5em;
    padding: 0;
    border: 0;
}

.sf-footer-bottom-title::after {
    display: none;
}

.sf-contact-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.929em;
}

.sf-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-contact-list .sf-icon {
    color: var(--sf-footer-text, var(--sf-dark));
}

/* --------------------------------------------------------- newsletter */
.sf-newsletter__form {
    display: flex;
    gap: 10px;
    max-width: 460px;
}

.sf-newsletter__form .sf-input {
    flex: 1;
}

.sf-newsletter__form .sf-btn {
    min-height: 44px;
}

.sf-newsletter__note {
    margin: 0.9em 0 0;
    font-size: 0.786em;
    color: var(--sf-footer-muted, var(--sf-secondary));
}

/* --------------------------------------------------------- copyright */
.sf-copyright {
    background: var(--sf-copyright-bg);
    line-height: 3em;
    font-size: 0.857em;
    color: var(--sf-footer-muted, var(--sf-secondary));
}

.sf-copyright__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sf-copyright p {
    margin: 0;
}

.sf-payments {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.sf-payments li {
    display: inline-flex;
    align-items: center;
    padding: 0 0.9em;
    background: var(--sf-body-bg);
    border: 1px solid var(--sf-footer-border, var(--sf-border));
    border-radius: var(--sf-radius-sm);
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--sf-footer-muted, var(--sf-secondary));
    line-height: 2.2em;
}

/* ---------------------------------------- handheld bottom bar (mobile) */
/* Electro .handheld-footer-bar: dark bar fixed at the bottom on phones. */
.sf-handheld-bar {
    display: none;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 800;
    background: var(--sf-background-dark, #333e48);
    color: var(--sf-background-dark-text, #fff);
}

.sf-handheld-bar a {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0 10px;
    color: var(--sf-background-dark-text, #fff);
    font-size: 0.714em;
}

.sf-handheld-bar a:hover {
    color: #fff;
    text-decoration: none;
}

.sf-handheld-bar__badge {
    position: absolute;
    top: 2px;
    inset-inline-end: calc(50% - 26px);
    display: grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    padding-inline: 3px;
    background: var(--sf-primary);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--sf-radius-pill);
}

/* "Powered By" credit (carried over from the legacy footer contract) */
.sf-footer-powered {
    margin: 0;
    font-size: 0.857em;
    color: var(--sf-footer-muted, var(--sf-secondary));
}

.sf-footer-powered a {
    color: var(--sf-footer-text, var(--sf-text));
    text-decoration: underline;
}

.sf-footer-powered a:hover {
    color: var(--sf-footer-text, var(--sf-dark));
}
