/* Sticky Header Styles */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #fff;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Hide top header when sticky */
@media (min-width: 992px) {
    .sticky-header .top-header {
        display: none;
    }
}

/* Add padding to body when header is sticky to prevent content jump */
body.has-sticky-header {
    padding-top: 80px;
    /* Adjust based on your header height */
}

.pixelstrap .sm-nowrap > li > a:hover::before {
    width: unset !important;
}

.pixelstrap .full-mega-menu a:hover::before,
.pixelstrap .clothing-menu a:hover::before {
    width: unset !important;
}

.main-menu .menu-right .icon-nav li {
    padding-block: 0;
}

.main-menu .brand-logo {
    padding-block: 0;
}

.pixelstrap a,
.pixelstrap a:hover,
.pixelstrap a:active {
    padding-top: 20px;
    padding-bottom: 20px;
}

.cart_qty_cls {
    position: absolute;
    background: var(--theme-color);
    width: 20px;
    height: 20px;
    color: #ffffff;
    border-radius: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    top: -20%;
    right: -15px;
    line-height: 1;
    /* display: -webkit-box; */
    /* display: -ms-flexbox; */
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 0;
}

.main-menu .mega-menu.full-mega-menu {
    top: 108% !important;
}

/* .main-menu .sm-nowrap {
          top: 120% !important;
      } */

/* Premium Footer Newsletter Styles - Redesigned for Professional Look */
.newsletter-strip {
    background: linear-gradient(
        135deg,
        #1e3c72 0%,
        #2a5298 100%
    ); /* Deep Professional Blue */
    padding: 60px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-strip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 50%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.newsletter-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
}

.newsletter-title {
    font-family: "League Spartan", sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 5px;
}

.newsletter-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
}

.footer-newsletter-form .input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.footer-newsletter-form .form-control {
    background: transparent !important;
    border: none;
    height: 50px;
    padding-left: 15px;
    color: #fff !important;
    font-size: 16px;
    box-shadow: none !important;
}

.footer-newsletter-form .form-control:focus {
    background: transparent !important;
    color: #fff !important;
}

.footer-newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Prevent browser-level background color on autofill */
.footer-newsletter-form .form-control:-webkit-autofill,
.footer-newsletter-form .form-control:-webkit-autofill:hover,
.footer-newsletter-form .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    background-color: transparent !important;
}

.footer-newsletter-form #newsletterBtn {
    background: #fff;
    color: #1e3c72;
    border: none;
    border-radius: 8px !important;
    padding: 0 30px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 50px;
}

.footer-newsletter-form #newsletterBtn:hover {
    background: var(--theme-color) !important;
    color: #fff !important;
    transform: translateX(3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .newsletter-strip {
        padding: 40px 0;
    }
    .newsletter-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 15px;
    }
    .newsletter-title {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .footer-newsletter-form .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        backdrop-filter: none;
        padding: 0;
        gap: 12px;
        box-shadow: none;
    }
    .footer-newsletter-form .form-control {
        height: 50px;
        font-size: 15px;
        text-align: center;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 10px !important;
        width: 100%;
        padding-left: 0; /* Center placeholder better */
    }
    .footer-newsletter-form #newsletterBtn {
        height: 50px;
        width: 100%;
        border-radius: 10px !important;
        font-size: 14px;
        transform: none !important; /* Disable translate on mobile for stability */
    }
    .mobile_view img {
        width: 55px;
        height: unset !important;
    }
    .brand-logo {
        position: absolute;
        left: 10% !important;
        top: 0% !important;
        padding: 0px !important;
    }
}

/* Mobile Bottom Navigation Bar - Professional & Responsive */
@media (max-width: 991px) {
    .mobile-fix-option {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: #ffffff;
        display: flex !important; /* Ensure it overrides any library-level display:none */
        align-items: center;
        justify-content: center;
        z-index: 1001;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #f0f0f0;
        padding: 0;
    }

    .mobile-fix-option ul {
        display: flex;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        align-items: center;
        justify-content: space-around;
    }

    .mobile-fix-option ul li {
        flex: 1;
        text-align: center;
        height: 100%;
    }

    .mobile-fix-option ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-decoration: none;
        color: #888;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 8px 0;
    }

    .mobile-fix-option ul li a i {
        font-size: 22px;
        margin-bottom: 2px;
        transition: all 0.3s ease;
    }

    .mobile-fix-option ul li a span {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .mobile-fix-option ul li.active a {
        color: var(--theme-color);
    }

    .mobile-fix-option ul li.active a i {
        transform: translateY(-2px);
        color: var(--theme-color);
        font-weight: bold;
    }

    /* Header Alignment on Mobile */
    .menu-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 18px !important; /* Increased gap for better spacing */
        flex-direction: row-reverse !important; /* Put Icons before Toggle on mobile */
    }

    .toggle-nav {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        height: 40px;
        width: 30px; /* Slimmer width for better look */
        margin: 0 !important;
    }

    .toggle-nav i {
        color: #222 !important; /* Match Search and Cart icon color */
        font-size: 24px !important;
        font-weight: bold;
    }

    .main-menu .menu-right .icon-nav {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    .main-menu .menu-right .icon-nav ul {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important; /* Increased gap between icons */
    }

    /* Hide only account and wishlist from legacy fixed positions (since they are now in bottom nav) */
    .top-header .header-dropdown .mobile-account,
    .top-header .header-dropdown .mobile-wishlist,
    .main-menu .menu-right .icon-nav .mobile-setting {
        display: none !important;
    }

    /* Header Icons on Mobile - Ensure they stay at the top */
    .main-menu .menu-right .icon-nav .mobile-cart,
    .main-menu .menu-right .icon-nav .mobile-search {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        display: block !important;
        font-size: 20px !important;
        padding: 0 8px !important;
    }

    .main-menu .menu-right .icon-nav .mobile-cart i,
    .main-menu .menu-right .icon-nav .mobile-search i {
        color: #222 !important;
        font-size: 22px !important;
    }

    /* Footer Icon Badge Support */
    .footer-icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-icon-wrap .cart_qty_cls {
        top: -5px !important;
        right: -12px !important;
        font-size: 10px;
        width: 18px;
        height: 18px;
    }

    /* Mobile Menu Sidebar Fixes - Restoring the close button */
    .mobile-back {
        display: flex !important; /* Overriding 'display: none !important' from style.css */
        align-items: center !important;
        justify-content: space-between !important;
        padding: 15px 20px !important;
        background: #f9f9f9 !important;
        border-bottom: 1px solid #eee !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        font-size: 15px !important;
        color: #222 !important;
        cursor: pointer !important;
    }

    .mobile-back i {
        font-size: 22px !important;
        color: #222 !important;
        font-weight: bold !important;
    }

    /* Ensure the mobile-box (container for mobile-back) is visible */
    .mobile-box {
        display: block !important;
    }
}

/* Desktop Hide */
@media (min-width: 992px) {
    .mobile-fix-option {
        display: none !important;
    }
}
