/* Custom styles for Leptora365 Store */

/* Custom styles for professional design and animations */
body { 
    font-family: 'Inter', sans-serif; 
}
 /* Ensure Boxicons are visible */
 .bx {
    font-family: 'boxicons' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Force icon display */
.bx::before {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Additional Boxicons fixes */
.bx, .bxs, .bxl {
    font-family: 'boxicons' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    speak: none !important;
}

/* Ensure Boxicons font is loaded */
@font-face {
    font-family: 'boxicons';
    src: url('https://unpkg.com/boxicons@2.1.4/fonts/boxicons.woff2') format('woff2'),
         url('https://unpkg.com/boxicons@2.1.4/fonts/boxicons.woff') format('woff'),
         url('https://unpkg.com/boxicons@2.1.4/fonts/boxicons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Ensure Font Awesome icons are visible */
.fas, .fab, .far {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Font Awesome 6 Regular' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Force Font Awesome icon display */
.fas::before, .fab::before, .far::before {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Deeper Navbar Styling - Same as store.html */
.nav-deep {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Navigation Link Animations */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 68, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-underline {
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1E4480, #FDBB2D);
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-link:hover .nav-underline {
    width: 100%;
}

/* Cart Button Animation */
.cart-btn {
    position: relative;
    overflow: hidden;
}

.cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(253, 187, 45, 0.4);
}

/* Mobile Navigation Animations */
.mobile-nav-link {
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 68, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link i {
    transition: all 0.3s ease;
}

.mobile-nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #1E4480;
}

.mobile-cart-btn {
    position: relative;
    overflow: hidden;
}

.mobile-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.mobile-cart-btn:hover::before {
    width: 200px;
    height: 200px;
}

.mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav-link:nth-child(5) { animation-delay: 0.5s; }
.mobile-nav-link:nth-child(6) { animation-delay: 0.6s; }
.mobile-cart-btn { animation-delay: 0.7s; }

/* Mobile Menu Button Styles */
#mobile-menu-button {
    transition: all 0.3s ease;
}

#mobile-menu-button:hover {
    transform: scale(1.1);
    color: #1E4480;
}

#mobile-menu-button:active {
    transform: scale(0.95);
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile menu slide-down animation - EXACTLY like store.html */
#mobile-menu {
    transition: max-height 0.4s ease-in-out;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#mobile-menu.open {
    max-height: 500px; /* Adjust as needed for content */
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* Enhanced Mobile Menu Animation - EXACTLY like store.html */
#mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Debug styles to make sure mobile menu is visible */
#mobile-menu {
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#mobile-menu-button {
    position: relative;
    z-index: 1001;
    cursor: pointer;
}

/* Force mobile menu to be visible when open */
#mobile-menu.open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Cart Count Badge Styles */
.cart-count-badge {
    transition: all 0.3s ease;
    animation: badgePulse 0.6s ease-in-out;
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 2px solid white;
}

.cart-count-badge.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.cart-count-badge.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

@keyframes badgePulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
/* Gradient animation for the "Add to Cart" button */
.btn-gradient-animate {
    background: linear-gradient(270deg, #1E4480, #FDBB2D);
    background-size: 200% 200%;
    animation: gradientAnimation 3s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card hover effect */
.card-hover { 
    transition: all 0.4s ease-in-out; 
}

.card-hover:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(30, 68, 128, 0.2); 
}

/* Ribbon style */
.ribbon {
    position: absolute;
    top: 20px;
    right: -20px;
    transform: rotate(45deg);
    background: #1E4480;
    color: #fff;
    padding: 4px 40px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Hero section with white background and text gradient */
.hero-section {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section h1, .hero-section p {
    background: linear-gradient(135deg, #1E4480, #2C5D9F, #3C75C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.animated-orb {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(30, 68, 128, 0.1);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.orb-1 {
    top: -20px;
    right: -20px;
    animation: orb-move-1 20s infinite linear;
}

.orb-2 {
    bottom: -20px;
    left: -20px;
    animation: orb-move-2 20s infinite linear;
}

@keyframes orb-move-1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-50px, 50px); }
    50% { transform: translate(0, 100px); }
    75% { transform: translate(50px, 50px); }
    100% { transform: translate(0, 0); }
}

@keyframes orb-move-2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(50px, -50px); }
    50% { transform: translate(100px, 0); }
    75% { transform: translate(50px, 50px); }
    100% { transform: translate(0, 0); }
}

/* Consistent height for product description */
.product-description-container {
    height: 160px; /* Consistent height for all cards */
    overflow: hidden;
    position: relative;
}

/* Navigation Link Animations */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 68, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-underline {
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1E4480, #FDBB2D);
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-link:hover .nav-underline {
    width: 100%;
}

/* Cart Button Animation */
.cart-btn {
    position: relative;
    overflow: hidden;
}

.cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(253, 187, 45, 0.4);
}

/* Mobile Navigation Animations */
.mobile-nav-link {
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 68, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link i {
    transition: all 0.3s ease;
}

.mobile-nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #1E4480;
}

.mobile-cart-btn {
    position: relative;
    overflow: hidden;
}

.mobile-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.mobile-cart-btn:hover::before {
    width: 200px;
    height: 200px;
}

.mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav-link:nth-child(5) { animation-delay: 0.5s; }
.mobile-nav-link:nth-child(6) { animation-delay: 0.6s; }
.mobile-cart-btn { animation-delay: 0.7s; }

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Deeper Navbar Styling - Same as store.html */
.nav-deep {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
  /* Ensure Boxicons are visible */
        .bx {
            font-family: 'boxicons' !important;
            font-weight: normal !important;
            font-style: normal !important;
            font-variant: normal !important;
            text-transform: none !important;
            line-height: 1 !important;
            -webkit-font-smoothing: antialiased !important;
            -moz-osx-font-smoothing: grayscale !important;
        }
        
        /* Force icon display */
        .bx::before {
            display: inline-block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        /* Additional Boxicons fixes */
        .bx, .bxs, .bxl {
            font-family: 'boxicons' !important;
            font-weight: normal !important;
            font-style: normal !important;
            font-variant: normal !important;
            text-transform: none !important;
            line-height: 1 !important;
            -webkit-font-smoothing: antialiased !important;
            -moz-osx-font-smoothing: grayscale !important;
        }
        
        /* Ensure Boxicons font is loaded */
        @font-face {
            font-family: 'boxicons';
            src: url('https://unpkg.com/boxicons@2.1.4/fonts/boxicons.woff2') format('woff2'),
                 url('https://unpkg.com/boxicons@2.1.4/fonts/boxicons.woff') format('woff'),
                 url('https://unpkg.com/boxicons@2.1.4/fonts/boxicons.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }
        
        /* Ensure Font Awesome icons are visible */
        .fas, .fab, .far {
            font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Font Awesome 6 Regular' !important;
            font-weight: normal !important;
            font-style: normal !important;
            font-variant: normal !important;
            text-transform: none !important;
            line-height: 1 !important;
            -webkit-font-smoothing: antialiased !important;
            -moz-osx-font-smoothing: grayscale !important;
        }
        
        /* Force Font Awesome icon display */
        .fas::before, .fab::before, .far::before {
            display: inline-block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        /* Deeper Navbar Styling - Same as store.html */
        .nav-deep {
            background-color: rgba(255, 255, 255, 0.9);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        /* Navigation Link Animations */
        .nav-link {
            position: relative;
            overflow: hidden;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(30, 68, 128, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .nav-link:hover::before {
            left: 100%;
        }
        
        .nav-underline {
            position: absolute;
            bottom: -2px;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #1E4480, #FDBB2D);
            transform: translateX(-50%);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 1px;
        }
        
        .nav-link:hover .nav-underline {
            width: 100%;
        }
        
        /* Cart Button Animation */
        .cart-btn {
            position: relative;
            overflow: hidden;
        }
        
        .cart-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.6s ease;
        }
        
        .cart-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .cart-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(253, 187, 45, 0.4);
        }
        
        /* Mobile Navigation Animations */
        .mobile-nav-link {
            position: relative;
            overflow: hidden;
        }

        .mobile-nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(30, 68, 128, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .mobile-nav-link:hover::before {
            left: 100%;
        }

        .mobile-nav-link i {
            transition: all 0.3s ease;
        }

        .mobile-nav-link:hover i {
            transform: scale(1.2) rotate(5deg);
            color: #1E4480;
        }

        .mobile-cart-btn {
            position: relative;
            overflow: hidden;
        }

        .mobile-cart-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.6s ease;
        }

        .mobile-cart-btn:hover::before {
            width: 200px;
            height: 200px;
        }
        
        .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
        .mobile-nav-link:nth-child(2) { animation-delay: 0.2s; }
        .mobile-nav-link:nth-child(3) { animation-delay: 0.3s; }
        .mobile-nav-link:nth-child(4) { animation-delay: 0.4s; }
        .mobile-nav-link:nth-child(5) { animation-delay: 0.5s; }
        .mobile-nav-link:nth-child(6) { animation-delay: 0.6s; }
        .mobile-cart-btn { animation-delay: 0.7s; }
        
        /* Mobile Menu Button Styles */
        #mobile-menu-button {
            transition: all 0.3s ease;
        }
        
        #mobile-menu-button:hover {
            transform: scale(1.1);
            color: #1E4480;
        }
        
        #mobile-menu-button:active {
            transform: scale(0.95);
        }
        
        @keyframes slideInLeft {
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        /* Mobile menu slide-down animation - EXACTLY like store.html */
        #mobile-menu {
            transition: max-height 0.4s ease-in-out;
            max-height: 0;
            overflow: hidden;
            background-color: white;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }
        
        #mobile-menu.open {
            max-height: 500px; /* Adjust as needed for content */
            background-color: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
        }

        /* Enhanced Mobile Menu Animation - EXACTLY like store.html */
        #mobile-menu {
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        #mobile-menu.open {
            animation: slideDown 0.4s ease-out;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Debug styles to make sure mobile menu is visible */
        #mobile-menu {
            position: relative;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        #mobile-menu-button {
            position: relative;
            z-index: 1001;
            cursor: pointer;
        }
        
        /* Force mobile menu to be visible when open */
        #mobile-menu.open {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        /* Cart Count Badge Styles */
        .cart-count-badge {
            transition: all 0.3s ease;
            animation: badgePulse 0.6s ease-in-out;
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: #ef4444;
            color: white;
            font-size: 11px;
            font-weight: bold;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
            border: 2px solid white;
        }
        
        .cart-count-badge.show {
            display: flex !important;
            opacity: 1;
            visibility: visible;
        }
        
        .cart-count-badge.hidden {
            display: none !important;
            opacity: 0;
            visibility: hidden;
        }
        
        @keyframes badgePulse {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.2); opacity: 1; }
            100% { transform: scale(1); opacity: 1; }
        }
        
        /* Categories Dropdown Styling */
        .categories-dropdown {
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            background: linear-gradient(135deg, rgba(30, 68, 128, 0.95) 0%, rgba(253, 187, 45, 0.1) 100%);
            border: 1px solid rgba(30, 68, 128, 0.3);
            box-shadow: 0 25px 50px -12px rgba(30, 68, 128, 0.4), 0 0 0 1px rgba(253, 187, 45, 0.1);
        }
        
        .categories-dropdown::before {
            content: '';
            position: absolute;
            top: -8px;
            left: 20px;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid rgba(30, 68, 128, 0.95);
        }
        
        .category-item {
            position: relative;
            overflow: hidden;
        }
        
        .category-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }
        
        .category-item:hover::before {
            left: 100%;
        }
        
        /* Mobile categories styling */
        .mobile-categories-section {
            position: relative;
        }
        
        .mobile-categories-list {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-in-out;
        }
        
        .mobile-categories-list.show {
            max-height: 500px;
        }
        
        /* Animation for mobile categories arrow */
        #mobile-categories-arrow {
            transition: transform 0.3s ease;
        }
        
        #mobile-categories-arrow.rotate-180 {
            transform: rotate(180deg);
        }