/**
 * Meercato Footer Styles
 * Matches Figma design: node 1:5022
 */

/* Footer Base */
.meercato-footer {
    background-color: #1d1d1d;
    color: #fff;
    font-family: 'Almarai', sans-serif;
    direction: rtl;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

@media (max-width: 1024px) {
    .footer-container {
        padding: 0 32px;
    }
}

@media (max-width: 640px) {
    .footer-container {
        padding: 0 16px;
    }
}

/* Main Footer Section */
.footer-main {
    padding: 48px 0;
}

.footer-main .footer-container {
    display: grid;
    grid-template-columns: 120px 1fr 300px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 1024px) {
    .footer-main .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Logo Section */
.footer-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .footer-logo-section {
        justify-content: flex-start;
    }
}

/* Links Wrapper */
.footer-links-wrapper {
    display: flex;
    gap: 64px;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .footer-links-wrapper {
        flex-direction: column;
        gap: 24px;
    }
}

/* Footer Column */
.footer-column {
    min-width: 140px;
}

.footer-column-title {
    font-size: 16px;
    font-weight: 700;
    color: #ee3a54;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links li:first-child a {
    font-weight: 700;
}

.footer-links a {
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ee3a54;
}

/* Newsletter Section */
.footer-newsletter {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
}

.footer-newsletter-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    text-align: right;
}

.newsletter-input-wrapper {
    display: flex;
    flex-direction: row;
    direction: ltr;
    gap: 0;
    margin-bottom: 12px;
    height: 48px;
    align-items: stretch;
}

.newsletter-input {
    flex: 1;
    padding: 0 16px;
    border: 1.5px solid #e7e8f2;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    font-family: 'Almarai', sans-serif;
    background-color: #fff;
    color: #333;
    direction: rtl;
    text-align: right;
    height: 48px;
    box-sizing: border-box;
}

.newsletter-input::placeholder {
    color: #808080;
}

.newsletter-input:focus {
    outline: none;
    border-color: #ee3a54;
}

.newsletter-submit-btn {
    width: 48px;
    height: 48px;
    background-color: #ee3a54;
    border: none;
    border-radius: 6px 0 0 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.newsletter-submit-btn:hover {
    background-color: #d32f4a;
}

.newsletter-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

/* Secondary Footer Section */
.footer-secondary {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-secondary .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

@media (max-width: 768px) {
    .footer-secondary .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Tagline */
.footer-tagline {
    flex: 1;
}

.tagline-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.tagline-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Social Media */
.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: #ee3a54;
    transform: translateY(-2px);
}

/* Payment Methods Section */
.footer-payment {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.payment-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    text-align: right;
}

.payment-methods {
    display: flex;
    justify-content: flex-start;
}

.payment-banks-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 24px;
    border-radius: 12px;
}

.bank-logo-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 65px;
    aspect-ratio: 1;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
}

.bank-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .payment-methods {
        justify-content: center;
    }
    
    .payment-title {
        text-align: center;
    }
}

/* Copyright Section */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    text-align: center;
}

.footer-copyright p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ===========================================
   MOBILE FOOTER STYLES - Figma Design 109:17665
   =========================================== */
@media (max-width: 767px) {
    /* Base Footer Mobile */
    .meercato-footer {
        background-color: #0e0d0d;
    }

    .footer-container {
        padding: 0 20px;
    }

    /* Main Footer Section Mobile */
    .footer-main {
        padding: 0;
    }

    .footer-main .footer-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    /* Hide Logo on Mobile */
    .footer-logo-section {
        display: none;
    }

    /* Newsletter Section Mobile - Move to top */
    .footer-newsletter {
        order: -1;
        background-color: #2b2b2b;
        border-radius: 8px;
        padding: 16px 16px 18px;
        margin: 24px 20px 20px;
        position: relative;
    }

    .footer-newsletter-title {
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        margin: 0 0 12px 0;
        text-align: right;
        font-family: 'Open Sans', sans-serif;
    }

    .newsletter-input-wrapper {
        flex-direction: row-reverse;
        gap: 0;
        background: #fff;
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 12px;
        height: 44px;
    }

    .newsletter-input {
        flex: 1;
        padding: 10px 14px;
        border: none;
        border-radius: 0;
        font-size: 14px;
        text-align: right;
    }

    .newsletter-submit-btn {
        width: 44px;
        height: 44px;
        border-radius: 0;
        background-color: #ee3a54;
    }

    .newsletter-description {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        text-align: right;
        line-height: 1.6;
    }

    /* Links Wrapper Mobile - Accordion Style */
    .footer-links-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer Column Mobile - Accordion */
    .footer-column {
        border-bottom: 1px solid #2a2a2a;
        padding: 16px 0;
        min-width: auto;
        width: 100%;
    }

    .footer-column-title {
        font-size: 24px;
        font-weight: 700;
        color: #ee3a54;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-family: 'Open Sans', 'Noto Sans Arabic', sans-serif;
        flex-direction: row-reverse;
        width: 100%;
    }

    .footer-column-title::before {
        content: '';
        width: 25px;
        height: 25px;
        border: 1px solid #d8d8d8;
        border-radius: 50%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ee3a54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        flex-shrink: 0;
    }

    .footer-links {
        display: none;
        padding-top: 12px;
    }

    .footer-column.expanded .footer-links {
        display: flex;
    }

    .footer-column.expanded .footer-column-title::before {
        transform: rotate(180deg);
    }

    .footer-links a {
        font-size: 14px;
        padding: 6px 0;
    }

    /* Secondary Footer Section Mobile */
    .footer-secondary {
        border-top: 1px solid #2a2a2a;
        padding: 40px 20px;
    }

    .footer-secondary .footer-container {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        gap: 40px;
        padding: 0;
    }

    /* Tagline Mobile */
    .footer-tagline {
        width: 100%;
    }

    .tagline-title {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        margin: 0 0 19px 0;
        font-family: 'Open Sans', 'Noto Sans Arabic', sans-serif;
    }

    .tagline-text {
        font-size: 16px;
        color: #808080;
        font-family: 'Open Sans', 'Noto Sans Arabic', sans-serif;
        font-weight: 600;
    }

    /* Social Media Mobile */
    .footer-social {
        flex-direction: column;
        align-items: flex-end;
        gap: 29px;
        width: 100%;
    }

    .social-title {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        font-family: 'Open Sans', 'Noto Sans Arabic', sans-serif;
        width: 100%;
        text-align: right;
    }

    .social-icons {
        display: flex;
        flex-direction: row-reverse;
        gap: 12px;
        justify-content: flex-end;
        width: 100%;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        background-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        margin-left: 0;
    }

    .social-icon:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: none;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Payment Methods Section Mobile */
    .footer-payment {
        border-top: none;
        padding: 0 20px 24px;
    }

    .footer-payment .footer-container {
        padding: 0;
        border-bottom: 1px solid #2a2a2a;
        padding-bottom: 16px;
    }

    .payment-title {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        text-align: right;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-family: 'Open Sans', 'Noto Sans Arabic', sans-serif;
        flex-direction: row-reverse;
    }

    .payment-title::before {
        content: '';
        width: 25px;
        height: 25px;
        border: 1px solid #d8d8d8;
        border-radius: 50%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ee3a54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        flex-shrink: 0;
    }

    .payment-methods {
        display: none;
        padding-top: 16px;
    }

    .footer-payment.expanded .payment-methods {
        display: flex;
        justify-content: center;
    }

    .footer-payment.expanded .payment-title::before {
        transform: rotate(180deg);
    }

    .payment-banks-grid {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 0;
        justify-content: center;
    }

    .bank-logo-item {
        flex: 0 0 auto;
        width: 60px;
        height: 60px;
    }

    /* Copyright Mobile */
    .footer-copyright {
        border-top: none;
        padding: 16px 20px;
        background-color: #0e0d0d;
    }

    .footer-copyright p {
        font-size: 11px;
    }
}

/* ===========================================
   TABLET FOOTER STYLES (768px - 1024px)
   Figma Design: node 139:9794
   =========================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Base Footer Tablet */
    .meercato-footer {
        background-color: #0e0d0d;
    }

    .footer-container {
        padding: 0 20px;
    }

    /* Main Footer Section Tablet */
    .footer-main {
        padding: 0;
    }

    .footer-main .footer-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    /* Hide Logo on Tablet */
    .footer-logo-section {
        display: none;
    }

    /* Newsletter Section Tablet - Move to top */
    .footer-newsletter {
        order: -1;
        background-color: #2b2b2b;
        border-radius: 8px;
        padding: 16px 16px 18px;
        margin: 24px 20px 20px;
        position: relative;
    }

    .footer-newsletter-title {
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        margin: 0 0 12px 0;
        text-align: right;
        font-family: 'Open Sans', sans-serif;
    }

    .newsletter-input-wrapper {
        flex-direction: row-reverse;
        gap: 0;
        background: #fff;
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 12px;
        height: 44px;
    }

    .newsletter-input {
        flex: 1;
        padding: 10px 14px;
        border: none;
        border-radius: 0;
        font-size: 14px;
        text-align: right;
    }

    .newsletter-submit-btn {
        width: 44px;
        height: 44px;
        border-radius: 0;
        background-color: #ee3a54;
    }

    .newsletter-description {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        text-align: right;
        line-height: 1.6;
    }

    /* Links Wrapper Tablet - Accordion Style */
    .footer-links-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer Column Tablet - Accordion */
    .footer-column {
        border-bottom: 1px solid #2a2a2a;
        padding: 16px 0;
        min-width: auto;
        width: 100%;
    }

    .footer-column-title {
        font-size: 24px;
        font-weight: 700;
        color: #ee3a54;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-family: 'Open Sans', 'Noto Sans Arabic', sans-serif;
        flex-direction: row-reverse;
        width: 100%;
    }

    .footer-column-title::before {
        content: '';
        width: 25px;
        height: 25px;
        border: 1px solid #d8d8d8;
        border-radius: 50%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ee3a54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        flex-shrink: 0;
    }

    .footer-links {
        display: none;
        padding-top: 12px;
    }

    .footer-column.expanded .footer-links {
        display: flex;
    }

    .footer-column.expanded .footer-column-title::before {
        transform: rotate(180deg);
    }

    .footer-links a {
        font-size: 14px;
        padding: 6px 0;
    }

    /* Secondary Footer Section Tablet */
    .footer-secondary {
        border-top: 1px solid #2a2a2a;
        padding: 40px 20px;
    }

    .footer-secondary .footer-container {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        gap: 40px;
        padding: 0;
    }

    /* Tagline Tablet */
    .footer-tagline {
        width: 100%;
    }

    .tagline-title {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        margin: 0 0 19px 0;
        font-family: 'Open Sans', 'Noto Sans Arabic', sans-serif;
    }

    .tagline-text {
        font-size: 16px;
        color: #808080;
        font-family: 'Open Sans', 'Noto Sans Arabic', sans-serif;
        font-weight: 600;
    }

    /* Social Media Tablet */
    .footer-social {
        flex-direction: column;
        align-items: flex-end;
        gap: 29px;
        width: 100%;
    }

    .social-title {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        font-family: 'Open Sans', 'Noto Sans Arabic', sans-serif;
        width: 100%;
        text-align: right;
    }

    .social-icons {
        display: flex;
        flex-direction: row-reverse;
        gap: 12px;
        justify-content: flex-end;
        width: 100%;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        background-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        margin-left: 0;
    }

    .social-icon:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: none;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Payment Methods Section Tablet */
    .footer-payment {
        border-top: none;
        padding: 0 20px 24px;
    }

    .footer-payment .footer-container {
        padding: 0;
        border-bottom: 1px solid #2a2a2a;
        padding-bottom: 16px;
    }

    .payment-title {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        text-align: right;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-family: 'Open Sans', 'Noto Sans Arabic', sans-serif;
        flex-direction: row-reverse;
    }

    .payment-title::before {
        content: '';
        width: 25px;
        height: 25px;
        border: 1px solid #d8d8d8;
        border-radius: 50%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ee3a54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        flex-shrink: 0;
    }

    .payment-methods {
        display: none;
        padding-top: 16px;
    }

    .footer-payment.expanded .payment-methods {
        display: flex;
        justify-content: center;
    }

    .footer-payment.expanded .payment-title::before {
        transform: rotate(180deg);
    }

    .payment-banks-grid {
        flex-wrap: wrap;
        gap: 14px;
        padding: 16px 0;
        justify-content: center;
    }

    .bank-logo-item {
        flex: 0 0 auto;
        width: 70px;
        height: 70px;
    }

    /* Copyright Tablet */
    .footer-copyright {
        border-top: none;
        padding: 16px 20px;
        background-color: #0e0d0d;
    }

    .footer-copyright p {
        font-size: 11px;
    }
}
