/**
 * Footer styles for Foxbow theme
 */

/* Newsletter Section */
.footer-newsletter {
    background-color: #71b02c;
    padding: 40px 0;
    color: #fff;
    width: 100%;
}


.footer-newsletter .row {
    display: flex !important;
    align-items: center !important;
    min-height: 120px;
}

.footer-newsletter .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-newsletter h3 {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Override PrestaShop default newsletter styles */
#blockEmailSubscription_displayFooterBefore {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.footer-newsletter .block_newsletter {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: transparent !important;
    font-size: inherit !important;
    clear: none !important;
}

/* Foxbow Newsletter Form */
.foxbow-newsletter {
    background: transparent !important;
}

.foxbow-newsletter .newsletter-content {
    max-width: 450px;
}

.foxbow-newsletter .newsletter-form {
    margin-bottom: 10px;
}

.foxbow-newsletter .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 0;
    overflow: visible;
    height: 40px;
    border: 3px solid transparent !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.foxbow-newsletter input[type="email"],
.block_newsletter.foxbow-newsletter form input[type="email"] {
    width: 100%;
    padding: 8px 50px 8px 15px !important;
    border: none !important;
    background-color: transparent;
    color: #212529;
    font-size: 14px;
    height: 100%;
    outline: none;
}

.foxbow-newsletter input[type="email"]:focus,
.block_newsletter.foxbow-newsletter form input[type="email"]:focus,
.footer-newsletter .block_newsletter form input[type="email"]:focus {
    outline: none !important;
    border: none !important;
    padding: 8px 50px 8px 15px !important;
}

.foxbow-newsletter .input-wrapper:focus-within {
    border-color: #4a7a1f !important;
    box-shadow: 0 0 0 1px rgba(74, 122, 31, 0.2) !important;
}

.foxbow-newsletter input[type="email"]::placeholder {
    color: #999;
    font-size: 13px;
}

.foxbow-newsletter .btn.btn-newsletter,
.foxbow-newsletter button.btn-newsletter {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: transparent !important;
    border: none !important;
    color: #999 !important;
    padding: 0 15px;
    cursor: pointer;
    transition: none !important;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    box-shadow: none !important;
}

.foxbow-newsletter .btn.btn-newsletter:hover,
.foxbow-newsletter .btn.btn-newsletter:focus,
.foxbow-newsletter .btn.btn-newsletter:active,
.foxbow-newsletter .btn.btn-newsletter:focus-visible,
.foxbow-newsletter button.btn-newsletter:hover,
.foxbow-newsletter button.btn-newsletter:focus,
.foxbow-newsletter button.btn-newsletter:active,
.foxbow-newsletter button.btn-newsletter:focus-visible {
    background-color: transparent !important;
    color: #999 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.foxbow-newsletter .btn-newsletter i {
    font-size: 16px;
}

.foxbow-newsletter .newsletter-info {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.foxbow-newsletter .newsletter-info p {
    color: #fff !important;
    margin: 0 0 5px 0;
}

.foxbow-newsletter .newsletter-conditions {
    margin-top: 8px;
}

.foxbow-newsletter .custom-checkbox {
    display: flex;
    align-items: flex-start;
}

.foxbow-newsletter .custom-checkbox input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

.foxbow-newsletter .custom-checkbox input[type="checkbox"]:checked {
    background-color: #5a8f25;
}

.foxbow-newsletter .custom-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.foxbow-newsletter .custom-checkbox label {
    color: #fff !important;
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;
}

/* Social Links */
.footer-social {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 100%;
    padding: 0;
    text-align: right;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.social-links li {
    display: inline-block;
}

.social-links a {
    color: #fff;
    font-size: 32px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: scale(1.15);
    color: rgba(255, 255, 255, 0.9);
}

/* Main Footer */
.footer-container {
    background: url('../img/basdepage.jpg') center center;
    background-size: cover;
    padding: 50px 0;
    position: relative;
}


.footer-container .container {
    position: relative;
    z-index: 1;
}

.footer-block {
    margin-bottom: 30px;
}

.footer-block h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #212529;
    position: relative;
    padding-bottom: 10px;
}

.footer-block h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    border-bottom: solid 3px #91867b;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.footer-links li:before {
    content: '›';
    position: absolute;
    left: 0;
    color: #71b02c;
}

.footer-links a {
    color: #484848;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #71b02c !important;
}

/* Contact Block */
.footer-contact .contact-info {
    background: #fff;
    padding: 20px;
    border: 1px solid #e6e6e6;
}

.footer-contact h5 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #212529;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #484848;
    font-size: 14px;
}

.footer-contact i {
    width: 20px;
    margin-right: 10px;
    color: #71b02c;
}

.footer-contact .retrait-drive {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e6e6e6;
}

.footer-contact .text-orange {
    color: #e95924;
    font-weight: 700;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    font-size: 12px;
}

.footer-bottom .copyright {
    margin: 0;
    line-height: 40px;
}

.footer-bottom a {
    color: #71b02c;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.payment-methods {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.payment-methods i {
    font-size: 30px;
    color: #fff;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #71b02c;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #a5aaae;
}

/* Footer 3-column layout adjustments */
@media (min-width: 992px) {
    .footer-container .footer-contact {
        /* Adjust contact block to be equal with other columns */
        max-width: 100%;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .footer-social {
        justify-content: center;
        margin-top: 30px;
    }

    .payment-methods {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-bottom .text-right {
        text-align: center !important;
    }

    /* Mobile responsive for footer columns */
    .footer-container .row > .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    /* Mobile newsletter adjustments */
    .foxbow-newsletter .newsletter-content {
        max-width: 100%;
    }

    .footer-newsletter h3 {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}