/* ===== 🌟 PREMIUM COSMETICS GLOBAL VARIABLES ===== */
:root {
    --pink: #ff75a0;
    --purple: #a29bfe;
    --glass: rgba(255, 255, 255, .75);
    --border: rgba(255, 255, 255, .3);
    --dark: #2d3436;
    --grad: linear-gradient(135deg, #fdfcfb, #e2d1f9);
}

/* BASIC RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
body {
    background: #f8f9fd;
    color: var(--dark);
    overflow-x: hidden;
}
a {
    text-decoration: none !important;
}

/* ===== 🛍️ HEADER GLASSMORPHISM ===== */
header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 0px 6%;
    position: sticky;
    top: 0;
    z-index: 2000;
}
.nav-top {
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo a {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(to right, #6c5ce7, var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.menu-toggle {
    font-size: 22px;
    cursor: pointer;
    color: var(--dark);
}
.nav-actions {
    display: flex;
    gap: 18px;
    font-size: 20px;
}
.nav-actions a {
    color: var(--dark);
    transition: color 0.3s;
}
.nav-actions a:hover {
    color: var(--pink);
}

/* ===== 🔍 SEARCH CONTAINER ===== */
.search-container {
    margin-top: 12px;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.search-container input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 30px;
    border: 1px solid #e1e8ed;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.search-container input:focus {
    border-color: var(--pink);
    box-shadow: 0 4px 15px rgba(255, 117, 160, 0.15);
}
.search-container i.fa-magnifying-glass {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #a4b0be;
}
.voice-btn {
    position: absolute;
    right: 18px !important;
    font-size: 18px;
    color: #b2bec3;
    cursor: pointer;
    transition: 0.3s;
    top: 50%;
    transform: translateY(-50%);
}
.voice-btn:hover {
    color: var(--pink);
}

/* ===== 🖥️ DESKTOP PRESETS (PC VIEW) ===== */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important; /* PC তে মোবাইল বটম বার দেখাবে না */
    }
    .desktop-links {
        display: flex !important;
        gap: 30px;
        justify-content: center;
        margin-top: 15px;
        font-size: 14px;
        font-weight: 600;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 10px;
    }
    .desktop-links a {
        color: #555;
        transition: 0.3s;
    }
    .desktop-links a:hover {
        color: var(--pink);
    }
    .menu-toggle {
        display: none !important; /* PC তে হামবার্গার মেনু লাগবে না */
    }
}

/* ===== 📱 MOBILE STYLING PARAMS (MOBILE VIEW) ===== */
@media (max-width: 767px) {
    .desktop-links {
        display: none !important; /* মোবাইলে টপ ডেক্সটপ মেনু হাইড */
    }
    
    /* 📱 MOBILE BOTTOM NAVIGATION BAR BAR */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: #ffffff;
        box-shadow: 0 -3px 20px rgba(0,0,0,0.06);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #5e6d82;
        font-size: 11px;
        font-weight: 600;
        flex: 1;
        text-align: center;
    }
    .nav-item i {
        font-size: 19px;
        margin-bottom: 2px;
    }
    .nav-item.active {
        color: var(--pink);
    }

    /* 🔥 মাঝখানে শপ বাটন ভাসমান (Floating Style) */
    .main-shop-btn {
        position: relative;
        top: -12px; /* বাটনটি ওপরে ভেসে থাকবে */
    }
    .shop-icon-circle {
        width: 48px;
        height: 48px;
        background: var(--pink); /* পিঙ্ক থিম কালার */
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 15px rgba(255, 117, 160, 0.4);
        margin-bottom: 2px;
        transition: transform 0.2s;
    }
    .shop-icon-circle i {
        color: #ffffff !important;
        font-size: 20px;
        margin-bottom: 0;
    }
    .main-shop-btn span {
        color: var(--pink);
        font-weight: 700;
    }
    .main-shop-btn:active .shop-icon-circle {
        transform: scale(0.9); /* ক্লিকের সময় হালকা অ্যানিমেশন */
    }

    /* 🛒 CART BADGE COUNT */
    .cart-badge-container { position: relative; }
    .badge-count {
        position: absolute;
        top: -5px;
        right: 18px;
        background: var(--pink);
        color: white;
        font-size: 10px;
        padding: 1px 6px;
        border-radius: 50%;
        font-weight: 700;
    }
    
    /* কন্টেন্ট যেন বটম মেনুর নিচে ঢাকা না পড়ে তার জন্য ফুটার স্পেসিং */
    footer { 
        padding-bottom: 85px !important;
    }
}

/* ===== 📋 MOBILE SIDEBAR DRAWER ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    padding: 25px;
    z-index: 2100;
    transition: .4s cubic-bezier(0.1, 0.8, 0.25, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.05);
}
.mobile-menu.active {
    left: 0;
}
.mobile-menu a {
    display: block;
    padding: 12px 10px;
    color: #333;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s;
}
.mobile-menu a:hover {
    background: #fff0f5;
    color: var(--pink);
}
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 2050;
}
.overlay.active {
    display: block;
}

/* ===== 🌿 HERO SECTION ===== */
.hero {
    margin: 25px 6%;
    background: var(--grad);
    border-radius: 30px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.hero h1 {
    font-size: 42px;
}
.hero p {
    margin: 15px 0 30px;
    color: #555;
}
.btn-main {
    background: var(--pink);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(255, 117, 160, .4);
}
.btn-main:hover {
    transform: translateY(-3px);
}

/* ===== 🗂️ GRID & LAYOUT LAYERS ===== */
.container {
    padding: 0 4% 60px;
}
.section-head {
    margin: 40px 0 20px;
    border-left: 4px solid var(--pink);
    padding-left: 12px;
}
.section-head h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
}
@media(min-width: 600px) {
    .grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
}

/* 🏷️ CATEGORY CARD */
.cat-card {
    background: white;
    padding: 20px 10px;
    border-radius: 20px;
    text-align: center;
    transition: .3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.015);
    border: 1px solid #f1f2f6;
}
.cat-card:hover {
    background: #fff5f8;
    border-color: #ffb6ce;
    transform: translateY(-5px);
}
.cat-card i {
    font-size: 26px;
    color: var(--purple);
    margin-bottom: 10px;
}
.cat-card p {
    font-weight: 700;
    color: #444;
    font-size: 13px;
    margin-bottom: 0;
}

/* 🛍️ PRODUCT CARD */
.product-card {
    background: white;
    border-radius: 20px;
    transition: .4s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}
.product-img {
    height: 180px;
    border-radius: 15px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.price {
    font-weight: 700;
    margin: 10px 0;
}
.add-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: #eee;
    font-weight: 600;
}
.product-card:hover .add-btn {
    background: var(--pink);
    color: white;
}

/* 🎁 OFFERS BOX */
.offer-box {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border-radius: 25px;
    padding: 35px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.offer-box h2 {
    font-size: 30px;
}
.offers img {
    width: 100%;
    border-radius: 5px;
}

/* 🎯 SEARCH SUGGESTION BOX */
.search_result {
    list-style-type: none;
    padding: 5px 15px;
    background: #fff;
    position: absolute;
    border-radius: 10px;
    display: none;
    z-index: 2500;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.search_result li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f2f6;
    cursor: pointer;
}
.search_result li:last-child { border: none; }
.search_result img {
    width: 70px;
    height: 70px;
}

/* 🎙️ VOICE SEARCH OVERLAY */
#voiceOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}
#voiceOverlay.active { display: flex; }
.voice-box { text-align: center; color: white; }
.voice-box p { margin-top: 15px; font-size: 18px; }
.wave {
    width: 8px;
    height: 35px;
    background: var(--pink);
    display: inline-block;
    margin: 0 4px;
    animation: wave 1s infinite ease-in-out;
    border-radius: 5px;
}
.wave:nth-child(2) { animation-delay: 0.2s; }
.wave:nth-child(3) { animation-delay: 0.4s; }
@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.5); }
}

/* 🔔 PROMO POPUP SCREEN */
.promo-popup {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center; align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.promo-popup.show { display: flex; opacity: 1; }
.promo-box {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    max-width: 450px;
    width: 88%;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.promo-box img { max-width: 100%; border-radius: 10px; margin-top: 10px; }
.promo-box button.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: #ff4757;
    color: white;
    font-size: 18px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}
@media only screen and (max-width: 600px) {
    .promo-box { width: 60%; }
    .promo-box button.close-btn { top: 5px; right: 5px; padding: 5px 5px; }
}

/* 👣 FOOTER PARAMS */
footer {
    background: #111;
    color: #bbb;
    padding: 60px 6% 40px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}
footer h4 { color: white; font-weight: 700; margin-bottom: 20px; }
footer a { display: block; color: #aaa; margin: 8px 0; font-size: 14px; }
footer a:hover { color: var(--pink); }
.social { display: flex; gap: 15px; margin-top: 15px; }
.social a { float: left; color: #fff; font-size: 20px; }
.footer-bottom {
    text-align: center;
    padding: 15px;
    background: #0a0a0a;
    color: #666;
    font-size: 13px;
}