@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap');

:root{color-scheme:light;--bg:#f5f8fc;--surface:#fff;--surface-soft:#f8fafd;--ink:#18314e;--muted:#6b7d91;--line:#e1e8f0;--primary:#2763bf;--primary-dark:#194b99;--primary-soft:#eaf2ff;--accent:#ef8a55;--green:#18865c;--green-soft:#e9f7f0;--amber:#a76b08;--amber-soft:#fff6e5;--red:#ba4949;--shadow:0 16px 40px rgba(27,52,82,.08);--shadow-section:0 2px 10px -1px rgba(15,23,42,.045),0 1px 3px rgba(15,23,42,.02);--shadow-card:0 6px 20px -2px rgba(15,23,42,.075),0 2px 6px -1px rgba(15,23,42,.035);--shadow-card-hover:0 12px 30px -4px rgba(15,23,42,.12),0 4px 10px -2px rgba(15,23,42,.045);--shadow-card-sm:0 2px 8px -1px rgba(15,23,42,.05),0 1px 3px rgba(15,23,42,.03);--shadow-card-sm-hover:0 4px 14px -1px rgba(15,23,42,.085),0 2px 5px rgba(15,23,42,.04);--radius:18px;--font:'Figtree',sans-serif;--display:'Outfit',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.55}body.dark{color-scheme:dark;--bg:#111a27;--surface:#182536;--surface-soft:#1e2d40;--ink:#e7eff9;--muted:#9baec4;--line:#2c3e53;--primary:#76a8f2;--primary-dark:#90b8f7;--primary-soft:#233750;--accent:#f6a174;--green:#58c493;--green-soft:#1b3a31;--amber:#e7b65d;--amber-soft:#3c3221;--red:#ef8b8b;--shadow:0 18px 42px rgba(0,0,0,.22);--shadow-section:0 3px 14px rgba(0,0,0,.25);--shadow-card:0 8px 24px rgba(0,0,0,.38);--shadow-card-hover:0 14px 36px rgba(0,0,0,.48);--shadow-card-sm:0 3px 10px rgba(0,0,0,.28);--shadow-card-sm-hover:0 6px 16px rgba(0,0,0,.36)}
button,input,select,textarea{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{color:inherit;cursor:pointer}img{max-width:100%;display:block}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,.display{font-family:var(--display);letter-spacing:-.025em}h1{font-size:clamp(1.9rem,3vw,2.7rem);line-height:1.13;margin-bottom:.55rem}h2{font-size:1.2rem;line-height:1.3;margin-bottom:.35rem}h3{font-size:1rem;margin-bottom:.3rem}small,.small{font-size:.78rem;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{color:var(--primary);font-size:.7rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.page{width:min(1220px,calc(100% - 40px));margin:0 auto}.public-header{position:sticky;top:0;z-index:30;padding:12px 0}.header-inner{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 18px;border:1px solid rgba(221,231,242,.85);border-radius:18px;background:color-mix(in srgb,var(--surface) 89%,transparent);backdrop-filter:blur(18px);box-shadow:0 8px 28px rgba(28,55,83,.06)}.brand{display:flex;align-items:center;gap:10px;min-width:205px}.brand-mark{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;color:white;font:700 23px var(--display);background:linear-gradient(145deg,var(--primary,#3678d7),var(--primary-dark,#153e85));box-shadow:0 8px 18px rgba(39,99,191,.25)}.brand-name{display:block;font:600 14px var(--display);line-height:1.15}.brand-sub{display:block;margin-top:3px;color:var(--muted);font-size:9px;letter-spacing:.12em;text-transform:uppercase}.public-nav{display:flex;align-items:center;gap:5px}.public-nav a{padding:9px 12px;border-radius:10px;color:var(--muted);font-size:13px;font-weight:600;transition:.18s}.public-nav a:hover,.public-nav a.active{color:var(--primary);background:var(--primary-soft)}.header-actions{display:flex;align-items:center;gap:7px}.icon-btn{position:relative;width:38px;height:38px;border:1px solid transparent;border-radius:11px;background:transparent;display:inline-grid;place-items:center;color:var(--muted);transition:.18s}.icon-btn:hover{color:var(--primary);background:var(--primary-soft)}.cart-count{position:absolute;right:-2px;top:-4px;min-width:17px;height:17px;border-radius:9px;background:var(--accent);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;padding:0 4px}.mobile-toggle{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid transparent;border-radius:11px;background:var(--primary);color:white;font-weight:700;font-size:13px;box-shadow:0 7px 17px rgba(39,99,191,.17);transition:transform .16s,box-shadow .16s,background .16s}.btn:hover{background:var(--primary-dark);transform:translateY(-1px);box-shadow:0 10px 22px rgba(39,99,191,.23)}.btn.secondary{background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:none}.btn.secondary:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}.btn.ghost{background:transparent;color:var(--primary);box-shadow:none}.btn.small-btn{min-height:34px;padding:0 12px;font-size:12px}.btn.wide{width:100%}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.section{padding:38px 0}.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}.section-head p{margin:5px 0 0;color:var(--muted)}.hero{position:relative;overflow:hidden;min-height:435px;border-radius:28px;background:#16385e;box-shadow:var(--shadow);color:#fff}.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,32,59,.91) 0%,rgba(13,48,86,.73) 48%,rgba(12,40,72,.04) 100%);z-index:1}.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 44%;opacity:.93}.hero-copy{position:relative;z-index:2;max-width:670px;padding:72px 64px}.hero .eyebrow{color:#a8ceff}.hero h1{font-size:clamp(2.55rem,5vw,4.35rem);max-width:650px}.hero p{max-width:540px;color:#dce9f8;font-size:1.08rem}.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:27px}.hero .btn.secondary{color:#fff;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35);backdrop-filter:blur(8px)}.hero-badges{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px;color:#dce9f8;font-size:12px}.hero-badges span{display:flex;align-items:center;gap:6px}.pill{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:5px 9px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:700}.pill.green{background:var(--green-soft);color:var(--green)}.pill.amber{background:var(--amber-soft);color:var(--amber)}.pill.red{background:#fdeeee;color:var(--red)}.pill.neutral{background:var(--surface-soft);color:var(--muted);border:1px solid var(--line)}.dot{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-card)}.card.pad{padding:22px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:19px 21px;border-bottom:1px solid var(--line)}.card-body{padding:20px 21px}.card-title{margin:0;font:600 16px var(--display)}.card-subtitle{margin:4px 0 0;color:var(--muted);font-size:12px}.metric-card{position:relative;overflow:hidden;min-height:142px;padding:18px 19px;border:1px solid var(--line);border-radius:17px;background:var(--surface);box-shadow:var(--shadow-card);transition:transform .2s,box-shadow .2s}.metric-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-card-hover)}.metric-card.featured{color:white;border-color:transparent;background:radial-gradient(280px 150px at 100% 0%,rgba(255,255,255,.25),transparent 68%),linear-gradient(135deg,var(--primary,#2763bf),var(--primary-dark,#16458e))}.metric-top{display:flex;align-items:center;justify-content:space-between}.metric-icon{width:36px;height:36px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:16px}.featured .metric-icon{color:#fff;background:rgba(255,255,255,.18)}.metric-label{margin:13px 0 1px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.featured .metric-label,.featured .metric-hint{color:rgba(255,255,255,.75)}.metric-value{font:700 26px var(--display);letter-spacing:-.03em}.metric-hint{margin:3px 0 0;color:var(--muted);font-size:11px}.trend{font-size:11px;font-weight:700;color:var(--green)}.featured .trend{color:#d9ffec}.chart{height:235px;display:flex;align-items:end;gap:10px;padding:20px 4px 24px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 48px,var(--line) 49px,var(--line) 50px)}.bar-col{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.bar{width:min(30px,72%);min-height:5px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#6da4ec,#2763bf);transition:height .5s,opacity .2s}.bar:hover{opacity:.74}.bar-label{color:var(--muted);font-size:10px}.chart-legend{display:flex;gap:16px;align-items:center;color:var(--muted);font-size:11px}.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;background:var(--primary)}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:680px}.data-table th{padding:12px 15px;background:var(--surface-soft);color:var(--muted);font-size:10px;letter-spacing:.09em;text-align:left;text-transform:uppercase}.data-table td{padding:14px 15px;border-top:1px solid var(--line);vertical-align:middle}.data-table tbody tr:hover{background:color-mix(in srgb,var(--primary-soft) 42%,transparent)}.data-table .right{text-align:right}.product-cell{display:flex;align-items:center;gap:11px;min-width:180px}.product-thumb{width:43px;height:43px;object-fit:cover;border-radius:12px;background:var(--primary-soft)}.product-name{display:block;font-weight:700}.product-maker{display:block;margin-top:3px;color:var(--muted);font-size:11px}.page-top{padding:24px 0 21px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.page-top .lead{margin:7px 0 0;color:var(--muted);max-width:650px}.breadcrumb{font-size:11px;color:var(--muted);margin-bottom:10px}.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.input,.select,.textarea{min-height:41px;width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);outline:none}.input:focus,.select:focus,.textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 15%,transparent)}.input-wrap{position:relative;display:flex;align-items:center}.input-wrap .input{padding-left:36px}.input-wrap .search-icon{position:absolute;left:12px;color:var(--muted)}.field{display:grid;gap:6px}.field label{font-size:12px;font-weight:700;color:var(--muted)}.filters{display:flex;gap:7px;flex-wrap:wrap}.filter-chip{border:1px solid var(--line);border-radius:999px;background:var(--surface);padding:7px 12px;color:var(--muted);font-size:12px;font-weight:600;transition:.16s}.filter-chip:hover,.filter-chip.active{background:var(--primary);border-color:var(--primary);color:white}.product-card{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-card);transition:transform .2s,box-shadow .2s}.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-card-hover)}.product-card-img{height:185px;width:100%;object-fit:cover;background:var(--surface-soft)}.product-card-content{padding:17px}.product-card h3{margin:9px 0 2px}.product-card .desc{min-height:32px;margin:6px 0 13px;color:var(--muted);font-size:12px}.product-price{font:700 19px var(--display)}.old-price{margin-left:7px;color:var(--muted);font-size:11px;text-decoration:line-through}.product-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px}.tabs{display:flex;gap:4px;width:max-content;max-width:100%;overflow:auto;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--surface)}.tab{border:0;border-radius:999px;background:transparent;padding:8px 14px;color:var(--muted);white-space:nowrap;font-size:12px;font-weight:700}.tab.active{background:var(--primary);color:#fff;box-shadow:0 5px 12px rgba(39,99,191,.2)}.notice{display:flex;gap:12px;padding:14px 16px;border:1px solid #cfe3ff;border-radius:13px;background:var(--primary-soft);color:var(--ink)}.notice-icon{width:32px;height:32px;flex:0 0 auto;border-radius:10px;background:var(--surface);color:var(--primary);display:grid;place-items:center}.notice p{margin:3px 0 0;color:var(--muted);font-size:12px}.stat-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.stat-row:last-child{border-bottom:0}.stat-row strong{font-variant-numeric:tabular-nums}.checkout-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:19px}.stepper{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px;font-weight:700}.stepper span{display:flex;align-items:center;gap:6px}.stepper i{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:var(--surface-soft);border:1px solid var(--line);font-style:normal}.stepper .done{color:var(--primary)}.stepper .done i{background:var(--primary);color:white;border-color:var(--primary)}.line{height:1px;flex:1;background:var(--line)}.checkout-method{display:flex;width:100%;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface);text-align:left;transition:.16s}.checkout-method:hover,.checkout-method.selected{border-color:var(--primary);background:var(--primary-soft)}.method-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--surface-soft);color:var(--primary);font-size:16px}.checkout-method small{display:block;margin-top:2px}.checkmark{margin-left:auto;color:var(--primary);font-size:17px}.empty-state{text-align:center;padding:58px 24px}.empty-icon{width:66px;height:66px;margin:0 auto 18px;border-radius:22px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:27px}.timeline{position:relative;display:grid;gap:21px}.timeline:before{content:"";position:absolute;left:12px;top:15px;bottom:17px;width:1px;background:var(--line)}.timeline-item{position:relative;display:flex;gap:13px}.timeline-mark{z-index:1;width:25px;height:25px;flex:0 0 auto;border:1px solid var(--line);border-radius:50%;background:var(--surface);display:grid;place-items:center;font-size:11px}.timeline-item.done .timeline-mark{border-color:var(--primary);background:var(--primary);color:white}.timeline-item strong{font-size:13px}.timeline-item p{margin:2px 0 0;color:var(--muted);font-size:11px}.profile-cover{height:145px;border-radius:18px 18px 0 0;background:radial-gradient(340px 160px at 95% 0,rgba(246,167,116,.65),transparent 66%),linear-gradient(125deg,#255ca7,#173c75);position:relative;overflow:hidden}.profile-cover:after{content:"";position:absolute;right:7%;bottom:-100px;width:240px;height:240px;border:1px solid rgba(255,255,255,.2);border-radius:50%;box-shadow:0 0 0 30px rgba(255,255,255,.04),0 0 0 70px rgba(255,255,255,.035)}.avatar{width:74px;height:74px;margin-top:-36px;position:relative;border:4px solid var(--surface);border-radius:23px;background:linear-gradient(145deg,#66a1eb,#1e4b8b);display:grid;place-items:center;color:white;font:700 24px var(--display);box-shadow:0 9px 23px rgba(39,99,191,.2)}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.info-tile{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.info-tile span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.info-tile strong{display:block;margin-top:3px;font-size:12px}.footer{margin-top:55px;padding:34px 0;background:#122a45;color:#e8f0fa}.footer-inner{display:flex;align-items:flex-start;justify-content:space-between;gap:35px}.footer p{max-width:370px;color:#b6c5d6;font-size:12px}.footer-links{display:flex;gap:28px;flex-wrap:wrap}.footer-links a{color:#d9e5f2;font-size:12px}.footer-bottom{margin-top:25px;padding-top:16px;border-top:1px solid rgba(255,255,255,.13);display:flex;justify-content:space-between;color:#91a6be;font-size:10px}.auth-layout{min-height:calc(100vh - 88px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(370px,.9fr);gap:28px;align-items:center;padding:36px 0 65px}.auth-aside{min-height:500px;padding:42px;border-radius:24px;position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(10,34,65,.92),rgba(24,77,131,.77)),url('../images/ovia-hero.jpg') center/cover;color:white}.auth-aside h2{font-size:2.3rem;max-width:490px}.auth-aside p{max-width:460px;color:#d7e6f6}.auth-card{max-width:470px;width:100%;margin:auto;padding:29px}.auth-card h1{font-size:1.8rem}.upload-zone{display:grid;place-items:center;min-height:125px;border:1px dashed #9eb7d4;border-radius:14px;background:var(--surface-soft);text-align:center;color:var(--muted);cursor:pointer}.upload-zone:hover{border-color:var(--primary);background:var(--primary-soft)}.workspace{min-height:100vh}.sidebar{position:fixed;z-index:25;inset:0 auto 0 0;width:258px;padding:19px 13px;display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--line);transition:transform .22s}.sidebar-brand{padding:0 9px 18px;border-bottom:1px solid var(--line)}.sidebar-label{margin:19px 10px 8px;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.side-link{display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:10px;color:var(--muted);font-size:12px;font-weight:600;transition:.16s}.side-link:hover,.side-link.active{background:var(--primary-soft);color:var(--primary)}.side-icon{width:20px;text-align:center;font-size:15px}.sidebar-bottom{margin-top:auto}.status-card{display:flex;align-items:center;gap:9px;margin:13px 5px 4px;padding:11px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.status-card .dot{color:var(--green);box-shadow:0 0 0 4px var(--green-soft)}.status-card small{font-size:10px}.workspace-main{margin-left:258px;min-height:100vh}.workspace-topbar{height:65px;position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;padding:0 27px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(16px)}.workspace-topbar .breadcrumb{margin:0}.topbar-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.workspace-content{width:min(1500px,100%);margin:auto;padding:27px}.mobile-sidebar-btn{display:none}.workspace-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.workspace-page-head p{margin:5px 0 0;color:var(--muted)}.role-switch{min-height:35px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:11px;font-weight:700}.role-switch:focus{outline:2px solid var(--primary)}.toast{position:fixed;z-index:100;right:22px;bottom:22px;max-width:min(360px,calc(100% - 36px));padding:13px 17px;border-radius:12px;background:#18314e;color:white;box-shadow:0 14px 30px rgba(10,30,51,.25);font-size:13px;opacity:0;transform:translateY(12px);pointer-events:none;transition:.22s}.toast.show{opacity:1;transform:translateY(0)}.modal-backdrop{position:fixed;inset:0;z-index:80;background:rgba(13,30,49,.47);display:none;place-items:center;padding:20px}.modal-backdrop.open{display:grid}.modal{width:min(480px,100%);padding:22px;border-radius:18px;background:var(--surface);box-shadow:0 30px 90px rgba(0,0,0,.25)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.modal-close{border:0;background:transparent;color:var(--muted);font-size:20px}.modal-list{display:grid;gap:9px;margin-top:15px}.modal-row{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);font-size:12px}.toast{line-height:1.4}.success-check{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;margin:0 auto 22px;background:var(--green-soft);color:var(--green);font-size:35px}.success-panel{text-align:center;max-width:620px;margin:45px auto;padding:44px 30px}.success-panel h1{font-size:2.3rem}.receipt{max-width:780px;margin:25px auto}.receipt-head{display:flex;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}.receipt-total{display:flex;justify-content:space-between;padding-top:14px;margin-top:10px;border-top:1px solid var(--line);font-size:17px;font-weight:700}.gallery-tile{position:relative;min-height:220px;overflow:hidden;border-radius:17px;background:linear-gradient(145deg,#1c4b7e,#8db9d8);color:white}.gallery-tile img{position:absolute;width:100%;height:100%;object-fit:cover;opacity:.67}.gallery-tile:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(9,25,44,.82))}.gallery-label{position:absolute;z-index:1;left:17px;right:17px;bottom:16px}.gallery-label small{color:#dbe9f6}.switch{appearance:none;width:38px;height:22px;border-radius:999px;background:#c8d4e1;position:relative;vertical-align:middle;transition:.18s}.switch:checked{background:var(--primary)}.switch:after{content:"";position:absolute;width:16px;height:16px;top:3px;left:3px;border-radius:50%;background:white;transition:.18s;box-shadow:0 1px 4px #0002}.switch:checked:after{left:19px}.hide{display:none!important}.text-right{text-align:right}.text-center{text-align:center}.spacer{height:10px}.mt-1{margin-top:5px}.mt-2{margin-top:10px}.mt-3{margin-top:15px}.mt-4{margin-top:20px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:5px}.mb-2{margin-bottom:10px}.mb-3{margin-bottom:15px}.mb-4{margin-bottom:20px}.nowrap{white-space:nowrap}.divider{height:1px;background:var(--line);margin:17px 0}
@media(max-width:1020px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.public-nav{gap:0}.public-nav a{padding:8px}.sidebar{width:238px}.workspace-main{margin-left:238px}.workspace-content{padding:22px}.hero-copy{padding:60px 45px}.auth-layout{grid-template-columns:1fr .9fr}}
@media(max-width:760px){.page{width:min(100% - 28px,1220px)}.public-header{padding:7px 0}.header-inner{height:57px;padding-left:10px}.brand{min-width:0}.brand-mark{width:34px;height:34px}.brand-name{font-size:12px}.brand-sub{font-size:8px}.public-nav{display:none;position:absolute;top:64px;left:14px;right:14px;flex-direction:column;align-items:stretch;padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}.public-nav.open{display:flex}.public-nav a{padding:11px}.mobile-toggle{display:inline-grid}.header-actions .header-signin{display:none}.header-actions{gap:2px}.hero{min-height:455px}.hero-copy{padding:48px 27px}.hero h1{font-size:2.65rem}.hero:after{background:linear-gradient(90deg,rgba(10,32,59,.91),rgba(13,48,86,.64) 100%)}.section{padding:29px 0}.section-head,.page-top,.workspace-page-head{align-items:flex-start;flex-direction:column}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-card{padding:14px;min-height:132px}.metric-value{font-size:22px}.checkout-grid{grid-template-columns:1fr}.footer-inner{flex-direction:column;gap:18px}.footer-bottom{gap:12px;flex-direction:column}.auth-layout{grid-template-columns:1fr;gap:16px;padding:22px 0 45px}.auth-aside{min-height:260px;padding:27px}.auth-aside h2{font-size:1.8rem}.auth-card{max-width:540px}.sidebar{transform:translateX(-105%);box-shadow:var(--shadow)}.sidebar.open{transform:translateX(0)}.workspace-main{margin-left:0}.workspace-topbar{height:57px;padding:0 14px}.workspace-content{padding:19px 14px}.mobile-sidebar-btn{display:inline-grid}.workspace-topbar .breadcrumb{display:none}.topbar-actions .role-label{display:none}.profile-cover{height:115px}.info-grid{grid-template-columns:1fr 1fr}.card.pad{padding:17px}.card-head{padding:16px}.card-body{padding:16px}.success-panel{margin:25px auto;padding:30px 18px}}
@media(max-width:480px){.grid-2,.grid-3{grid-template-columns:1fr}.hero{min-height:480px}.hero-copy{padding:40px 23px}.hero h1{font-size:2.3rem}.hero p{font-size:.95rem}.hero-badges{gap:8px}.product-card-img{height:205px}.stepper{gap:5px;font-size:9px}.stepper span{gap:4px}.stepper i{width:19px;height:19px}.toolbar>*{flex:1 1 100%}.toolbar .btn{width:100%}.info-grid{grid-template-columns:1fr}.receipt-head{flex-direction:column}.header-actions .icon-btn:first-child{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* ── UI Design System Updates (Matching Figma/Screenshots) ───────────────── */
.tabs-pill-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 16px 0;
  border-bottom: none;
  background: transparent;
}
.tab-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab-pill:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.03);
}
.tab-pill.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.formula-callout {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #1e40af;
  margin: 16px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.formula-callout code {
  color: #1d4ed8;
  font-weight: 600;
  font-family: inherit;
}

.pack-style-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  display: inline-block;
  white-space: nowrap;
}

.tag-pending-name {
  border: 1px dashed #f59e0b;
  background: #fffbeb;
  color: #d97706;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.tag-pending-name:hover {
  background: #fef3c7;
  border-color: #d97706;
}

.action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
}
.action-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.action-icon-btn.delete-btn {
  color: #ef4444;
}
.action-icon-btn.delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.recalc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin: 16px 0;
}
.recalc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.recalc-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}
.recalc-tile label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}
.recalc-tile .calc-val {
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
}
.recalc-tile .calc-hint {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
  display: block;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}
.filter-pill.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.leg-balance-bar {
  height: 8px;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  width: 100%;
  min-width: 120px;
  background: #e2e8f0;
}
.leg-bar-1 {
  background: #2563eb;
  height: 100%;
}
.leg-bar-2 {
  background: #f97316;
  height: 100%;
}

.order-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #f8fafc;
  border-radius: 12px;
  margin: 16px 0;
  position: relative;
}
.order-stepper::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.stepper-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  transition: all 0.2s;
}
.stepper-step.active .stepper-step-circle {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}
.stepper-step.done .stepper-step-circle {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}
.stepper-step-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.stepper-step.active .stepper-step-label {
  color: #0284c7;
  font-weight: 700;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 2;
}
.gradient-heading {
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  margin-top: 24px;
}

/* ── Modern Homepage Split Hero & Ribbon ─────────────────── */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 38px 0 20px 0;
  position: relative;
}
.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}
.hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
  display: inline-block;
}
.hero-headline-modern {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin-bottom: 18px;
}
.hero-gradient-text {
  background: linear-gradient(90deg, #0284c7 0%, #6366f1 45%, #f43f5e 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-desc-modern {
  font-size: 16px;
  line-height: 1.6;
  color: #64748b;
  max-width: 460px;
  margin-bottom: 28px;
}
.hero-actions-modern {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary, #0284c7);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: all 0.2s;
}
.hero-btn-primary:hover {
  background: var(--primary-dark, #0369a1);
  color: #ffffff;
  transform: translateY(-1px);
}
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}
.hero-btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}
.hero-slide-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.slide-bar {
  height: 4px;
  width: 20px;
  border-radius: 999px;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.slide-bar:hover {
  background: #94a3b8;
}
.slide-bar.active {
  width: 32px;
  background: var(--primary, #0284c7);
}
.slide-text {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

/* ── Bootstrap Carousel Support ─────────────────────────── */
.carousel {
  position: relative;
}
.carousel.pointer-event {
  touch-action: pan-y;
}
.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.carousel-inner::after {
  display: block;
  clear: both;
  content: "";
}
.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  display: block;
}
.carousel-item-end,
.carousel-item-next:not(.carousel-item-start) {
  transform: translateX(100%);
}
.carousel-item-start,
.carousel-item-prev:not(.carousel-item-end) {
  transform: translateX(-100%);
}
.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end,
.carousel-fade .carousel-item.active {
  z-index: 1;
  opacity: 1;
}
.carousel-fade .active.carousel-item-end,
.carousel-fade .active.carousel-item-start {
  z-index: 0;
  opacity: 0;
  transition: opacity 0s 0.6s;
}
.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 630px;
  margin-left: auto;
}
.hero-visual-card img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

.feature-ribbon-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 36px;
  box-shadow: var(--shadow-section);
  margin-top: 28px;
  margin-bottom: 40px;
}
.ribbon-col {
  padding: 0 20px;
}
.ribbon-col.ribbon-border {
  border-left: 1px solid #e2e8f0;
}
.ribbon-val {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 4px;
}
.ribbon-lbl {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

/* Navbar avatar & bell */
.nav-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  border: 2px solid #38bdf8;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-avatar-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}
.avatar-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}
.nav-bell-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

@media (max-width: 900px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual-card {
    margin: 0 auto;
  }
  .feature-ribbon-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
  .ribbon-col.ribbon-border:nth-child(3) {
    border-left: none;
  }
}
@media (max-width: 480px) {
  .feature-ribbon-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .ribbon-col.ribbon-border {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
  }
}

@media (max-width: 768px) {
  .recalc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Wide Screen Formulation Edit Modal (Zero Vertical Scroll) ─ */
.modal-wide-dialog {
  max-width: 1060px;
  width: min(1060px, 95vw);
  max-height: 94vh;
  border-radius: 20px;
  padding: 22px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.edit-modal-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: start;
}
.edit-col-spec {
  display: flex;
  flex-direction: column;
}
.edit-col-engine {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recalc-engine-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 12px 14px;
}
.recalc-tile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-height: 70px;
}
.recalc-tile-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.recalc-tile-num {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--display, 'Outfit', sans-serif);
  border: none;
  background: transparent;
  padding: 1px 0;
  margin: 1px 0;
  line-height: 1.1;
  width: 100%;
}
.recalc-tile-num:focus {
  outline: none;
}
.recalc-tile-formula {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}
.packaging-bubble-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pkg-bubble-chip {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 9999px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.25;
  transition: all 0.15s ease;
  user-select: none;
}
.pkg-bubble-chip:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}
.pkg-bubble-chip.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.35);
}
@media (max-width: 860px) {
  .modal-wide-dialog {
    max-height: 90vh;
    overflow-y: auto;
  }
  .edit-modal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========================================================================== */
/* Floating Overlay Notifications Stack with Auto-Disappear                   */
/* ========================================================================== */
.flash-overlay-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: calc(100% - 32px);
  pointer-events: none;
}
.flash-toast-item {
  pointer-events: auto;
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  border-left: 4px solid var(--primary, #1d58d8);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideInToast 0.3s ease forwards;
}
.flash-toast-item.success {
  border-left-color: #10b981;
}
.flash-toast-item.warning {
  border-left-color: #f59e0b;
}
.flash-toast-item.error {
  border-left-color: #ef4444;
}
.flash-toast-icon {
  font-size: 16px;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}
.flash-toast-content {
  flex: 1;
}
.flash-toast-content strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.flash-toast-content p {
  margin: 0;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.4;
}
.flash-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.flash-toast-close:hover {
  color: #ffffff;
}

/* ========================================================================== */
/* Top Navbar Expanding Product Search & Results Overlay                      */
/* ========================================================================== */
.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search-box {
  display: flex;
  align-items: center;
  background: var(--surface-soft, #f1f5f9);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 20px;
  height: 38px;
  width: 230px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s, background 0.2s;
  overflow: hidden;
  padding: 0 10px;
}
.nav-search-box:focus-within,
.nav-search-box.expanded {
  width: 350px;
  border-color: var(--primary, #1d58d8);
  box-shadow: 0 0 0 3px rgba(29, 88, 216, 0.15);
  background: #ffffff;
}
.expandable-search {
  width: 240px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}
.expandable-search:focus {
  width: 330px !important;
  border-color: var(--primary, #1d58d8);
  box-shadow: 0 0 0 3px rgba(29, 88, 216, 0.15);
}
.nav-search-icon {
  display: grid;
  place-items: center;
  color: var(--muted, #64748b);
  flex-shrink: 0;
  margin-right: 6px;
}
.nav-search-input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  padding: 0 !important;
  font-size: 13px !important;
  color: var(--text, #0f172a) !important;
  width: 100% !important;
  height: 100% !important;
  box-shadow: none !important;
}
.nav-search-clear {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-search-clear:hover {
  color: #0f172a;
}
.nav-search-overlay {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 380px;
  max-height: 420px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  z-index: 100;
  overflow-y: auto;
  animation: fadeInDown 0.18s ease forwards;
}
.nav-search-overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 6px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  border-radius: 14px 14px 0 0;
}
.nav-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
  cursor: pointer;
}
.nav-search-item:hover {
  background: #f1f5f9;
}
.nav-search-item:last-child {
  border-bottom: none;
}

/* ========================================================================== */
/* Top Navbar Notifications Bell Dropdown Overlay                             */
/* ========================================================================== */
.nav-notif-wrap {
  position: relative;
}
.nav-notif-overlay {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 420px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  z-index: 100;
  overflow-y: auto;
  animation: fadeInDown 0.18s ease forwards;
}
.nav-notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  border-radius: 14px 14px 0 0;
}
.nav-notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
  transition: background 0.12s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.nav-notif-item:hover {
  background: #f8fafc;
}
.nav-notif-item.unread {
  background: #eff6ff;
  border-left: 3px solid var(--primary, #1d58d8);
}
.nav-notif-item:last-child {
  border-bottom: none;
}
.nav-bell-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .nav-search-box:focus-within,
  .nav-search-box.expanded {
    width: 220px;
  }
  .nav-search-overlay {
    width: 290px;
    right: -60px;
    left: auto;
  }
  .nav-notif-overlay {
    width: 300px;
  }
}

.brand-logo {
  height: 40px;
  max-height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 760px) {
  .brand-logo {
    height: 34px;
  }
}

.modern-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}
.modern-prod-card:hover .modern-prod-img {
  transform: scale(1.04);
}
.modern-prod-img {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-thumb-btn {
  border: 2px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.gallery-thumb-btn:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.gallery-thumb-btn.active {
  border-color: var(--primary, #1d58d8);
  box-shadow: 0 0 0 2px rgba(29, 88, 216, 0.15);
}
.star-rating-select-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  transition: all 0.15s ease;
}
.star-rating-select-btn:hover,
.star-rating-select-btn.selected {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

/* ========================================================================== */
/* User Profile Menu Dropdown                                                 */
/* ========================================================================== */
.user-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 296px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  z-index: 1000;
  padding: 8px;
  animation: fadeInDown 0.16s ease forwards;
  box-sizing: border-box;
}

.user-dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #edf2f7;
  margin-bottom: 4px;
}

.user-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.user-dropdown-meta {
  flex: 1;
  min-width: 0;
}

.user-dropdown-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.user-dropdown-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.user-dropdown-badge {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 1px 7px;
  text-transform: capitalize;
  flex-shrink: 0;
  line-height: 1.4;
}

.user-dropdown-contact {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
}

.user-status-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.user-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

.user-dropdown-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: #f8fafc;
}

.user-dropdown-item-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0284c7;
  margin-top: 1px;
}

.user-dropdown-item-icon.orders-icon {
  color: #0284c7;
}

.user-dropdown-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-dropdown-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
}

.user-dropdown-item-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.2;
}

.user-dropdown-item.signout-item {
  margin-top: 2px;
}

.user-dropdown-item.signout-item:hover {
  background: #fef2f2;
}

.signout-icon {
  color: #dc2626 !important;
}

.signout-title {
  color: #dc2626 !important;
  font-weight: 700;
}

.signout-desc {
  color: #ef4444 !important;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .user-dropdown-menu {
    width: 275px;
    right: -10px;
  }
}

/* ── Retailer Bulk Purchase & Quick Order Sheet ────────────────────────── */
.view-mode-switch {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 2px;
  border: 1px solid #e2e8f0;
}
.view-toggle-btn {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.view-toggle-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.03);
}
.view-toggle-btn.active {
  background: #ffffff;
  color: #1d58d8;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.quick-chip-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}
.quick-chip-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.bulk-step-btn {
  border: none;
  background: #f8fafc;
  color: #475569;
  width: 28px;
  height: 30px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.bulk-step-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.bulk-qty-input::-webkit-outer-spin-button,
.bulk-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bulk-qty-input[type=number] {
  -moz-appearance: textfield;
}

.bulk-order-dock-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid #cbd5e1;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.12);
  padding: 12px 24px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.bulk-order-dock-bar.hide {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
  display: block !important;
}
.bulk-order-dock-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bulk-dock-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bulk-dock-stat-item {
  display: flex;
  flex-direction: column;
}
.bulk-dock-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.bulk-dock-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.bulk-dock-stat-val.primary-val {
  color: #1d58d8;
}
.bulk-dock-stat-val.bv-val {
  color: #0284c7;
}
.bulk-dock-stat-divider {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
}
.bulk-dock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bulk-row-selected {
  background: #f0f9ff !important;
}

@media (max-width: 768px) {
  .bulk-order-dock-bar {
    padding: 10px 14px;
  }
  .bulk-dock-stat-divider {
    display: none;
  }
  .bulk-dock-stats {
    gap: 10px;
  }
  .bulk-dock-stat-val {
    font-size: 14px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Compact Metric Cards & Stat Cards (Non-Overview tabs)
   ───────────────────────────────────────────────────────────── */
.metric-card-sm,
.stat-card-sm {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.metric-card-sm:hover,
.stat-card-sm:hover {
  border-color: var(--primary, #1d58d8);
  box-shadow: 0 4px 12px rgba(29, 88, 216, 0.08);
}

.metric-card-sm.featured {
  background: radial-gradient(200px 100px at 100% 0%, rgba(255, 255, 255, 0.22), transparent 70%), linear-gradient(135deg, var(--primary, #2763bf), var(--primary-dark, #16458e));
  color: #ffffff;
  border-color: transparent;
}

.metric-card-sm.featured .metric-label,
.metric-card-sm.featured .metric-hint {
  color: rgba(255, 255, 255, 0.78);
}

.metric-card-sm.featured .metric-value {
  color: #ffffff;
}

.metric-card-sm .metric-top,
.stat-card-sm .stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.metric-card-sm .metric-label,
.stat-card-sm .stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted, #64748b);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1px 0;
  line-height: 1.2;
}

.metric-card-sm .metric-value,
.stat-card-sm .stat-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink, #0f172a);
  line-height: 1.2;
  margin: 0;
}

.metric-card-sm .metric-hint,
.stat-card-sm .stat-hint {
  font-size: 10.5px;
  color: var(--muted, #64748b);
  margin: 2px 0 0 0;
  line-height: 1.2;
}

.sub-card-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
}
.sub-card-box .sub-card-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}
.sub-card-box .sub-card-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0;
}
.sub-card-box .sub-card-sub {
  font-size: 11px;
  color: #64748b;
}

/* ── Visual Depth & Elevation Architecture ───────────────────────── */
/* Sections: subtle visual depth */
section.card,
section[data-tab-panel],
div[data-tab-panel].card,
.section-card,
.page-section,
.feature-ribbon-card,
.section > .card,
.page.section > .card,
.success-panel,
.receipt,
.notice,
.chat-container,
.hero-split-grid,
section:not(.page):not(.grid):not(.auth-card):not(.metric-card):not(.product-card):not(.workspace-page-head):not(.page-top) {
  box-shadow: var(--shadow-section) !important;
}

/* Layout-only sections must remain unshadowed */
section.grid,
section.page,
section.workspace-page-head,
section.page-top {
  box-shadow: none !important;
}

/* Cards: distinct, deeper visual depth */
.card:not(section):not([data-tab-panel]):not(.feature-ribbon-card),
.metric-card,
.product-card,
.modern-prod-card,
.retailer-prod-card,
.auth-card,
.address-card,
.address-select-item,
.order-pipeline-card,
.dir-detail-card,
.theme-card,
.font-card,
.gallery-card,
.floating-card,
section .card,
.card .card,
.pad .card,
.card-body .card,
[data-tab-panel] .card {
  box-shadow: var(--shadow-card) !important;
}

/* Card hover: enhanced elevation lift */
.card:not(section):not([data-tab-panel]):hover,
.metric-card:hover,
.product-card:hover,
.modern-prod-card:hover,
.retailer-prod-card:hover,
.address-card:hover,
.address-select-item:hover,
.theme-card:hover,
.font-card:hover,
.gallery-card:hover {
  box-shadow: var(--shadow-card-hover) !important;
  transform: translateY(-2px);
}

/* Sub/compact cards: proportional subtle-to-card elevation */
.metric-card-sm,
.stat-card-sm,
.sub-card-box,
.recalc-tile-card {
  box-shadow: var(--shadow-card-sm) !important;
}

.metric-card-sm:hover,
.stat-card-sm:hover,
.sub-card-box:hover,
.recalc-tile-card:hover {
  box-shadow: var(--shadow-card-sm-hover) !important;
}

/* ── Cart Interactive Round Quantity & Action Controls ──────────────────── */
.cart-qty-group {
  display: inline-flex;
  align-items: center;
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 999px;
  padding: 4px;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.cart-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  border: 1px solid var(--line, #e2e8f0);
  background: var(--surface, #ffffff);
  color: var(--ink, #1e293b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  padding: 0;
  user-select: none;
}
.cart-qty-btn:hover {
  background: var(--primary-soft, #eff6ff);
  color: var(--primary, #1d58d8);
  border-color: var(--primary, #1d58d8);
  transform: scale(1.08);
  box-shadow: 0 3px 8px rgba(29, 88, 216, 0.18);
}
.cart-qty-btn:active {
  transform: scale(0.94);
}
.cart-qty-btn .material-symbols-outlined {
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
  display: block;
}
.cart-qty-val {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  font-variant-numeric: tabular-nums;
}
.cart-remove-round-btn {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  border: 1px solid #fee2e2;
  background: #fef2f2;
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.08);
  margin-left: 6px;
  padding: 0;
  user-select: none;
}
.cart-remove-round-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.22);
}
.cart-remove-round-btn:active {
  transform: scale(0.93);
}
.cart-remove-round-btn .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
  display: block;
}

/* ── Retailer Catalogue Toolbar & Filters ────────────────────────────────── */
.retailer-cat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.retailer-cat-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.retailer-cat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.retailer-cat-filter-group {
  display: inline-flex;
  background: var(--surface-soft, #f1f5f9);
  border-radius: 9px;
  padding: 3px;
  border: 1px solid var(--line, #e2e8f0);
  gap: 2px;
}
.retailer-cat-filter-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--ink-muted, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}
.retailer-cat-filter-btn:hover {
  color: var(--ink, #0f172a);
  background: rgba(0, 0, 0, 0.03);
}
.retailer-cat-filter-btn.active {
  background: var(--surface, #ffffff);
  color: var(--primary, #1d58d8);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.retailer-cat-search-wrap {
  position: relative;
  min-width: 260px;
  max-width: 340px;
}
.retailer-cat-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 17px;
  pointer-events: none;
}
.retailer-cat-search-input {
  width: 100%;
  padding: 7px 12px 7px 32px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
  border: 1px solid var(--line, #cbd5e1) !important;
  background: var(--surface, #ffffff) !important;
  color: var(--ink, #0f172a) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.retailer-cat-search-input:focus {
  border-color: var(--primary, #1d58d8) !important;
  box-shadow: 0 0 0 3px rgba(29, 88, 216, 0.12) !important;
  outline: none;
}

/* ── Retailer Grid Product Card Overhaul ──────────────────────────────────── */
.retailer-prod-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px !important;
  overflow: hidden;
  background: var(--surface, #ffffff);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
  position: relative;
}
.retailer-prod-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.1) !important;
  border-color: #cbd5e1 !important;
}

/* Showcase Header with subtle gradient & interactive image */
.retailer-card-media {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 16px;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.retailer-card-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.retailer-card-img {
  max-height: 120px;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.retailer-prod-card:hover .retailer-card-img {
  transform: scale(1.06);
}

/* Floating Badges */
.retailer-badge-segment {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 2;
}
.retailer-badge-pack {
  position: absolute;
  top: 9px;
  right: 9px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  z-index: 2;
}
.retailer-badge-incart {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(22, 163, 74, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

/* Card Body */
.retailer-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.retailer-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}
.retailer-maker-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.retailer-stock-indicator {
  font-size: 10.5px;
  color: #16a34a;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.retailer-stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
}

/* Title & Subtitle */
.retailer-prod-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  margin: 0 0 3px 0;
  line-height: 1.35;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.retailer-prod-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.retailer-prod-title a:hover {
  color: var(--primary, #1d58d8);
}
.retailer-prod-subtitle {
  font-size: 11.5px;
  color: #64748b;
  margin: 0 0 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}
.retailer-prod-subtitle .material-symbols-outlined {
  font-size: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Pricing Tile */
.retailer-price-tile {
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--line, #f1f5f9);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: auto;
  margin-bottom: 12px;
}
.retailer-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.retailer-rate-label {
  font-size: 9.5px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: block;
}
.retailer-rate-dp {
  font-size: 16px;
  color: var(--primary, #1d58d8);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.retailer-rate-mrp {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 4px;
}
.retailer-price-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.retailer-margin-pill {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
}
.retailer-bv-tag {
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
}

/* Action Controls Row */
.retailer-action-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.retailer-grid-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 9px;
  background: #ffffff;
  overflow: hidden;
  height: 36px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
}
.retailer-grid-stepper .stepper-btn {
  border: none;
  background: #f8fafc;
  width: 28px;
  height: 100%;
  cursor: pointer;
  color: #475569;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}
.retailer-grid-stepper .stepper-btn:hover {
  background: var(--primary-soft, #eff6ff);
  color: var(--primary, #1d58d8);
}
.retailer-grid-stepper .stepper-btn:active {
  background: #dbeafe;
}
.retailer-grid-qty-input {
  width: 36px;
  height: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 12.5px;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  color: var(--ink, #0f172a);
}
.retailer-grid-add-btn {
  flex: 1;
  height: 36px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  box-shadow: 0 2px 5px rgba(29, 88, 216, 0.18) !important;
  transition: all 0.15s ease !important;
}
.retailer-grid-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(29, 88, 216, 0.28) !important;
}
.retailer-grid-add-btn:active {
  transform: scale(0.98);
}
.retailer-grid-info-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  padding: 0 !important;
  border: 1px solid var(--line, #e2e8f0) !important;
  background: #ffffff !important;
  color: #64748b !important;
  transition: all 0.15s ease !important;
}
.retailer-grid-info-btn:hover {
  border-color: #cbd5e1 !important;
  color: var(--primary, #1d58d8) !important;
  background: var(--surface-soft, #f8fafc) !important;
}

/* Remove HTML5 number input spinner arrows */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.no-spinner {
  -moz-appearance: textfield;
}



