.men-footer {
    width: 100%;
    height: 447px;
    background-color: #efefef;
    margin-top: 120px;
}

.men-footer-main-container {
    position: relative;
    width: 1440px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.men-footer-about-section,
.men-footer-webshop-section,
.men-footer-policies-section,
.men-footer-shop-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.men-footer-about-section {
    position: absolute;
    top: 51px;
    left: 69px;
    width: 76px;
}

.men-footer-webshop-section {
    width: 198px;
}

.men-footer-policies-section {
    width: 199px;
    margin-left: 22px;
}

.men-footer-shop-section {
    width: 199px;
    margin-left: 22px;
}

.men-footer-about-section .men-footer-title,
.men-footer-webshop-section .men-footer-title,
.men-footer-policies-section .men-footer-title,
.men-footer-shop-section .men-footer-title,
.men-footer-newsletter-section .men-footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.men-footer-about-section .men-footer-links,
.men-footer-webshop-section .men-footer-links,
.men-footer-policies-section .men-footer-links,
.men-footer-shop-section .men-footer-links {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.men-footer-about-section a,
.men-footer-webshop-section a,
.men-footer-policies-section a,
.men-footer-shop-section a {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
    white-space: normal;
    line-height: 1.4;
}

.men-footer-about-section a:hover,
.men-footer-webshop-section a:hover,
.men-footer-policies-section a:hover,
.men-footer-shop-section a:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

.men-footer-right-section {
    position: absolute;
    top: 50.9px;
    left: 180.5px;
    width: 1074px;
    height: 267px;
    display: flex;
    flex-direction: row;
}

.men-footer-multiline-link {
    white-space: normal !important;
    line-height: 1.4;
}

.men-footer-newsletter-section {
    width: 412px;
    height: 136px;
    margin-left: 22px;
    display: flex;
    flex-direction: column;
}

.men-footer-newsletter-section .men-footer-title {
    margin-bottom: 32px;
}

.men-footer-newsletter-text {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.men-footer-newsletter-form {
    display: flex;
    width: 412px;
    height: 48px;
    border: 1px solid #000000;
    background-color: #ffffff;
}

.men-footer-newsletter-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    color: #333;
    background: transparent;
}

.men-footer-newsletter-form button {
    width: 134px;
    height: 100%;
    background-color: #000000;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.men-footer-newsletter-form button:hover {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.men-footer-payment-icons {
    position: absolute;
    bottom: 73.1px;
    right: 0.5px;
    width: auto;
    height: auto;

    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.men-footer-payment-icons img {
    width: 36px;
    height: 25px;
    object-fit: contain;
}

.men-footer-copyright-text {
    position: absolute;
    top: 392.05px;
    left: 68px;
    width: 318px;
    height: 21.13px;
    font-size: 13px;
    font-weight: 400;
    color: #000;
    line-height: 21.13px;
}

.men-footer-toggle {
    display: none;
}

.men-footer-chevron-icon {
    display: none;
}

.men-footer-desktop-text {
    display: inline;
}

.men-footer-mobile-text {
    display: none;
}

/* Responsive desktop footer scaling for small desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .men-footer {
        width: 100%;
        overflow: hidden;
    }

    .men-footer-main-container {
        width: 1440px !important;
        transform-origin: top left;
        margin: 0 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1100px) {
    .men-footer-main-container {
        transform: scale(0.71) !important;
        margin-left: calc((100% - 1022.4px) / 2) !important;
    }

    .men-footer {
        height: 317px !important;
    }
}

@media (min-width: 1101px) and (max-width: 1200px) {
    .men-footer-main-container {
        transform: scale(0.79) !important;
        margin-left: calc((100% - 1137.6px) / 2) !important;
    }

    .men-footer {
        height: 353px !important;
    }
}

@media (min-width: 1201px) and (max-width: 1300px) {
    .men-footer-main-container {
        transform: scale(0.86) !important;
        margin-left: calc((100% - 1238.4px) / 2) !important;
    }

    .men-footer {
        height: 384px !important;
    }
}

@media (min-width: 1301px) and (max-width: 1439px) {
    .men-footer-main-container {
        transform: scale(0.93) !important;
        margin-left: calc((100% - 1339.2px) / 2) !important;
    }

    .men-footer {
        height: 416px !important;
    }
}

/* Responsive mobile/tablet footer styling (<= 1023px) */
@media (max-width: 1023px) {
    .men-footer {
        width: 100%;
        height: auto;
        padding: 40px 14.5px 40px 14.5px !important;
        margin-top: 60px;
    }

    .men-footer-main-container {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .men-footer-about-section {
        position: static;
        width: 100%;
        margin-bottom: 8px;
    }

    .men-footer-right-section {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        margin-left: 0 !important;
        gap: 0 !important;
    }

    .men-footer-webshop-section,
    .men-footer-policies-section,
    .men-footer-shop-section {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 8px;
        max-width: 100% !important;
    }

    /* Reset desktop vertical flex gaps so they don't space out collapsed accordions */
    .men-footer-about-section,
    .men-footer-webshop-section,
    .men-footer-policies-section,
    .men-footer-shop-section {
        gap: 0 !important;
    }

    /* Toggle texts for Policies / Policy */
    .men-footer-desktop-text {
        display: none;
    }

    .men-footer-mobile-text {
        display: inline;
    }

    /* Accordion Header styling */
    .men-footer-about-section .men-footer-title,
    .men-footer-webshop-section .men-footer-title,
    .men-footer-policies-section .men-footer-title,
    .men-footer-shop-section .men-footer-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        cursor: pointer;
        padding: 12px 0;
        font-size: 16px;
        font-weight: 700;
        color: #000;
        border-bottom: none;
        user-select: none;
    }

    /* Chevron icon display and animation */
    .men-footer-chevron-icon {
        display: inline-block !important;
        width: 14px;
        height: 8px;
        transition: transform 0.3s ease;
    }

    .men-footer-toggle:checked~.men-footer-title .men-footer-chevron-icon {
        transform: rotate(180deg);
    }

    /* Accordion links content smooth expansion */
    .men-footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        padding-top: 0;
        padding-bottom: 0;
        gap: 16px !important;
        /* space between list items */
        display: flex;
        flex-direction: column;
    }

    .men-footer-toggle:checked~.men-footer-links {
        max-height: 300px;
        padding-top: 8px;
        padding-bottom: 16px;
    }

    /* Always visible Newsletter section */
    .men-footer-newsletter-section {
        width: 100% !important;
        height: auto;
        margin-left: 0 !important;
        margin-top: 16px;
        margin-bottom: 32px;
        display: flex;
        flex-direction: column;
    }

    .men-footer-newsletter-form {
        width: 100% !important;
    }

    .men-footer-newsletter-section .men-footer-title {
        margin-bottom: 24px;
        font-size: 16px;
        font-weight: 700;
        color: #000;
    }

    /* Payment icons section styling */
    .men-footer .men-footer-main-container .men-footer-right-section .men-footer-payment-icons {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        height: 25px !important;
        margin: 40px 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .men-footer .men-footer-main-container .men-footer-right-section .men-footer-payment-icons img {
        width: 36px !important;
        height: 25px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    /* Copyright text section styling */
    .men-footer-copyright-text {
        position: static;
        width: 100% !important;
        height: auto;
        text-align: center;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.5;
        margin-top: 0;
    }

    /* Reset footer button hover colors and transforms on mobile */
    .men-footer-newsletter-form button:hover {
        background-color: #000000 !important;
        color: #ffffff !important;
        box-shadow: none !important;
        transform: none !important;
    }
}