/* ══════════════════════════════════════════════════════════════
   ShopEngine – footer.css
   Footer grid, social, newsletter, legal bar
   ══════════════════════════════════════════════════════════════ */

.site-footer {
    background: var(--color-footer-bg, #2D2926);
    color: var(--color-footer-text, #ccc);
    padding: 3.5rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(var(--footer-columns, 4), 1fr);
    gap: 2.5rem 2rem;
    padding-bottom: 2.5rem;
}

/* ─── Column Headings ─── */
.footer-col h4 {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.65rem;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

/* ─── Text ─── */
.footer-col p,
.footer-about,
.footer-description {
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

/* ─── Links ─── */
.footer-col a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-footer-text, #ccc);
    font-size: 0.88rem;
    padding: 0.35rem 0;
    transition: all 0.2s;
}
.footer-col a:hover {
    color: #fff;
    padding-left: 0.3rem;
}
.footer-col a i {
    font-size: 0.78rem;
    width: 16px;
    text-align: center;
    opacity: 0.7;
}
.footer-col a:hover i { opacity: 1; }

/* ─── Brand Column ─── */
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo:hover { opacity: 0.85; }
.footer-brand-name {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ─── Social Icons ─── */
.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--color-footer-text);
    font-size: 0.9rem;
    padding: 0;
    transition: all 0.25s;
}
.footer-social a:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding-left: 0;
}

/* ─── Newsletter ─── */
.footer-newsletter-wrap {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-newsletter-wrap h4 { margin-bottom: 0.5rem; }
.footer-newsletter-desc {
    font-size: 0.82rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}
.footer-newsletter {
    display: flex;
    gap: 0;
    border-radius: var(--radius, 6px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}
.footer-newsletter input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.45); }
.footer-newsletter input:focus { background: rgba(255,255,255,0.1); }
.footer-newsletter button {
    padding: 0.6rem 1rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.footer-newsletter button:hover { opacity: 0.85; }

/* ─── Footer Bottom / Legal ─── */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.6;
}
.footer-powered strong {
    color: var(--color-accent);
    font-weight: 600;
}
.footer-legal { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-complaints-link { opacity: .8; font-size: .78rem; transition: all .2s; white-space: nowrap; }
.footer-complaints-link:hover { opacity: 1; color: var(--color-accent); }
.footer-complaints-link i { margin-right: .2rem; }

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .site-footer { padding: 2rem 1rem 0; }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .footer-col-brand { text-align: center; }
    .footer-col-brand .footer-social { justify-content: center; }
    .footer-col-brand .footer-logo { margin-left: auto; margin-right: auto; }
    .footer-col h4::after { left: 0; }
    .footer-col h4 { font-size: 0.82rem; margin-bottom: 1rem; padding-bottom: 0.5rem; }
    .footer-col a { font-size: 0.84rem; padding: 0.3rem 0; }
    .footer-about { font-size: 0.84rem; }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1rem 0;
    }
    .footer-newsletter input { font-size: 0.82rem; padding: 0.55rem 0.75rem; }
    .footer-newsletter button { padding: 0.55rem 0.85rem; font-size: 0.82rem; }
}
