/* ===================================================
   Ella Beauty — Shared Footer (all storefront pages)
   Load after page CSS so styles stay consistent
   =================================================== */

.footer {
    background: var(--clr-text, #3a2d3f);
    color: rgba(255, 255, 255, .75);
    padding: 4rem 0 1.5rem;
}

.footer--minimal {
    text-align: center;
    padding: 2rem 0;
    font-size: .82rem;
}

.footer--minimal a {
    color: var(--clr-pink, #e8a0bf);
}

.footer .container {
    width: min(92%, 1240px);
    margin-inline: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer__brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-pink, #e8a0bf);
    margin-bottom: .8rem;
}

.footer__brand span {
    font-weight: 300;
}

.footer__brand-img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.footer__contact {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer__contact a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer__contact a:hover {
    color: var(--clr-pink, #e8a0bf);
}

.footer__text {
    font-size: .88rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .55);
    max-width: 28ch;
}

.footer__heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-white, #fff);
    margin-bottom: 1rem;
}

.footer__link-list li + li {
    margin-top: .5rem;
}

.footer__link-list a {
    font-size: .88rem;
    color: rgba(255, 255, 255, .6);
    transition: color .35s ease, padding-inline-start .35s ease;
}

.footer__link-list a:hover {
    color: var(--clr-pink, #e8a0bf);
    padding-inline-start: 6px;
}

.footer__newsletter-input {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    margin-top: .5rem;
}

.footer__newsletter-input input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: .7rem 1.2rem;
    border: none;
    background: rgba(255, 255, 255, .08);
    color: var(--clr-white, #fff);
    font-family: var(--font-body, 'Cairo', sans-serif);
    font-size: .88rem;
    outline: none;
    direction: rtl;
}

.footer__newsletter-input input::placeholder {
    color: rgba(255, 255, 255, .35);
}

.footer__newsletter-input button {
    flex: 0 0 auto;
    padding: .7rem 1.25rem;
    background: var(--clr-rose-gold, #b76e79);
    color: var(--clr-white, #fff);
    font-weight: 700;
    font-size: .82rem;
    white-space: nowrap;
    transition: background .35s ease;
}

.footer__newsletter-input button:hover {
    background: var(--clr-rose, #c97c9a);
}

.footer__newsletter-input.is-success button {
    background: linear-gradient(135deg, #6ec17a, #48a85a);
}

.footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1rem;
}

.footer__socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .6);
    transition: background .35s ease, color .35s ease, transform .35s ease;
}

.footer__socials a:hover {
    background: var(--clr-rose-gold, #b76e79);
    color: var(--clr-white, #fff);
    transform: translateY(-3px);
}

.footer__bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .8rem;
    color: rgba(255, 255, 255, .35);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 3rem 0 1.25rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-bottom: 2rem;
    }

    .footer__text {
        max-width: none;
    }

    .footer__newsletter-input {
        flex-direction: column;
        border-radius: var(--radius-md, 16px);
    }

    .footer__newsletter-input input,
    .footer__newsletter-input button {
        width: 100%;
        border-radius: 0;
    }

    .footer__newsletter-input button {
        padding: .85rem 1rem;
    }
}
