:root{--bg: #f8fafc;--surface: #ffffff;--surface-muted: #f1f5f9;--text: #0f172a;--text-muted: #475569;--border: #e2e8f0;--primary: #2563eb;--primary-hover: #1d4ed8;--danger: #dc2626;--success: #16a34a;--warning: #d97706;--radius: 12px;--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);--shadow-md: 0 10px 25px rgba(15, 23, 42, .08)}*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.5}img{display:block;max-width:100%}button,input,select,textarea{font:inherit}.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1.25rem}.app-shell{min-height:100vh;display:flex;flex-direction:column}.main-content{flex:1;padding-top:1.5rem;padding-bottom:3rem}.navbar{position:sticky;top:0;z-index:30;background:#fffffff0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}.navbar-inner{display:flex;align-items:center;gap:1rem;min-height:68px;flex-wrap:wrap;padding-top:.5rem;padding-bottom:.5rem}.brand{display:inline-flex;align-items:center;gap:.55rem;border:none;background:transparent;cursor:pointer;padding:0;color:var(--text);font-weight:700;font-size:1.15rem}.brand-icon{width:36px;height:36px;border-radius:10px;background:var(--primary);color:#fff;display:grid;place-items:center}.search-box{flex:1;min-width:200px;max-width:440px;position:relative}.search-box input{width:100%;padding:.55rem .9rem .55rem 2.35rem;border:1px solid var(--border);border-radius:999px;background:var(--surface-muted);outline:none;transition:border-color .15s,background .15s}.search-box input:focus{border-color:var(--primary);background:var(--surface)}.search-icon{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}.nav-actions{display:flex;align-items:center;gap:.6rem;margin-left:auto;flex-wrap:wrap}.nav-link{display:inline-flex;align-items:center;gap:.35rem;border:none;background:transparent;color:var(--text-muted);font-weight:500;padding:.45rem .75rem;border-radius:8px;cursor:pointer}.nav-link:hover,.nav-link.active{background:var(--surface-muted);color:var(--text)}.cart-button{position:relative;display:inline-flex;align-items:center;gap:.45rem;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:.45rem .85rem;border-radius:999px;cursor:pointer;font-weight:500}.cart-button:hover{border-color:var(--primary)}.cart-badge{background:var(--primary);color:#fff;font-size:.75rem;font-weight:700;min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center;padding:0 5px}.user-pill{display:inline-flex;align-items:center;gap:.45rem;background:var(--surface-muted);padding:.35rem .5rem .35rem .75rem;border-radius:999px;font-size:.88rem;font-weight:500}.user-name{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;border:1px solid transparent;border-radius:10px;padding:.6rem 1.05rem;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,opacity .15s}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-sm{padding:.42rem .8rem;font-size:.88rem}.btn-full{width:100%}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border)}.btn-secondary:hover:not(:disabled){background:var(--surface-muted)}.icon-btn{border:none;background:transparent;color:var(--text-muted);cursor:pointer;padding:.35rem;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}.icon-btn:hover{background:var(--surface-muted);color:var(--text)}.icon-btn.danger:hover{color:var(--danger);background:#fee2e2}.hero-banner{background:linear-gradient(135deg,#1e3a8a,#2563eb 60%,#3b82f6);color:#fff;border-radius:18px;padding:2.4rem 2rem;margin-bottom:1.75rem;box-shadow:var(--shadow-md)}.hero-eyebrow{display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:#ffffff2e;padding:.25rem .65rem;border-radius:999px;margin-bottom:.75rem}.hero-banner h1{margin:0 0 .6rem;font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.2}.hero-banner p{margin:0;max-width:640px;color:#ffffffe6}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}.category-pills{display:flex;gap:.5rem;flex-wrap:wrap}.category-pills button{border:1px solid var(--border);background:var(--surface);color:var(--text-muted);padding:.42rem .9rem;border-radius:999px;cursor:pointer;font-weight:500}.category-pills button.active{background:var(--text);color:#fff;border-color:var(--text)}.sort-control{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:var(--text-muted)}.sort-control select{padding:.42rem .75rem;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:1.25rem}.product-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-sm);transition:transform .16s ease,box-shadow .16s ease}.product-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.product-thumb-btn{position:relative;border:none;padding:0;background:var(--surface-muted);cursor:pointer;aspect-ratio:4 / 3;overflow:hidden}.product-thumb{width:100%;height:100%;object-fit:cover}.badge-discount,.badge-soldout{position:absolute;top:.65rem;left:.65rem;font-size:.75rem;font-weight:700;padding:.2rem .55rem;border-radius:999px;color:#fff}.badge-discount{background:var(--danger)}.badge-soldout{left:auto;right:.65rem;background:#0f172acc}.product-body{padding:1rem;display:flex;flex-direction:column;flex:1;gap:.5rem}.product-meta{display:flex;justify-content:space-between;align-items:center;font-size:.8rem}.product-category{color:var(--primary);font-weight:600}.product-rating{display:inline-flex;align-items:center;gap:.25rem;color:#f59e0b;font-weight:600}.product-title-btn{border:none;background:transparent;padding:0;text-align:left;font-weight:700;font-size:1rem;color:var(--text);cursor:pointer}.product-title-btn:hover{color:var(--primary)}.product-desc{margin:0;font-size:.86rem;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-footer{margin-top:auto;padding-top:.65rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem}.price-group{display:flex;flex-direction:column}.price-current{font-weight:700;font-size:1.02rem}.price-original{font-size:.82rem;color:var(--text-muted);text-decoration:line-through}.modal-backdrop,.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0f172a85;display:flex;align-items:center;justify-content:center;padding:1rem}.drawer-backdrop{justify-content:flex-end;padding:0}.modal{position:relative;width:100%;max-height:92vh;overflow-y:auto;background:var(--surface);border-radius:16px;padding:1.5rem;box-shadow:var(--shadow-md)}.modal-sm{max-width:430px}.modal-lg{max-width:860px}.modal-close{position:absolute;top:.9rem;right:.9rem;border:none;background:var(--surface-muted);color:var(--text);width:34px;height:34px;border-radius:999px;display:grid;place-items:center;cursor:pointer}.drawer{width:100%;max-width:420px;height:100%;background:var(--surface);display:flex;flex-direction:column;box-shadow:var(--shadow-md)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.25rem;border-bottom:1px solid var(--border)}.drawer-header h3{margin:0}.shipping-banner{padding:.8rem 1.25rem;background:#eff6ff;border-bottom:1px solid #dbeafe;font-size:.85rem}.shipping-banner p{margin:0 0 .45rem;color:#1e40af;font-weight:500}.progress-track{height:6px;background:#dbeafe;border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:var(--primary);transition:width .2s ease}.drawer-body{flex:1;overflow-y:auto;padding:1rem 1.25rem}.cart-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1rem}.cart-item{display:flex;gap:.85rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.cart-item-img{width:72px;height:72px;border-radius:10px;object-fit:cover;flex-shrink:0}.cart-item-info{flex:1}.cart-item-info h4{margin:0 0 .25rem;font-size:.94rem}.cart-item-price{margin:0 0 .5rem;font-weight:600;font-size:.9rem}.cart-item-controls{display:flex;align-items:center;justify-content:space-between}.drawer-footer{padding:1.1rem 1.25rem;border-top:1px solid var(--border);background:var(--bg);display:flex;flex-direction:column;gap:.55rem}.summary-row{display:flex;justify-content:space-between;gap:1rem;font-size:.92rem}.summary-total{font-weight:700;font-size:1.05rem;padding-top:.4rem;border-top:1px solid var(--border)}.qty-control{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}.qty-control button{border:none;background:transparent;padding:.45rem .65rem;cursor:pointer;display:grid;place-items:center}.qty-control button:hover:not(:disabled){background:var(--surface-muted)}.qty-control span{min-width:28px;text-align:center;font-weight:600;font-size:.92rem}.qty-sm button{padding:.28rem .5rem}.product-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:start}.product-detail-img-wrap{aspect-ratio:4 / 3;border-radius:12px;overflow:hidden;background:var(--surface-muted)}.product-detail-img{width:100%;height:100%;object-fit:cover}.product-detail-info h2{margin:.3rem 0 .65rem}.detail-rating-row{display:flex;align-items:center;gap:.8rem;margin-bottom:1rem}.stock-pill{font-size:.8rem;font-weight:600;padding:.2rem .55rem;border-radius:999px}.stock-pill.in-stock{background:#dcfce7;color:#166534}.stock-pill.out-stock{background:#fee2e2;color:#991b1b}.detail-price-row{display:flex;align-items:baseline;gap:.75rem;margin-bottom:1rem}.detail-price{font-size:1.5rem;font-weight:800;color:var(--primary)}.detail-description{color:var(--text-muted);margin:0 0 1.4rem}.detail-actions{display:flex;gap:.8rem;align-items:center}.form-group{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.9rem}.form-group label{font-size:.86rem;font-weight:600}.form-group input,.form-group textarea,.form-group select{padding:.58rem .75rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);outline:none}.form-group input:focus,.form-group textarea:focus{border-color:var(--primary)}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem}.checkout-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:1.5rem}.checkout-grid h2{margin-top:0}.checkout-summary{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:1.15rem;align-self:start}.checkout-summary h3{margin-top:0}.checkout-items{list-style:none;margin:0 0 1rem;padding:0;display:flex;flex-direction:column;gap:.65rem}.checkout-items li{display:flex;justify-content:space-between;gap:.5rem;font-size:.9rem}.checkout-item-name{font-weight:500;margin-right:.4rem}.checkout-item-qty{color:var(--text-muted)}.checkout-totals{display:flex;flex-direction:column;gap:.45rem;padding-top:.75rem;border-top:1px solid var(--border);margin-bottom:1rem}.radio-group{display:grid;gap:.5rem}.radio-card{display:flex;align-items:center;gap:.55rem;padding:.65rem .8rem;border:1px solid var(--border);border-radius:8px;cursor:pointer}.radio-card.selected{border-color:var(--primary);background:#eff6ff}.order-success-box{text-align:center;padding:1rem .5rem}.success-icon{color:var(--success);margin:0 auto .75rem}.success-summary{max-width:460px;margin:1.25rem auto;padding:1rem;border:1px solid var(--border);border-radius:12px;background:var(--bg);display:flex;flex-direction:column;gap:.55rem;text-align:left}.auth-tabs,.tab-pills{display:flex;gap:.5rem;margin-bottom:1rem}.auth-tabs button,.tab-pills button{border:1px solid var(--border);background:var(--surface-muted);color:var(--text-muted);padding:.5rem .9rem;border-radius:8px;font-weight:600;cursor:pointer}.auth-tabs button.active,.tab-pills button.active{background:var(--primary);border-color:var(--primary);color:#fff}.demo-accounts{margin-top:1.1rem;padding-top:1rem;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:.5rem;font-size:.85rem;color:var(--text-muted)}.demo-buttons{display:flex;gap:.5rem}.section-header,.admin-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:1.25rem}.orders-list{display:flex;flex-direction:column;gap:1rem}.order-card,.admin-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem;box-shadow:var(--shadow-sm)}.order-card-header{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding-bottom:.8rem;border-bottom:1px solid var(--border)}.order-date{margin-left:.65rem;font-size:.85rem;color:var(--text-muted)}.status-badge{font-size:.8rem;font-weight:700;padding:.25rem .65rem;border-radius:999px}.status-pending{background:#fef3c7;color:#92400e}.status-confirmed,.status-shipping{background:#dbeafe;color:#1e40af}.status-delivered{background:#dcfce7;color:#166534}.status-cancelled{background:#fee2e2;color:#991b1b}.order-items-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.85rem;padding:.9rem 0}.order-line{display:flex;gap:.65rem;align-items:center}.order-line img{width:52px;height:52px;border-radius:8px;object-fit:cover}.order-item-name{margin:0;font-weight:600;font-size:.9rem}.order-item-meta{margin:0;font-size:.83rem;color:var(--text-muted)}.order-card-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem;padding-top:.75rem;border-top:1px solid var(--border);font-size:.9rem}.order-total{color:var(--primary)}.admin-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:1.25rem;align-items:start}.admin-card h3{margin-top:0}.table-wrap{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;font-size:.9rem}.admin-table th,.admin-table td{text-align:left;padding:.65rem .5rem;border-bottom:1px solid var(--border)}.alert{padding:.7rem .9rem;border-radius:8px;margin-bottom:1rem;font-size:.9rem}.alert-error{background:#fee2e2;color:#991b1b}.alert-info{background:#dbeafe;color:#1e40af}.page-status,.empty-state,.empty-card{text-align:center;padding:3rem 1.25rem;color:var(--text-muted)}.empty-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.empty-state svg,.empty-card svg{margin:0 auto .75rem;color:var(--text-muted)}.footer{background:var(--surface);border-top:1px solid var(--border);padding:1.15rem 0;color:var(--text-muted);font-size:.88rem}.footer-inner{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}.toast{position:fixed;bottom:1.5rem;right:1.5rem;z-index:60;background:var(--text);color:#fff;padding:.75rem 1.1rem;border-radius:10px;box-shadow:var(--shadow-md);font-size:.9rem;font-weight:500}.admin-portal{display:grid;grid-template-columns:250px 1fr;gap:1.5rem;align-items:start}.admin-sidebar{position:sticky;top:88px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;display:flex;flex-direction:column;gap:1rem;box-shadow:var(--shadow-sm)}.admin-sidebar-brand{display:flex;align-items:center;gap:.65rem;padding-bottom:.85rem;border-bottom:1px solid var(--border);color:var(--primary)}.admin-sidebar-brand div{display:flex;flex-direction:column;color:var(--text)}.admin-sidebar-brand span{font-size:.82rem;color:var(--text-muted)}.admin-nav{display:flex;flex-direction:column;gap:.35rem}.admin-nav button{display:flex;align-items:center;gap:.6rem;width:100%;border:none;background:transparent;color:var(--text-muted);padding:.62rem .75rem;border-radius:9px;cursor:pointer;font-weight:500;text-align:left}.admin-nav button:hover{background:var(--surface-muted);color:var(--text)}.admin-nav button.active{background:#eff6ff;color:var(--primary);font-weight:600}.admin-main{min-width:0}.admin-section .section-header h2{margin:0 0 .2rem}.muted-text{margin:0;color:var(--text-muted);font-size:.9rem}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem;margin-bottom:1.25rem}.kpi-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;display:flex;align-items:center;gap:.9rem;box-shadow:var(--shadow-sm)}.kpi-card span{display:block;font-size:.82rem;color:var(--text-muted)}.kpi-card strong{display:block;font-size:1.25rem;margin:.1rem 0}.kpi-card small{color:var(--text-muted);font-size:.78rem}.kpi-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}.kpi-blue{background:#dbeafe;color:#1d4ed8}.kpi-amber{background:#fef3c7;color:#b45309}.kpi-green{background:#dcfce7;color:#15803d}.kpi-purple{background:#ede9fe;color:#6d28d9}.status-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem;margin-bottom:1.25rem}.status-strip-item{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.75rem .9rem;display:flex;align-items:center;justify-content:space-between}.overview-panels{display:grid;grid-template-columns:1.35fr 1fr;gap:1.25rem;align-items:start}.card-header-inline{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.85rem}.card-header-inline h3{margin:0}.link-btn{border:none;background:transparent;color:var(--primary);font-weight:600;font-size:.86rem;cursor:pointer}.low-stock-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.65rem}.low-stock-list li{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding-bottom:.6rem;border-bottom:1px solid var(--border);font-size:.9rem}.low-stock-list li:last-child{border-bottom:none;padding-bottom:0}.admin-filter-bar{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}.admin-filter-bar select{padding:.52rem .8rem;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.table-product-cell{display:flex;align-items:center;gap:.65rem}.table-product-cell img{width:44px;height:44px;border-radius:8px;object-fit:cover;flex-shrink:0}.table-product-cell strong{display:block}.table-product-cell small{color:var(--text-muted);font-size:.78rem}.table-actions{display:flex;gap:.25rem}.form-image-preview-row{display:flex;gap:1rem;align-items:center}.admin-img-preview{width:72px;height:56px;border-radius:8px;object-fit:cover;border:1px solid var(--border)}.checkbox-inline{display:inline-flex;align-items:center;gap:.5rem;font-size:.92rem;font-weight:500;margin-bottom:1rem;cursor:pointer}.modal-actions-end{display:flex;justify-content:flex-end;gap:.65rem}.order-detail-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:1.15rem;padding-right:2rem}.order-detail-header h2{margin:0 0 .2rem}.order-detail-status{display:flex;align-items:center;gap:.5rem}.order-detail-status select{padding:.45rem .75rem;border-radius:8px;border:1px solid var(--border)}.order-detail-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:1rem}.admin-subcard{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:1rem}.admin-subcard h4{margin:0 0 .7rem}.admin-subcard p{margin:.3rem 0;font-size:.9rem}.admin-gate{max-width:480px;margin:3rem auto;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:2.25rem 1.75rem;text-align:center;box-shadow:var(--shadow-sm)}.admin-gate-icon{color:var(--primary);margin:0 auto .75rem}.admin-gate h2{margin:0 0 .5rem}.admin-gate p{margin:0 0 1.4rem;color:var(--text-muted)}.admin-gate-actions{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap}@media (max-width: 900px){.admin-portal,.overview-panels,.order-detail-grid{grid-template-columns:1fr}.admin-sidebar{position:static}.admin-nav{flex-direction:row;flex-wrap:wrap}.admin-nav button{width:auto}}@media (max-width: 768px){.product-detail-grid,.checkout-grid,.admin-grid{grid-template-columns:1fr}}
