     header {
         background-color: white;
         padding: 1rem 10%;
         box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
         position: sticky;
         top: 0;
         z-index: 1000;
     }

     nav {
         display: flex;
         justify-content: space-between;
         align-items: center;
         max-width: 1400px;
         margin: 0 auto;
         gap: 1rem;
         position: relative;
     }

     .logo {
         font-size: 1.8rem;
         font-weight: bold;
         color: #8a1e55;
         text-decoration: none;
     }

     .nav-links {
         display: flex;
         gap: 2rem;
         list-style: none;
     }

     .nav-links a {
         text-decoration: none;
         color: #333;
         font-weight: 500;
         transition: color 0.3s;
     }

     .nav-links a:hover {
         color: #B55E8A;
     }

     .active_category {
         color: #B55E8A !important;
     }

     .header-right {
         display: flex;
         align-items: center;
         gap: 1.5rem;
         flex-wrap: wrap;
     }

     .mobile-menu-btn {
         display: none;
         background: none;
         border: none;
         font-size: 1.5rem;
         color: #333;
         cursor: pointer;
         padding: 0.5rem;
         margin-right: 0.5rem;
     }

     .mobile-menu {
         position: absolute;
         top: 100%;
         left: 0;
         right: 0;
         background-color: white;
         box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
         padding: 0;
         z-index: 999;
         max-height: 0;
         overflow: hidden;
         visibility: hidden;
         transition: max-height 0.3s ease, padding 0.3s ease, visibility 0s 0.3s;
     }

     .mobile-menu.active {
         max-height: 300px;
         padding: 1.5rem;
         visibility: visible;
         transition: max-height 0.3s ease, padding 0.3s ease, visibility 0s 0s;
     }

     .mobile-menu .nav-links {
         display: flex;
         flex-direction: column;
         gap: 0;
         width: 100%;
         list-style: none;
         margin: 0;
         padding: 0;
     }

     .mobile-menu .nav-links li {
         width: 100%;
         display: block;
         visibility: visible;
     }

     .mobile-menu .nav-links a {
         display: block;
         padding: 1rem;
         border-bottom: 1px solid #eee;
         color: #333;
         text-decoration: none;
         font-weight: 500;
         transition: background-color 0.3s, color 0.3s;
         width: 100%;
         visibility: visible;
     }

     .mobile-menu .nav-links a:hover {
         background-color: #f8f8f8;
         color: #B55E8A;
     }

     .mobile-menu .nav-links li:last-child a {
         border-bottom: none;
     }

     .icon-btn {
         background: none;
         border: none;
         color: #333;
         cursor: pointer;
         transition: all 0.3s;
         padding: 0.5rem;
         display: flex;
         align-items: center;
         justify-content: center;
         border-radius: 50%;
         width: 40px;
         height: 40px;
     }

     .icon-btn:hover {
         background-color: #f0f0f0;
         color: #B55E8A;
     }

     .icon-btn svg {
         width: 20px;
         height: 20px;
         fill: currentColor;
         transition: fill 0.3s;
     }

     .cart-icon-wrapper {
         position: relative;
         display: inline-block;
         flex-shrink: 0;
         margin-right: 8px;
     }

    .wishlist-icon-wrapper {
         position: relative;
         display: inline-block;
         flex-shrink: 0;
     }

     .cart-badge {
         position: absolute;
         top: -4px;
         /* slightly higher */
         right: -4px;
         /* a bit outside the icon edge */
         background-color: #B55E8A;
         color: #fff;
         border-radius: 50%;
         font-size: 0.65rem;
         font-weight: 600;
         min-width: 17px;
         height: 17px;
         padding: 0 4px;
         display: flex;
         align-items: center;
         justify-content: center;
         line-height: 1;
         box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
         z-index: 5;
     }

     .cart-badge:empty,
     .cart-badge:has(:empty) {
         display: none;
     }


     .login-btn {
         background-color: #B55E8A;
         color: white;
         padding: 0.6rem 1.5rem;
         border: none;
         border-radius: 25px;
         font-weight: 600;
         cursor: pointer;
         transition: background-color 0.3s, transform 0.2s;
     }

     .login-btn:hover {
         background-color: #9a4d72;
         transform: translateY(-2px);
     }

     /* Navbar Responsive */
     @media (max-width: 1200px) {
         header {
             padding: 1rem 6%;
         }
     }

     @media (max-width: 992px) {
         header {
             padding: 1rem 5%;
         }
     }

     @media (max-width: 768px) {
         header {
             padding: 1rem 4%;
         }

         nav {
             flex-wrap: nowrap;
             position: relative;
         }

         .nav-links {
             display: none;
         }

         .mobile-menu-btn {
             display: block;
             order: 0;
             flex-shrink: 0;
         }

         .logo {
             order: 1;
             flex: 1;
             margin-left: 0.5rem;
         }

         .header-right {
             order: 2;
             gap: 0.5rem;
             flex-shrink: 0;
             margin-left: auto;
         }

         .icon-btn {
             width: 36px;
             height: 36px;
             padding: 0.3rem;
         }

         .icon-btn svg {
             width: 18px;
             height: 18px;
         }

         .login-btn {
             padding: 0.5rem 1rem;
             font-size: 0.85rem;
         }
     }

     @media (max-width: 480px) {
         header {
             padding: 0.8rem 3%;
         }

         nav {
             flex-wrap: nowrap;
             position: relative;
         }

         .nav-links {
             display: none;
         }

         .mobile-menu-btn {
             display: block;
             order: 0;
             flex-shrink: 0;
             font-size: 1.3rem;
         }

         .logo {
             order: 1;
             flex: 1;
             font-size: 1.4rem;
             margin-left: 0.5rem;
         }

         .header-right {
             order: 2;
             gap: 0.4rem;
             flex-shrink: 0;
             margin-left: auto;
         }

         .icon-btn {
             width: 32px;
             height: 32px;
             padding: 0.2rem;
         }

         .icon-btn svg {
             width: 16px;
             height: 16px;
         }

         .login-btn {
             padding: 0.4rem 0.8rem;
             font-size: 0.8rem;
         }
     }


     /*FOR PROFILE ICON AFTER LOGIN*/
     .profile-btn-desktop {
         background: none;
         border: none;
         cursor: pointer;
         transition: all 0.3s;
         padding: 0;
         display: flex;
         align-items: center;
         justify-content: center;
         border-radius: 50%;
         width: 40px;
         height: 40px;
         overflow: hidden;
     }

     .profile-btn-desktop:hover {
         transform: scale(1.05);
     }

     .profile-btn-desktop img {
         width: 100%;
         height: 100%;
         object-fit: cover;
         border-radius: 50%;
     }

     @media (max-width: 768px) {

         .profile-btn-desktop {
             width: 36px;
             height: 36px;
         }
     }

     @media (max-width: 480px) {
         .profile-btn-desktop {
             width: 32px;
             height: 32px;
         }
     }




/* Professional Profile Dropdown */
.profile-dropdown-wrapper {
    position: relative;
}

.profile-btn {
    position: relative;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.profile-btn:hover {
    border-color: #B55E8A;
    box-shadow: 0 0 0 3px rgba(181, 94, 138, 0.15);
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-chevron {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #B55E8A;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Replace the current .profile-dropdown-menu animation with mobile-menu style */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    z-index: 1100;

    /* New: Same animation as mobile-menu */
    max-height: 0;
    padding: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, visibility 0s 0.3s;
}

.profile-dropdown-menu.active {
    /* Adjust max-height to be tall enough for full content */
    max-height: 600px; /* Safe value larger than needed content */
    padding: 0; /* No extra outer padding needed — inner elements have their own */
    visibility: visible;
    transition: max-height 0.3s ease, padding 0.3s ease, visibility 0s 0s;
}

/* User Info Header */
.dropdown-user-info {
    padding: 1.5rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dropdown-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #f0f0f0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-avatar.placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-avatar svg {
    width: 32px;
    height: 32px;
}

.dropdown-user-details {
    flex: 1;
    min-width: 0;
}

.dropdown-username {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Links */
.dropdown-links,
.dropdown-footer {
    padding: 0.5rem 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background-color: #f9f5f7;
    color: #B55E8A;
    padding-left: 1.5rem;
}

.dropdown-link i {
    width: 20px;
    text-align: center;
    color: #777;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.dropdown-link:hover i {
    color: #B55E8A;
}

.dropdown-link.logout {
    color: #d32f2f;
}

.dropdown-link.logout:hover {
    background-color: rgba(211, 47, 47, 0.08);
    color: #d32f2f;
}

.dropdown-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0.5rem 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .profile-btn {
        width: 44px;
        height: 44px;
    }
    
    .profile-dropdown-menu {
        width: 270px;
    }
}

@media (max-width: 480px) {
    .profile-dropdown-menu {
        width: calc(100vw - 40px);
        transform: translateY(-12px) translateX(-50%);
    }
    
    .profile-dropdown-menu.active {
        transform: translateY(0) translateX(-50%);
    }
}

/* Mobile Adjustments - Fix Overflow on Small Screens */
@media (max-width: 768px) {
    .profile-btn {
        width: 44px;
        height: 44px;
    }
    
    .profile-dropdown-menu {
        right: -12px; /* Slight offset for breathing room */
        width: 270px;
    }
}

@media (max-width: 480px) {
    .profile-btn {
        width: 40px;
        height: 40px;
    }

    .profile-dropdown-menu {
        /* Full-width with safe margins, centered horizontally */

        width: calc(100vw - 40px); /* Takes almost full screen width, with 20px margin on each side */
        max-width: 300px; /* Optional: caps it for slightly larger small screens */
        transform: translateX(-50%) translateY(-12px); /* Center horizontally, keep open animation */
    }

    .profile-dropdown-menu.active {
        transform: translateX(-92%) translateY(0); /* Smooth open animation, stays centered */
    }

    /* Optional: Slightly smaller text/avatar for very small screens */
    .dropdown-user-info {
        padding: 1.25rem 1rem 0.75rem;
    }

    .dropdown-avatar {
        width: 48px;
        height: 48px;
    }

    .dropdown-link {
        padding: 0.75rem 1rem;
        font-size: 0.93rem;
    }
}

@media (max-width: 480px) {
    .profile-dropdown-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        transform: translateX(-50%);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
}

.desktop-profile-icon, .mobile-profile-icon {
    display: none;
}

@media (max-width: 999px){
    .mobile-profile-icon {
        display: block;
    }
}

@media (min-width: 1000px){
    .desktop-profile-icon {
        display: block;
    }
}

/* Remove old transform/opacity rules — no longer needed */
.profile-dropdown-menu,
.profile-dropdown-menu.active {
    opacity: 1;            /* Always fully opaque */
    transform: none !important; /* Remove translateY animation */
}

/* Mobile adjustments — keep positioning changes, update only animation-related parts */
@media (max-width: 768px) {
    .profile-dropdown-menu {
        width: 270px;
    }
}

@media (max-width: 480px) {
    .profile-dropdown-menu {
        width: calc(100vw - 40px);
        max-width: 300px;
        transform: translateX(-50%); /* Only for horizontal centering */
    }

    .profile-dropdown-menu.active {
        transform: translateX(-50%); /* Keep centered when open */
    }

    /* Optional arrow pointer on mobile */
    .profile-dropdown-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
}