@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --navy: #1B2A4A;
  --navy-2: #24365C;
  --paper: #F5F7FA;
  --panel: #FFFFFF;
  --ink: #1A2233;
  --steel: #667085;
  --line: #E4E8EF;
  --line-dark: rgba(255,255,255,0.14);
  --amber: #FF7A1A;
  --amber-ink: #C85A00;
  --green: #1BA672;
  --red: #E23744;
  --blue: #2E6FE0;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ background:var(--paper); }
body{
  font-family:'Inter',sans-serif; color:var(--ink); background:var(--paper);
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.display{ font-family:'Space Grotesk',sans-serif; }
.mono{ font-family:'IBM Plex Mono',monospace; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; }
:focus-visible{ outline:2px solid var(--amber); outline-offset:2px; }

.container{ max-width:1240px; margin:0 auto; padding:0 20px; }

/* ---------------- top utility bar ---------------- */
.top-bar{ background:var(--ink); color:rgba(255,255,255,0.82); font-size:12px; }
.top-bar .bar{ display:flex; align-items:center; justify-content:space-between; padding:7px 0; gap:14px; flex-wrap:wrap; }
.top-bar .tb-left{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.top-bar .tb-item{ display:flex; align-items:center; gap:6px; white-space:nowrap; }
.top-bar .tb-phone{ font-weight:700; }
.footer-grid a.footer-phone{ font-weight:700; }
.top-bar .tb-item svg{ width:13px; height:13px; color:var(--amber); flex-shrink:0; }
.top-bar .tb-right{ display:flex; align-items:center; gap:16px; }
.top-bar a:hover{ color:#fff; }

/* ---------------- header ---------------- */
.site-header{ background:#fff; color:var(--ink); position:sticky; top:0; z-index:40; border-bottom:1px solid var(--line); box-shadow:0 1px 0 rgba(15,28,46,0.04); }
.site-header .bar{ display:flex; align-items:center; gap:20px; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand .mark{ width:34px; height:34px; border-radius:6px; background:linear-gradient(135deg,var(--amber),#D4AF5A); display:flex; align-items:center; justify-content:center; color:var(--navy); font-weight:700; font-family:'Space Grotesk'; font-size:15px; flex-shrink:0; }
.brand .mark-img{ height:40px; width:auto; flex-shrink:0; }
.brand .brand-logo-img{ height:60px; width:auto; flex-shrink:0; }
.login-mark-img{ height:56px; width:auto; margin:0 auto 14px; }
.brand .name{ font-family:'Space Grotesk'; font-weight:700; font-size:17px; letter-spacing:0.2px; color:var(--navy); }
.brand .name span{ color:var(--amber-ink); }
.brand .tag{ font-size:10px; color:var(--steel); letter-spacing:1.4px; text-transform:uppercase; margin-top:1px; }

.site-search{ flex:1; max-width:560px; display:flex; align-items:center; gap:8px; background:var(--paper); border:1px solid var(--line); border-radius:24px; padding:10px 16px; }
.site-search input{ background:none; border:none; color:var(--ink); font-size:13.5px; flex:1; outline:none; }
.site-search input::placeholder{ color:var(--steel); }
.site-search svg{ width:16px; height:16px; color:var(--steel); flex-shrink:0; }
.site-search:focus-within{ border-color:var(--navy); }

.header-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.btn-amber{ background:var(--amber); color:var(--navy); border:none; border-radius:7px; padding:10px 16px; font-weight:700; font-size:13px; white-space:nowrap; }
.btn-amber:hover{ background:#F0952E; }
.link-muted{ color:var(--steel); font-size:12.5px; white-space:nowrap; }
.link-muted:hover{ color:var(--ink); }
.icon-btn{ display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:var(--paper); border:1px solid var(--line); color:var(--navy); flex-shrink:0; }
.icon-btn:hover{ background:var(--navy); color:#fff; border-color:var(--navy); }
.icon-btn svg{ width:17px; height:17px; }

.cat-nav{ background:var(--navy); overflow-x:auto; }
.cat-nav .row{ display:flex; gap:4px; padding:0; white-space:nowrap; }
.cat-chip{ color:rgba(255,255,255,0.78); font-size:12.5px; font-weight:500; padding:12px 15px; border-bottom:2px solid transparent; flex-shrink:0; }
.cat-chip:hover{ color:#fff; background:rgba(255,255,255,0.05); }
.cat-chip.active{ background:none; color:#fff; border-bottom-color:var(--amber); font-weight:700; }

/* ---------------- hero ---------------- */
/* ---------------- banner carousel ---------------- */
.banner-carousel{ position:relative; overflow:hidden; }
.banner-slide{
  padding:18px 0 14px; color:#fff; position:relative;
  background: linear-gradient(120deg, var(--navy), var(--navy-2) 60%, #2E4470);
}
.banner-slide .eyebrow{ font-family:'IBM Plex Mono'; font-size:11.5px; letter-spacing:2px; text-transform:uppercase; color:#fff; opacity:0.85; margin-bottom:14px; background:rgba(255,255,255,0.15); display:inline-block; padding:5px 12px; border-radius:20px; }
.banner-slide h1{ font-family:'Space Grotesk'; font-size:clamp(26px,4vw,40px); font-weight:700; line-height:1.18; max-width:680px; margin-bottom:12px; }
.banner-slide p{ color:rgba(255,255,255,0.85); font-size:14.5px; max-width:560px; line-height:1.6; margin-bottom:22px; }
.banner-cta{ display:inline-block; background:#fff; color:var(--navy); font-weight:700; font-size:13.5px; padding:12px 24px; border-radius:8px; transition:transform .15s ease, box-shadow .15s ease; }
.banner-cta:hover{ transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,0.25); }

.hero-stats-strip{ background:var(--navy-2); border-top:1px solid var(--line-dark); }
.hero-stats-strip .hero-stats{ display:flex; gap:0; flex-wrap:wrap; }
.hero-stats-strip .hs{ padding:16px 26px 16px 0; margin-right:26px; }
.hero-stats-strip .hs:not(:last-child){ border-right:1px solid var(--line-dark); }
.hero-stats-strip .num{ font-family:'Space Grotesk'; font-size:22px; font-weight:700; color:var(--amber); }
.hero-stats-strip .lbl{ font-size:11px; color:rgba(255,255,255,0.6); text-transform:uppercase; letter-spacing:0.6px; margin-top:2px; }

/* ---------------- featured products ---------------- */
.featured{ padding:44px 0 10px; background:var(--paper); }
.featured .eyebrow{ font-family:'IBM Plex Mono'; font-size:11.5px; letter-spacing:2px; text-transform:uppercase; color:var(--amber-ink); margin-bottom:8px; }
.featured h2{ font-family:'Space Grotesk'; font-size:24px; font-weight:700; color:var(--ink); margin-bottom:20px; }
.featured-row{ display:flex; gap:16px; overflow-x:auto; padding-bottom:10px; scroll-snap-type:x proximity; }
.featured-row::-webkit-scrollbar{ height:6px; }
.featured-row::-webkit-scrollbar-thumb{ background:var(--line); border-radius:3px; }
.fcard{ background:var(--panel); border:1px solid var(--line); border-radius:12px; overflow:hidden; min-width:220px; max-width:220px; flex-shrink:0; scroll-snap-align:start; transition:box-shadow .15s ease, transform .15s ease; position:relative; }
.fcard:hover{ box-shadow:0 12px 28px rgba(15,28,46,0.12); transform:translateY(-3px); }
.fcard .thumb{ aspect-ratio:4/3; background:var(--paper); position:relative; overflow:hidden; border-bottom:1px solid var(--line); }
.fcard .thumb img{ width:100%; height:100%; object-fit:cover; }
.fcard .thumb .noimg{ display:flex; align-items:center; justify-content:center; height:100%; color:var(--line); font-size:11px; }
.wish-btn{
  position:absolute; top:8px; right:8px; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,0.92);
  display:flex; align-items:center; justify-content:center; border:none; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,0.15); z-index:2;
  transition:transform .12s ease;
}
.wish-btn:hover{ transform:scale(1.08); }
.wish-btn svg{ width:16px; height:16px; color:var(--steel); transition:color .12s ease, fill .12s ease; }
.wish-btn.active svg{ color:var(--red); fill:var(--red); }
.fcard .fbody{ padding:12px 13px 14px; }
.fcard .fname{ font-family:'Space Grotesk'; font-size:13px; font-weight:700; line-height:1.3; margin-bottom:6px; min-height:34px; }
.fcard .fprice{ font-family:'Space Grotesk'; font-size:16px; font-weight:700; color:var(--navy); }
.fcard .fstock{ font-size:10.5px; color:var(--green); margin:4px 0 10px; }
.fcard .fbtn{ display:block; text-align:center; background:var(--amber); color:#fff; font-size:12px; font-weight:700; padding:9px; border-radius:7px; }
.fcard .fbtn:hover{ background:var(--amber-ink); }

/* ---------------- floating WhatsApp button ---------------- */
.whatsapp-float{
  position:fixed; bottom:24px; right:24px; width:56px; height:56px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center; z-index:80;
  box-shadow:0 8px 22px rgba(37,211,102,0.4); transition:transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(37,211,102,0.5); }
.whatsapp-float svg{ width:28px; height:28px; color:#fff; }

/* ---------------- chat widget (product assistant) ---------------- */
.chat-float{
  position:fixed; bottom:92px; right:24px; width:56px; height:56px; border-radius:50%;
  background:var(--navy); border:none; display:flex; align-items:center; justify-content:center; z-index:81;
  box-shadow:0 8px 22px rgba(27,42,74,0.4); transition:transform .15s ease, box-shadow .15s ease; cursor:pointer;
}
.chat-float:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(27,42,74,0.5); }
.chat-float svg{ width:26px; height:26px; color:var(--amber); }
.chat-float .chat-badge{
  position:absolute; top:-3px; right:-3px; width:14px; height:14px; border-radius:50%;
  background:var(--red); border:2px solid #fff;
}

.chat-panel{
  position:fixed; bottom:158px; right:24px; width:340px; max-width:calc(100vw - 32px); height:460px; max-height:calc(100vh - 190px);
  background:var(--panel); border-radius:14px; box-shadow:0 20px 50px rgba(15,28,46,0.28); z-index:82;
  display:flex; flex-direction:column; overflow:hidden;
  opacity:0; visibility:hidden; transform:translateY(12px) scale(0.98); transition:opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.chat-panel.show{ opacity:1; visibility:visible; transform:translateY(0) scale(1); transition:opacity .18s ease, transform .18s ease, visibility 0s linear 0s; }
.chat-head{ background:var(--navy); color:#fff; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
.chat-head .ct{ font-family:'Space Grotesk'; font-size:14px; font-weight:700; }
.chat-head .cs{ font-size:11px; color:rgba(255,255,255,0.6); margin-top:1px; }
.chat-head button{ background:rgba(255,255,255,0.1); border:none; width:26px; height:26px; border-radius:50%; color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.chat-head button:hover{ background:rgba(255,255,255,0.2); }
.chat-body{ flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; background:var(--paper); }
.chat-msg{ max-width:85%; font-size:12.5px; line-height:1.55; padding:9px 12px; border-radius:10px; white-space:pre-line; }
.chat-msg.bot{ background:var(--panel); border:1px solid var(--line); color:var(--ink); align-self:flex-start; border-bottom-left-radius:3px; }
.chat-msg.user{ background:var(--navy); color:#fff; align-self:flex-end; border-bottom-right-radius:3px; }
.chat-typing{ display:flex; gap:4px; align-self:flex-start; padding:10px 12px; }
.chat-typing span{ width:5px; height:5px; border-radius:50%; background:var(--steel); animation:chatDot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2){ animation-delay:.15s; }
.chat-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes chatDot{ 0%,60%,100%{ opacity:.3; transform:translateY(0); } 30%{ opacity:1; transform:translateY(-3px); } }
.chat-suggestions{ display:flex; flex-wrap:wrap; gap:6px; align-self:flex-start; max-width:100%; }
.chat-chip{ background:var(--panel); border:1px solid var(--amber); color:var(--amber-ink); font-size:11px; font-weight:600; padding:6px 11px; border-radius:14px; cursor:pointer; }
.chat-chip:hover{ background:var(--amber); color:#fff; }
.chat-pcards{ display:flex; flex-direction:column; gap:8px; align-self:flex-start; width:100%; }
.chat-pcard{ display:flex; gap:10px; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:8px; text-decoration:none; }
.chat-pcard:hover{ border-color:var(--amber); }
.chat-pcard .cpimg{ width:46px; height:46px; border-radius:6px; background:var(--paper); flex-shrink:0; object-fit:cover; }
.chat-pcard .cpinfo{ min-width:0; }
.chat-pcard .cpname{ font-size:11.5px; font-weight:700; color:var(--ink); line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-pcard .cpmeta{ font-size:10.5px; color:var(--steel); margin-top:2px; }
.chat-pcard .cpprice{ font-family:'Space Grotesk'; font-size:12.5px; font-weight:700; color:var(--amber-ink); margin-top:2px; }
.chat-input-row{ display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); background:var(--panel); flex-shrink:0; }
.chat-input-row input{ flex:1; border:1px solid var(--line); border-radius:20px; padding:9px 14px; font-size:12.5px; outline:none; background:var(--paper); }
.chat-input-row input:focus{ border-color:var(--amber); }
.chat-input-row button{ width:36px; height:36px; border-radius:50%; background:var(--amber); border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
.chat-input-row button:hover{ background:var(--amber-ink); }
.chat-input-row button svg{ width:16px; height:16px; color:#fff; }

@media (max-width: 480px){
  .chat-panel{ width:calc(100vw - 24px); right:12px; bottom:150px; height:min(460px, calc(100vh - 180px)); }
  .chat-float{ right:16px; bottom:88px; }
}

.hero-stats{ display:flex; gap:0; flex-wrap:wrap; border-top:1px solid var(--line-dark); border-bottom:1px solid var(--line-dark); margin-top:10px; }
.hero-stats .hs{ padding:16px 26px 16px 0; margin-right:26px; border-right:1px solid var(--line-dark); }
.hero-stats .hs:last-child{ border-right:none; }
.hero-stats .num{ font-family:'Space Grotesk'; font-size:24px; font-weight:700; color:var(--amber); }
.hero-stats .lbl{ font-size:11px; color:rgba(255,255,255,0.55); text-transform:uppercase; letter-spacing:0.6px; margin-top:2px; }

/* ---------------- layout ---------------- */
.page{ padding:28px 0 70px; }
.layout{ display:grid; grid-template-columns:230px 1fr; gap:26px; align-items:start; }
.filters{ background:var(--panel); border:1px solid var(--line); border-radius:10px; overflow:hidden; position:sticky; top:96px; }
.filters-title{ background:var(--navy); color:#fff; font-family:'Space Grotesk'; font-weight:700; font-size:13px; letter-spacing:0.4px; text-transform:uppercase; padding:14px 16px; }
.filter-group{ border-bottom:1px solid var(--line); }
.filter-group:last-child{ border-bottom:none; }
.filter-group summary{
  display:flex; align-items:center; justify-content:space-between; cursor:pointer; list-style:none;
  font-family:'Space Grotesk'; font-size:12.5px; font-weight:700; letter-spacing:0.3px; text-transform:uppercase;
  color:var(--ink); padding:13px 16px;
}
.filter-group summary::-webkit-details-marker{ display:none; }
.filter-group summary::after{ content:'+'; font-size:16px; font-weight:400; color:var(--steel); line-height:1; }
.filter-group[open] summary::after{ content:'\2212'; }
.filter-group[open] summary{ border-bottom:1px solid var(--line); }
.filter-body{ padding:6px 16px 14px; }
.filter-opt{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--steel); padding:6px 0; cursor:pointer; }
.filter-opt input{ accent-color:var(--amber); }
.filter-opt.active-label{ color:var(--ink); font-weight:600; }

.results-bar{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; gap:10px; }
.results-bar .count{ font-size:13px; color:var(--steel); }
.results-controls{ display:flex; align-items:center; gap:14px; margin-left:auto; }
.sort-control{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--steel); font-weight:600; }
.sort-control select{ background:var(--panel); border:1px solid var(--line); border-radius:7px; padding:8px 10px; font-size:13px; color:var(--ink); }
.view-toggle{ display:flex; border:1px solid var(--line); border-radius:7px; overflow:hidden; }
.view-toggle button{ width:34px; height:32px; display:flex; align-items:center; justify-content:center; background:var(--panel); border:none; color:var(--steel); border-right:1px solid var(--line); }
.view-toggle button:last-child{ border-right:none; }
.view-toggle button svg{ width:16px; height:16px; }
.view-toggle button.active{ background:var(--navy); color:#fff; }

/* list view for product grid */
.grid.list-view{ grid-template-columns:1fr; }
.grid.list-view .pcard{ flex-direction:row; }
.grid.list-view .pcard .thumb{ width:200px; aspect-ratio:auto; flex-shrink:0; border-bottom:none; border-right:1px solid var(--line); }
.grid.list-view .pcard .body{ flex:1; }
@media (max-width:640px){
  .grid.list-view .pcard{ flex-direction:column; }
  .grid.list-view .pcard .thumb{ width:100%; aspect-ratio:4/3; border-right:none; border-bottom:1px solid var(--line); }
}

/* ---------------- product grid & card ---------------- */
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:16px; }
.pcard{ background:var(--panel); border:1px solid var(--line); border-radius:10px; overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .15s ease, transform .15s ease; }
.pcard:hover{ box-shadow:0 10px 24px rgba(15,28,46,0.1); transform:translateY(-2px); }
.pcard .thumb{ position:relative; aspect-ratio:4/3; background:var(--paper); border-bottom:1px solid var(--line); overflow:hidden; }
.pcard .thumb img{ width:100%; height:100%; object-fit:cover; }
.pcard .thumb .noimg{ display:flex; align-items:center; justify-content:center; height:100%; color:var(--line); font-size:11px; }

/* the signature "asset tag" stamp */
.tag-stamp{
  position:absolute; top:10px; left:-6px; font-family:'IBM Plex Mono'; font-size:10px; font-weight:600;
  letter-spacing:0.5px; padding:4px 10px 4px 12px; color:#fff; text-transform:uppercase;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
  box-shadow:0 2px 6px rgba(0,0,0,0.18);
}
.tag-stamp.new{ background:var(--green); }
.tag-stamp.grade-a{ background:#2E7D9E; }
.tag-stamp.grade-b{ background:var(--amber); color:var(--navy); }
.tag-stamp.grade-c{ background:var(--red); }

.pcard .body{ padding:12px 14px 14px; display:flex; flex-direction:column; gap:6px; flex:1; }
.pcard .model{ font-family:'IBM Plex Mono'; font-size:10.5px; color:var(--steel); letter-spacing:0.3px; }
.pcard .name{ font-family:'Space Grotesk'; font-size:14.5px; font-weight:700; line-height:1.3; }
.pcard .tagline{ font-size:12px; color:var(--amber-ink); font-style:italic; line-height:1.4; }
.pcard .specs{ font-size:12px; color:var(--steel); line-height:1.5; min-height:32px; }
.pcard .foot{ display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:8px; }
.pcard .price{ font-family:'Space Grotesk'; font-size:17px; font-weight:700; color:var(--navy); }
.pcard .stock{ font-size:11px; display:flex; align-items:center; gap:5px; }
.pcard .stock .dot{ width:6px; height:6px; border-radius:50%; }
.stock.in .dot{ background:var(--green); } .stock.in{ color:var(--green); }
.stock.low .dot{ background:var(--amber); } .stock.low{ color:var(--amber-ink); }
.stock.out .dot{ background:var(--red); } .stock.out{ color:var(--red); }
.pcard .view-btn{ display:block; text-align:center; background:var(--navy); color:#fff; font-size:12.5px; font-weight:600; padding:9px; border-radius:7px; margin-top:10px; }
.pcard .view-btn:hover{ background:var(--navy-2); }

.empty-state{ text-align:center; padding:70px 20px; color:var(--steel); }
.empty-state .big{ font-family:'Space Grotesk'; font-size:17px; color:var(--ink); margin-bottom:6px; }

.pagination{ display:flex; justify-content:center; gap:6px; margin-top:30px; }
.pagination button{ background:var(--panel); border:1px solid var(--line); border-radius:7px; padding:8px 13px; font-size:13px; color:var(--ink); }
.pagination button.active{ background:var(--navy); color:#fff; border-color:var(--navy); }
.pagination button:disabled{ opacity:0.4; cursor:not-allowed; }

/* ---------------- product detail ---------------- */
.breadcrumb{ font-size:12.5px; color:var(--steel); margin-bottom:18px; }
.breadcrumb a:hover{ color:var(--amber-ink); text-decoration:underline; }
.detail-grid{ display:grid; grid-template-columns:1fr 1fr; gap:34px; align-items:start; }
.gallery .main{ background:var(--panel); border:1px solid var(--line); border-radius:10px; aspect-ratio:4/3; overflow:hidden; position:relative; }
.gallery .main img{ width:100%; height:100%; object-fit:cover; }
.gallery .thumbs{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.gallery .thumbs img{ width:64px; height:64px; object-fit:cover; border-radius:6px; border:2px solid var(--line); cursor:pointer; }
.gallery .thumbs img.active{ border-color:var(--amber); }

.datasheet .model-line{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--steel); margin-bottom:6px; }
.datasheet h1{ font-family:'Space Grotesk'; font-size:24px; margin-bottom:10px; }
.datasheet .detail-tagline{ font-size:14.5px; color:var(--amber-ink); font-style:italic; margin:-4px 0 12px; }
.badges{ display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.badge{ font-family:'IBM Plex Mono'; font-size:11px; font-weight:600; padding:5px 11px; border-radius:5px; text-transform:uppercase; letter-spacing:0.4px; }
.badge.new{ background:rgba(46,158,108,0.12); color:var(--green); }
.badge.grade-a{ background:rgba(46,125,158,0.12); color:#2E7D9E; }
.badge.grade-b{ background:rgba(226,135,30,0.14); color:var(--amber-ink); }
.badge.grade-c{ background:rgba(196,72,63,0.12); color:var(--red); }
.badge.stock{ background:var(--paper); color:var(--steel); border:1px solid var(--line); }

.price-block{ background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:18px 20px; margin-bottom:18px; }
.price-block .price{ font-family:'Space Grotesk'; font-size:30px; font-weight:700; color:var(--navy); }
.price-block .gst{ font-size:11.5px; color:var(--steel); margin-top:2px; }
.enquire-row{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.enquire-row a{ flex:1; min-width:130px; text-align:center; padding:11px; border-radius:8px; font-size:13px; font-weight:700; }
.enquire-row .call{ background:var(--navy); color:#fff; }
.enquire-row .whatsapp{ background:#25D366; color:#fff; }
.enquire-row .email{ background:var(--panel); border:1px solid var(--line); color:var(--ink); }

.spec-table{ background:var(--panel); border:1px solid var(--line); border-radius:10px; overflow:hidden; margin-top:22px; }
.spec-table .row{ display:grid; grid-template-columns:170px 1fr; border-bottom:1px solid var(--line); }
.spec-table .row:last-child{ border-bottom:none; }
.spec-table .k{ background:var(--paper); font-size:12px; color:var(--steel); padding:11px 14px; font-family:'IBM Plex Mono'; }
.spec-table .v{ padding:11px 14px; font-size:13px; }
.section-title{ font-family:'Space Grotesk'; font-size:15px; font-weight:700; margin:22px 0 0; }

/* ---------------- services / company-info cards (shared .svc styling) ---------------- */
.services{ background:var(--paper); padding:54px 0; border-top:1px solid var(--line); }
.services .eyebrow{ font-family:'IBM Plex Mono'; font-size:11.5px; letter-spacing:2px; text-transform:uppercase; color:var(--amber-ink); margin-bottom:10px; }
.services h2{ font-family:'Space Grotesk'; font-size:26px; font-weight:700; color:var(--ink); margin-bottom:6px; }
.services .sub{ font-size:13px; color:var(--steel); margin-bottom:26px; }
.services-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.svc{
  background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:16px 14px; text-align:left;
  cursor:pointer; width:100%; font-family:inherit; position:relative; overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.svc:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(15,28,46,0.1); border-color:var(--amber); }
.svc-icon{
  width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; margin-bottom:14px;
  background:linear-gradient(135deg, var(--amber), #D4AF5A); box-shadow:0 5px 12px rgba(255,122,26,0.28);
}
.svc-icon svg{ width:21px; height:21px; color:var(--navy); }
.svc-title{ font-family:'Space Grotesk'; font-size:14.5px; font-weight:700; color:var(--ink); margin-bottom:6px; }
.svc-desc{ font-size:12.5px; color:var(--steel); line-height:1.5; margin-bottom:10px; }
.svc-more{ font-size:11.5px; font-weight:700; color:var(--amber-ink); display:flex; align-items:center; gap:4px; }
.svc-more svg{ width:13px; height:13px; transition:transform .15s ease; }
.svc:hover .svc-more svg{ transform:translateX(3px); }
@media (max-width: 900px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 560px){ .services-grid{ grid-template-columns:1fr; } }

/* company-info section reuses .services/.svc styling above, with a navy backdrop */
.company-info{ background:var(--navy); padding:20px 0; }
.company-info .eyebrow{ font-family:'IBM Plex Mono'; font-size:11.5px; letter-spacing:2px; text-transform:uppercase; color:var(--amber); margin-bottom:10px; }
.company-info h2{ font-family:'Space Grotesk'; font-size:26px; font-weight:700; color:#fff; margin-bottom:6px; }
.company-info .sub{ font-size:13px; color:rgba(255,255,255,0.6); margin-bottom:26px; }
.company-info .svc{ background:rgba(255,255,255,0.05); border-color:var(--line-dark); }
.company-info .svc:hover{ border-color:var(--amber); background:rgba(255,255,255,0.08); }
.company-info .svc-title{ color:#fff; }
.company-info .svc-desc{ color:rgba(255,255,255,0.6); }
.company-info .services-grid{ grid-template-columns:repeat(3,1fr); }
@media (max-width: 700px){ .company-info .services-grid{ grid-template-columns:1fr; } }

/* ---------------- service detail modal ---------------- */
.svc-overlay{
  position:fixed; inset:0; background:rgba(15,22,35,0.6); backdrop-filter:blur(2px);
  display:flex; align-items:center; justify-content:center; padding:20px; z-index:120;
  opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s ease, visibility 0s linear .18s;
}
.svc-overlay.show{ opacity:1; visibility:visible; pointer-events:auto; transition:opacity .18s ease, visibility 0s linear 0s; }
.svc-modal{
  background:var(--panel); border-radius:14px; width:100%; max-width:440px; padding:28px;
  transform:translateY(10px) scale(0.98); transition:transform .18s ease; position:relative;
}
.svc-overlay.show .svc-modal{ transform:translateY(0) scale(1); }
.svc-modal-close{
  position:absolute; top:14px; right:14px; width:28px; height:28px; border-radius:50%; border:none;
  background:var(--paper); display:flex; align-items:center; justify-content:center; color:var(--steel);
}
.svc-modal-close:hover{ background:var(--line); color:var(--ink); }
.svc-modal .svc-icon{ margin-bottom:16px; }
.svc-modal h3{ font-family:'Space Grotesk'; font-size:19px; font-weight:700; color:var(--ink); margin-bottom:12px; }
.svc-modal p{ font-size:13.5px; color:var(--steel); line-height:1.75; white-space:pre-line; max-height:60vh; overflow-y:auto; }

/* ---------------- footer ---------------- */
.site-footer{ background:var(--navy); color:rgba(255,255,255,0.7); padding:44px 0 24px; margin-top:50px; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.1fr; gap:30px; margin-bottom:26px; }
.footer-grid h4{ color:#fff; font-family:'Space Grotesk'; font-size:13.5px; margin-bottom:12px; }
.footer-grid p, .footer-grid a{ font-size:12.5px; line-height:2; }
.footer-grid a:hover{ color:#fff; }
.footer-social{ display:flex; gap:10px; margin-top:14px; }
.footer-social a{ width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; border:1px solid var(--line-dark); }
.footer-social a:hover{ background:var(--amber); border-color:var(--amber); }
.footer-social svg{ width:15px; height:15px; }
.footer-hours{ font-size:12px; color:rgba(255,255,255,0.55); margin-top:6px; }
.footer-bottom{ border-top:1px solid var(--line-dark); padding-top:18px; font-size:11.5px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }

@media (max-width: 860px){
  .layout{ grid-template-columns:1fr; }
  .filters{ position:static; }
  .detail-grid{ grid-template-columns:1fr; }
  .site-header .bar{ flex-wrap:wrap; }
  .site-search{ order:3; max-width:none; width:100%; }
  .footer-grid{ grid-template-columns:1fr; }
}

/* ---------------- mobile fixes ---------------- */
@media (max-width: 640px){
  .container{ padding:0 14px; }

  /* header no longer overflows / squeezes on phones */
  .site-header .bar{ gap:10px 12px; padding:10px 0; }
  .brand{ gap:8px; }
  .brand .mark-img{ height:30px; }
  .brand .brand-logo-img{ height:42px; }
  .brand .name{ font-size:14.5px; }
  .brand .tag{ display:none; }
  .header-actions{ margin-left:0; }
  .link-muted{ font-size:11.5px; }
  .site-search{ order:3; width:100%; max-width:none; padding:8px 11px; }
  .site-search input{ font-size:13px; }
  .cat-nav .row{ padding:8px 0; }

  .top-bar .bar{ font-size:11px; gap:8px 12px; }
  .top-bar .tb-left{ gap:10px; }

  /* banner */
  .banner-slide{ padding:12px 0 10px; }
  .banner-slide .eyebrow{ font-size:10.5px; padding:4px 10px; }
  .banner-slide p{ font-size:13.5px; margin-bottom:18px; }
  .banner-cta{ padding:10px 20px; font-size:13px; }

  .hero-stats-strip .hs, .hero-stats .hs{ padding:12px 16px 12px 0; margin-right:16px; }
  .hero-stats-strip .num, .hero-stats .num{ font-size:18px; }

  /* denser 2-column product grids on phones */
  .grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .pcard .body{ padding:10px; }
  .pcard .name{ font-size:13px; }
  .pcard .price{ font-size:15px; }
  .pcard .specs{ font-size:11px; min-height:auto; }
  .pcard .foot{ flex-wrap:wrap; gap:6px; }

  .featured-row{ gap:10px; }
  .fcard{ min-width:150px; max-width:150px; }
  .fcard .fbody{ padding:9px 10px 11px; }
  .fcard .fname{ font-size:12px; min-height:auto; }
  .fcard .fprice{ font-size:14px; }

  .services-grid{ grid-template-columns:1fr; }

  .results-bar{ margin-bottom:12px; }
  .results-controls{ width:100%; justify-content:space-between; margin-left:0; }

  /* product detail page */
  .datasheet h1{ font-size:19px; }
  .price-block .price{ font-size:24px; }
  .enquire-row a{ min-width:100%; }
  .spec-table .row{ grid-template-columns:1fr; }
  .spec-table .k{ padding:8px 12px 2px; }
  .spec-table .v{ padding:2px 12px 10px; }
  .gallery .main{ aspect-ratio:1/1; }

  .whatsapp-float{ width:48px; height:48px; bottom:16px; right:16px; }
  .whatsapp-float svg{ width:24px; height:24px; }
  .chat-float{ width:48px; height:48px; bottom:74px; right:16px; }
  .chat-float svg{ width:22px; height:22px; }

  .footer-grid{ gap:22px; margin-bottom:18px; }
  .footer-bottom{ font-size:11px; }
}

@media (max-width: 380px){
  .grid{ grid-template-columns:1fr; }
  .fcard{ min-width:170px; max-width:170px; }
}

/* ---------------- chatbot widget (welcome/category/chat flow) ----------------
   Additive only — styles the elements created by /js/chatbot.js
   (IDs: chatbotToggle, chatbotPanel, chatbotClose, chatbotRestart,
   chatbotForm, chatbotInput, chatbotMessages). Nothing above this is
   modified. */
.chat-panel.open{
  opacity:1; visibility:visible; transform:translateY(0) scale(1);
  transition:opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}
.cb-row{ display:flex; }
.cb-row-assistant{ justify-content:flex-start; }
.cb-row-user{ justify-content:flex-end; }
.cb-bubble{ max-width:85%; font-size:12.5px; line-height:1.55; padding:9px 12px; border-radius:10px; white-space:pre-line; }
.cb-bubble-assistant{ background:var(--panel); border:1px solid var(--line); color:var(--ink); border-bottom-left-radius:3px; }
.cb-bubble-user{ background:var(--navy); color:#fff; border-bottom-right-radius:3px; }
.cb-typing{ display:flex; gap:4px; padding:2px 0; }
.cb-typing span{ width:5px; height:5px; border-radius:50%; background:var(--steel); display:inline-block; animation:chatDot 1.2s infinite ease-in-out; }
.cb-typing span:nth-child(2){ animation-delay:.15s; }
.cb-typing span:nth-child(3){ animation-delay:.3s; }
.cb-chips{ display:flex; flex-wrap:wrap; gap:6px; max-width:100%; }
.cb-chip{ background:var(--panel); border:1px solid var(--amber); color:var(--amber-ink); font-size:11px; font-weight:600; padding:6px 11px; border-radius:14px; cursor:pointer; }
.cb-chip:hover{ background:var(--amber); color:#fff; }
.cb-chip:disabled{ opacity:.55; cursor:default; }
.cb-chips-picked .cb-chip{ opacity:.55; }
.cb-controls{ padding:8px 14px; border-top:1px solid var(--line); background:var(--panel); flex-shrink:0; }
.cb-pill{ background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:6px 12px; font-size:11.5px; font-weight:600; color:var(--ink); cursor:pointer; }
.cb-pill:hover{ border-color:var(--amber); color:var(--amber-ink); }

@media (max-width: 480px){
  .chat-panel.open{ opacity:1; visibility:visible; }
}
