:root {
    --primary: #f4a51c;
    --white: #ffffff;
    --dark: #222;
    --light-hover: #f9f9f9;
}

body { margin: 0; font-family: 'Segoe UI', Roboto, sans-serif; background: #f4f4f4; }

/* Display Controls */
.d-mobile { display: none; }
.d-desktop { display: flex; }

@media (max-width: 768px) {
    .d-desktop { display: none !important; }
    .d-mobile { display: block !important; }
}

/* ==============================
   TEMU NOTIFICATION BAR (Desktop)
   ============================== */
.top-notification-bar {
    background: var(--dark);
    color: white;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.nav-container {
    display: flex;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

/* Hover Effect: Text black, BG light like active link */
.nav-item:hover {
    background: var(--light-hover);
    color: #000;
}

.icon-theme {
    color: var(--primary);
    margin-right: 8px;
    font-size: 14px;
}

.nav-item:hover .icon-theme {
    color: var(--dark);
}

/* ==============================
   TEMU APP BANNER (Mobile)
   ============================== */
.app-banner-mobile {
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.banner-flex {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    position: relative;
}

.close-btn {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    margin-right: 1px;
}

.app-logo-img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.banner-info {
    flex-grow: 1;
    padding-left: 12px;
}

.banner-info strong { font-size: 14px; color: #333; display: block; }
.banner-info p { font-size: 11px; color: #666; margin: 2px 0 0; }

.btn-get-app {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 22px;
    border-radius: 25px; /* Temu style round button */
    font-weight: bold;
    font-size: 8px;
    cursor: pointer;
}

/* Header Styling */
.main-header {
    background: var(--white);
    padding: 10px 5%;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.header-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.logo { color: var(--primary); font-size: 26px; font-weight: bold; }

.search-bar { flex-grow: 1; display: flex; border: 2px solid var(--primary); border-radius: 5px; overflow: hidden; }
.search-bar input { border: none; padding: 10px; width: 100%; outline: none; }
.search-bar button { background: var(--primary); border: none; color: white; padding: 0 15px; cursor: pointer; }

/* Overlay Popups */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 1000; }
.popup-card { background: white; padding: 25px; border-radius: 10px; width: 90%; max-width: 500px; position: relative; }
.close-popup { position: absolute; top: 10px; right: 15px; font-size: 25px; cursor: pointer; }