/* Footer LTR Direction Fix for English Content */
/* This CSS ensures that footer content displays correctly with LTR direction in ALL pages */

/* MAIN FOOTER CONTAINER - Force LTR for entire footer */
.main-footer,
footer {
    direction: ltr !important;
    text-align: left !important;
}

/* Force LTR direction for all footer sections */
.footer-top,
.footer-bottom,
.footer-social,
.contact-info-section {
    direction: ltr !important;
    text-align: left !important;
}

/* All footer containers and rows */
.footer-top .container,
.footer-bottom .container,
.footer-social .container,
.footer-top .row,
.footer-bottom .row {
    direction: ltr !important;
}

/* Company info and descriptions should be LTR */
.company-info,
.footer-description,
.footer-section,
.contact-section {
    direction: ltr !important;
    text-align: left !important;
}

/* Footer logo and company name */
.footer-logo,
.company-name {
    direction: ltr !important;
    text-align: left !important;
}

/* Product categories and quick links */
.footer-links {
    direction: ltr !important;
    text-align: left !important;
}

.footer-links ul {
    direction: ltr !important;
    text-align: left !important;
    list-style: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.footer-links li {
    direction: ltr !important;
    text-align: left !important;
}

.footer-links a {
    direction: ltr !important;
    text-align: left !important;
    display: block;
    padding: 5px 0;
}

/* Contact information should be LTR */
.contact-item,
.contact-box,
.contact-detail,
.contact-details,
.contact-icon {
    direction: ltr !important;
    text-align: left !important;
}

/* Address and map links */
.address-item,
.map-link {
    direction: ltr !important;
    text-align: left !important;
}

/* Social media section */
.footer-social,
.social-content,
.social-links,
.social-link {
    direction: ltr !important;
    text-align: center !important;
}

/* Footer titles */
.footer-title,
.social-title {
    direction: ltr !important;
    text-align: left !important;
}

/* Copyright and development credits */
.copyright,
.powered-by,
.developer-credits,
.development-credits {
    direction: ltr !important;
    text-align: left !important;
}

/* Payment methods */
.payment-methods {
    direction: ltr !important;
    text-align: right !important;
}

.payment-text {
    direction: ltr !important;
    text-align: right !important;
}

.payment-icons {
    direction: ltr !important;
    justify-content: flex-end !important;
    display: flex !important;
    align-items: center !important;
}

.payment-icon {
    direction: ltr !important;
}

.security-badge {
    direction: ltr !important;
    text-align: right !important;
}

/* Brand badges */
.brands-showcase {
    direction: ltr !important;
    text-align: left !important;
    justify-content: flex-start !important;
    display: flex !important;
    gap: 15px !important;
}

.brand-badge {
    direction: ltr !important;
    text-align: center !important;
}

.brand-name {
    direction: ltr !important;
    text-align: center !important;
}

/* Footer bottom alignment */
.footer-bottom .row {
    direction: ltr !important;
}

.footer-bottom .col-md-6 {
    direction: ltr !important;
    text-align: left !important;
}

.footer-bottom .col-md-6.text-start {
    direction: ltr !important;
    text-align: right !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .footer-bottom .col-md-6 {
        text-align: left !important;
        margin-top: 15px;
    }
    
    .payment-icons {
        justify-content: flex-start !important;
    }
    
    .brands-showcase {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Development credits styling */
.development-credits {
    direction: ltr !important;
    text-align: left !important;
    font-size: 14px;
    margin-top: 10px;
}

.development-credits .credits-line,
.development-credits .credit-line {
    direction: ltr !important;
    text-align: left !important;
    margin-bottom: 5px;
}

/* English text specific styling */
.footer-section .english-text,
.footer-section p,
.footer-section span,
.footer-section div,
.footer-section h5,
.footer-section h6 {
    direction: ltr !important;
    text-align: left !important;
}

/* Force LTR for all text elements in footer */
.main-footer *,
footer * {
    direction: ltr !important;
}

/* Override any RTL styles that might be applied */
html[dir="rtl"] .main-footer,
html[dir="rtl"] .footer-top,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .footer-social,
html[dir="rtl"] footer,
body[dir="rtl"] .main-footer,
body[dir="rtl"] .footer-top,
body[dir="rtl"] .footer-bottom,
body[dir="rtl"] .footer-social,
body[dir="rtl"] footer {
    direction: ltr !important;
}

/* Extra strong override for subpages */
.main-footer,
.main-footer .container,
.main-footer .row,
.main-footer .col-lg-4,
.main-footer .col-lg-2,
.main-footer .col-md-6,
.main-footer .footer-section,
.main-footer .contact-section,
.main-footer .company-info {
    direction: ltr !important;
    text-align: left !important;
}

/* CRITICAL: Force LTR in checkout and all subpages */
.checkout-page .main-footer,
.checkout-page .footer-top,
.checkout-page .footer-bottom,
.checkout-page .footer-social {
    direction: ltr !important;
    text-align: left !important;
}

/* Override any Bootstrap RTL classes */
[dir="rtl"] .main-footer,
[dir="rtl"] .footer-top,
[dir="rtl"] .footer-bottom,
[dir="rtl"] .footer-social {
    direction: ltr !important;
    text-align: left !important;
}

/* Bootstrap column overrides */
.main-footer .col-lg-4,
.main-footer .col-lg-2,
.main-footer .col-md-6,
.main-footer .col-sm-6,
.main-footer .col-12 {
    direction: ltr !important;
    text-align: left !important;
}

/* Text alignment fixes for footer content */
.main-footer h1,
.main-footer h2,
.main-footer h3,
.main-footer h4,
.main-footer h5,
.main-footer h6,
.main-footer p,
.main-footer div,
.main-footer span,
.main-footer a,
.main-footer li {
    direction: ltr !important;
    text-align: left !important;
}

/* Contact information specific fixes */
.contact-item h6,
.contact-item p,
.contact-item a {
    direction: ltr !important;
    text-align: left !important;
}

/* Navigation and menu items */
.footer-nav {
    direction: ltr !important;
}

.footer-nav ul {
    direction: ltr !important;
    text-align: left !important;
}

.footer-nav li {
    direction: ltr !important;
    text-align: left !important;
}

/* Override any RTL styles that might interfere */
.footer-top * {
    direction: ltr !important;
}

.footer-bottom * {
    direction: ltr !important;
}

.contact-info-section * {
    direction: ltr !important;
}

/* Specific fixes for common RTL issues */
.footer-section ul {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.footer-section li {
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Social media icons alignment */
.social-icons {
    direction: ltr !important;
    justify-content: center !important;
}

.social-icon {
    direction: ltr !important;
}