:root {
  --purple:       #6A0DAD;
  --purple-dark:  #4a0880;
  --purple-light: #9b3dd4;
  --purple-pale:  #f3e8ff;
  --purple-mid:   #ede0f7;
  --white:        #ffffff;
  --gray-bg:      #f8f5fc;
  --text-dark:    #1a1a2e;
  --text-muted:   #888;
  --sidebar-w:    230px;
  --cart-w:       300px;
  --success:      #38a169;
  --danger:       #ff4757;
  --warning:      #f6ad55;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body { font-family: 'Poppins', sans-serif; background: var(--gray-bg); color: var(--text-dark); overflow-x: clip; max-width: 100%; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--purple-light); border-radius: 10px; }

/* ══ LAYOUT ══ */
.layout { display: flex; min-height: 100vh; width: 100%; max-width: 100vw; overflow-x: hidden; }

/* ══ SIDEBAR ══ */
.sidebar { width:var(--sidebar-w); min-height:100vh; background:var(--white); display:flex; flex-direction:column; padding-bottom:20px; position:fixed; top:0; left:0; height:100vh; overflow-y:auto; box-shadow:2px 0 12px rgba(106,13,173,.07); z-index:1040; transition:transform .3s ease; }
.sidebar.hidden { transform:translateX(-100%); }
.sidebar-logo { padding:18px 20px 14px; border-bottom:1px solid #f0e6ff; }
.sidebar-logo img { display:block; }
.sidebar-logo small { font-size:.62rem; color:#aaa; font-weight:500; display:block; margin-top:4px; }
.sidebar-nav { padding:10px 0; flex:1; }
.nav-item-s { display:flex; align-items:center; gap:11px; padding:9px 20px; font-size:.85rem; font-weight:500; color:#555; cursor:pointer; border-radius:0 30px 30px 0; margin-right:12px; transition:all .2s; text-decoration:none; }
.nav-item-s:hover { background:var(--purple-pale); color:var(--purple); }
.nav-item-s.active { background:var(--purple); color:white; font-weight:600; }
.nav-item-s i { font-size:1rem; width:20px; }
.nav-badge { margin-left:auto; background:#ff4757; color:white; font-size:.62rem; padding:1px 7px; border-radius:20px; font-weight:700; }
.sidebar-divider { border-top:1px solid #f0e6ff; margin:6px 16px; }
.sidebar-offer { margin:14px 12px; border-radius:16px; padding:16px 14px; background:linear-gradient(135deg,var(--purple),var(--purple-light)); color:white; position:relative; overflow:hidden; }
.sidebar-offer::before { content:''; position:absolute; top:-20px; right:-20px; width:80px; height:80px; background:rgba(255,255,255,.12); border-radius:50%; }
.sidebar-offer .offer-label { font-size:.62rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; opacity:.85; }
.sidebar-offer h6 { font-size:.95rem; font-weight:700; margin:4px 0; line-height:1.3; }
.sidebar-offer p { font-size:.7rem; opacity:.85; margin-bottom:10px; }
.btn-offer { background:white; color:var(--purple); border:none; border-radius:20px; padding:5px 14px; font-size:.72rem; font-weight:700; cursor:pointer; font-family:'Poppins',sans-serif; text-decoration:none; display:inline-block; }
.sidebar-backdrop { display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1039; }
.sidebar-backdrop.show { display:block; }

/* ══ MAIN ══ */
.main-content { flex:1; margin-left:var(--sidebar-w); display:flex; flex-direction:column; min-width:0; transition:margin-left .3s; }

/* ══ NAVBAR ══ */
.top-navbar { background:var(--white); padding:10px 16px; display:flex; align-items:center; gap:10px; box-shadow:0 2px 12px rgba(106,13,173,.06); position:sticky; top:0; z-index:1030; }
.btn-hamburger { display:none; background:none; border:none; font-size:1.3rem; color:var(--purple); cursor:pointer; padding:2px 6px; border-radius:8px; }
.btn-hamburger:hover { background:var(--purple-pale); }
.search-wrap { flex:1; position:relative; max-width:480px; }
.search-wrap input { width:100%; border:1.5px solid #e8d5f5; border-radius:30px; padding:8px 16px 8px 40px; font-size:.82rem; font-family:'Poppins',sans-serif; outline:none; background:var(--gray-bg); transition:border-color .2s; }
.search-wrap input:focus { border-color:var(--purple); background:white; }
.search-wrap > i { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:#aaa; font-size:.9rem; }
.search-results { position:absolute; top:100%; left:0; right:0; background:white; border-radius:12px; box-shadow:0 8px 24px rgba(106,13,173,.15); z-index:999; display:none; overflow:hidden; margin-top:6px; }
.search-result-item { display:flex; align-items:center; gap:10px; padding:10px 14px; text-decoration:none; color:var(--text-dark); border-bottom:1px solid #f5eeff; transition:background .15s; }
.search-result-item:hover { background:var(--purple-pale); }
.nav-actions { display:flex; align-items:center; gap:6px; margin-left:auto; }
.nav-icon-btn { position:relative; width:38px; height:38px; border-radius:50%; border:1.5px solid #e8d5f5; background:var(--gray-bg); display:flex; align-items:center; justify-content:center; color:#555; font-size:.95rem; cursor:pointer; text-decoration:none; transition:all .2s; }
.nav-icon-btn:hover { background:var(--purple-pale); color:var(--purple); border-color:var(--purple-light); }
.nav-badge-dot { position:absolute; top:-3px; right:-3px; background:#ff4757; color:white; font-size:.55rem; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; border:2px solid white; }
.btn-login { padding:6px 14px; border-radius:20px; border:1.5px solid var(--purple); background:transparent; color:var(--purple); font-size:.78rem; font-weight:600; font-family:'Poppins',sans-serif; cursor:pointer; transition:all .2s; text-decoration:none; white-space:nowrap; }
.btn-login:hover { background:var(--purple); color:white; }
.btn-register { padding:6px 14px; border-radius:20px; border:none; background:var(--purple); color:white; font-size:.78rem; font-weight:600; font-family:'Poppins',sans-serif; cursor:pointer; transition:all .2s; text-decoration:none; white-space:nowrap; }
.btn-register:hover { background:var(--purple-dark); }
.nav-user { display:flex; align-items:center; gap:8px; padding:4px 12px 4px 4px; border-radius:30px; border:1.5px solid #e8d5f5; background:var(--gray-bg); cursor:pointer; transition:all .2s; text-decoration:none; }
.nav-user:hover { border-color:var(--purple-light); }
.user-avatar-placeholder { width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,var(--purple),var(--purple-light)); display:flex; align-items:center; justify-content:center; color:white; font-size:.78rem; font-weight:700; }
.nav-user span { font-size:.8rem; font-weight:500; color:var(--text-dark); }

/* ══ PAGE BODY ══ */
.page-body { display:flex; flex:1; }
.center-content { flex:1; padding:20px 16px; min-width:0; }
.section { margin-bottom:24px; }
.section-title { font-size:.9rem; font-weight:700; color:var(--text-dark); margin-bottom:14px; display:flex; justify-content:space-between; align-items:center; }
.section-title a { font-size:.75rem; font-weight:500; color:var(--purple); text-decoration:none; }

/* ══ HERO ══ */
.hero-slide { height:220px; border-radius:18px; display:flex; align-items:center; padding:28px 32px; position:relative; overflow:hidden; }
.hero-slide::before { content:''; position:absolute; right:-40px; top:-60px; width:240px; height:240px; background:rgba(255,255,255,.07); border-radius:50%; }
.hero-content { position:relative; z-index:2; color:white; max-width:55%; }
.hero-tag { display:inline-block; background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.3); border-radius:20px; padding:2px 10px; font-size:.65rem; font-weight:600; margin-bottom:8px; }
.hero-content h2 { font-size:1.4rem; font-weight:800; line-height:1.2; margin-bottom:6px; }
.hero-content p { font-size:.75rem; opacity:.85; margin-bottom:14px; max-width:260px; }
.btn-hero { display:inline-flex; align-items:center; gap:6px; background:white; color:var(--purple); border:none; border-radius:25px; padding:7px 18px; font-size:.78rem; font-weight:700; font-family:'Poppins',sans-serif; cursor:pointer; transition:all .25s; text-decoration:none; }
.btn-hero:hover { transform:translateX(3px); color:var(--purple); }
.hero-img-wrap { position:absolute; right:0; bottom:0; top:0; width:44%; z-index:2; display:flex; align-items:center; justify-content:center; overflow:hidden; background:transparent; padding:5px; }
.hero-img-wrap img { width:100%; height:100%; object-fit:contain; object-position:center center; display:block; }
.carousel-indicators [data-bs-target] { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.5); border:none; }
.carousel-indicators .active { background:white; width:20px; border-radius:10px; }

/* ══ CATEGORIES ══ */
.category-grid { display:flex; gap:8px; flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; }
.cat-item { display:flex; flex-direction:column; align-items:center; gap:5px; min-width:64px; cursor:pointer; text-decoration:none; transition:transform .2s; }
.cat-item:hover { transform:translateY(-3px); }
.cat-icon { width:52px; height:52px; border-radius:14px; background:var(--purple-pale); display:flex; align-items:center; justify-content:center; font-size:1.3rem; transition:all .2s; border:1.5px solid transparent; }
.cat-item:hover .cat-icon { background:var(--purple); color:white; }
.cat-item span { font-size:.64rem; font-weight:500; color:#555; text-align:center; line-height:1.2; }

/* ══ PROMO CARDS ══ */
.promo-card { border-radius:14px; padding:14px; height:100%; position:relative; overflow:hidden; border:none; }
.promo-card.flash { background:linear-gradient(135deg,#fff0f0,#ffe0e0); }
.promo-card.shipping { background:linear-gradient(135deg,#f0fff4,#dcffe8); }
.promo-card.arrivals { background:linear-gradient(135deg,#f0f4ff,#dde8ff); }
.promo-label { font-size:.67rem; font-weight:700; letter-spacing:.5px; text-transform:uppercase; margin-bottom:3px; }
.promo-card.flash .promo-label { color:#e53e3e; }
.promo-card.shipping .promo-label { color:#276749; }
.promo-card.arrivals .promo-label { color:#2b6cb0; }
.promo-card h6 { font-size:.82rem; font-weight:700; color:var(--text-dark); margin-bottom:3px; }
.promo-card p { font-size:.7rem; color:#666; margin-bottom:8px; }
.promo-link { font-size:.72rem; font-weight:600; color:var(--purple); text-decoration:none; }
.promo-img { position:absolute; right:10px; bottom:10px; font-size:2.2rem; opacity:.55; }
.countdown { display:flex; gap:5px; margin-bottom:8px; }
.cd-block { background:var(--purple); color:white; border-radius:6px; width:30px; height:26px; display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:700; }
.cd-sep { font-weight:700; color:#e53e3e; font-size:.85rem; line-height:26px; }

/* ══ STORE CARDS ══ */
.stores-scroll-wrap { display:flex; gap:16px; overflow-x:auto; padding-bottom:10px; scroll-snap-type:x mandatory; }
.stores-scroll-wrap::-webkit-scrollbar { height:3px; }
.store-card-wrap { min-width:200px; max-width:200px; border-radius:18px; overflow:hidden; box-shadow:0 4px 18px rgba(106,13,173,.10); background:white; flex-shrink:0; scroll-snap-align:start; transition:all .28s ease; cursor:pointer; }
.store-card-wrap:hover { transform:translateY(-6px); box-shadow:0 14px 36px rgba(106,13,173,.18); }
.store-banner { height:90px; position:relative; overflow:hidden; }
.store-banner img { width:100%; height:100%; object-fit:cover; display:block; }
.store-banner::after { content:''; position:absolute; inset:0; background:linear-gradient(to bottom,rgba(106,13,173,.25) 0%,rgba(30,0,60,.55) 100%); }
.store-banner-top { position:absolute; top:8px; left:8px; right:8px; display:flex; justify-content:space-between; align-items:center; z-index:2; }
.store-verified-badge { background:rgba(255,255,255,.92); color:#16a34a; font-size:.58rem; font-weight:700; padding:2px 7px; border-radius:10px; display:flex; align-items:center; gap:3px; }
.btn-whatsapp { width:26px; height:26px; background:#25D366; color:white; border:none; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.78rem; cursor:pointer; transition:all .2s; text-decoration:none; box-shadow:0 2px 8px rgba(37,211,102,.4); flex-shrink:0; }
.btn-whatsapp:hover { background:#128C7E; transform:scale(1.12); color:white; }
.store-avatar-wrap { display:flex; justify-content:center; margin-top:-26px; position:relative; z-index:3; }
.store-avatar { width:52px; height:52px; border-radius:50%; background:linear-gradient(135deg,var(--purple),var(--purple-light)); display:flex; align-items:center; justify-content:center; font-size:1.4rem; color:white; border:3px solid white; box-shadow:0 4px 14px rgba(106,13,173,.25); overflow:hidden; }
.store-card-body { padding:8px 12px 0; text-align:center; }
.store-name { font-size:.8rem; font-weight:700; color:var(--text-dark); line-height:1.25; margin-bottom:2px; }
.store-cat { font-size:.62rem; font-weight:500; color:white; background:var(--purple-light); display:inline-block; padding:2px 9px; border-radius:20px; margin-bottom:10px; }
.store-stats { display:flex; justify-content:space-around; padding:8px 0; border-top:1px solid #f0e6ff; border-bottom:1px solid #f0e6ff; margin-bottom:10px; }
.store-stat { display:flex; flex-direction:column; align-items:center; gap:1px; }
.store-stat .stat-val { font-size:.8rem; font-weight:700; color:var(--text-dark); }
.store-stat .stat-label { font-size:.57rem; color:#aaa; font-weight:500; }
.store-stat-divider { width:1px; background:#f0e6ff; }
.btn-shop-here { display:block; width:100%; background:linear-gradient(135deg,var(--purple),var(--purple-light)); color:white; border:none; padding:10px 0; font-size:.76rem; font-weight:700; font-family:'Poppins',sans-serif; cursor:pointer; transition:all .2s; letter-spacing:.3px; text-decoration:none; text-align:center; }
.btn-shop-here:hover { background:linear-gradient(135deg,var(--purple-dark),var(--purple)); color:white; }

/* ══ PRODUCT CARDS ══ */
.product-card { background:white; border-radius:18px; overflow:hidden; border:none; transition:all .28s ease; cursor:pointer; height:100%; box-shadow:0 2px 12px rgba(106,13,173,.06); display:flex; flex-direction:column; }
.product-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(106,13,173,.15); }
.product-img-wrap { position:relative; background:linear-gradient(145deg,#f3e8ff,#ede0f7); height:160px; display:flex; align-items:center; justify-content:center; font-size:3.8rem; overflow:hidden; }
.product-img-wrap::after { content:''; position:absolute; inset:0; background:radial-gradient(circle at 70% 30%,rgba(255,255,255,.3) 0%,transparent 65%); pointer-events:none; }
.product-badge { position:absolute; top:10px; left:10px; background:#ff4757; color:white; font-size:.6rem; font-weight:700; padding:3px 9px; border-radius:20px; box-shadow:0 2px 8px rgba(255,71,87,.3); z-index:1; }
.wishlist-btn { position:absolute; top:10px; right:10px; width:30px; height:30px; border-radius:50%; background:white; border:none; display:flex; align-items:center; justify-content:center; color:#ccc; font-size:.9rem; cursor:pointer; box-shadow:0 2px 10px rgba(0,0,0,.12); transition:all .2s; z-index:1; }
.wishlist-btn:hover { color:#ff4757; transform:scale(1.12); }
.product-body { padding:12px 12px 6px; flex:1; }
.product-store-tag { display:inline-flex; align-items:center; gap:4px; font-size:.62rem; color:var(--purple); font-weight:600; background:var(--purple-pale); padding:2px 8px; border-radius:20px; margin-bottom:7px; }
.product-name { font-size:.82rem; font-weight:700; color:var(--text-dark); line-height:1.3; margin-bottom:6px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.product-rating { display:flex; align-items:center; gap:4px; }
.stars { color:#fbbf24; font-size:.7rem; }
.rating-count { font-size:.65rem; color:#bbb; }
.product-footer { display:flex; align-items:center; justify-content:space-between; padding:9px 12px 11px; border-top:1px solid #f5eeff; margin-top:auto; }
.product-price { font-size:1rem; font-weight:800; color:var(--purple); line-height:1; }
.product-old-price { font-size:.68rem; color:#ccc; text-decoration:line-through; margin-top:1px; }
.btn-add-cart { display:flex; align-items:center; gap:5px; background:var(--purple); color:white; border:none; border-radius:22px; padding:7px 14px; font-size:.72rem; font-weight:700; font-family:'Poppins',sans-serif; cursor:pointer; transition:all .2s; white-space:nowrap; }
.btn-add-cart:hover { background:var(--purple-dark); transform:scale(1.04); }

/* ══ TRUST BAR ══ */
.trust-bar { background:white; border-top:1px solid #f0e6ff; padding:14px 16px; display:flex; gap:12px; flex-wrap:wrap; }
.trust-item { display:flex; align-items:center; gap:9px; flex:1; min-width:140px; }
.trust-icon { width:38px; height:38px; border-radius:10px; background:var(--purple-pale); display:flex; align-items:center; justify-content:center; font-size:1rem; color:var(--purple); flex-shrink:0; }
.trust-item h6 { font-size:.75rem; font-weight:700; margin:0; }
.trust-item p { font-size:.65rem; color:#999; margin:0; }

/* ══ CART PANEL ══ */
.cart-panel-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1045; }
.cart-panel-overlay.show { display:block; }
.cart-panel { width:var(--cart-w); background:var(--white); padding:18px 14px; display:flex; flex-direction:column; gap:12px; box-shadow:-2px 0 12px rgba(106,13,173,.07); flex-shrink:0; overflow-y:auto; max-height:calc(100vh - 58px); position:sticky; top:58px; }
.cart-header { display:flex; align-items:center; justify-content:space-between; }
.cart-header h6 { font-size:.88rem; font-weight:700; margin:0; }
.btn-close-cart { background:none; border:none; color:#aaa; font-size:1.1rem; cursor:pointer; }
.btn-close-cart:hover { color:#ff4757; }
.cart-item { display:flex; gap:9px; align-items:center; }
.cart-item-img { width:48px; height:48px; border-radius:10px; background:var(--gray-bg); display:flex; align-items:center; justify-content:center; font-size:1.5rem; flex-shrink:0; }
.cart-item-info .name { font-size:.75rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:110px; }
.cart-item-info .variant { font-size:.64rem; color:#999; }
.cart-item-info .price { font-size:.82rem; font-weight:700; color:var(--purple); margin-top:2px; }
.qty-control { display:flex; align-items:center; gap:5px; }
.qty-btn { width:20px; height:20px; border-radius:50%; border:1.5px solid #e0d0f5; background:white; color:var(--purple); font-size:.7rem; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .15s; }
.qty-btn:hover { background:var(--purple); color:white; border-color:var(--purple); }
.qty-val { font-size:.78rem; font-weight:600; width:16px; text-align:center; }
.delete-btn { color:#ddd; font-size:.85rem; cursor:pointer; transition:color .2s; }
.delete-btn:hover { color:#ff4757; }
.cart-divider { border:none; border-top:1px solid #f0e6ff; }
.coupon-wrap { display:flex; gap:7px; }
.coupon-wrap input { flex:1; border:1.5px solid #e8d5f5; border-radius:20px; padding:6px 12px; font-size:.75rem; font-family:'Poppins',sans-serif; outline:none; }
.coupon-wrap input:focus { border-color:var(--purple); }
.btn-apply { background:var(--purple); color:white; border:none; border-radius:20px; padding:6px 12px; font-size:.75rem; font-weight:600; font-family:'Poppins',sans-serif; cursor:pointer; }
.order-summary .row-s { display:flex; justify-content:space-between; font-size:.78rem; margin-bottom:5px; }
.order-summary .row-s span:first-child { color:#888; }
.order-summary .row-s.discount span:last-child { color:#e53e3e; font-weight:600; }
.order-summary .row-s.free span:last-child { color:#38a169; font-weight:600; }
.order-summary .row-s.total { font-weight:700; font-size:.88rem; border-top:1px solid #f0e6ff; padding-top:7px; margin-top:3px; }
.order-summary .row-s.total span:last-child { color:var(--purple); font-size:.95rem; }
.btn-checkout { width:100%; background:linear-gradient(135deg,var(--purple),var(--purple-light)); color:white; border:none; border-radius:30px; padding:11px; font-size:.82rem; font-weight:700; font-family:'Poppins',sans-serif; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:7px; transition:all .25s; box-shadow:0 4px 16px rgba(106,13,173,.3); text-decoration:none; }
.btn-checkout:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(106,13,173,.4); color:white; }
.payment-methods { display:flex; gap:5px; flex-wrap:wrap; justify-content:center; }
.payment-badge { background:var(--gray-bg); border:1px solid #e8d5f5; border-radius:5px; padding:2px 7px; font-size:.6rem; font-weight:700; color:#555; }
.sell-banner { background:linear-gradient(135deg,var(--purple),var(--purple-light)); border-radius:13px; padding:14px; color:white; position:relative; overflow:hidden; }
.sell-banner::after { content:''; position:absolute; top:-20px; right:-20px; width:70px; height:70px; background:rgba(255,255,255,.1); border-radius:50%; }
.sell-banner h6 { font-size:.82rem; font-weight:700; margin-bottom:3px; }
.sell-banner p { font-size:.68rem; opacity:.85; margin-bottom:9px; }
.btn-sell { background:white; color:var(--purple); border:none; border-radius:20px; padding:5px 14px; font-size:.72rem; font-weight:700; font-family:'Poppins',sans-serif; cursor:pointer; text-decoration:none; display:inline-block; }

/* ══ FAB CART ══ */
.fab-cart { display:none; position:fixed; bottom:20px; right:20px; width:56px; height:56px; border-radius:50%; background:var(--purple); color:white; border:none; font-size:1.3rem; box-shadow:0 6px 20px rgba(106,13,173,.45); cursor:pointer; z-index:1035; align-items:center; justify-content:center; transition:transform .2s; }
.fab-cart:hover { transform:scale(1.1); }
.fab-badge { position:absolute; top:-2px; right:-2px; background:#ff4757; color:white; font-size:.6rem; width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; border:2px solid white; }

/* ══ MOBILE BOTTOM NAV ══ */
.mobile-bottom-nav { display:none; position:fixed; bottom:0; left:0; right:0; background:white; border-top:1px solid #f0e6ff; padding:8px 0 env(safe-area-inset-bottom,10px); z-index:1050; box-shadow:0 -4px 16px rgba(106,13,173,.08); }
.mobile-bottom-nav .nav-items { display:flex; justify-content:space-around; }
.mob-nav-item { display:flex; flex-direction:column; align-items:center; gap:3px; font-size:.6rem; font-weight:500; color:#888; cursor:pointer; text-decoration:none; transition:color .2s; }
.mob-nav-item.active, .mob-nav-item:hover { color:var(--purple); }
.mob-nav-item i { font-size:1.2rem; }

/* ══ AUTH PAGES ══ */
.auth-page { min-height:100vh; background:linear-gradient(135deg,#f3e8ff 0%,#ede0f7 50%,#f8f5fc 100%); display:flex; align-items:center; justify-content:center; padding:20px; }
.auth-card { background:white; border-radius:24px; padding:36px 32px; width:100%; max-width:440px; box-shadow:0 20px 60px rgba(106,13,173,.15); }
.auth-logo { text-align:center; margin-bottom:24px; }
.auth-logo img { height:42px; }
.auth-title { font-size:1.3rem; font-weight:800; color:var(--text-dark); margin-bottom:4px; }
.auth-sub { font-size:.82rem; color:#888; margin-bottom:24px; }
.form-group { margin-bottom:16px; }
.form-label { font-size:.78rem; font-weight:600; color:#555; margin-bottom:6px; display:block; }
.form-control-wm { width:100%; border:1.5px solid #e8d5f5; border-radius:12px; padding:10px 14px; font-size:.85rem; font-family:'Poppins',sans-serif; outline:none; transition:border-color .2s; background:var(--gray-bg); }
.form-control-wm:focus { border-color:var(--purple); background:white; box-shadow:0 0 0 3px rgba(106,13,173,.08); }
.input-icon-wrap { position:relative; }
.input-icon-wrap .form-control-wm { padding-left:40px; }
.input-icon-wrap i { position:absolute; left:13px; top:50%; transform:translateY(-50%); color:#aaa; font-size:.9rem; }
.btn-auth { width:100%; background:linear-gradient(135deg,var(--purple),var(--purple-light)); color:white; border:none; border-radius:12px; padding:12px; font-size:.88rem; font-weight:700; font-family:'Poppins',sans-serif; cursor:pointer; transition:all .25s; box-shadow:0 4px 16px rgba(106,13,173,.3); margin-top:8px; }
.btn-auth:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(106,13,173,.4); }
.auth-divider { display:flex; align-items:center; gap:12px; margin:20px 0; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; border-top:1px solid #e8d5f5; }
.auth-divider span { font-size:.72rem; color:#aaa; }
.auth-link { color:var(--purple); font-weight:600; text-decoration:none; }
.auth-link:hover { text-decoration:underline; }
.role-toggle { display:flex; gap:8px; margin-bottom:20px; }
.role-btn { flex:1; padding:10px; border-radius:12px; border:1.5px solid #e8d5f5; background:var(--gray-bg); font-size:.8rem; font-weight:600; font-family:'Poppins',sans-serif; cursor:pointer; transition:all .2s; color:#555; text-align:center; }
.role-btn.active { border-color:var(--purple); background:var(--purple-pale); color:var(--purple); }

/* ══ SELLER DASHBOARD ══ */
.seller-layout { display:flex; min-height:100vh; }
.seller-sidebar { width:220px; background:var(--text-dark); display:flex; flex-direction:column; position:fixed; top:0; left:0; height:100vh; overflow-y:auto; z-index:1040; transition:transform .3s; }
.seller-sidebar-logo { padding:20px 18px; border-bottom:1px solid rgba(255,255,255,.08); }
.seller-sidebar-logo img { height:34px; }
.seller-sidebar-logo small { color:rgba(255,255,255,.4); font-size:.6rem; display:block; margin-top:3px; }
.seller-nav { padding:12px 0; flex:1; }
.seller-nav-item { display:flex; align-items:center; gap:10px; padding:10px 18px; font-size:.82rem; font-weight:500; color:rgba(255,255,255,.6); text-decoration:none; transition:all .2s; border-radius:0; }
.seller-nav-item:hover { background:rgba(255,255,255,.06); color:white; }
.seller-nav-item.active { background:var(--purple); color:white; border-radius:0 30px 30px 0; margin-right:10px; }
.seller-nav-item i { font-size:1rem; width:18px; }
.seller-nav-section { font-size:.6rem; font-weight:700; letter-spacing:1px; color:rgba(255,255,255,.25); text-transform:uppercase; padding:12px 18px 4px; }
.seller-main { margin-left:220px; flex:1; display:flex; flex-direction:column; }
.seller-topbar { background:white; padding:12px 24px; display:flex; align-items:center; gap:12px; box-shadow:0 2px 12px rgba(0,0,0,.06); position:sticky; top:0; z-index:100; }
.seller-topbar h5 { font-size:.95rem; font-weight:700; margin:0; }
.seller-body { padding:24px; flex:1; }

/* Stat Cards */
.stat-card { background:white; border-radius:16px; padding:20px; display:flex; align-items:center; gap:16px; box-shadow:0 2px 12px rgba(106,13,173,.06); border:none; height:100%; }
.stat-icon { width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0; }
.stat-icon.purple { background:var(--purple-pale); color:var(--purple); }
.stat-icon.green { background:#f0fff4; color:#38a169; }
.stat-icon.orange { background:#fff7ed; color:#f97316; }
.stat-icon.blue { background:#eff6ff; color:#3b82f6; }
.stat-info h3 { font-size:1.4rem; font-weight:800; color:var(--text-dark); margin:0; line-height:1; }
.stat-info p { font-size:.72rem; color:#888; margin:3px 0 0; }
.stat-trend { font-size:.68rem; font-weight:600; margin-top:4px; }
.stat-trend.up { color:#38a169; }
.stat-trend.down { color:#ff4757; }

/* Dashboard table */
.dash-table { background:white; border-radius:16px; box-shadow:0 2px 12px rgba(106,13,173,.06); overflow:hidden; }
.dash-table-header { padding:16px 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #f5eeff; }
.dash-table-header h6 { font-size:.9rem; font-weight:700; margin:0; }
.table-wm { width:100%; border-collapse:collapse; }
.table-wm th { font-size:.72rem; font-weight:700; color:#888; text-transform:uppercase; letter-spacing:.5px; padding:10px 16px; background:#fafafa; border-bottom:1px solid #f5eeff; white-space:nowrap; }
.table-wm td { font-size:.8rem; padding:12px 16px; border-bottom:1px solid #f9f5ff; vertical-align:middle; }
.table-wm tr:last-child td { border-bottom:none; }
.table-wm tr:hover td { background:#fdf8ff; }
.status-badge { display:inline-block; padding:3px 10px; border-radius:20px; font-size:.65rem; font-weight:700; }
.status-badge.pending { background:#fff7ed; color:#f97316; }
.status-badge.processing { background:#eff6ff; color:#3b82f6; }
.status-badge.shipped { background:#f0fff4; color:#38a169; }
.status-badge.delivered { background:#f0fff4; color:#16a34a; }
.status-badge.cancelled { background:#fff1f2; color:#ff4757; }
.status-badge.paid { background:#f0fff4; color:#38a169; }
.status-badge.unpaid { background:#fff7ed; color:#f97316; }

/* ══ RESPONSIVE ══ */
@media (max-width:992px) {
  .cart-panel { display:none; }
  .fab-cart { display:flex; }
}
@media (max-width:768px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.show { transform:translateX(0); }
  .main-content { margin-left:0; }
  .btn-hamburger { display:flex; align-items:center; justify-content:center; }
  .btn-login, .btn-register { display:none; }
  .hero-slide { height:180px; padding:20px 22px; }
  .hero-content { max-width:52%; }
  .hero-content h2 { font-size:1.1rem; }
  .hero-img-wrap { width:44%; }
  .center-content { padding:14px 12px 90px; }
  .cart-panel { display:flex !important; position:fixed; bottom:0; left:0; right:0; width:100%; max-height:88vh; border-radius:24px 24px 0 0; box-shadow:0 -8px 30px rgba(106,13,173,.2); z-index:1046; transform:translateY(100%); transition:transform .35s ease; top:auto; padding:20px 16px 24px; }
  .cart-panel.open { transform:translateY(0); }
  .fab-cart { bottom:74px; right:16px; }
  .mobile-bottom-nav { display:block; }
  .seller-sidebar { transform:translateX(-100%); }
  .seller-sidebar.show { transform:translateX(0); }
  .seller-main { margin-left:0; }
}
@media (max-width:576px) {
  .hero-slide { height:155px; padding:16px; }
  .hero-content { max-width:50%; }
  .hero-content h2 { font-size:1rem; }
  .hero-content p { display:none; }
  .hero-img-wrap { width:46%; }
  .product-img-wrap { height:120px; font-size:2.6rem; }
  .seller-body { padding:14px; }
}

@keyframes pulse-badge { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
.pulse { animation:pulse-badge 2s infinite; }
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
