/* --- Desktop Header Design --- */
.header-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    height: 90px;
    display: flex;
    align-items: center;
    padding: 0 6%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: 0.3s;
}

/* Eye-catching hover effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 15px;
    border: 1px solid #E2E8F0;
    background: var(--surface);
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
}

/* Icon Styles with Badge */
.icon-container {
    position: relative;
    font-size: 1.6rem;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text);
}

.icon-container:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.cart-badge::after {
    content: '3';
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--notify);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

/* --- Mobile Responsive Logic --- */
.mobile-only {
    display: none;
}

/* --- Bottom Bar --- */
.bottom-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 400px;
    background: #111827;
    /* Deep midnight for contrast */
    height: 75px;
    border-radius: 25px;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.nav-btn {
    text-decoration: none;
    color: #64748B;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    transition: 0.3s;
}

.nav-btn i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

/* Active State - Home */
.nav-btn.active {
    color: var(--secondary);
}

.home-main {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-top: -45px;
    justify-content: center;
    color: white !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    border: 5px solid var(--bg);
}

@media (max-width: 1024px) {

    .nav-links,
    .search-box,
    .header-right {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .header-wrapper {
        height: 70px;
        padding: 0 20px;
    }

    .mobile-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bottom-nav {
        display: flex;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}


/* Slide */


.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Deep Slate/Midnight Theme */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    z-index: 3000;
    clip-path: circle(0% at 5% 5%); 
    transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.fullscreen-menu.active {
    clip-path: circle(150% at 5% 5%);
}

.menu-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.menu-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 40px 6%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- Header --- */

.menu-header{
    display: flex;
    justify-content: space-between;
}
.drawer-logo { font-size: 1.8rem; font-weight: 900; color: #fff; text-decoration: none; }
.drawer-logo span { color: #6366f1; }

.close-btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.close-btn-glass:hover {
    background: #6366f1;
    border-color: #6366f1;
}

/* --- Navigation --- */
.main-nav { list-style: none; }
.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.fullscreen-menu.active .nav-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--d);
}

.nav-num { font-size: 0.9rem; font-weight: 700; color: #6366f1; margin-right: 30px; }
.nav-text { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: #fff; flex: 1; }
.nav-item i { font-size: 1.5rem; opacity: 0; transform: translate(-10px, 10px); transition: 0.3s; }

.nav-item:hover { color: #fff; padding-left: 20px; }
.nav-item:hover i { opacity: 1; transform: translate(0, 0); }

/* --- Footer --- */
.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
}

.footer-contact-box p { font-size: 0.75rem; text-transform: uppercase; color: rgba(255,255,255,0.4); letter-spacing: 1px; }
.footer-contact-box a { font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; }

.footer-social-box { display: flex; gap: 15px; }
.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    transition: 0.3s;
}

.social-icon:hover { background: #6366f1; transform: translateY(-5px); }

/* Mobile Tweaks */
@media (max-width: 768px) {
    .menu-footer { flex-direction: column; align-items: flex-start; gap: 30px; }
    .nav-text { font-size: 1.8rem; }
}

/* Ensure the icon is visible and interactive on mobile */
@media (max-width: 1024px) {
    #openMenu {
        display: block !important;
        cursor: pointer;
        padding: 5px;
        transition: 0.2s;
    }

    #openMenu:active {
        transform: scale(0.9); /* Small "click" effect */
        color: var(--primary);
    }
}

/* Make sure the drawer is ready to slide from the LEFT */
.mobile-drawer {
    left: -100%; /* Start off-screen to the left */
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
    left: 0; /* Slide in */
}

/* Search Bar */

/* Search Overlay Styles */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95); /* Deep Slate match */
    backdrop-filter: blur(15px);
    z-index: 4000;
    display: flex;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 800px;
    transform: translateY(-20px);
    transition: 0.5s 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

/* Input Styling */
.search-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 20px;
    transition: 0.3s;
}

.search-input-group:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #6366f1; /* Primary Theme Color */
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.search-input-group i {
    font-size: 1.5rem;
    color: #6366f1;
}

.search-input-group input {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.search-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Close Button */
.search-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.search-close span {
    font-size: 0.6rem;
    font-weight: 800;
    margin-top: 4px;
    opacity: 0.5;
}

.search-close:hover {
    background: #ef4444; /* Alert red for close */
    border-color: #ef4444;
}

/* Suggestions */
.suggestion-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    font-weight: 700;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.suggestion-tags a {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: 0.3s;
}

.suggestion-tags a:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #6366f1;
}

@media (max-width: 768px) {
    .search-top { gap: 10px; }
    .search-input-group { padding: 12px 18px; }
    .search-input-group input { font-size: 1rem; }
    .search-close span { display: none; }
}