/* Hide default Astra Footer */
.site-footer:not(.custom-footer) {
    display: none !important;
}

/* Custom Footer Styles */
.custom-footer {
    background-color: var(--adst-bg-alt);
    padding-bottom: 0px !important;
    padding-top: 40px;
    padding-inline: 20px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    box-shadow: 0 -5px 20px 3px #0002;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Right Column (Social & Payment) */
.footer-social-payment {
    background-color: var(--adst-light-green);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--adst-glass-shadow);
}

.footer-social-payment img {
    width: 35px !important;
    height: 35px !important;
    padding: 5px !important;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--adst-primary);
    font-weight: bold;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icon {
    min-width: 40px;
    min-height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--adst-primary);
    font-size: 18px;
    text-decoration: none;
    box-shadow: var(--adst-glass-shadow);
    transition: 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--adst-accent) !important;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.payment-icon-box {
    background-color: var(--adst-bg-alt);
    border-radius: 15px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.payment-icon-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--adst-glass-shadow);
}

.payment-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.tax-info {
    margin-top: 20px;
}

.tax-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.tax-label {
    font-weight: bold;
    font-size: 16px;
}

.tax-number {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
}

.tax-icon img {
    width: 45px;
    height: auto;
    display: block;
}

/* Center Column (Info) */
.footer-info {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--adst-glass-shadow);
}

.footer-logo img {
    max-width: 200px;
}

.footer-desc p {
    margin: 15px 0;
    color: var(--adst-primary);
    font-size: 14px;
    line-height: 1.6;
}

.contact-info {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
}

.s-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.s-contacts-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.s-contacts-item:hover {
    color: var(--adst-accent) !important;
}

.s-contacts-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--adst-accent);
}

.s-contacts-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.unicode {
    font-family: 'Cairo', sans-serif;
    direction: ltr;
}


/* Left Column (Links) */
.footer-links {
    text-align: right;
    background-color: var(--adst-light-green);
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--adst-glass-shadow);
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--adst-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--adst-accent);
    font-weight: bold;
}

/* Copyright Bar */
.footer-copyright {
    background-color: white;
    text-align: center;
    padding-block: 25px;
    margin-top: 40px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    font-size: 13px;
    color: #666;
    width: 100%;
    box-shadow: var(--adst-glass-shadow);
}

.footer-copyright p {
    margin-bottom: 0px !important;
}

.footer-copyright a {
    color: var(--adst-primary);
    text-decoration: none;
    font-weight: bold;
}

.footer-copyright a:hover {
    color: var(--adst-accent);
}

/* Tax Popup Styles */
.tax-popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding-block: 100px;
}

.tax-popup-overlay.active {
    display: flex;
}

.tax-popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s;
}

.tax-popup-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.close-popup {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.close-popup:hover,
.close-popup:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* ================================== */
/* ==========<Responsiveness>======== */
/* ================================== */

/* Mobile Screen */
@media (max-width: 576px) {
    .custom-footer {
        padding: 30px 15px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        flex-wrap: nowrap;
    }

    .footer-col {
        min-width: 100%;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-logo img {
        max-width: 120px;
    }

    .footer-links ul li {
        margin-bottom: 12px;
    }

    .social-icons, .payment-icons, .contact-info {
        justify-content: center;
    }

    .tax-row {
        justify-content: center;
        flex-direction: column;
    }

    .social-icons {
        flex-wrap: wrap;
    }

    .social-icon {
        min-width: 35px;
        min-height: 35px;
        font-size: 16px;
    }

    .payment-icons {
        justify-content: center;
    }

    .payment-icon-box {
        width: 50px;
        height: 50px;
    }
}

/* Small Screens  */
@media (min-width: 577px) and (max-width: 768px) {
    .footer-links {
        text-align: center !important;
    }
    .footer-logo img {
        max-width: 150px;
    }
    .footer-section {
        text-align: center !important;
    }
    .social-icons, .payment-icons, .contact-info {
        justify-content: center;
    }
}

/* Tablet Screen */
@media (min-width: 768px) and (max-width: 920px) {
    .footer-logo img {
        max-width: 180px;
    }
}

/* Large Screens */
@media (min-width: 920px) and (max-width: 1280px) {}

/* ================================== */
/* ==========<Keyframes>======== */
/* ================================== */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}