        :root {
            --primary-color: #0b8a73; --primary-light: #e6f3f0; --bg-color: #f9f9f9;
            --text-main: #1a1a1a; --text-muted: #888888; --card-bg: #ffffff;
            --box-bg: #f4f2ea; --border-color: #e0e0e0; --danger: #e74c3c;
            --app-max-width: 480px;
            --safe-area-top: 70px;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'ModamWeb', sans-serif; -webkit-tap-highlight-color: transparent; }
        
        body { 
            background-color: #e2e8f0; color: var(--text-main); 
            height: 100vh; overflow: hidden; 
            display: flex; justify-content: center; align-items: center;
        }

        #appWrapper {
            width: 100%; max-width: var(--app-max-width); height: 100vh;
            background-color: var(--bg-color); position: relative;
            display: flex; flex-direction: column; overflow: hidden;
            box-shadow: 0 0 30px rgba(0,0,0,0.1);
        }

        .safe-area-spacer {
            height: var(--safe-area-top); width: 100%; flex-shrink: 0;
            background-color: var(--bg-color); z-index: 9999;
        }

        #appContent {
            flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column;
        }

        #mainAppContainer {
            flex: 1; overflow-y: auto; padding-bottom: 120px;
        }

        .icon-btn { background: none; border: none; cursor: pointer; color: var(--text-main); font-size: 18px; transition: 0.2s; }
        .icon-btn:active { transform: scale(0.9); }

        /* ================= Header ================= */
        .header { display: flex; justify-content: center; align-items: center; padding: 12px 20px; position: relative; margin-top: 10px; margin-bottom: 10px; }
        
        .header-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translateY(-20px); }
        
        .header-logo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background-color: transparent; }
        .header-title { font-size: 15px; font-weight: 900; color: var(--primary-color); }
        .header .icon-btn.left { position: absolute; left: 20px; font-size: 20px; } 

        /* ================= Home View ================= */
        .fake-search-bar { margin: 0 16px 16px 16px; display: flex; align-items: center; background: white; border-radius: 100px; padding: 5px 15px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.03); cursor: pointer; }
        .fake-search-bar i { color: var(--primary-color); font-size: 16px; padding: 10px; }
        .fake-search-bar div { flex: 1; padding: 10px; color: var(--text-muted); font-size: 13px; }

        .promo-banner{ margin: 0 16px 16px 16px; background: linear-gradient(135deg, var(--primary-color), #086b59); border-radius: 20px; padding: 24px; color: white; box-shadow: 0 4px 15px rgba(11, 138, 115, 0.2); }
        .categories-scroll { display: flex; gap: 12px; padding: 0 16px 16px 16px; overflow-x: auto; scrollbar-width: none; }
        .categories-scroll::-webkit-scrollbar { display: none; }
        .category-chip { padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--card-bg); border: 1px solid #eee; cursor: pointer; transition: 0.2s;}
        .category-chip.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

        .products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 16px; }
        .product-card { background: var(--card-bg); border-radius: 20px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); transition: 0.2s; }
        .product-card:active { transform: scale(0.98); }
        .product-img { width: 100%; aspect-ratio: 1/1; border-radius: 16px; object-fit: cover; background: var(--box-bg); }
        .product-title { font-size: 13px; font-weight: 700; height: 36px; overflow: hidden; }
        .price-final { font-size: 14px; font-weight: 800; color: var(--primary-color); display: flex; flex-direction: column;}
        .price-old { font-size: 10px; color: var(--text-muted); text-decoration: line-through; font-weight: normal; }
        .add-btn { background: var(--primary-light); color: var(--primary-color); border: none; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; z-index: 10; transition: 0.2s;}
        .add-btn:active { background: var(--primary-color); color: white; }

        /* ================= Categories ================= */
        .cat-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 16px; }
        .cat-page-card { background: var(--card-bg); border-radius: 20px; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); text-decoration: none; color: var(--text-main); border: 1px solid transparent; transition: all 0.2s; cursor: pointer; }
        .cat-page-card:active { border-color: var(--primary-color); background: var(--primary-light); transform: scale(0.95); }
        .cat-icon-wrap { width: 50px; height: 50px; border-radius: 16px; background: var(--primary-light); color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-size: 24px; }
        .cat-page-title { font-size: 14px; font-weight: 700; text-align: center; }

        /* ================= History ================= */
        .order-card { background: var(--card-bg); border-radius: 20px; padding: 16px; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
        .order-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 10px; }
        .order-id { font-weight: 800; font-size: 14px; color: var(--text-main); }
        .order-status { font-size: 11px; padding: 4px 10px; border-radius: 100px; font-weight: 700; }
        .status-pending { background: #fff3cd; color: #d46b08; }
        .status-paid { background: #e6f3f0; color: var(--primary-color); }
        .status-shipped { background: #e6f7ff; color: #08979c; }
        .order-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
        .order-val { font-weight: 700; color: var(--text-main); }

        /* ================= Bottom Nav ================= */
        .bottom-nav { position: absolute;  bottom: 20px;  left: 20px;  right: 20px;  height: 65px;  background: linear-gradient(135deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.30));  backdrop-filter: blur(12px);  -webkit-backdrop-filter: blur(12px);  border: 1px solid rgba(255, 255, 255, 0.4);  display: flex; justify-content: space-around; padding: 0 10px;  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);  border-radius: 35px; z-index: 100; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); align-items: center;}
        .bottom-nav.hidden { transform: translateY(150px); }
        .nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); text-decoration: none; font-size: 11px; font-weight: 500; width: 25%; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent;}
        .nav-icon-wrapper { position: relative; width: 24px; height: 24px; }
        .nav-icon-wrapper svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: opacity 0.3s ease; }
        .nav-icon-wrapper .solid { opacity: 0; color: var(--primary-color); }
        .nav-icon-wrapper .outline { opacity: 1; color: var(--text-muted); }
        .nav-item.active .nav-icon-wrapper .solid { opacity: 1; filter: drop-shadow(0 2px 4px rgba(11,138,115,0.3)); }
        .nav-item.active .nav-icon-wrapper .outline { opacity: 0; }
        .nav-item.active span { color: var(--primary-color); font-weight: 800; }
        .cart-badge { position: absolute; top: -6px; right: -8px; background: #ff4d4f; color: white; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 100px; display: none; z-index: 10; }

        .bottom-nav.nav-circle-mode { width: 65px; right: 20px; left: auto;  border-radius: 50%; padding: 0; justify-content: center;}
        .bottom-nav.nav-circle-mode .nav-item { display: none !important; }
        .bottom-nav.nav-circle-mode .nav-item:first-child { display: flex !important;   width: 100%; justify-content: center; align-items: center;}
        .bottom-nav.nav-circle-mode .nav-item:first-child span { display: none !important;}
        .bottom-nav.nav-circle-mode .nav-item:first-child .nav-icon-wrapper { transform: scale(1.15); margin-bottom: 0 !important;}

        /* ================= Search Modal ================= */
        .search-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(15px); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; display: flex; align-items: flex-start; justify-content: center; padding: 20px; }
        .search-modal-overlay.active { opacity: 1; visibility: visible; }
        .search-modal-content { background: white; width: 100%; border-radius: 25px; padding: 20px; box-shadow: 0 15px 50px rgba(0,0,0,0.15); max-height: 100%; display: flex; flex-direction: column; transform: scale(0.95); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        .search-modal-overlay.active .search-modal-content { transform: scale(1); }
        .search-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
        .search-input-box { display: flex; align-items: center; background: var(--box-bg); border-radius: 100px; padding: 5px 15px; margin-bottom: 25px; border: 1px solid var(--border-color); }
        .search-input-box input { flex: 1; border: none; background: transparent; padding: 10px; font-size: 14px; outline: none; font-family: 'ModamWeb', sans-serif; }
        .search-action-btn { background: var(--primary-color); color: white; border: none; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
        .search-section-title { font-size: 13px; font-weight: 800; color: var(--text-muted); margin-bottom: 15px; }
        .search-results-container { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px;}
        .search-mini-card { display: flex; align-items: center; gap: 12px; background: var(--box-bg); padding: 10px; border-radius: 16px; cursor: pointer; transition: 0.2s;}
        .search-mini-card:active { transform: scale(0.95); }
        .search-mini-img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
        .search-mini-title { font-size: 13px; font-weight: 700; flex: 1; }
        .search-mini-price { font-size: 12px; color: var(--primary-color); font-weight: 800; }

        /* ================= Product Modal ================= */
        #productView { 
            position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
            background-color: var(--card-bg); z-index: 2000; 
            overflow-y: auto; overflow-x: hidden; 
            transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
            padding-bottom: 130px; display: none;
        }
        #productView.active { transform: translateY(0); }
        .product-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: transparent; margin-top: 10px;}
        .breadcrumb { font-size: 11px; color: var(--text-muted); margin-bottom: 15px; padding: 0 20px; }
        
        .p-img-wrapper { margin: 0 20px 25px 20px; border-radius: 24px; background-color: var(--box-bg); height: 320px; position: relative; display: flex; align-items: center; justify-content: center; }
        .p-img-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; cursor: zoom-in; }
        
        .share-float-btn { position: absolute; bottom: 15px; left: 15px; background: var(--primary-color); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 12px rgba(11, 138, 115, 0.4); cursor: pointer; transition: 0.2s; }
        .share-float-btn:active { transform: scale(0.9); }

        .p-main-title { font-size: 20px; font-weight: 900; padding: 0 20px; line-height: 1.4; margin-bottom: 15px; }
        .p-tags { padding: 0 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
        .p-tag-pill { background: var(--primary-light); color: var(--primary-color); border: 1px solid var(--primary-color); padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 800; cursor: pointer; transition: 0.2s; font-family: 'ModamWeb', sans-serif;}
        .p-tag-pill:active { transform: scale(0.95); background: var(--primary-color); color: white; }

        .p-features { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 35px; }
        .p-feature-row { background: var(--box-bg); border-radius: 20px; padding: 12px 16px; display: flex; align-items: center; gap: 15px; }
        .p-feature-icon { width: 45px; height: 45px; background: var(--primary-color); color: white; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
        .p-feature-texts { flex: 1; display: flex; flex-direction: column; }
        .p-f-label { font-size: 11px; color: var(--primary-color); font-weight: 600; margin-bottom: 2px; }
        .p-f-val { font-size: 14px; font-weight: 800; color: var(--text-main); }
        .p-section-title { font-size: 16px; font-weight: 800; padding: 0 20px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
        .p-desc-text { padding: 0 20px; font-size: 13px; line-height: 2; color: var(--text-muted); text-align: justify; }
        
        .product-bottom-bar { position: absolute; bottom: 0; left: 0; right: 0; background: white; padding: 15px 20px 30px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -4px 25px rgba(0,0,0,0.06); border-radius: 30px 30px 0 0; z-index: 2001; transform: translateY(100px); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: none; }
        .product-bottom-bar.active { transform: translateY(0); }
        .pbb-price-wrap { display: flex; flex-direction: column; gap: 2px; }
        .pbb-add-btn { background: var(--primary-color); color: white; border: none; border-radius: 100px; padding: 14px 24px; font-weight: 800; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s;}
        .pbb-add-btn:active { transform: scale(0.95); }

        /* ================= Cart Drawer ================= */
        .cart-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 3001; opacity: 0; visibility: hidden; transition: 0.3s; }
        .cart-overlay.active { opacity: 1; visibility: visible; }
        .cart-drawer { position: absolute; top: 0; right: -100%; width: 85%; max-width: 380px; bottom: 0; background: var(--bg-color); z-index: 3002; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
        .cart-drawer.active { right: 0; }
        .cart-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; background: white; border-bottom: 1px solid #eee; margin-top: 10px;}
        .cart-items { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 15px; }
        .cart-item { display: flex; flex-direction: column; background: white; border-radius: 20px; padding: 15px; gap: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
        .cart-item-bottom { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px 15px 15px; margin-top: 5px;}
        .qty-controls-pill { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 100px; background: white; height: 38px; }
        .qty-btn-pill { background: transparent; border: none; width: 38px; height: 100%; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 18px; color: var(--text-main); }
        .qty-number-pill { min-width: 30px; text-align: center; font-size: 14px; font-weight: 700; }
        .delete-btn-pill { display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: 100px; background: white; height: 38px; width: 45px; cursor: pointer; color: var(--text-main); }
        .cart-footer { padding: 20px 20px 30px 20px; background: white; border-top-left-radius: 20px; border-top-right-radius: 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.05);}
        .checkout-btn { width: 100%; background: var(--primary-color); color: white; border: none; padding: 16px; border-radius: 100px; font-weight: 700; font-size: 16px; cursor: pointer; transition: 0.2s;}
        .checkout-btn:active { transform: scale(0.95); }
        .loader { text-align: center; padding: 50px; grid-column: span 2; color: var(--primary-color); }
        
        /* ================= Alert & Share Modals ================= */
        .alert-modal { position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 4000; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: 0.3s;}
        .alert-modal.active { display: flex; opacity: 1; }
        .alert-box { background: white; padding: 30px 20px; border-radius: 20px; width: 100%; max-width: 350px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: scale(0.9); transition: 0.3s;}
        .alert-modal.active .alert-box { transform: scale(1); }
        .alert-icon { font-size: 40px; color: var(--primary-color); margin-bottom: 15px; }
        .alert-btn { background: var(--primary-color); color: white; border: none; padding: 12px 30px; border-radius: 100px; font-weight: bold; font-size: 15px; margin-top: 20px; cursor: pointer; width: 100%; transition: 0.2s;}
        .share-link-input { width: 100%; padding: 10px 15px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-color); color: var(--text-main); font-size: 12px; direction: ltr; text-align: left; margin-bottom: 15px; outline: none; }
        
        /* ================= Fullscreen Image Modal ================= */
        #fullScreenModal { 
            display:none; position:fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
            background:rgba(0,0,0,0.95); z-index:9999; flex-direction: column;
            align-items:center; justify-content:center; padding: 20px; 
        }
        #fullScreenModal .close-fs { position:absolute; top:30px; right:30px; color:white; font-size:40px; background: none; border: none; cursor: pointer; }

        /* ================= Checkout View ================= */
        .checkout-box { background: white; border-radius: 20px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); margin-bottom: 15px; text-align: right; }