* {
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: visible;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff0f5, #ffffff);
}

/* ================= TOP BAR LAYOUT (DESKTOP PERFECT) ================= */

.top-bar {
    width: 100%;
    background: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: visible;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* PC par chota gol logo dikhane ke liye */
.pc-logo {
    width: 50px; 
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    display: block; /* PC par active */
}

/* PC par mobile burger icon chhupa rahega */
.menu-icon {
    display: none; 
}

.top-heading {
    font-family: 'Pacifico', cursive;
    font-size: 25px;
    color: #ff6f91;
    margin: 0;
}

/* PC Desktop links code (Ab hamesha dikhenge) */
.left-menu {
    display: flex;
    align-items: center;
}

.left-menu a {
    color: #333;
    text-decoration: none;
    margin-right: 25px;
    font-size: 15px;
    font-weight: 500;
}

.left-menu a:hover {
    color: #ff6f91;
}

.right-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ================= SEARCH BOX ================= */

.search-box {
    position: relative;
    overflow: visible;
    z-index: 9999;
}

.search {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 14px;
    width: 170px;
    transition: width 0.3s ease;
}

.search:focus {
    border-color: #ff6f91;
    box-shadow: 0 0 8px rgba(255,111,145,0.3);
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    padding: 10px;
    z-index: 99999;
}

/* ================= BUTTONS & HERO ================= */

.btn {
    background: #ff6f91;
    color: white;
    border-radius: 25px;
    padding: 10px 18px;
}

.btn:hover {
    background: #ff4d88;
    transform: scale(1.05);
}

.hero-box {
    width: 95%;
    max-width: 1100px;
    height: 180px;
    margin: 15px auto;
    overflow: hidden;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    background: #fff;
}

.main-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.side-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

/* ================= PRODUCTS GRID & CARDS ================= */

.category {
    padding: 10px 20px;
}

.products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 8px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;       
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 8px;        
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.card h3, .name {
    margin: 4px 0 2px;         
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.price {
    margin: 2px 0 6px;         
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

/* ================= QTY BOX & FLOATING ================= */

.qty-box {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin: 6px 0;
    border: 1px solid #ddd;     
    border-radius: 6px;
    padding: 2px;
}

.qty-box button {
    padding: 4px 12px;
    border: none;
    background: #ff8fb1;
    color: white;
    cursor: pointer;
}

.add-btn {
    width: 100%;
    padding: 8px;
    border: none;
    background: #ff4d88;
    color: white;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.floating-order {
    position: fixed;
    right: 15px;
    bottom: 80px;
    display: none;
    z-index: 9999;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

/* ================= MOBILE SIDEBAR MENU (FULL HEIGHT FIX) ================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px; 
    width: 260px;
    height: 100vh; /* Mobile par full lamba sidebar */
    background: #ffffff; 
    padding: 24px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 25px rgba(0,0,0,0.05); 
}

.mobile-menu.open {
    left: 0;
}

.close-btn {
    font-size: 22px;
    text-align: left; 
    cursor: pointer;
    color: #555;
    margin-bottom: 25px;
    display: inline-block;
    width: fit-content;
}

.mobile-menu a {
    display: block;
    color: #2c2c2c; 
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 12px 12px; 
    border-radius: 8px;
    margin-bottom: 4px;
}

.mobile-menu a:hover {
    background: #ffe4ec; 
    color: #ff4d88;      
}

.mobile-footer {
    margin-top: auto; /* Footer hamesha niche end me lock rahega */
    padding-top: 20px;
    border-top: 1px solid #f5f5f5; 
}

.mobile-login {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 6px 12px;
}

.mobile-socials {
    display: flex;
    gap: 18px;
    padding-left: 12px;
}

.mobile-socials a {
    color: #555;
    font-size: 18px;
}

/* ================= MOBILE RESPONSIVENESS FIX (ONLY FOR MOBILE) ================= */

@media (max-width: 600px) {
    /* Mobile par logo hide hoga aur burger menu icon show hoga */
    .menu-icon {
        display: block;
        font-size: 26px;
        cursor: pointer;
        color: #333;
    }

    .pc-logo {
        display: none; /* Mobile header se logo gayab */
    }

    .top-bar {
        padding: 10px 15px;
    }

    .top-heading {
        font-size: 18px; 
        position: absolute;
        left: 50%;
        transform: translateX(-50%); 
    }

    .left-menu {
        display: none; /* Mobile screen par desktop wale main links hide */
    }

    .search {
        width: 95px; 
        padding: 6px 10px;
        font-size: 12px;
    }

    .search:focus {
        width: 120px; 
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;                 
    }

    .card {
        padding: 8px;              
        border-radius: 10px;
    }

    .hero-box {
        height: 140px;
    }

    .side-img {
        display: none;
    }
}
