body {
    font-family: Arial, sans-serif;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Search suggestion styles */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    width: 40%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 600;
    color: #333;
    margin: 0 0 2px 0;
    font-size: 14px;
}

.suggestion-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.suggestion-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.suggestion-price {
    font-weight: 600;
    color: #2e7d32;
}

.no-suggestions {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.search-loading {
    padding: 15px;
    text-align: center;
    color: #666;
}

/* Cart icon styles */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.cart-icon:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.cart-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0);
}

.cart-icon::after {
    content: attr(data-count);
    position: absolute;
    top: -5px;
    right: -5px;
    color: black;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.cart-icon.has-items::after {
    opacity: 1;
    transform: scale(1);
}

/* Navbar Styles */
nav.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
    color: #fff;
}

.navbar .logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.navbar .logo .text-navbar p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
    text-transform: uppercase;
}

.navbar .logo .text-navbar p:nth-child(2) {
    color: #333;
}

.navbar .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar .hamburger span {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

.navbar .search-bar {
    border: none;
    outline: none;
    flex: 1;
    padding: 5px;
    font-size: 14px;
}

.navbar .search-container button {
    border: none;
    background: none;
    cursor: pointer;
    color: #2c2c77;
    font-size: 16px;
}

.navbar .nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .nav-links li {
    display: inline-block;
}

.navbar .nav-links li a {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.navbar .nav-links li a:hover {
    color: #ffcc00;
}

.navbar .profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
}

.navbar .profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    filter: brightness(0);
}

/* Hamburger styles */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Notification styles */
.notification-wrapper {
    position: relative;
    margin-right: 20px;
}

.notification-icon {
    color: #000;
    font-size: 24px;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.notification-icon:hover {
    color: #444;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Notification Modal Styles */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-modal.show {
    opacity: 1;
    visibility: visible;
}

.notification-modal-content {
    background: white;
    border-radius: 12px;
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.notification-modal.show .notification-modal-content {
    transform: scale(1) translateY(0);
}

.notification-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.notification-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.notification-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.notification-modal-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
}

.notification-icon-wrapper {
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.notification-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-time {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.notification-delete-controls {
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: none;
    justify-content: space-between;
    align-items: center;
}

.notification-delete-controls.show {
    display: flex;
}

.selected-count {
    font-size: 14px;
    color: #666;
}

.delete-selected-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-selected-btn:hover {
    background: #c82333;
}

.delete-selected-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.no-notifications {
    text-align: center;
    padding: 40px 25px;
    color: #999;
}

.no-notifications i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

/* Navbar-right styles */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: 20px;
}

.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0);
}

.cart-icon:hover img {
    transform: scale(1.1);
}

.profile {
    display: flex;
    align-items: center;
}

.profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.profile img:hover {
    transform: scale(1.1);
}

/* Auth buttons styling */
.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login, .btn-register {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #555555;
}

.btn-login {
    background-color: #4B3E2F;
    color: white;
    border-color: #555555;
}

.btn-login:hover {
    background-color: transparent;
    color: #4B3E2F;
    border-color: #4B3E2F;
}

.btn-register {
    background-color: #D9971E;
    color: white;
    border-color: #555555;
}

.btn-register:hover {
    background-color: transparent;
    color: #D9971E;
    border-color: #D9971E;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    nav.navbar {
        padding: 10px 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    body {
        padding-top: 70px;
    }

    /* ===== HAMBURGER MENU - VISIBLE ON MOBILE ===== */
    .navbar .hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        order: 2;
        z-index: 1002;
        width: 30px;
        height: 25px;
        justify-content: space-between;
        position: relative;
        /* Remove any debug backgrounds */
        background: none !important;
        padding: 0 !important;
        border: none !important;
    }

    /* ===== MOBILE LAYOUT ===== */
    .navbar .logo {
        flex: 1;
        order: 1;
        display: flex !important;
    }

    /* ===== HAMBURGER LINES STYLING ===== */
    .navbar .hamburger span {
        display: block !important;
        width: 100%;
        height: 3px;
        background-color: #444444 !important; /* Abu-abu kehitaman */
        transition: all 0.3s ease;
        transform-origin: center;
        border-radius: 2px; /* Slight rounding for better appearance */
    }

    /* Hamburger Animation */
    .navbar .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background-color: #444444 !important;
    }

    .navbar .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .navbar .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background-color: #444444 !important;
    }

    /* ===== HIDE DESKTOP ELEMENTS ON MOBILE ===== */
    .navbar .search-container,
    .navbar .nav-links,
    .navbar .navbar-right,
    .navbar .auth-buttons {
        display: none !important;
    }

    /* ===== MOBILE MENU FOR AUTHENTICATED USERS ===== */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        display: block;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu Container */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1001;
        transition: all 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        display: block;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* Mobile Menu Content */
    .mobile-menu-content {
        padding: 80px 20px 20px;
        display: block;
    }

    /* Mobile Search */
    .mobile-search {
        margin-bottom: 30px;
        display: block;
    }

    .mobile-search .search-container,
    .mobile-search-container {
        position: relative;
        display: flex !important;
        width: 100%;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 12px;
        box-shadow: none;
    }

    .mobile-search .search-bar,
    .mobile-search-bar {
        border: none;
        outline: none;
        flex: 1;
        background: transparent;
        font-size: 14px;
    }

    .mobile-search button {
        border: none;
        background: none;
        color: #666;
        cursor: pointer;
    }

    /* ✅ MOBILE SEARCH SUGGESTIONS STYLES ✅ */
    .mobile-search-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-top: none;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 300px; /* Smaller height for mobile */
        overflow-y: auto;
        z-index: 1002; /* Higher than mobile menu */
        display: none;
    }

    .mobile-search-suggestions.show {
        display: block;
    }

    /* ✅ MOBILE SUGGESTION ITEMS ✅ */
    .mobile-suggestion-item {
        display: flex;
        align-items: center;
        padding: 12px;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .mobile-suggestion-item:hover {
        background-color: #f8f9fa;
    }

    .mobile-suggestion-item:last-child {
        border-bottom: none;
    }

    .mobile-suggestion-item .suggestion-image {
        width: 40px; /* Smaller image for mobile */
        height: 40px;
        object-fit: cover;
        border-radius: 6px;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .mobile-suggestion-item .suggestion-info {
        flex: 1;
        min-width: 0;
    }

    .mobile-suggestion-item .suggestion-name {
        font-size: 14px; /* Smaller font for mobile */
        font-weight: 600;
        color: #333;
        margin: 0 0 4px 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-suggestion-item .suggestion-details {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px; /* Smaller font for mobile */
    }

    .mobile-suggestion-item .suggestion-category {
        color: #666;
        background: #f1f1f1;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 500;
    }

    .mobile-suggestion-item .suggestion-price {
        color: #D9971E;
        font-weight: 600;
        font-size: 12px;
    }

    /* ✅ MOBILE SEARCH LOADING & ERROR STATES ✅ */
    .mobile-search-suggestions .search-loading,
    .mobile-search-suggestions .no-suggestions {
        padding: 20px;
        text-align: center;
        color: #666;
        font-size: 14px;
    }

    .mobile-search-suggestions .search-loading {
        color: #2c2c77;
    }

    /* Mobile Navigation Links */
    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0 0 30px 0;
        display: block;
    }

    .mobile-nav-links li {
        margin: 0;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
        display: block;
    }

    .mobile-menu.active .mobile-nav-links li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: calc(0.1s * var(--item-index));
    }

    .mobile-nav-links li a {
        display: block;
        padding: 15px 0;
        color: #333;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
        transition: color 0.3s ease;
    }

    .mobile-nav-links li a:hover {
        color: #D9971E;
    }

    .mobile-nav-links li:last-child a {
        border-bottom: none;
    }

    /* Mobile Actions (Notification, Cart, Profile) */
    .mobile-actions {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid #f0f0f0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease 0.3s;
    }

    .mobile-menu.active .mobile-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-actions .action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-decoration: none;
        color: #666;
        transition: color 0.3s ease;
    }

    .mobile-actions .action-item:hover {
        color: #D9971E;
    }

    .mobile-actions .action-item i {
        font-size: 20px;
    }

    .mobile-actions .action-item img {
        width: 24px;
        height: 24px;
        filter: brightness(0) opacity(0.6);
        transition: filter 0.3s ease;
    }

    .mobile-actions .action-item:hover img {
        filter: brightness(0) opacity(1);
    }

    .mobile-actions .action-item span {
        font-size: 12px;
        font-weight: 500;
    }

    /* ===== MOBILE MENU FOR GUEST USERS ===== */
    .mobile-auth-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1001;
        transition: all 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .mobile-auth-menu.active {
        right: 0;
    }

    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 200px;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.3s ease 0.2s;
    }

    .mobile-auth-menu.active .mobile-auth-buttons {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-auth-buttons .btn-login,
    .mobile-auth-buttons .btn-register {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 2px solid #555555;
        display: block;
    }

    .mobile-auth-buttons .btn-login {
        background-color: #4B3E2F;
        color: white;
        border-color: #4B3E2F;
    }

    .mobile-auth-buttons .btn-login:hover {
        background-color: transparent;
        color: #4B3E2F;
    }

    .mobile-auth-buttons .btn-register {
        background-color: #D9971E;
        color: white;
        border-color: #D9971E;
    }

    .mobile-auth-buttons .btn-register:hover {
        background-color: transparent;
        color: #D9971E;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .mobile-menu,
    .mobile-auth-menu {
        width: 90vw;
    }
    
    .navbar .logo img {
        width: 40px;
        height: 40px;
    }
    
    .navbar .logo .text-navbar p {
        font-size: 14px;
    }

    /* Ensure hamburger is visible on very small screens */
    .navbar .hamburger {
        display: flex !important;
        /* Remove any debug backgrounds */
        background: none !important;
        padding: 0 !important;
        border: none !important;
    }

    .navbar .hamburger span {
        background-color: #444444 !important;
    }
}

/* ===== ENSURE DESKTOP STYLES WORK PROPERLY ===== */
@media (min-width: 769px) {
    /* Force show desktop elements */
    .navbar .search-container,
    .navbar .nav-links,
    .navbar .navbar-right,
    .navbar .auth-buttons {
        display: flex !important;
    }
    
    /* ===== FORCE HIDE HAMBURGER ON DESKTOP ===== */
    .navbar .hamburger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Force hide mobile elements on desktop */
    .mobile-menu,
    .mobile-auth-menu,
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ===== REMOVE ALL DEBUG STYLES ===== */
/* Remove any remaining debug styles completely */
.navbar .hamburger {
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

/* Responsive design untuk auth buttons - keep existing */
@media (max-width: 768px) {
    .auth-buttons {
        gap: 10px;
    }
    
    .btn-login, .btn-register {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 5px;
    }
}