﻿/* =============================================
   MOSSBERRY — FOOTER
   ============================================= */

/* ── Newsletter — maximum specificity ── */
html body .footer-newsletter,
html body div.footer-newsletter {
    background: #15803D !important;
    background-image: none !important;
    padding: 28px 0 !important;
    position: relative !important;
    overflow: hidden !important;
    border-top: 3px solid #111111 !important;
    border-bottom: 3px solid #111111 !important;
}

.footer-newsletter::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent) !important;
    animation: nl-shimmer 4s ease infinite !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.footer-newsletter::after {
    display: none !important;
}

@keyframes nl-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.footer-newsletter .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

.newsletter-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    flex-wrap: wrap !important;
}

.newsletter-content {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.newsletter-icon {
    width: 46px !important;
    height: 46px !important;
    background: rgba(255,255,255,0.15) !important;
    border: 2px solid rgba(255,255,255,0.45) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
}

    .newsletter-icon:hover {
        background: #ffffff !important;
        transform: scale(1.08) rotate(8deg) !important;
    }

    .newsletter-icon i,
    .newsletter-icon svg {
        font-size: 20px !important;
        color: #ffffff !important;
    }

    .newsletter-icon:hover i,
    .newsletter-icon:hover svg {
        color: #15803D !important;
    }

.newsletter-text {
    display: flex;
    align-items: center;
}

    .newsletter-text h4 {
        font-family: 'Luckiest Guy', cursive !important;
        font-size: 1.1rem !important;
        font-weight: 400 !important;
        color: #ffffff !important;
        margin: 0 !important;
        white-space: nowrap !important;
        letter-spacing: 0.03em !important;
    }

    .newsletter-text p {
        display: none !important;
    }

.newsletter-form {
    display: flex !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
}

.newsletter-input {
    width: 260px !important;
    padding: 13px 22px !important;
    border: 2px solid rgba(255,255,255,0.55) !important;
    border-right: none !important;
    border-radius: 50px 0 0 50px !important;
    font-size: 0.9rem !important;
    font-family: 'Poppins', sans-serif !important;
    background: rgba(255,255,255,0.14) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

    .newsletter-input::placeholder {
        color: rgba(255,255,255,0.60) !important;
    }

    .newsletter-input:focus {
        outline: none !important;
        background: rgba(255,255,255,0.24) !important;
        border-color: #ffffff !important;
    }

.newsletter-btn {
    padding: 13px 26px !important;
    background: #111111 !important;
    color: #ffffff !important;
    border: 2px solid #111111 !important;
    border-radius: 0 50px 50px 0 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

    .newsletter-btn:hover {
        background: #15803D !important;
        border-color: #15803D !important;
        color: #111111 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
    }

    .newsletter-btn svg {
        transition: transform 0.25s ease;
    }

    .newsletter-btn:hover svg {
        transform: translateX(4px);
    }

/* ── Footer body ── */
.footer.footer--three {
    background: #111111 !important;
    color: #ffffff !important;
    padding: 56px 0 32px !important;
    border: none !important;
}

    .footer.footer--three .container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 32px !important;
        box-sizing: border-box !important;
    }

    .footer.footer--three .row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 40px !important;
    }

    .footer.footer--three .col-lg-9 {
        flex: 1 !important;
        min-width: 280px !important;
    }

    .footer.footer--three .col-lg-3 {
        flex: 0 0 240px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
    }

/* Nav */
.footer-nav-container {
    margin-bottom: 28px;
}

.footer-nav-container--horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.footer-nav-container h4,
.footer-nav-container .widget-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin: 0 0 14px 0;
    position: relative;
    padding-bottom: 10px;
}

    .footer-nav-container h4::after,
    .footer-nav-container .widget-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 24px;
        height: 2px;
        background: #15803D;
        border-radius: 2px;
    }

.footer-nav-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-container li {
    margin-bottom: 8px;
}

.footer-nav-container a {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.50);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

    .footer-nav-container a:hover {
        color: #15803D;
        transform: translateX(4px);
    }

/* Copyright */
.footer__copyright-text {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.10);
}

    .footer__copyright-text p {
        font-family: 'Poppins', sans-serif;
        font-size: 0.82rem;
        color: rgba(255,255,255,0.30);
        margin: 0;
        line-height: 1.7;
    }

    .footer__copyright-text a {
        color: #15803D;
        text-decoration: none;
        font-weight: 600;
    }

/* Social */
.social-icons--footer {
    margin-bottom: 20px;
}

    .social-icons--footer ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }

    .social-icons--footer li {
        margin: 0;
    }

    .social-icons--footer a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.08);
        border-radius: 50%;
        color: rgba(255,255,255,0.55);
        font-size: 16px;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid rgba(255,255,255,0.12);
    }

        .social-icons--footer a:hover {
            background: #15803D;
            color: #111111;
            border-color: transparent;
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(170,204,0,0.35);
        }

/* Payment */
.payment-icon img {
    max-width: 150px;
    opacity: 0.30;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.payment-icon:hover img {
    opacity: 0.60;
}

/* Currency / language */
.footer.footer--three .mt-10 {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

    .footer.footer--three .mt-10 select {
        padding: 9px 30px 9px 14px;
        font-size: 0.82rem;
        font-weight: 600;
        font-family: 'Poppins', sans-serif;
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 8px;
        background: rgba(255,255,255,0.07);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        color: rgba(255,255,255,0.65);
        cursor: pointer;
        appearance: none;
        transition: all 0.2s ease;
    }

        .footer.footer--three .mt-10 select:hover,
        .footer.footer--three .mt-10 select:focus {
            outline: none;
            border-color: #15803D;
            color: #ffffff;
        }

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: #15803D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(155,46,200,0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    z-index: 999;
}

    .scroll-top::before {
        content: "↑";
        font-size: 20px;
        font-weight: bold;
    }

    .scroll-top.visible, .scroll-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .scroll-top:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(155,46,200,0.55);
    }

/* Overlays */
.cart-overlay, .wishlist-overlay {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 40px rgba(0,0,0,0.18);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
}

    .cart-overlay.active, .wishlist-overlay.active {
        right: 0;
    }

.cart-overlay-close, .wishlist-overlay-close {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.50);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .cart-overlay-close.active, .wishlist-overlay-close.active {
        opacity: 1;
        visibility: visible;
    }

.wishlist-overlay-content,
.cart-overlay-content {
    padding: 30px;
    height: 100%;
    overflow-y: auto;
}

/* Search overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.96);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .search-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.search-close-icon {
    position: absolute;
    top: 30px;
    right: 30px;
}

    .search-close-icon a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: rgba(255,255,255,0.10);
        border-radius: 50%;
        color: #ffffff;
        font-size: 20px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .search-close-icon a:hover {
            background: #15803D;
            color: #111111;
            transform: rotate(90deg);
        }

.search-overlay-content {
    text-align: center;
    width: 90%;
    max-width: 640px;
}

    .search-overlay-content .input-box input {
        width: 100%;
        padding: 20px 0;
        font-size: 2rem;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        border: none;
        border-bottom: 2px solid rgba(255,255,255,0.20);
        background: transparent;
        text-align: center;
        outline: none;
        color: #ffffff;
        transition: border-color 0.3s ease;
    }

        .search-overlay-content .input-box input::placeholder {
            color: rgba(255,255,255,0.30);
        }

        .search-overlay-content .input-box input:focus {
            border-color: #15803D;
        }

    .search-overlay-content .search-hint span {
        display: block;
        margin-top: 20px;
        color: rgba(255,255,255,0.30);
        font-size: 0.88rem;
        font-family: 'Poppins', sans-serif;
    }

/* ── Responsive ── */
@media (max-width: 768px) {
    .newsletter-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
    }

    .newsletter-input {
        border-right: 2px solid rgba(255,255,255,0.55) !important;
        border-radius: 50px !important;
        width: 100% !important;
    }

    .newsletter-btn {
        border-radius: 50px !important;
        justify-content: center !important;
        margin-top: 8px !important;
    }

    .footer.footer--three .col-lg-3 {
        flex: 1 !important;
        align-items: flex-start;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.10);
    }

    .social-icons--footer ul {
        justify-content: flex-start;
    }

    .footer.footer--three .mt-10 {
        justify-content: flex-start;
    }

    .footer-nav-container--horizontal {
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .footer.footer--three .container,
    .footer-newsletter .container {
        padding: 0 20px !important;
    }

    .newsletter-text h4 {
        font-size: 0.95rem !important;
        white-space: normal !important;
        text-align: center;
    }
}

}


25%, 45% {
    background: #15803D;
}

50%, 70% {
    background: #15803D;
}

75%, 95% {
    background: #15803D;
}

100% {
    background: #15803D;
}

}

.newsletter-text h4 {
    animation: footer-nl-text 16s ease-in-out infinite;
}

.newsletter-icon i,
.newsletter-icon svg {
    animation: footer-nl-text 16s ease-in-out infinite;
}

@keyframes footer-nl-text {
    0%, 20% {
        color: #ffffff;
    }

    25%, 45% {
        color: #111111;
    }

    50%, 70% {
        color: #111111;
    }

    75%, 95% {
        color: #111111;
    }

    100% {
        color: #ffffff;
    }
}

.scroll-top {
    animation: footer-scroll-cycle 16s ease-in-out infinite;
}

@keyframes footer-scroll-cycle {
    0%, 20% {
        background: #15803D;
        box-shadow: 0 4px 16px rgba(155,46,200,0.45);
    }

    25%, 45% {
        background: #15803D;
        box-shadow: 0 4px 16px rgba(170,204,0,0.45);
    }

    50%, 70% {
        background: #15803D;
        box-shadow: 0 4px 16px rgba(137,174,203,0.45);
    }

    75%, 95% {
        background: #15803D;
        box-shadow: 0 4px 16px rgba(204,255,0,0.45);
    }

    100% {
        background: #15803D;
        box-shadow: 0 4px 16px rgba(155,46,200,0.45);
    }
}


/* ── Beat JS inline style color cycling ── */
html body div.footer-newsletter[style],
html body .footer-newsletter[style] {
    background: #15803D !important;
    background-color: #15803D !important;
}
