footer {
    background-color: var(--filter-price-input);
}

.footer-grid {
    display: grid;
    padding: 91px 0;
}

.footer-col {
    max-width: 275px;
}

.footer-col h3 {
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;

}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

a.footer-link {
    text-decoration: none;
    color: var(--text-main);
    transition: color var(--transition-base);
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
}

.footer-link:hover {
    color: var(--accent-red);
}

.social-links {
    display: flex;
    gap: 7px;
    align-items: center;
    max-width: 165px;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--text-main);
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-main);
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* Contact Details */
.contact-item {
    display: flex;
    align-items: center;
    margin-top: 18px;
    color: var(--text-main);
    gap: 8px;
    /*font-family: 'Poppins';*/
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
}

.contact-item svg {
    width: 12px;
    height: 12px;
}

/* App Stores Base */
.app-links {
    display: flex;
    gap: 20px;
}

.app-links img {
    height: 40px;
    width: auto;
    border: 1px solid #A6A6A6;
    ;
    border-radius: 10px;
}

/* Bottom Black Bar */
.bottom-bar {
    background-color: var(--text-main);
    color: #fff;
    padding: 20px 0;
}

.bottom-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16.5px;
}

.bottom-left,
.bottom-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.iso-section {
    display: flex;
    align-items: center;
    gap: 32px;
}

.copyright {
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    text-align: center;
    color: var(--filter-price-input);
}

.payment-methods {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-methods img {
    height: 20px;
    background: #fff;
    border-radius: 4px;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    text-align: center;
}

.creator-info span {
    color: var(--filter-price-input);
}

.creator-link svg path {
    transition: fill var(--transition-base, 0.3s);
}

.creator-link:hover svg path {
    fill: #eb2f51;
}

.creator-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* --- RESPONSIVE BREAKPOINTS & GRID ASSIGNMENTS --- */

.footer-logo {
    grid-area: logo;
    align-self: start;
    display: flex;
    width: 265px;
    height: 55px;
}

.footer-logo img {
    width: 100%;
}

.footer-shop {
    grid-area: shop;
}

.footer-service {
    grid-area: service;
}

.footer-contact {
    grid-area: contact;
}

.footer-socials {
    grid-area: socials;
    align-self: start;
}

.footer-apps {
    grid-area: apps;
}

/* 1. DESKTOP LARGE (1200px+) - Frame 626300865.png */
@media (min-width: 1441px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1.2fr 1fr 1.2fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "logo shop service contact apps"
            "socials shop service contact apps";
        column-gap: 120px;
        row-gap: 40px;
    }

    .footer-apps .app-links {
        flex-direction: column;
    }
}

@media (min-width: 1280px) {
    .footer-grid {
        grid-template-columns: 0.9fr 1fr 1.3fr 1fr auto;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "logo shop service contact apps"
            "socials shop service contact apps";
        column-gap: 50px;
        row-gap: 40px;
    }

    .footer-apps .app-links {
        flex-direction: column;
    }

    .bottom-bar {
        padding: 18px 0;
    }

    .footer-grid {
        display: grid;
        padding: 91.5px 0;
    }
}

/* 2. TABLET LARGE (992px - 1199px) - Frame 626300865 (1).png */
@media (max-width: 1279px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1.5fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "logo shop service"
            "socials contact apps";
        column-gap: 60px;
        row-gap: 40px;
    }

    .footer-apps .app-links {
        flex-direction: row;
        justify-content: flex-start;
    }

    .bottom-container {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        gap: 12px 80px;
    }

    .bottom-left {
        justify-content: center;
        width: 100%;
    }

    .footer-logo {
        width: 132px;
    }

    .iso-section img {
        width: 50px;
    }

    .bottom-bar {
        padding: 16px 0;
        margin-bottom: 85px;
    }

    .footer-grid {
        display: grid;
        padding: 30px 0;
    }
}

/* 3. TABLET SMALL (768px - 991px) - Frame 626300865 (2).png */
@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 0.5fr 0.8fr 1.7fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "logo shop service"
            "socials contact apps";
        column-gap: 80px;
        row-gap: 40px;
    }

    .footer-apps .app-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bottom-container {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

    .bottom-left,
    .bottom-right {
        justify-content: center;
        gap: 14.5px;
    }

    .footer-logo {
        width: 132px;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* 4. MOBILE & SMALL MOBILE (< 768px) - Frame 626300938 / 1 */
@media (max-width: 767px) {

    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "shop"
            "service"
            "contact"
            "socials"
            "apps";
        gap: 28px;
        padding: 20px 0;
    }

    /* Apps stay side-by-side but scale down for extremely narrow screens */
    .footer-apps .app-links {
        display: flex;
        flex-direction: row;
        gap: 17px;
        width: 100%;
    }

    .footer-apps .app-links a {
        flex: 1;
        display: flex;
        min-width: 0;
        /* Allows shrinking below inherent sizes */
    }

    .footer-apps .app-links img {
        width: 100%;
        height: auto;
        max-height: 40px;
        object-fit: contain;
        object-position: left;
    }

    .bottom-bar {
        padding: 16px 0;
        margin-bottom: 70px;
    }

    .bottom-container {
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 0;
    }

    .bottom-left,
    .bottom-right {
        flex-direction: column;
        gap: 24px;
        justify-content: center;
        text-align: center;
    }

    .payment-methods {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-logo {
        width: 125px;
    }

    .footer-col h3,
    a.footer-link {
        font-size: 14px;
    }

    .footer-col ul li {
        margin-bottom: 16px;
    }
}

@media (max-width: 374px) {
    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-links {
        gap: 14px;
        max-width: 100%;
    }
}