        /* ===== CSS VARIABLES ===== */
        :root {
            --primary: #8DB600;
            --primary-dark: #7aa300;
            --primary-light: #a8d12e;
            --secondary: #FF7300;
            --secondary-dark: #e06500;
            --secondary-light: #ff9a44;
            --dark: #0f172a;
            --gray: #64748b;
            --light-gray: #f1f5f9;
            --white: #ffffff;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
            --radius: 16px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --bottom-nav-height: 65px;
            --favorite-color: #ff4757;
            --favorite-bg: #fff0f0;
            --carousel-height: 420px;
            --new-badge-color: #FF7300;
        }

        /* ===== RESET & BASE ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #f8fafc;
            color: var(--dark);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            padding-bottom: 0;
        }

        /* ===== NAVBAR ===== */
        .navbar {
            background: #8db600;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            position: sticky;
            top: 0;
            z-index: 200;
            padding: 14px 0;
            animation: slideDown 0.5s ease forwards;
        }

        @keyframes slideDown {
            from { transform: translateY(-100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .navbar .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            cursor: pointer;
            transition: var(--transition);
            flex-shrink: 0;
        }

        .nav-brand:hover {
            transform: scale(1.02);
        }

        .nav-brand .logo-img {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            color: white;
            border: 2px solid rgba(255,255,255,0.3);
        }

        .nav-brand span {
            font-size: 1.6rem;
            font-weight: 800;
            color: #fff;
            white-space: nowrap;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
            letter-spacing: -0.5px;
        }

        .nav-brand span .highlight {
            color: #fff;
            background: rgba(0,0,0,0.15);
            padding: 0 6px;
            border-radius: 4px;
        }

        /* ===== SEARCH BAR ===== */
        .nav-search {
            flex: 1;
            max-width: 520px;
            min-width: 160px;
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 40px;
            padding: 0 18px;
            border: 2px solid transparent;
            transition: var(--transition);
            margin: 0 12px;
            backdrop-filter: blur(4px);
        }

        .nav-search:focus-within {
            border-color: #fff;
            background: #fff;
            box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
        }

        .nav-search input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 12px 8px;
            font-size: 1rem;
            outline: none;
            font-weight: 500;
            min-width: 80px;
            font-family: 'Inter', sans-serif;
            color: var(--dark);
        }

        .nav-search input::placeholder {
            color: #5a6a7a;
            font-weight: 400;
        }

        .nav-search button {
            background: transparent;
            border: none;
            color: var(--gray);
            cursor: pointer;
            padding: 8px 6px;
            font-size: 1.2rem;
            transition: var(--transition);
        }

        .nav-search button:hover {
            color: var(--secondary);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        /* ===== NAV BUTTONS ===== */
        .nav-btn {
            padding: 10px 18px;
            border: none;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            display: flex;
            align-items: center;
            gap: 6px;
            letter-spacing: 0.3px;
        }

        .nav-btn.login-btn {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 10px 16px;
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255,255,255,0.3);
        }

        .nav-btn.login-btn:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: translateY(-2px);
        }

        .nav-btn.register-btn {
            background: #fff;
            color: var(--primary-dark);
            padding: 10px 18px;
            border: 1px solid transparent;
            text-decoration: none;
        }

        .nav-btn.register-btn:hover {
            background: #f0f0f0;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        /* ===== CART BUTTON ===== */
        .nav-btn.cart-btn {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            position: relative;
            font-size: 1.3rem;
            padding: 10px 14px;
            cursor: pointer;
            transition: var(--transition);
            border-radius: 50%;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255,255,255,0.2);
        }

        .nav-btn.cart-btn:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: scale(1.05);
        }

        .nav-btn.cart-btn .badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--secondary);
            color: white;
            font-size: 0.7rem;
            padding: 2px 7px;
            border-radius: 50%;
            font-weight: 700;
            min-width: 22px;
            text-align: center;
            animation: popIn 0.3s ease;
            border: 2px solid #8db600;
        }

        /* ===== NOTIFICATION BELL BUTTON ===== */
        .nav-btn.notification-btn {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            position: relative;
            font-size: 1.3rem;
            padding: 10px 14px;
            cursor: pointer;
            transition: var(--transition);
            border-radius: 50%;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255,255,255,0.2);
            text-decoration: none;
        }

        .nav-btn.notification-btn:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: scale(1.05);
        }

        .nav-btn.notification-btn .badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: #dc2626;
            color: white;
            font-size: 0.6rem;
            padding: 2px 6px;
            border-radius: 50%;
            font-weight: 700;
            min-width: 20px;
            text-align: center;
            animation: popIn 0.3s ease;
            border: 2px solid #8db600;
        }

        .nav-btn.notification-btn .badge.zero {
            display: none;
        }

        /* ===== NOTIFICATION DROPDOWN ===== */
        .notification-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 380px;
            max-width: 90vw;
            max-height: 450px;
            background: var(--white);
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            z-index: 300;
            overflow: hidden;
            animation: slideDownDrop 0.3s ease forwards;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .notification-dropdown.active {
            display: block;
        }

        .notification-dropdown .notification-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            border-bottom: 1px solid #e2e8f0;
            background: #f8fafc;
        }

        .notification-dropdown .notification-header h4 {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--dark);
        }

        .notification-dropdown .notification-header .mark-all-btn {
            font-size: 0.7rem;
            color: var(--primary);
            cursor: pointer;
            font-weight: 600;
            background: none;
            border: none;
            padding: 4px 8px;
            border-radius: 4px;
            transition: var(--transition);
        }

        .notification-dropdown .notification-header .mark-all-btn:hover {
            background: rgba(141, 182, 0, 0.1);
        }

        .notification-dropdown .notification-list {
            max-height: 350px;
            overflow-y: auto;
            padding: 4px 0;
        }

        .notification-dropdown .notification-list::-webkit-scrollbar {
            width: 4px;
        }

        .notification-dropdown .notification-list::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 4px;
        }

        .notification-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 12px 16px;
            border-bottom: 1px solid #f1f5f9;
            transition: var(--transition);
            cursor: pointer;
            text-decoration: none;
            color: var(--dark);
        }

        .notification-item:hover {
            background: var(--light-gray);
        }

        .notification-item.unread {
            background: rgba(141, 182, 0, 0.05);
            border-left: 3px solid var(--primary);
        }

        .notification-item .notif-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 0.9rem;
        }

        .notification-item .notif-icon.order {
            background: #dbeafe;
            color: #2563eb;
        }

        .notification-item .notif-icon.delivery {
            background: #d1fae5;
            color: #059669;
        }

        .notification-item .notif-icon.promo {
            background: #fef3c7;
            color: #d97706;
        }

        .notification-item .notif-icon.general {
            background: #e0e7ff;
            color: #4f46e5;
        }

        .notification-item .notif-content {
            flex: 1;
            min-width: 0;
        }

        .notification-item .notif-content .notif-title {
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .notification-item .notif-content .notif-message {
            font-size: 0.75rem;
            color: var(--gray);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .notification-item .notif-content .notif-time {
            font-size: 0.6rem;
            color: #94a3b8;
            margin-top: 4px;
        }

        .notification-item .notif-status {
            flex-shrink: 0;
            margin-top: 4px;
        }

        .notification-item .notif-status .unread-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
            display: inline-block;
        }

        .notification-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--gray);
        }

        .notification-empty i {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 12px;
            display: block;
            opacity: 0.5;
        }

        .notification-empty h4 {
            font-size: 0.95rem;
            color: var(--dark);
            margin-bottom: 4px;
        }

        .notification-empty p {
            font-size: 0.8rem;
        }

        .notification-btn-wrapper {
            position: relative;
            display: inline-block;
        }

        @keyframes popIn {
            0% { transform: scale(0); }
            70% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }

        /* ===== USER BUTTON WITH DROPDOWN ===== */
        .user-btn-wrapper {
            position: relative;
            display: inline-block;
        }

        .nav-btn.user-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 0px;
            border-radius: 50%;
            font-size: 1.1rem;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            text-decoration: none;
            overflow: hidden;
            border: 2px solid rgba(255,255,255,0.4);
            flex-shrink: 0;
            transition: var(--transition);
        }

        .nav-btn.user-btn img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .nav-btn.user-btn .avatar-text {
            font-size: 1.2rem;
            font-weight: 700;
            color: white;
        }

        .nav-btn.user-btn:hover {
            transform: scale(1.05);
            border-color: white;
        }

        /* ===== DROPDOWN MENU ===== */
        .dropdown-menu {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            min-width: 200px;
            background: var(--white);
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            padding: 8px 0;
            z-index: 300;
            animation: slideDownDrop 0.3s ease forwards;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .dropdown-menu.active {
            display: block;
        }

        @keyframes slideDownDrop {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .dropdown-menu .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            color: var(--dark);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: var(--transition);
            cursor: pointer;
            border: none;
            background: none;
            width: 100%;
            font-family: 'Inter', sans-serif;
            text-align: left;
        }

        .dropdown-menu .dropdown-item:hover {
            background: var(--light-gray);
            color: var(--primary);
        }

        .dropdown-menu .dropdown-item i {
            width: 20px;
            text-align: center;
            font-size: 1rem;
            color: var(--gray);
        }

        .dropdown-menu .dropdown-item:hover i {
            color: var(--primary);
        }

        .dropdown-menu .dropdown-divider {
            height: 1px;
            background: #e2e8f0;
            margin: 4px 12px;
        }

        .dropdown-menu .dropdown-item.logout-item {
            color: #dc2626;
        }

        .dropdown-menu .dropdown-item.logout-item i {
            color: #dc2626;
        }

        .dropdown-menu .dropdown-item.logout-item:hover {
            background: #fef2f2;
            color: #b91c1c;
        }

        .dropdown-menu .dropdown-item.logout-item:hover i {
            color: #b91c1c;
        }

        .dropdown-menu .dropdown-user-info {
            padding: 12px 20px;
            border-bottom: 1px solid #e2e8f0;
            margin-bottom: 4px;
        }

        .dropdown-menu .dropdown-user-info .user-name {
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--dark);
        }

        .dropdown-menu .dropdown-user-info .user-email {
            font-size: 0.75rem;
            color: var(--gray);
            margin-top: 2px;
            word-break: break-all;
        }

        .dropdown-menu .dropdown-user-info .user-points {
            font-size: 0.7rem;
            color: var(--secondary);
            font-weight: 600;
            margin-top: 4px;
        }

        /* ===== SELLER BUTTON ===== */
        .nav-btn.seller-btn {
            background: rgba(255, 215, 0, 0.25);
            color: #fff;
            padding: 10px 16px;
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 215, 0, 0.4);
            border-radius: 30px;
            font-weight: 700;
            font-size: 0.9rem;
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .nav-btn.seller-btn:hover {
            background: rgba(255, 215, 0, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
        }

        .nav-btn.seller-btn i {
            font-size: 1.1rem;
        }

        /* ===== RESPONSIVE NAVBAR ===== */
        @media (max-width: 768px) {
            .navbar {
                padding: 12px 0;
            }
            .nav-brand .logo-img {
                width: 40px;
                height: 40px;
                font-size: 1.3rem;
            }
            .nav-brand span {
                font-size: 1.3rem;
            }
            .nav-search {
                max-width: 100%;
                order: 3;
                flex-basis: 100%;
                margin: 8px 0 0;
                padding: 0 14px;
            }
            .nav-search input {
                font-size: 0.95rem;
                padding: 10px 6px;
            }
            .nav-btn {
                font-size: 0.85rem;
                padding: 8px 14px;
            }
            .nav-btn.cart-btn,
            .nav-btn.user-btn,
            .nav-btn.notification-btn {
                width: 42px;
                height: 42px;
                font-size: 1.1rem;
                padding: 8px;
            }
            .nav-btn.cart-btn .badge,
            .nav-btn.notification-btn .badge {
                font-size: 0.6rem;
                min-width: 20px;
                padding: 1px 6px;
                top: -3px;
                right: -3px;
            }
            .nav-actions {
                gap: 6px;
            }
            .nav-btn.seller-btn {
                padding: 6px 12px;
                font-size: 0.75rem;
            }
            .nav-btn.seller-btn span {
                display: none;
            }
            .nav-btn.seller-btn i {
                font-size: 1rem;
            }
            .dropdown-menu {
                right: -10px;
                min-width: 180px;
            }
            .notification-dropdown {
                width: 320px;
                right: -10px;
            }
        }

        @media (max-width: 480px) {
            .navbar {
                padding: 10px 0;
            }
            .nav-brand .logo-img {
                width: 36px;
                height: 36px;
                font-size: 1.1rem;
            }
            .nav-brand span {
                font-size: 1.1rem;
            }
            .nav-search {
                padding: 0 12px;
            }
            .nav-search input {
                font-size: 0.85rem;
                padding: 8px 4px;
            }
            .nav-btn {
                font-size: 0.75rem;
                padding: 6px 10px;
            }
            .nav-btn.cart-btn,
            .nav-btn.user-btn,
            .nav-btn.notification-btn {
                width: 38px;
                height: 38px;
                font-size: 1rem;
                padding: 6px;
            }
            .nav-btn.cart-btn .badge,
            .nav-btn.notification-btn .badge {
                font-size: 0.55rem;
                min-width: 18px;
                padding: 1px 5px;
                top: -2px;
                right: -2px;
            }
            .nav-actions {
                gap: 4px;
            }
            .nav-btn.login-btn,
            .nav-btn.register-btn {
                padding: 6px 10px;
                font-size: 0.7rem;
            }
            .nav-btn.login-btn span.hide-mobile,
            .nav-btn.register-btn span.hide-mobile {
                display: none;
            }
            .nav-btn.seller-btn {
                padding: 4px 8px;
                font-size: 0.7rem;
            }
            .nav-btn.seller-btn span {
                display: none;
            }
            .nav-btn.seller-btn i {
                font-size: 0.9rem;
            }
            .dropdown-menu {
                right: -5px;
                min-width: 160px;
            }
            .dropdown-menu .dropdown-item {
                padding: 10px 16px;
                font-size: 0.8rem;
            }
            .dropdown-menu .dropdown-user-info {
                padding: 10px 16px;
            }
            .dropdown-menu .dropdown-user-info .user-name {
                font-size: 0.8rem;
            }
            .notification-dropdown {
                width: 290px;
                right: -5px;
            }
            .notification-item {
                padding: 10px 12px;
            }
            .notification-item .notif-content .notif-title {
                font-size: 0.75rem;
            }
            .notification-item .notif-content .notif-message {
                font-size: 0.7rem;
            }
        }

        /* ===== MOBILE CATEGORY TOGGLE (Top Position) ===== */
        .category-toggle-wrapper {
            display: none;
            background: var(--white);
            padding: 10px 16px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.06);
            border-bottom: 1px solid #e2e8f0;
            position: sticky;
            top: 72px;
            z-index: 100;
            animation: slideDown 0.4s ease forwards;
        }

        .category-toggle-wrapper .toggle-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .category-toggle-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 30px;
            padding: 10px 20px;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            box-shadow: 0 2px 12px rgba(141, 182, 0, 0.25);
        }

        .category-toggle-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 20px rgba(141, 182, 0, 0.35);
        }

        .category-toggle-btn i {
            font-size: 1.1rem;
        }

        .category-toggle-btn .badge-cat {
            background: rgba(255,255,255,0.25);
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 700;
        }

        .category-toggle-info {
            font-size: 0.8rem;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .category-toggle-info .current-cat {
            font-weight: 600;
            color: var(--dark);
        }

        @media (max-width: 992px) {
            .category-toggle-wrapper {
                display: block;
            }
            .category-toggle-wrapper .toggle-inner {
                flex-wrap: wrap;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .category-toggle-wrapper {
                top: 60px;
                padding: 8px 12px;
            }
            .category-toggle-btn {
                padding: 8px 14px;
                font-size: 0.75rem;
            }
            .category-toggle-info {
                font-size: 0.7rem;
            }
        }

        /* ===== HERO / CAROUSEL ===== */
        .hero {
            position: relative;
            padding: 0;
            margin: 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeInUp 0.8s ease forwards;
            background: #1a1a2e !important;
            width: 100%;
            max-width: 100%;
            height: var(--carousel-height);
            min-height: var(--carousel-height);
            max-height: var(--carousel-height);
        }

        .hero-content {
            max-width: 100%;
            margin: 0;
            position: relative;
            z-index: 2;
            width: 100%;
            height: 100%;
            padding: 0;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ===== CAROUSEL ===== */
        .carousel-container {
            position: relative;
            width: 100%;
            height: var(--carousel-height);
            min-height: var(--carousel-height);
            max-height: var(--carousel-height);
            max-width: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
            background: #1a1a2e !important;
        }

        .carousel-slides {
            display: flex;
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            height: 100%;
            width: 100%;
        }

        .carousel-slide {
            min-width: 100%;
            height: var(--carousel-height);
            min-height: var(--carousel-height);
            max-height: var(--carousel-height);
            display: flex;
            align-items: center;
            justify-content: center;
            background: #1a1a2e !important;
            position: relative;
            border-radius: 0 !important;
            cursor: pointer;
            overflow: hidden;
        }

        .carousel-slide .slide-image {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #1a1a2e;
            overflow: hidden;
        }

        .carousel-slide .slide-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
            background: #1a1a2e;
        }

        .carousel-slide .slide-image > *:not(img) {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-slide:hover .slide-image img {
            transform: scale(1.02);
        }

        .carousel-slide:hover .click-hint {
            opacity: 1;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.3);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255,255,255,0.2);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transition);
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .carousel-btn:hover {
            background: rgba(0,0,0,0.6);
            transform: translateY(-50%) scale(1.05);
        }

        .carousel-btn.prev { left: 20px; }
        .carousel-btn.next { right: 20px; }

        .carousel-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
            z-index: 10;
        }

        .carousel-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            border: 1px solid rgba(255,255,255,0.3);
            cursor: pointer;
            transition: var(--transition);
            padding: 0;
        }

        .carousel-dot.active {
            background: white;
            width: 30px;
            border-radius: 4px;
            border-color: white;
        }

        .carousel-dot:hover {
            background: rgba(255,255,255,0.8);
        }

        /* ===== RESPONSIVE CAROUSEL ===== */
        @media (max-width: 1400px) { :root { --carousel-height: 420px; } }
        @media (max-width: 1200px) { :root { --carousel-height: 380px; } }
        @media (max-width: 992px) { :root { --carousel-height: 340px; } }
        @media (max-width: 768px) {
            :root { --carousel-height: 280px; }
            .carousel-btn { width: 36px; height: 36px; font-size: 0.8rem; }
            .carousel-btn.prev { left: 8px; }
            .carousel-btn.next { right: 8px; }
            .carousel-slide .click-hint { display: none; }
        }
        @media (max-width: 480px) { :root { --carousel-height: 200px; } }
        @media (max-width: 360px) { :root { --carousel-height: 160px; } }

        /* ===== CAROUSEL VIEWER ===== */
        .carousel-viewer-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            font-size: 1.4rem;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 20;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .carousel-viewer-close:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: white;
            transform: rotate(90deg) scale(1.1);
            color: #FF7300;
        }

        .carousel-viewer-close i {
            pointer-events: none;
        }

        .carousel-viewer-modal {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            width: 100%;
            height: auto;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 16px;
            overflow: hidden;
            animation: slideUp 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
        }

        .carousel-viewer-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.92);
            backdrop-filter: blur(8px);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .carousel-viewer-overlay.active {
            display: flex;
        }

        .carousel-viewer-modal img {
            width: 100%;
            height: 100%;
            max-height: 85vh;
            object-fit: contain;
            border-radius: 12px;
        }

        .carousel-viewer-modal .viewer-info {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(8px);
            color: white;
            padding: 10px 24px;
            border-radius: 12px;
            text-align: center;
            width: auto;
            max-width: 80%;
        }

        .carousel-viewer-modal .viewer-info h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .carousel-viewer-modal .viewer-info p {
            font-size: 0.8rem;
            opacity: 0.8;
            margin: 0;
        }

        /* ===== MAIN CONTENT ===== */
        .main-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px 16px 100px;
            display: flex;
            gap: 24px;
            position: relative;
        }

        /* ===== CATEGORY SIDEBAR ===== */
        .category-sidebar {
            width: 200px;
            flex-shrink: 0;
            position: sticky;
            top: 90px;
            height: fit-content;
            max-height: calc(100vh - 120px);
            overflow-y: auto;
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 16px 0;
            animation: fadeInLeft 0.6s ease forwards;
            transition: var(--transition);
        }

        @keyframes fadeInLeft {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .category-sidebar::-webkit-scrollbar {
            width: 3px;
        }

        .category-sidebar::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        .category-sidebar-title {
            padding: 0 16px 12px 16px;
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--gray);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .category-sidebar-title .close-sidebar {
            display: none;
            background: none;
            border: none;
            color: var(--gray);
            font-size: 1.1rem;
            cursor: pointer;
            padding: 4px;
        }

        .category-sidebar-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 10px 16px;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--gray);
            position: relative;
        }

        .category-sidebar-btn:hover {
            background: var(--light-gray);
            color: var(--dark);
        }

        .category-sidebar-btn.active {
            background: rgba(141, 182, 0, 0.08);
            color: var(--primary);
            font-weight: 600;
        }

        .category-sidebar-btn.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 8px;
            bottom: 8px;
            width: 3px;
            background: var(--primary);
            border-radius: 0 4px 4px 0;
        }

        .category-sidebar-btn .cat-icon {
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .category-sidebar-btn .cat-name {
            flex: 1;
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .category-sidebar-btn .cat-count {
            font-size: 0.65rem;
            background: var(--light-gray);
            padding: 1px 8px;
            border-radius: 12px;
            color: var(--gray);
            flex-shrink: 0;
        }

        .category-sidebar-btn.active .cat-count {
            background: rgba(141, 182, 0, 0.15);
            color: var(--primary);
        }

        /* ===== MOBILE SIDEBAR OVERLAY ===== */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 250;
            backdrop-filter: blur(4px);
            animation: fadeIn 0.3s ease;
        }

        .sidebar-overlay.active {
            display: block;
        }

        /* ===== RESPONSIVE CATEGORY SIDEBAR ===== */
        @media (max-width: 992px) {
            .category-sidebar {
                position: fixed;
                top: 0;
                left: -280px;
                width: 280px;
                height: 100vh;
                max-height: 100vh;
                z-index: 300;
                border-radius: 0;
                box-shadow: 0 0 40px rgba(0,0,0,0.2);
                transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                padding-top: 60px;
            }

            .category-sidebar.open {
                left: 0;
            }

            .category-sidebar-title .close-sidebar {
                display: block;
            }

            .category-sidebar-title {
                padding: 12px 16px;
                position: fixed;
                top: 0;
                left: 0;
                width: 280px;
                background: white;
                z-index: 5;
                border-bottom: 1px solid #e2e8f0;
            }
        }

        /* ===== PRODUCTS ===== */
        .products-wrapper {
            flex: 1;
            min-width: 0;
            animation: fadeInRight 0.6s ease forwards;
        }

        @keyframes fadeInRight {
            from { opacity: 0; transform: translateX(20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 8px;
        }

        .section-header h2 {
            font-size: 1.4rem;
            font-weight: 700;
        }

        .section-header .view-all {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.85rem;
        }

        .section-header .view-all:hover {
            color: var(--primary-dark);
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 20px;
        }

        .product-card {
            background: var(--white);
            border-radius: 12px;
            padding: 16px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
            animation: fadeInUp 0.5s ease forwards;
            opacity: 0;
            position: relative;
        }

        .product-card:nth-child(1) { animation-delay: 0.05s; }
        .product-card:nth-child(2) { animation-delay: 0.1s; }
        .product-card:nth-child(3) { animation-delay: 0.15s; }
        .product-card:nth-child(4) { animation-delay: 0.2s; }
        .product-card:nth-child(5) { animation-delay: 0.25s; }
        .product-card:nth-child(6) { animation-delay: 0.3s; }
        .product-card:nth-child(7) { animation-delay: 0.35s; }
        .product-card:nth-child(8) { animation-delay: 0.4s; }

        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }

        .product-card .product-icon {
            font-size: 3rem;
            margin-bottom: 6px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .product-card:hover .product-icon {
            transform: scale(1.05);
        }

        .product-card .product-icon img {
            width: 50px;
            height: 50px;
            object-fit: cover;
            border-radius: 8px;
        }

        .product-card h3 {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 2px;
            line-height: 1.2;
        }

        .product-card .price {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--secondary);
        }

        /* ===== STOCK DISPLAY - HIDDEN FROM CUSTOMERS ===== */
        .product-card .stock-info {
            font-size: 0.65rem;
            margin-top: 2px;
        }

        .product-card .stock-info.in-stock {
            color: var(--primary);
        }

        .product-card .stock-info.in-stock .stock-number {
            display: none;
        }

        .product-card .stock-info.out-of-stock {
            color: #dc2626;
        }

        .product-card .stock-info .stock-number {
            display: none;
        }

        .product-card .add-btn {
            margin-top: 8px;
            padding: 6px 14px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.75rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            width: 100%;
        }

        .product-card .add-btn:hover:not(:disabled) {
            background: var(--primary-dark);
            transform: scale(1.02);
        }

        .product-card .add-btn:disabled {
            background: #94a3b8;
            cursor: not-allowed;
            transform: none;
        }

        /* ===== SOURCE BADGE ===== */
        .source-badge {
            position: absolute;
            bottom: 58px;
            left: 8px;
            font-size: 0.45rem;
            font-weight: 600;
            padding: 1px 6px;
            border-radius: 4px;
            background: rgba(0,0,0,0.06);
            color: var(--gray);
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .source-badge.seller {
            background: rgba(255, 215, 0, 0.15);
            color: #b8860b;
        }

        /* ===== NEW BADGE ===== */
        .new-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: var(--new-badge-color);
            color: white;
            font-size: 0.55rem;
            font-weight: 700;
            padding: 2px 10px;
            border-radius: 20px;
            z-index: 6;
            box-shadow: 0 2px 10px rgba(255, 115, 0, 0.35);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            animation: pulseBadge 2s ease-in-out infinite;
        }

        @keyframes pulseBadge {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        /* ===== FEATURES ===== */
        .features {
            background: var(--white);
            padding: 30px 16px;
            max-width: 1200px;
            margin: 30px auto 30px;
            border-radius: 12px;
            box-shadow: var(--shadow);
            animation: fadeInUp 0.8s ease forwards;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
            text-align: center;
        }

        .feature-item {
            transition: var(--transition);
            padding: 8px;
            border-radius: 10px;
        }

        .feature-item:hover {
            transform: translateY(-4px);
            background: var(--light-gray);
        }

        .feature-item i {
            font-size: 1.8rem;
            color: var(--primary);
            margin-bottom: 4px;
            transition: var(--transition);
        }

        .feature-item:hover i {
            transform: scale(1.1);
        }

        .feature-item h4 {
            font-weight: 600;
            margin-bottom: 2px;
            font-size: 0.85rem;
        }

        .feature-item p {
            font-size: 0.75rem;
            color: var(--gray);
        }

        /* ===== CART MODAL ===== */
        .cart-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(6px);
            z-index: 1500;
            align-items: center;
            justify-content: center;
            padding: 16px;
            animation: fadeIn 0.3s ease;
        }

        .cart-overlay.active {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .cart-modal {
            background: var(--white);
            border-radius: 16px;
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #e2e8f0;
            flex-shrink: 0;
        }

        .cart-header h2 {
            font-size: 1.2rem;
            font-weight: 700;
        }

        .cart-header .cart-close {
            font-size: 1.5rem;
            color: var(--gray);
            cursor: pointer;
            transition: var(--transition);
            background: none;
            border: none;
            padding: 4px 8px;
        }

        .cart-header .cart-close:hover {
            color: var(--dark);
            transform: rotate(90deg);
        }

        .cart-body {
            padding: 16px 20px;
            overflow-y: auto;
            flex: 1;
        }

        .cart-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--gray);
        }

        .cart-empty i {
            font-size: 4rem;
            color: var(--primary);
            margin-bottom: 16px;
            display: block;
        }

        .cart-empty h3 {
            font-size: 1.1rem;
            color: var(--dark);
            margin-bottom: 4px;
        }

        /* ===== CART ITEM WITH INPUT FIELD ===== */
        .cart-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #f1f5f9;
            animation: fadeInUp 0.3s ease;
        }

        .cart-item:last-child {
            border-bottom: none;
        }

        .cart-item .item-icon {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--light-gray);
            border-radius: 8px;
            font-size: 1.8rem;
            flex-shrink: 0;
        }

        .cart-item .item-icon img {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 6px;
        }

        .cart-item .item-info {
            flex: 1;
            min-width: 0;
        }

        .cart-item .item-info .item-name {
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cart-item .item-info .item-price {
            font-size: 0.8rem;
            color: var(--secondary);
            font-weight: 700;
        }

        .cart-item .item-quantity {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
        }

        .cart-item .item-quantity button {
            width: 28px;
            height: 28px;
            border: 1px solid #e2e8f0;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            font-size: 0.9rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: #334155;
        }

        .cart-item .item-quantity button:hover:not(:disabled) {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .cart-item .item-quantity button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* ===== QUANTITY INPUT FIELD ===== */
        .cart-item .item-quantity .qty-input {
            width: 45px;
            text-align: center;
            border: 1.5px solid #e2e8f0;
            border-radius: 6px;
            padding: 4px 2px;
            font-size: 0.85rem;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            background: white;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
            color: #0f172a;
        }

        .cart-item .item-quantity .qty-input:focus {
            border-color: #8DB600;
            box-shadow: 0 0 0 3px rgba(141, 182, 0, 0.15);
        }

        .cart-item .item-quantity .qty-input::-webkit-inner-spin-button,
        .cart-item .item-quantity .qty-input::-webkit-outer-spin-button {
            opacity: 1;
            height: 24px;
        }

        .cart-item .item-remove {
            color: #dc2626;
            cursor: pointer;
            font-size: 0.9rem;
            transition: var(--transition);
            background: none;
            border: none;
            padding: 4px;
            flex-shrink: 0;
        }

        .cart-item .item-remove:hover {
            transform: scale(1.2);
        }

        .cart-footer {
            padding: 16px 20px;
            border-top: 1px solid #e2e8f0;
            flex-shrink: 0;
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .cart-total .total-amount {
            color: var(--secondary);
        }

        .cart-actions {
            display: flex;
            gap: 10px;
        }

        .cart-actions .btn-clear {
            padding: 10px 16px;
            border: 2px solid #dc2626;
            border-radius: 10px;
            background: transparent;
            color: #dc2626;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
        }

        .cart-actions .btn-clear:hover {
            background: #dc2626;
            color: white;
        }

        .cart-actions .btn-checkout {
            flex: 1;
            padding: 10px 16px;
            border: none;
            border-radius: 10px;
            background: var(--primary);
            color: white;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
        }

        .cart-actions .btn-checkout:hover {
            background: var(--primary-dark);
            transform: scale(1.02);
        }

        /* ===== CHECKOUT ERROR ALERT ===== */
        .checkout-error {
            max-width: 1200px;
            margin: 10px auto 0;
            padding: 0 16px;
        }

        .checkout-error .alert {
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 500;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .checkout-error .alert i {
            margin-top: 2px;
            flex-shrink: 0;
        }

        .checkout-error .alert .error-list {
            margin: 4px 0 0 0;
            padding-left: 20px;
        }

        .checkout-error .alert .error-list li {
            margin-bottom: 2px;
        }

        /* ===== FOOTER ===== */
        .footer {
            background: var(--dark);
            color: white;
            padding: 30px 16px 16px;
            margin-top: 20px;
            animation: fadeInUp 1s ease forwards;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 20px;
        }

        .footer h4 {
            margin-bottom: 8px;
            font-weight: 700;
            font-size: 0.85rem;
        }

        .footer p, .footer a {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.8rem;
            line-height: 1.6;
            text-decoration: none;
            word-break: break-word;
        }

        .footer a:hover {
            color: white;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 16px;
            margin-top: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.7rem;
        }

        /* ===== BOTTOM NAV ===== */
        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--white);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
            z-index: 99;
            padding: 6px 0 env(safe-area-inset-bottom, 6px) 0;
            border-top: 1px solid rgba(0,0,0,0.05);
            animation: slideUp 0.4s ease forwards;
        }

        .bottom-nav .nav-items {
            display: flex;
            justify-content: space-around;
            align-items: center;
            max-width: 500px;
            margin: 0 auto;
        }

        .bottom-nav .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4px 12px;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            color: var(--gray);
            position: relative;
            text-decoration: none;
            min-width: 60px;
        }

        .bottom-nav .nav-item i {
            font-size: 1.3rem;
            transition: var(--transition);
        }

        .bottom-nav .nav-item span {
            font-size: 0.55rem;
            font-weight: 600;
            margin-top: 2px;
            transition: var(--transition);
        }

        .bottom-nav .nav-item.active {
            color: var(--primary);
        }

        .bottom-nav .nav-item.active i {
            transform: scale(1.1);
        }

        .bottom-nav .nav-item .nav-badge {
            position: absolute;
            top: -2px;
            right: 4px;
            background: var(--secondary);
            color: white;
            font-size: 0.5rem;
            padding: 1px 6px;
            border-radius: 50%;
            font-weight: 700;
            min-width: 18px;
            text-align: center;
            animation: popIn 0.3s ease;
        }

        .bottom-nav .nav-item:hover {
            color: var(--primary);
        }

        @media (max-width: 768px) {
            .bottom-nav { display: block; }
            body { padding-bottom: calc(var(--bottom-nav-height) + 10px); }
            .main-content { padding-bottom: calc(30px + var(--bottom-nav-height) + 20px); }
            .navbar .container {
                flex-wrap: wrap;
                justify-content: center;
            }
            .nav-search {
                max-width: 100%;
                order: 3;
                flex-basis: 100%;
                margin: 4px 0;
            }
        }

        /* ===== LOGIN MODAL ONLY ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(6px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 16px;
            animation: fadeIn 0.3s ease;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-container {
            background: var(--white);
            border-radius: 12px;
            max-width: 420px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
            position: relative;
        }

        .modal-close {
            position: absolute;
            top: 10px;
            right: 14px;
            font-size: 1.3rem;
            color: var(--gray);
            cursor: pointer;
            transition: var(--transition);
            background: none;
            border: none;
            z-index: 10;
        }

        .modal-close:hover {
            color: var(--dark);
            transform: rotate(90deg);
        }

        .modal-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 24px 20px 16px;
            text-align: center;
            color: white;
            position: relative;
        }

        .modal-header .logo-small {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 6px;
        }

        .modal-header h2 {
            font-weight: 700;
            font-size: 1.3rem;
        }

        .modal-header p {
            opacity: 0.9;
            font-size: 0.8rem;
        }

        .modal-body {
            padding: 20px;
        }

        .modal-form {
            display: block;
            animation: fadeSlide 0.3s ease;
        }

        @keyframes fadeSlide {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .form-group {
            margin-bottom: 12px;
        }

        .form-group label {
            display: block;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 3px;
        }

        .form-group label i {
            color: var(--primary);
            margin-right: 4px;
        }

        .input-wrapper {
            display: flex;
            align-items: center;
            background: var(--light-gray);
            border-radius: 8px;
            padding: 0 12px;
            border: 2px solid transparent;
            transition: var(--transition);
        }

        .input-wrapper:focus-within {
            border-color: var(--primary);
            background: var(--white);
            box-shadow: 0 0 0 4px rgba(141, 182, 0, 0.06);
        }

        .input-wrapper i {
            color: var(--gray);
            font-size: 0.8rem;
            margin-right: 8px;
            flex-shrink: 0;
        }

        .input-wrapper:focus-within i {
            color: var(--primary);
        }

        .input-wrapper input {
            width: 100%;
            border: none;
            background: transparent;
            padding: 8px 0;
            font-size: 0.85rem;
            font-weight: 500;
            outline: none;
            font-family: 'Inter', sans-serif;
            color: var(--dark);
        }

        .password-toggle {
            cursor: pointer;
            padding: 4px;
            color: var(--gray);
            transition: var(--transition);
            flex-shrink: 0;
        }

        .password-toggle:hover {
            color: var(--secondary) !important;
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 4px 0 12px;
            font-size: 0.7rem;
            flex-wrap: wrap;
            gap: 8px;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            color: var(--gray);
        }

        .remember-me input {
            accent-color: var(--primary);
            width: 14px;
            height: 14px;
            cursor: pointer;
        }

        .forgot-link {
            color: var(--secondary);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .forgot-link:hover {
            color: var(--secondary-dark);
            text-decoration: underline;
        }

        .btn-submit {
            width: 100%;
            padding: 10px;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.85rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-submit.primary {
            background: var(--secondary);
            color: white;
            box-shadow: 0 4px 16px rgba(255, 115, 0, 0.2);
        }

        .btn-submit.primary:hover:not(:disabled) {
            background: var(--secondary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 24px rgba(255, 115, 0, 0.3);
        }

        .btn-submit:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .btn-submit.loading i {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .alert {
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 12px;
        }

        .alert-danger {
            background: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .alert-success {
            background: #f0fdf4;
            color: #16a34a;
            border: 1px solid #bbf7d0;
        }

        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--dark);
            color: white;
            padding: 12px 20px;
            border-radius: 10px;
            font-weight: 500;
            font-size: 0.8rem;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            z-index: 2000;
            opacity: 0;
            transition: all 0.4s ease;
            max-width: 90%;
            width: auto;
            text-align: center;
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        .toast i {
            margin-right: 6px;
        }

        .toast.success {
            border-left: 4px solid var(--primary);
        }

        .toast.error {
            border-left: 4px solid #dc2626;
        }

        .no-products {
            text-align: center;
            padding: 40px 20px;
            color: var(--gray);
            grid-column: 1 / -1;
        }

        .no-products i {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 12px;
            display: block;
        }

        .no-products h3 {
            font-size: 1.1rem;
            color: var(--dark);
            margin-bottom: 4px;
        }

        .no-products p {
            font-size: 0.85rem;
        }

        /* ===== PRODUCT VIEW ===== */
        .product-view-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 16px;
            animation: fadeIn 0.3s ease;
        }

        .product-view-overlay.active {
            display: flex;
        }

        .product-view-modal {
            background: var(--white);
            border-radius: 16px;
            max-width: 500px;
            width: 100%;
            max-height: 95vh;
            overflow-y: auto;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
            position: relative;
        }

        .product-view-close {
            position: absolute;
            top: 12px;
            right: 16px;
            font-size: 1.5rem;
            color: var(--gray);
            cursor: pointer;
            transition: var(--transition);
            background: rgba(255,255,255,0.95);
            border: none;
            z-index: 10;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .product-view-close:hover {
            color: var(--dark);
            transform: rotate(90deg);
            background: white;
        }

        .product-view-image {
            width: 100%;
            min-height: 320px;
            max-height: 420px;
            background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px 16px 0 0;
            position: relative;
            padding: 0;
            overflow: hidden;
        }

        .product-view-image img {
            width: 100%;
            height: 100%;
            min-height: 320px;
            max-height: 420px;
            object-fit: contain;
            border-radius: 16px 16px 0 0;
            background: #ffffff;
            padding: 10px;
        }

        .product-view-image .emoji-icon {
            font-size: 8rem;
            line-height: 1;
            filter: drop-shadow(0 4px 20px rgba(0,0,0,0.1));
        }

        .product-view-body {
            padding: 24px;
        }

        .product-view-body .product-name {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 2px;
            color: var(--dark);
        }

        .product-view-body .product-category {
            font-size: 0.85rem;
            color: var(--gray);
            margin-bottom: 8px;
        }

        .product-view-body .product-price {
            font-size: 2rem;
            font-weight: 800;
            color: var(--secondary);
            margin-bottom: 12px;
        }

        .product-view-body .product-description {
            font-size: 0.9rem;
            color: var(--gray);
            line-height: 1.6;
            margin-bottom: 16px;
            padding: 12px 16px;
            background: var(--light-gray);
            border-radius: 8px;
        }

        .product-view-body .product-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 16px;
        }

        .product-view-body .product-details .detail-item {
            background: var(--light-gray);
            padding: 10px 14px;
            border-radius: 8px;
            text-align: center;
        }

        .product-view-body .product-details .detail-item .label {
            font-size: 0.6rem;
            color: var(--gray);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .product-view-body .product-details .detail-item .value {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--dark);
            margin-top: 2px;
            word-break: break-all;
        }

        .product-view-body .product-details .detail-item .value.in-stock {
            color: var(--primary);
        }

        .product-view-body .product-details .detail-item .value.out-of-stock {
            color: #dc2626;
        }

        .product-view-body .product-details .detail-item .value .stock-number {
            display: none;
        }

        .product-view-body .product-actions {
            display: flex;
            gap: 10px;
        }

        .product-view-body .product-actions .view-add-btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            background: var(--primary);
            color: white;
        }

        .product-view-body .product-actions .view-add-btn:hover:not(:disabled) {
            background: var(--primary-dark);
            transform: scale(1.02);
        }

        .product-view-body .product-actions .view-add-btn:disabled {
            background: #94a3b8;
            cursor: not-allowed;
            transform: none;
        }

        .product-view-body .product-actions .view-close-btn {
            padding: 12px 24px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            background: transparent;
            color: var(--gray);
        }

        .product-view-body .product-actions .view-close-btn:hover {
            background: var(--light-gray);
            border-color: var(--gray);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 992px) {
            .category-sidebar:not(.open) {
                display: none;
            }
            .category-sidebar.open {
                display: block;
            }
        }

        @media (max-width: 768px) {
            .navbar .container {
                flex-wrap: wrap;
                justify-content: center;
            }
            .nav-search {
                max-width: 100%;
                order: 3;
                flex-basis: 100%;
                margin: 4px 0;
            }
            
            .hero {
                height: var(--carousel-height);
                min-height: var(--carousel-height);
                max-height: var(--carousel-height);
            }
            
            .carousel-container {
                height: var(--carousel-height);
                min-height: var(--carousel-height);
                max-height: var(--carousel-height);
            }
            
            .carousel-slide {
                height: var(--carousel-height);
                min-height: var(--carousel-height);
                max-height: var(--carousel-height);
            }
            
            .carousel-btn {
                width: 36px;
                height: 36px;
                font-size: 0.8rem;
            }
            
            .carousel-btn.prev { left: 8px; }
            .carousel-btn.next { right: 8px; }
            
            .carousel-slide .click-hint {
                display: none;
            }
            
            .carousel-viewer-modal {
                max-width: 95vw;
            }
            
            .carousel-viewer-close {
                top: 10px;
                right: 10px;
                width: 38px;
                height: 38px;
                font-size: 1.2rem;
            }
        }

        @media (max-width: 480px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            .product-card { padding: 12px; }
            .product-card .product-icon { font-size: 2.2rem; height: 40px; }
            .product-card .product-icon img { width: 36px; height: 36px; }
            .product-card h3 { font-size: 0.75rem; }
            .product-card .price { font-size: 0.85rem; }
            .product-card .add-btn { font-size: 0.65rem; padding: 5px 10px; }

            .footer-content { grid-template-columns: 1fr 1fr; gap: 12px; }
            .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
            .feature-item i { font-size: 1.5rem; }
            .feature-item h4 { font-size: 0.75rem; }
            .feature-item p { font-size: 0.65rem; }

            .product-view-body .product-details { grid-template-columns: 1fr 1fr; gap: 6px; }
            .product-view-body .product-actions { flex-direction: column; }
            .product-view-image { min-height: 200px; max-height: 260px; }
            .product-view-image img { min-height: 200px; max-height: 260px; }
            .product-view-image .emoji-icon { font-size: 5rem; }
            .product-view-body .product-price { font-size: 1.5rem; }
            .product-view-body .product-name { font-size: 1.2rem; }

            .bottom-nav .nav-item i { font-size: 1.1rem; }
            .bottom-nav .nav-item span { font-size: 0.5rem; }

            .cart-item { flex-wrap: wrap; gap: 8px; }
            .cart-item .item-quantity { margin-left: auto; }
            .cart-actions { flex-direction: column; }
            .cart-modal { max-width: 100%; margin: 10px; border-radius: 12px; }
            
            .hero {
                height: var(--carousel-height);
                min-height: var(--carousel-height);
                max-height: var(--carousel-height);
            }
            
            .carousel-container {
                height: var(--carousel-height);
                min-height: var(--carousel-height);
                max-height: var(--carousel-height);
            }
            
            .carousel-slide {
                height: var(--carousel-height);
                min-height: var(--carousel-height);
                max-height: var(--carousel-height);
            }
            
            .carousel-viewer-close {
                top: 8px;
                right: 8px;
                width: 34px;
                height: 34px;
                font-size: 1rem;
            }
            
            .checkout-error .alert {
                font-size: 0.75rem;
                padding: 10px 12px;
                flex-direction: column;
                gap: 4px;
            }
        }

        @media (min-width: 641px) and (max-width: 992px) {
            .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
            .product-view-image { min-height: 280px; max-height: 360px; }
            .product-view-image img { min-height: 280px; max-height: 360px; }
            
            .hero {
                height: var(--carousel-height);
                min-height: var(--carousel-height);
                max-height: var(--carousel-height);
            }
            
            .carousel-container {
                height: var(--carousel-height);
                min-height: var(--carousel-height);
                max-height: var(--carousel-height);
            }
            
            .carousel-slide {
                height: var(--carousel-height);
                min-height: var(--carousel-height);
                max-height: var(--carousel-height);
            }
        }

        @media (min-width: 993px) {
            .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
            .product-view-image { min-height: 320px; max-height: 420px; }
            .product-view-image img { min-height: 320px; max-height: 420px; }
        }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--light-gray); }
        ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

        .nav-btn, .category-btn, .add-btn, .slide-btn, .carousel-btn {
            touch-action: manipulation;
        }

        @supports (padding: max(0px)) {
            .navbar {
                padding-left: max(16px, env(safe-area-inset-left));
                padding-right: max(16px, env(safe-area-inset-right));
            }
            .bottom-nav {
                padding-bottom: max(6px, env(safe-area-inset-bottom));
            }
        }

        .register-link {
            text-decoration: none;
        }

        /* ============================================================
           DEVELOPER & OWNER CREDITS - FOOTER STYLES
           ============================================================ */
        .footer-credits {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 16px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            text-align: center;
        }

        .footer-credits .developer-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .footer-credits .developer-info .credit-title {
            font-size: 0.8rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 4px;
        }

        .footer-credits .developer-info .credit-name {
            font-size: 0.9rem;
            font-weight: 600;
            color: white;
        }

        .footer-credits .developer-info .credit-links {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-credits .developer-info .credit-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 0.75rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.06);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .footer-credits .developer-info .credit-links a:hover {
            background: rgba(255, 255, 255, 0.12);
            color: white;
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        .footer-credits .developer-info .credit-links a i {
            font-size: 0.9rem;
        }

        .footer-credits .developer-info .credit-links a .fb-icon {
            color: #1877f2;
        }

        .footer-credits .developer-info .credit-links a .shop-icon {
            color: #8DB600;
        }

        .footer-credits .developer-info .credit-owner {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
            margin-top: 4px;
        }

        .footer-credits .developer-info .credit-owner strong {
            color: rgba(255, 255, 255, 0.7);
        }

        @media (max-width: 480px) {
            .footer-credits .developer-info .credit-links {
                flex-direction: column;
                gap: 8px;
                align-items: center;
            }
            .footer-credits .developer-info .credit-links a {
                width: 100%;
                justify-content: center;
            }
        }