*{margin:0;padding:0;box-sizing:border-box;font-family:Inter,system-ui,sans-serif}
body{background:linear-gradient(145deg,#f0f4f8,#e8eef5);color:#0b2b42}
.header{background:linear-gradient(135deg,#0a2b3e,#0f3d55);color:#fff;padding:12px 32px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;position:sticky;top:0;z-index:100}
.logo{cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.location-btn{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,0.15);padding:8px 16px;border-radius:40px;cursor:pointer}
.search-bar{flex:1;max-width:420px;display:flex}
.search-bar input{width:100%;padding:10px 16px;border:none;border-radius:40px 0 0 40px;outline:none}
.search-bar button{background:linear-gradient(135deg,#2c7da0,#1e5e7a);border:none;padding:0 24px;border-radius:0 40px 40px 0;color:#fff;font-weight:bold;cursor:pointer}
.header-actions{display:flex;gap:12px;align-items:center}
.cart-icon,.wishlist-icon{background:linear-gradient(135deg,#1e4a6e,#2c7da0);padding:8px 16px;border-radius:40px;display:flex;align-items:center;gap:8px;cursor:pointer}
.cart-count,.wishlist-count{background:#ff7b4a;border-radius:30px;padding:2px 10px;font-size:13px;font-weight:bold}
.signin-btn{background:#fff;color:#0a2b3e;padding:8px 20px;border-radius:40px;border:none;cursor:pointer}
.signout-btn{background:#dc2626;color:#fff;padding:8px 20px;border-radius:40px;border:none;cursor:pointer}
.settings-btn{background:#2c7da0;color:#fff;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;cursor:pointer}
.nav{background:rgba(255,255,255,0.95);padding:12px 32px;display:flex;gap:28px;border-bottom:1px solid rgba(220,229,236,0.6);flex-wrap:wrap}
.nav div{font-weight:600;color:#1e4a6e;cursor:pointer;padding:6px 0;border-bottom:2px solid transparent}
.nav div:hover{border-bottom-color:#2c7da0}
.container{padding:28px 32px;max-width:1440px;margin:0 auto}
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px;margin-top:24px}
.product-card{background:#fff;border-radius:24px;overflow:hidden;transition:0.3s;box-shadow:0 12px 28px rgba(0,0,0,0.08);position:relative;cursor:pointer}
.product-card:hover{transform:translateY(-5px)}
.wishlist-heart{position:absolute;top:12px;right:12px;font-size:28px;cursor:pointer;background:#fff;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,0.1);z-index:2}
.wishlist-heart.active{color:#ff3366}
.product-img{width:100%;height:220px;object-fit:cover;background:#eef3fc}
.product-info{padding:16px}
.product-title{font-size:1.1rem;font-weight:700}
.seller-name{font-size:12px;color:#2c7da0;margin-top:4px;cursor:pointer}
.seller-name:hover{text-decoration:underline}
.price{font-weight:800;font-size:1.35rem;color:#1e6f5c;margin:8px 0}
.add-to-cart{background:#2c7da0;color:#fff;border:none;padding:10px;border-radius:40px;font-weight:bold;cursor:pointer;width:100%;margin-top:12px}
.category-sidebar{background:#fff;border-radius:28px;padding:20px 24px;margin-bottom:24px;display:flex;flex-wrap:wrap;gap:12px}
.category-chip{background:#eef3fc;padding:8px 20px;border-radius:40px;cursor:pointer}
.category-chip.active{background:#2c7da0;color:#fff}
.filter-section{background:#fff;border-radius:28px;padding:20px 24px;margin-bottom:24px;display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.filter-select{padding:8px 16px;border-radius:40px;border:1px solid #ddd;background:#fff}
.page{display:none}.active{display:block}
.cart-overlay,.wishlist-overlay{position:fixed;top:0;right:-500px;width:500px;height:100%;background:#fff;box-shadow:-5px 0 30px rgba(0,0,0,0.15);transition:0.3s;z-index:1000;padding:28px;overflow-y:auto}
.cart-overlay.open,.wishlist-overlay.open{right:0}
.cart-item,.wishlist-item{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eef2f5;padding:14px 0}
input,select,textarea{width:100%;padding:12px;margin:8px 0;border-radius:28px;border:1px solid #ddd}
.seller-form{background:#fff;border-radius:32px;padding:28px;margin-top:20px}
.service-footer{background:linear-gradient(135deg,#0a2b3e,#0f3d55);color:#eef4fc;margin-top:60px;padding:48px 32px 32px;border-radius:40px 40px 0 0}
.footer-grid{display:flex;flex-wrap:wrap;justify-content:space-between;gap:40px;max-width:1200px;margin:0 auto}
.copyright{text-align:center;margin-top:32px;font-size:0.8rem}
.floating-home{position:fixed;bottom:30px;right:30px;background:#2c7da0;color:#fff;width:56px;height:56px;border-radius:50%;display:none;align-items:center;justify-content:center;font-size:26px;box-shadow:0 4px 15px rgba(0,0,0,0.2);z-index:999;cursor:pointer}
.settings-sidebar{position:fixed;top:0;left:-380px;width:380px;height:100%;background:#fff;box-shadow:5px 0 30px rgba(0,0,0,0.2);transition:left 0.35s ease;z-index:1200;padding:32px 28px;overflow-y:auto}
.settings-sidebar.open{left:0}
.close-settings{position:absolute;top:20px;right:20px;background:none;border:none;font-size:28px;cursor:pointer}
.settings-section{margin:24px 0;padding:16px 0;border-bottom:1px solid #eef2f5}
.settings-checkbox{display:flex;align-items:center;justify-content:space-between;margin:12px 0}
.admin-link{background:#1e4a6e;color:#fff;padding:14px;border-radius:28px;text-align:center;cursor:pointer;margin-top:20px;font-weight:bold}
.location-banner{background:linear-gradient(135deg,#f9f3e3,#ffe6cc);padding:10px 20px;border-radius:40px;font-size:13px;color:#b45f06;margin:12px 32px 0;text-align:center}
.overlay-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:1150;display:none}
.product-detail-page{background:#fff;border-radius:32px;padding:32px;max-width:800px;margin:0 auto}
.product-detail-img{width:100%;max-height:400px;object-fit:contain;border-radius:24px}
.quantity-selector{display:flex;align-items:center;gap:12px;margin:16px 0}
.quantity-selector button{width:40px;height:40px;border-radius:50%;border:none;background:#2c7da0;color:#fff;font-size:20px;cursor:pointer}
.back-to-home{background:#eef3fc;border:none;padding:10px 20px;border-radius:40px;cursor:pointer;margin-bottom:20px}
.list-new-product-btn{background:#1e6f5c;color:#fff;border:none;padding:12px 24px;border-radius:40px;font-weight:bold;cursor:pointer;margin-bottom:20px}
.seller-store-header{background:linear-gradient(135deg,#1e4a6e,#2c7da0);color:#fff;padding:20px;border-radius:28px;margin-bottom:24px;text-align:center}
.product-listing-card{padding:16px;border-bottom:1px solid #eee;display:flex;gap:16px;align-items:flex-start}
.product-listing-card img{width:80px;height:80px;object-fit:cover;border-radius:12px}
.edit-product-btn,.delete-product-btn{padding:8px 16px;border-radius:20px;border:none;cursor:pointer}
.edit-product-btn{background:#2c7da0;color:#fff}
.delete-product-btn{background:#dc2626;color:#fff}
.order-card{border:1px solid #ddd;border-radius:16px;padding:16px;margin-bottom:16px;background:#fff}
.order-status{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:bold}
.status-pending{background:#fef3c7;color:#92400e}
.status-processing{background:#dbeafe;color:#1e40af}
.status-out_for_delivery{background:#fed7aa;color:#9a3412}
.status-delivered{background:#d1fae5;color:#065f46}
.address-card,.payment-card{background:#f8fafc;border-radius:16px;padding:12px;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}
.icon-btn{background:none;border:none;font-size:18px;cursor:pointer;padding:4px 8px;border-radius:20px}
.add-btn{background:#2c7da0;color:#fff;border:none;padding:10px 16px;border-radius:40px;cursor:pointer;margin:16px 0;display:inline-flex;align-items:center;gap:8px}
.inline-form{display:none;margin-top:16px;padding:16px;background:#f1f5f9;border-radius:24px}
.inline-form.show{display:block}
.default-badge{background:#10b981;color:#fff;font-size:10px;padding:2px 8px;border-radius:20px;margin-left:8px}
.manage-page{max-width:800px;margin:0 auto;background:#fff;border-radius:32px;padding:32px}
.checkout-item{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #eee}
.checkout-item-controls{display:flex;align-items:center;gap:12px}
.modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:2000;justify-content:center;align-items:center}
.modal-content{background:#fff;max-width:500px;width:90%;border-radius:32px;padding:24px}
.chat-widget{position:fixed;bottom:20px;right:20px;width:350px;background:#fff;border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,0.2);display:none;flex-direction:column;z-index:1100}
.chat-header{background:#2c7da0;color:#fff;padding:12px;border-radius:16px 16px 0 0;display:flex;justify-content:space-between;cursor:pointer}
.chat-messages{height:300px;overflow-y:auto;padding:10px;background:#f9f9f9}
.message{display:flex;margin-bottom:8px}
.message.sent{justify-content:flex-end}
.message.sent span{background:#2c7da0;color:#fff;padding:8px 12px;border-radius:18px;display:inline-block;max-width:70%}
.message.received span{background:#e5e7eb;color:#1f2937;padding:8px 12px;border-radius:18px;display:inline-block;max-width:70%}
.chat-input{display:flex;border-top:1px solid #ddd}
.chat-input input{flex:1;border:none;padding:12px;border-radius:0}
.chat-input button{background:#2c7da0;color:#fff;border:none;padding:12px;cursor:pointer}
.notification-bell{position:relative;cursor:pointer;margin-right:10px;font-size:24px}
.notification-dropdown{position:absolute;top:40px;right:0;width:320px;background:#fff;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,0.15);display:none;z-index:1300;max-height:400px;overflow-y:auto}
.notification-item{padding:12px;border-bottom:1px solid #eee;cursor:pointer}
.gift-card-item{background:#f8fafc;border-radius:16px;padding:16px;margin-bottom:12px;text-align:center;cursor:pointer;transition:0.2s;border:2px solid transparent}
.gift-card-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.gift-card-item.selected{border-color:#1e6f5c;background:#e6f7f0}
.gift-card-value{font-size:24px;font-weight:800;color:#1e6f5c}
.seller-store-page{max-width:800px;margin:0 auto;background:#fff;border-radius:32px;padding:32px}
.seller-store-banner{width:100%;height:150px;object-fit:cover;border-radius:28px;margin-bottom:16px}
.seller-store-avatar{width:100px;height:100px;border-radius:50%;border:4px solid white;margin-top:-50px;margin-bottom:16px;object-fit:cover}
.star-rating{color:#f5b042;font-size:18px}
.dispute-message{background:#f8fafc;border-radius:16px;padding:12px;margin-bottom:12px}
.dispute-message.seller{background:#e6f7e6}
.dispute-message.admin{background:#e6f0fa}
.payment-option{display:flex;gap:16px;margin:16px 0}
.payment-option label{display:flex;align-items:center;gap:8px;cursor:pointer}
/* Onboarding Tooltips */
.onboarding-tooltip{position:fixed;background:#2c7da0;color:white;padding:12px 16px;border-radius:12px;font-size:14px;max-width:280px;z-index:10000;box-shadow:0 4px 12px rgba(0,0,0,0.2);animation:fadeInUp 0.3s ease}
.onboarding-tooltip::after{content:'';position:absolute;top:-8px;left:20px;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #2c7da0}
.onboarding-tooltip button{margin-top:8px;background:white;color:#2c7da0;border:none;padding:6px 12px;border-radius:20px;cursor:pointer;font-weight:bold}
@keyframes fadeInUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.onboarding-highlight{position:relative;z-index:9999;box-shadow:0 0 0 4px #f5b042,0 0 0 8px rgba(245,176,66,0.3);border-radius:12px}
/* Dark Mode */
:root{--bg-primary:#f0f4f8;--bg-secondary:#fff;--text-primary:#0b2b42;--card-bg:#fff;--header-bg:linear-gradient(135deg,#0a2b3e,#0f3d55);--border-color:#eef2f5;--input-bg:#fff}
body.dark-mode{--bg-primary:#121826;--bg-secondary:#1a1f2e;--text-primary:#e8edf5;--card-bg:#1e2436;--header-bg:linear-gradient(135deg,#0a0f1a,#0f172a);--border-color:#2a2f3f;--input-bg:#2a2f3f;background:var(--bg-primary);color:var(--text-primary)}
body.dark-mode .product-card,body.dark-mode .seller-form,body.dark-mode .manage-page,body.dark-mode .order-card,body.dark-mode .address-card,body.dark-mode .payment-card,body.dark-mode .modal-content,body.dark-mode .chat-widget,body.dark-mode .notification-dropdown,body.dark-mode .gift-card-item,body.dark-mode .seller-store-page{background:var(--card-bg);color:var(--text-primary)}
body.dark-mode .header{background:var(--header-bg)}
body.dark-mode .category-sidebar,body.dark-mode .nav,body.dark-mode .settings-sidebar{background:var(--bg-secondary);border-color:var(--border-color)}
body.dark-mode input,body.dark-mode select,body.dark-mode textarea{background:var(--input-bg);color:var(--text-primary);border-color:var(--border-color)}
body.dark-mode .category-chip{background:var(--input-bg);color:var(--text-primary)}
body.dark-mode .category-chip.active{background:#2c7da0;color:#fff}
@media(max-width:640px){.settings-sidebar{width:85%;left:-85%}.cart-overlay,.wishlist-overlay{width:100%;right:-100%}.chat-widget{width:90%;right:5%;bottom:10px}}