/* ================== HEADER MENU (Horizontal + Dropdown) ================== */

.menu-container {
    width: 100%;
}

.menu-list {
    display: flex;
}

.menu-item {
    position: relative
}

.as_menu {
    text-align: center;
    align-content: center;
    display: flex;
    justify-content: center;
}

.menu-item>a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
}

/* Dropdown hidden by default */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: rgba(47, 54, 82, 0.678);
    padding: 10px 0;
    list-style: none;
    min-width: 180px;
    border: 1px solid rgba(47, 54, 82, 0.678);
    z-index: 999;
}

.submenu li a {
    padding: 8px 15px;
    display: block;
    white-space: nowrap;
}

/* Show dropdown on hover */
.menu-item:hover .submenu {
    display: block;
}

/* Optional: basic hover styling */
/* .menu-item>a:hover,
.submenu li a:hover {
    background: #f3f3f3;
} */
/* =====================preloaded item =============== */

.pre-item {
    padding-left: 70px;
    height: 30px;
    width: 500px;
    background-color: #ccc;
    border-radius: 10px;
    margin-left: 15px;
}

.wishlist svg {
    fill: #ccc;
    transition: fill 0.3s;
}

.wishlist.active svg {
    fill: red;
}


/* ================== CART SIDEBAR ================== */

.cart-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: #0d2a3d;
    color: white;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    overflow-y: auto;
    z-index: 999;
}

.cart-sidebar.show {
    transform: translateX(0);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    background: #274b63;
    padding: 10px;
    border-radius: 8px;
}

.cart-item button {
    background: #ff4d4d;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* ================== FILTER / PRODUCT LIST ================== */

.filter-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.filter-heading {
    font-size: 20px;
    margin-bottom: 15px;
}

.filter-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.category-dropdown {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}


/* RESET (Page ka saara extra margin padding hat gaya) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f8f8f8;
}

/* ===============================
   PROFILE DROPDOWN (UNCHANGED)
=============================== */
.profile-container {
    position: relative;
    display: inline-block;
}

#user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #00c3ff;
    cursor: pointer;
    transition: 0.3s ease;
}

#user-avatar:hover {
    transform: scale(1.05);
}

.dropdown {
    position: absolute;
    right: 0;
    top: 60px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    width: 260px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
}

.hidden {
    display: none;
}

/* ==============================
   PRODUCT SECTION FIXED
============================== */

/* ================== USER MENU ================== */

.user-menu {
    position: relative;
    display: inline-block;
    font-family: "Poppins", sans-serif;
}

.profile-trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #00bfa6;
    transition: 0.3s ease;
}

.profile-trigger:hover {
    transform: scale(1.1);
}

.profile-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-content {
    position: absolute;
    right: 0;
    top: 60px;
    width: 290px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu.active .menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #004e92, #00bfa6);
    color: #fff;
    padding: 16px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-info h3 {
    font-size: 16px;
    margin: 0;
}

.user-info p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 12px 0;
}

.stat {
    text-align: center;
    color: #333;
    transition: 0.2s;
    cursor: pointer;
}

.stat:hover {
    color: #00bfa6;
}

.stat i {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.stat strong {
    display: block;
    font-size: 14px;
    color: #222;
}

.logout-btn {
    background: #fff0f0;
    color: #e63946;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    border-top: 1px solid #f1dada;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #ffd6d6;
}


/* shimmer line animation */
.sk-img::after,
.sk-thumb::after,
.sk-title::after,
.sk-price::after,
.sk-qty::after,
.sk-btn::after,
.sk-tab::after,
.sk-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #eeeeee, transparent);
    animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ===========================
   SKELETON SIZE (MATCHING UI)
=========================== */

.sk-img {
    height: 420px;
    border-radius: 10px;
}

.sk-thumb {
    height: 80px;
    margin-top: 15px;
}

.sk-title {
    width: 65%;
    height: 30px;
    margin: 15px 0;
}

.sk-price {
    width: 40%;
    height: 24px;
    margin-bottom: 25px;
}

.sk-qty {
    width: 30%;
    height: 25px;
    margin-bottom: 20px;
}

.sk-btn {
    height: 45px;
    width: 60%;
    margin-bottom: 15px;
}

.sk-tab {
    width: 35%;
    height: 28px;
    margin-top: 18px;
}

.sk-line {
    height: 14px;
    width: 100%;
    margin-top: 10px;
}



/* menu sidebar css */

/* sidebar */
#menu-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: linear-gradient(180deg, #0c1f3f, #0b5c5c);
    color: #fff;
    transition: .35s;
    z-index: 999;
    overflow-y: auto;
}

#menu-sidebar.active {
    left: 0;
}

/* header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #090704;
}

.user-name {
    font-weight: 600;
}

#close-sidebar {
    font-size: 22px;
    cursor: pointer;
}

/* category */
#category-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.category-title {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
}

.category-title:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* arrow */
.toggle-icon {
    transition: .3s;
}

.category-title.active .toggle-icon {
    transform: rotate(90deg);
}

/* sub list tree style */
.sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    margin-left: 22px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.sub-list li {
    padding: 8px 15px;
    position: relative;
    list-style: none;
}

.sub-list li::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 14px;
    width: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.sub-list a {
    color: #e7e7e7;
    text-decoration: none;
    font-size: 14px;
}

.sub-list a:hover {
    color: #f7c873;
}

/* static menu */
.static-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.static-menu li a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    transition: .2s;
}

.static-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f7c873;
}

/* accordion inside static menu */
.accordion-title {
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.accordion-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    margin-left: 25px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.accordion-list li {
    list-style: none;
    left: -100px;
}

.accordion-list li a {
    padding: 10px 15px;
    font-size: 14px;
}