:root{--blue:#075cd3;--blue-dark:#053a90;--ink:#1e293b;--muted:#64748b;--line:#d6e2f0;--bg:#f4f7fd;--shadow:0 9px 24px rgba(28,67,121,.08)}
*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:var(--blue)}a:hover{text-decoration-thickness:2px}.hidden{display:none!important}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.brand{color:var(--blue-dark);font-size:22px;letter-spacing:.03em;font-weight:850;text-decoration:none;white-space:nowrap}.brand span{color:var(--blue)}h1,h2,h3,p{margin-top:0}.eyebrow{text-transform:uppercase;letter-spacing:.13em;color:var(--blue);font-size:12px;font-weight:800;margin-bottom:9px}.primary-btn,.outline-btn{border-radius:9px;padding:12px 19px;border:1px solid var(--blue);font-weight:720;min-height:44px}.primary-btn{background:var(--blue);color:white}.primary-btn:hover:not(:disabled){background:var(--blue-dark)}.primary-btn:disabled{opacity:.55;cursor:not-allowed}.outline-btn{background:white;color:var(--blue)}.outline-btn:hover{background:#eef5ff}input,textarea,select{min-height:44px;padding:10px 12px;border:1px solid #b7cbe5;border-radius:8px;background:white;color:var(--ink);max-width:100%;width:100%}textarea{min-height:90px;resize:vertical}input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #90bfff;outline-offset:2px}
/* Shared login and signup layout */
.account-page{min-height:100vh;background:linear-gradient(145deg,#eff6ff,#f7f9fd 50%,#dfeaff)}.account-shell{max-width:500px;margin:auto;padding:52px 22px}.account-shell>.brand{display:block;text-align:center;margin:12px 0 30px;font-size:26px}.account-card{background:white;border:1px solid var(--line);border-radius:17px;padding:34px;box-shadow:var(--shadow)}.account-card h1{font-size:30px;margin-bottom:8px}.stack-form{display:flex;flex-direction:column;gap:9px;margin-top:24px}.stack-form label{font-weight:660;font-size:14px}.stack-form input,.stack-form textarea{margin-bottom:9px}.stack-form .primary-btn{margin-top:6px;width:100%}.form-error{color:#a22131;min-height:1em;margin:0;font-size:13px}.form-success{color:#067043;min-height:1em;margin:0;font-size:13px}.account-foot{text-align:center;margin:22px 0 0;font-size:14px}
/* Customer portal */
.customer-header{background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:4}.customer-header-inner{max-width:1220px;margin:auto;padding:17px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}.header-actions{display:flex;gap:9px;flex-wrap:wrap}.header-btn{background:#edf4ff;border:1px solid #c2d6f1;color:var(--blue-dark);border-radius:8px;padding:9px 12px;font-weight:650}.header-btn:hover{background:#dceaff}.customer-layout{max-width:1220px;margin:auto;padding:26px 22px 55px}.welcome-banner{border:1px solid #c6dafa;border-radius:16px;padding:26px 28px;background:linear-gradient(115deg,#fff,#e8f1ff);display:flex;justify-content:space-between;align-items:center;gap:20px}.welcome-banner h1{font-size:26px;margin-bottom:8px}.welcome-banner p:last-child{margin-bottom:0}.welcome-mark{flex:0 0 82px;height:82px;border-radius:50%;background:#d7e8ff;color:var(--blue-dark);display:grid;place-items:center;font-size:28px;font-weight:850}.customer-tabs{display:flex;gap:10px;margin:22px 0;border-bottom:1px solid var(--line)}.tab-button{padding:12px 20px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);font-weight:720}.tab-button.active{color:var(--blue);border-color:var(--blue)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 18px}.section-heading h2{font-size:22px;margin-bottom:6px}.section-heading p{margin:0;font-size:14px}.product-search{margin-bottom:19px;max-width:420px}.customer-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.product-card{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden;box-shadow:var(--shadow)}.product-image{width:100%;height:185px;object-fit:contain;background:#f2f5fb;display:block}.product-image-fallback{width:100%;height:185px;display:grid;place-items:center;color:#617b9d;font-size:40px;background:#eff5ff}.product-card-body{padding:17px}.product-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.product-card h3{font-size:18px;margin-bottom:15px}.price{font-weight:800;color:var(--blue-dark);white-space:nowrap}.product-card .row-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product-card label{display:block;font-size:13px;font-weight:640;margin-bottom:6px}.product-card .field{margin-bottom:12px}.product-card .primary-btn{width:100%;margin-top:5px}.cart-chip{border-radius:100px;background:#e4f0ff;border:1px solid #cae0ff;padding:8px 14px;color:var(--blue-dark);font-weight:700;font-size:13px;white-space:nowrap}.cart-panel{margin-top:28px;padding:21px;background:white;border-radius:14px;border:1px solid var(--line);box-shadow:var(--shadow)}.cart-item{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.cart-item:last-child{border-bottom:0}.cart-item p{margin:4px 0 0;font-size:13px;color:var(--muted)}.cart-item strong{color:#24466f}.cart-remove{color:#a52639;background:#fff1f3;border:1px solid #efd1d7;padding:9px 12px;border-radius:8px}.cart-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);margin-top:12px;padding-top:18px}.cart-bottom strong{font-size:16px}.customer-orders-list{display:grid;gap:16px}.customer-order-card{background:white;border:1px solid var(--line);border-radius:13px;padding:20px;box-shadow:var(--shadow)}.customer-order-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.customer-order-card h3{margin:0;font-size:19px}.delivery-tag{font-size:12px;border-radius:60px;padding:7px 10px;font-weight:750}.delivery-tag.pending{color:#8f5812;background:#fff0d7}.delivery-tag.delivered{color:#0e7046;background:#dcf7e8}.order-detail-list{list-style:none;padding:0;margin:14px 0;display:grid;gap:9px}.order-detail-list li{padding:10px 12px;border-radius:8px;background:#f7faff;font-size:14px}.order-summary{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid var(--line);padding-top:14px}.customer-footer{text-align:center;padding:22px;color:var(--muted);font-size:13px}.empty-state{border:1px dashed #bad0e9;border-radius:12px;padding:28px;text-align:center;background:white;color:var(--muted)}
@media(max-width:970px){.customer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.account-shell{padding:30px 14px}.account-card{padding:24px 19px}.customer-header-inner{padding:14px 13px;align-items:flex-start}.brand{font-size:17px}.header-actions{gap:6px}.header-btn{padding:7px 9px;font-size:12px}.customer-layout{padding:17px 13px 36px}.welcome-banner{padding:19px}.welcome-mark{display:none}.welcome-banner h1{font-size:21px}.customer-product-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start}.product-image,.product-image-fallback{height:165px}.cart-item{grid-template-columns:minmax(0,1fr) 77px;gap:10px}.cart-item .cart-remove{grid-column:2}.cart-bottom{align-items:stretch;flex-direction:column}.cart-bottom .primary-btn{width:100%}.order-summary{align-items:flex-start;flex-direction:column}}

/* Match the blue-and-white customer interface in shared toast/dialog UI. */
.hawa-toast{background:#fff;color:#183352;border:1px solid var(--line);border-left:4px solid var(--blue);box-shadow:0 9px 28px rgba(18,53,101,.18)}
.hawa-toast--success{border-left-color:var(--blue)}
.hawa-dialog{background:#fff;color:var(--ink);border-color:var(--line);box-shadow:0 18px 60px rgba(24,49,91,.25)}
.hawa-dialog::backdrop{background:rgba(12,32,62,.48)}
.hawa-dialog__title{color:var(--blue-dark)}.hawa-dialog__message{color:#405571}
.hawa-dialog__button--cancel{color:var(--blue-dark);background:#edf4ff;border-color:#bdcfe5}
.hawa-dialog__button--primary{color:#fff;background:var(--blue)}
.hawa-dialog__button:focus-visible{outline-color:var(--blue)}

/* Show both unit price and MRP, with consistent tag chips on customer cards. */
.customer-pricing { display:flex; flex-direction:column; align-items:flex-end; gap:5px; text-align:right; }
.customer-pricing .price { font-size:14px; color:var(--blue-dark); font-weight:800; white-space:normal; }
.customer-mrp { font-size:12px; color:#60758e; font-weight:650; }
.customer-tags { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 14px; }
.customer-tag { display:inline-block; background:#edf4ff; color:#1754a7; border:1px solid #d5e5ff; border-radius:20px; padding:4px 9px; font-size:12px; font-weight:650; overflow-wrap:anywhere; }
@media(max-width:430px){.product-card-header{flex-wrap:wrap}.customer-pricing{align-items:flex-start;text-align:left}}


/* Milestone 7.2 — cart visible beside products on wide screens. */
.customer-shopping-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(312px,340px);gap:20px;align-items:start}
.customer-catalogue{min-width:0}
.customer-catalogue .customer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.customer-shopping-layout .cart-panel{margin-top:0;position:sticky;top:91px;max-height:calc(100dvh - 108px);overflow-y:auto;scrollbar-gutter:stable;scroll-margin-top:94px}
.customer-shopping-layout .cart-item{grid-template-columns:minmax(0,1fr) 76px;gap:10px}
.customer-shopping-layout .cart-remove{grid-column:2}
.customer-shopping-layout .cart-bottom{align-items:stretch;flex-direction:column}
.customer-shopping-layout .cart-bottom .primary-btn{width:100%}
.cart-close-btn,.mobile-cart-toggle{display:none}
.cart-backdrop[hidden]{display:none!important}
.cart-stock-error{background:#fff1f2;border:1px solid #f1b9c3;border-left:4px solid #c12b48;border-radius:10px;padding:12px 13px;color:#84213b;font-size:14px;font-weight:650;line-height:1.5;margin-bottom:13px}
.cart-item-stock-issue{background:#fff6f7;border:2px solid #c12b48;border-radius:10px;padding:12px;margin:7px 0}
@media(max-width:970px){
  .customer-shopping-layout{display:block}
  .customer-catalogue .customer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .customer-layout{padding-bottom:115px}
  .mobile-cart-toggle{position:fixed;bottom:0;left:0;right:0;z-index:24;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px max(18px,env(safe-area-inset-right)) calc(15px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:#075cd3;color:white;border:0;border-radius:0;box-shadow:0 -6px 24px rgba(11,41,94,.2);font-weight:800;font-size:16px;text-align:left;min-height:64px}
  .mobile-cart-toggle strong{font-size:15px;white-space:nowrap}
  .customer-shopping-layout .cart-panel{display:none;position:fixed;z-index:26;top:auto;left:0;right:0;bottom:0;width:100%;max-height:min(87dvh,760px);padding:20px 18px calc(20px + env(safe-area-inset-bottom));margin:0;overflow-y:auto;overscroll-behavior:contain;border-radius:18px 18px 0 0;box-shadow:0 -12px 55px rgba(9,27,59,.27);scrollbar-gutter:auto}
  .customer-shopping-layout .cart-panel.is-open{display:block}
  .cart-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100%;z-index:25;border:0;background:rgba(12,30,57,.55);cursor:pointer}
  .cart-close-btn{display:inline-block;padding:8px 12px;border:1px solid #c7d8ed;background:#edf4ff;border-radius:8px;color:#083e8c;font-weight:700}
  .customer-cart-open{overflow:hidden}
  .cart-heading{align-items:flex-start}
}
@media(max-width:640px){.customer-catalogue .customer-product-grid{grid-template-columns:1fr}.customer-shopping-layout .cart-panel{padding:18px 14px calc(16px + env(safe-area-inset-bottom))}.customer-shopping-layout .cart-item{grid-template-columns:minmax(0,1fr) 80px}}

/* List every unavailable item; do not disclose remaining stock numbers. */
.cart-stock-issue-list{margin:9px 0 0;padding-left:20px;font-weight:550}
.cart-stock-issue-list li{margin:6px 0;line-height:1.45}

/* Derived from delivered-order activity; never discloses shop counts or stock. */
.customer-popular-badge{display:inline-block;align-self:flex-start;margin:3px 0 8px;padding:5px 10px;border-radius:999px;background:#e4f2ff;border:1px solid #acd4fa;color:#08468e;font-size:12px;font-weight:750}

/* Client-requested sales labels: actual delivered sales only. */
.customer-sales-badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 8px}
.customer-sales-badges .customer-popular-badge{margin:0}
.customer-trending-badge{background:#fff3dd;border-color:#f2cc88;color:#824d07}

/* Customer inventory announcements: compact, non-blocking and mobile friendly. */
.inventory-updates[hidden]{display:none!important}
.inventory-updates{background:#eef6ff;border:1px solid #c6dbf2;border-radius:12px;padding:14px 16px;margin:0 0 16px;color:#183f69}
.inventory-updates h3{font-size:16px;margin:0 0 8px}
.inventory-update-group + .inventory-update-group{margin-top:10px}
.inventory-update-group summary{cursor:pointer;font-weight:600;line-height:1.5}
.inventory-update-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;max-height:152px;overflow:auto}
.inventory-update-link{background:#fff;border:1px solid #b8d2f2;border-radius:8px;color:#1556a2;padding:8px 12px;min-height:40px;font:inherit;font-size:14px;cursor:pointer;overflow-wrap:anywhere;max-width:100%}
.inventory-update-link:focus-visible{outline:2px solid #1764c7;outline-offset:2px}
