/* WaveHarbour - thewaveharbour.com
 *
 * The palette, type and component shapes come from the WaveHarbor mockup Sheila sent,
 * hosted at cn.engthye.com. Kept deliberately close to it so the real site is
 * recognisably the thing that was approved.
 *
 * What is NOT carried over from the mockup: it is a fixed 1200px desktop layout with
 * five-across product grids and no media queries at all, so on a phone it scrolls
 * sideways. Everything below the component definitions is new. */

*{box-sizing:border-box;margin:0;padding:0;}

:root{
  --navy:#0B1E33;
  --navy2:#13314F;
  --teal:#1A7A6A;
  --teal-l:#E4F2EF;
  --amber:#D98C2B;
  --amber-l:#FBF0DC;
  --red:#C0392B;
  --paper:#F4F5F7;
  --card:#FFFFFF;
  --border:#E0E2E7;
  --ink:#1A2533;
  --ink2:#5B6470;
  --ink3:#8A929C;
  --wrap:1200px;
}

body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  background:var(--paper);color:var(--ink);font-size:13px;
  -webkit-text-size-adjust:100%;
}

/* Chinese needs a font stack that actually has the glyphs, or the browser falls back
 * per-character and the page renders in two different typefaces at once. */
html[lang^="zh"] body,
html[lang^="zh"] .hero-title,
html[lang^="zh"] .sec-title,
html[lang^="zh"] .page-title,
html[lang^="zh"] .logo-text{
  font-family:'Inter','Noto Sans SC','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Heiti SC',sans-serif;
}

a{color:var(--teal);text-decoration:none;}
a:hover{text-decoration:underline;}
img{max-width:100%;height:auto;}
button,input,select,textarea{font-family:inherit;font-size:inherit;}

/* Visible focus ring. The mockup sets outline:none on every field, which leaves a
 * keyboard user with no idea where they are. */
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--teal);outline-offset:1px;
}

.skip-link{position:absolute;left:-9999px;}
.skip-link:focus{left:8px;top:8px;z-index:500;background:#fff;padding:8px 12px;border-radius:4px;}

/* ── UTILITY BAR ── */
.util-bar{background:var(--navy);color:#A9C0D1;font-size:11.5px;padding:5px 0;}
.util-inner{max-width:var(--wrap);margin:0 auto;padding:0 16px;display:flex;
  justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;}
.util-inner a{color:#A9C0D1;margin-left:14px;}
.util-inner a:hover{color:#fff;}
.util-left{display:flex;gap:14px;align-items:center;flex-wrap:wrap;}
.util-badge{background:var(--amber);color:#3A2304;padding:2px 8px;border-radius:3px;
  font-size:10.5px;font-weight:600;}
.util-right{display:flex;align-items:center;flex-wrap:wrap;}

.lang-switch{display:inline-flex;margin-left:14px;border:1px solid rgba(255,255,255,.22);
  border-radius:3px;overflow:hidden;vertical-align:middle;}
.lang-opt{background:none;border:none;color:#A9C0D1;font-size:11px;padding:3px 9px;
  cursor:pointer;}
.lang-opt.on{background:rgba(255,255,255,.16);color:#fff;font-weight:600;}

/* ── HEADER ── */
.header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;
  z-index:100;box-shadow:0 1px 4px rgba(0,0,0,.06);}
.header-inner{max-width:var(--wrap);margin:0 auto;padding:10px 16px;display:flex;
  align-items:center;gap:16px;}
.logo{display:flex;align-items:center;gap:10px;flex:none;min-width:170px;}
.logo:hover{text-decoration:none;}
.logo-icon{width:36px;height:36px;flex:none;}
.logo-text{font-weight:700;font-size:18px;color:var(--navy);line-height:1.15;
  letter-spacing:-.2px;}
.logo-text small{display:block;font-weight:400;font-size:9.5px;letter-spacing:1.4px;
  text-transform:uppercase;color:var(--ink3);}

.search-wrap{flex:1;display:flex;border:2px solid var(--navy);border-radius:4px;
  min-width:0;position:relative;}
.search-wrap select{background:var(--navy);color:#fff;border:none;padding:0 10px;
  font-size:12px;cursor:pointer;max-width:150px;border-radius:2px 0 0 2px;}
.search-wrap input{flex:1;padding:9px 12px;border:none;font-size:13px;min-width:0;}
.search-wrap button{background:var(--navy);color:#fff;border:none;padding:0 20px;
  font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;
  border-radius:0 2px 2px 0;}

/* ── SEARCH AUTOSUGGEST ──
 * The panel hangs off .search-wrap, which therefore cannot keep overflow:hidden - that
 * was clipping the dropdown to the height of the input. The rounded corners it was
 * there for are reproduced on the children instead. */
.suggest{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:300;
  background:#fff;border:1px solid var(--border);border-radius:6px;
  box-shadow:0 8px 28px rgba(11,30,51,.16);overflow:hidden;max-height:62vh;
  overflow-y:auto;text-align:left;}
.sg-head{padding:7px 12px;font-size:10.5px;font-weight:600;letter-spacing:.6px;
  text-transform:uppercase;color:var(--ink3);background:var(--paper);
  border-bottom:1px solid var(--border);}
.sg-row{display:flex;align-items:center;gap:10px;padding:8px 12px;
  border-bottom:1px solid var(--border);color:var(--ink);text-decoration:none;}
.sg-row:last-child{border-bottom:none;}
/* .on is set by the keyboard handler; :hover alone would leave arrow-key users with no
   visible position. */
.sg-row:hover,.sg-row.on{background:var(--teal-l);text-decoration:none;}
.sg-img{width:36px;height:36px;object-fit:contain;flex:none;background:var(--paper);
  border-radius:3px;mix-blend-mode:multiply;}
.sg-ico{width:36px;height:36px;flex:none;display:flex;align-items:center;
  justify-content:center;background:var(--paper);border-radius:3px;color:var(--ink3);
  font-size:14px;}
.sg-noimg{font-size:10px;letter-spacing:.5px;}
.sg-main{flex:1;min-width:0;}
.sg-name{display:block;font-size:12.5px;line-height:1.35;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.sg-name b{color:var(--teal);font-weight:700;}
.sg-sub{display:block;font-size:10.5px;color:var(--ink3);margin-top:1px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-variant-numeric:tabular-nums;}
.sg-price{flex:none;font-size:12.5px;font-weight:700;color:var(--red);
  font-variant-numeric:tabular-nums;}
.sg-locked{flex:none;font-size:10.5px;color:var(--teal);}
.sg-meta{flex:none;font-size:11px;color:var(--ink3);font-variant-numeric:tabular-nums;}
.sg-empty{padding:14px 12px;font-size:12.5px;color:var(--ink2);text-align:center;}
.sg-all{background:#FAFBFC;font-weight:600;}
.sg-all .sg-name{color:var(--navy);}

.header-actions{display:flex;gap:6px;flex:none;}
.hbtn{display:flex;flex-direction:column;align-items:center;padding:6px 12px;
  border-radius:4px;background:none;border:1px solid var(--border);cursor:pointer;
  color:var(--navy);font-size:10.5px;gap:2px;white-space:nowrap;}
.hbtn:hover{text-decoration:none;border-color:var(--teal);color:var(--teal);}
.hbtn-icon{font-size:16px;}
.hbtn-rfq{background:var(--amber);border-color:var(--amber);color:#3A2304;font-weight:600;}
.hbtn-rfq:hover{background:#C07820;border-color:#C07820;color:#3A2304;}

/* ── MAIN NAV ── */
.mainnav{background:var(--navy2);color:#fff;}
.mainnav-inner{max-width:var(--wrap);margin:0 auto;padding:0 16px;display:flex;
  overflow-x:auto;}
.navtab{padding:10px 18px;font-size:13px;font-weight:500;cursor:pointer;color:#B0C4D4;
  border-bottom:2px solid transparent;background:none;border-top:none;border-left:none;
  border-right:none;white-space:nowrap;}
.navtab:hover{color:#fff;text-decoration:none;border-bottom-color:rgba(217,140,43,.5);}
.navtab.active{color:#fff;border-bottom-color:var(--amber);}

/* ── LAYOUT ── */
.page-wrap{max-width:var(--wrap);margin:0 auto;padding:14px 16px;display:flex;
  gap:14px;align-items:flex-start;}
.page-col{max-width:var(--wrap);margin:0 auto;padding:14px 16px;}
.main-content{flex:1;min-width:0;}
.page-title{font-size:20px;font-weight:700;color:var(--navy);margin-bottom:4px;}
.page-sub{font-size:12.5px;color:var(--ink2);margin-bottom:14px;}
.crumb{font-size:11.5px;color:var(--ink3);margin-bottom:8px;}
.crumb a{color:var(--ink2);}

/* ── CATEGORY SIDEBAR ──
 * A <details> so the same markup is a fixed rail on desktop and a collapsible bar on a
 * phone. See wh_category_sidebar() for why it is not pure CSS. */
.cat-sidebar{width:190px;flex:none;background:#fff;border:1px solid var(--border);
  border-radius:4px;overflow:hidden;}
.cat-head{padding:10px 14px;font-weight:600;font-size:12px;background:var(--navy);
  color:#fff;letter-spacing:.3px;display:flex;align-items:center;gap:8px;
  list-style:none;cursor:default;}
/* The default disclosure triangle is removed in both engines; a chevron is drawn
   only on mobile, where the thing is actually tappable. */
.cat-head::-webkit-details-marker{display:none;}
.cat-head::marker{content:'';}
.cat-head-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.cat-head-hint{display:none;}
.cat-item{padding:8px 14px;border-bottom:1px solid var(--border);display:flex;
  justify-content:space-between;align-items:center;gap:6px;color:#2A3A4A;font-size:12.5px;}
.cat-item:hover,.cat-item.on{background:var(--teal-l);color:var(--teal);
  font-weight:500;text-decoration:none;}
.cat-item .ct{color:var(--ink3);font-size:11px;flex:none;}
.cat-item:last-child{border-bottom:none;}
.cat-name{min-width:0;overflow:hidden;text-overflow:ellipsis;}

/* ── HERO ── */
.hero{background:linear-gradient(135deg,var(--navy) 0%,var(--navy2) 60%,#1A4A7A 100%);
  border-radius:6px;padding:28px 32px;margin-bottom:14px;display:flex;align-items:center;
  justify-content:space-between;gap:20px;position:relative;overflow:hidden;}
.hero::after{content:'';position:absolute;right:-30px;top:-30px;width:220px;height:220px;
  border-radius:50%;background:rgba(255,255,255,.03);}
.hero-eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;
  color:var(--amber);margin-bottom:6px;}
.hero-title{font-size:26px;font-weight:700;color:#fff;line-height:1.25;margin-bottom:8px;
  letter-spacing:-.3px;}
.hero-sub{font-size:13px;color:#91AFC5;line-height:1.55;max-width:420px;}
.hero-btns{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap;}
.hero-btn-p{background:var(--amber);color:#3A2304;padding:9px 20px;border-radius:4px;
  font-weight:600;font-size:13px;border:none;cursor:pointer;display:inline-block;}
.hero-btn-p:hover{background:#C07820;text-decoration:none;color:#3A2304;}
.hero-btn-s{background:rgba(255,255,255,.1);color:#fff;padding:9px 20px;border-radius:4px;
  font-weight:500;font-size:13px;border:1px solid rgba(255,255,255,.2);cursor:pointer;
  display:inline-block;}
.hero-btn-s:hover{background:rgba(255,255,255,.18);text-decoration:none;color:#fff;}
.hero-right{flex:none;text-align:center;}
.hero-mark{font-size:11px;color:#91AFC5;margin-top:4px;letter-spacing:.5px;}

/* ── QUICK CATS ── */
.quickcats{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:14px;}
.qcat{background:#fff;border:1px solid var(--border);border-radius:6px;padding:10px 6px;
  text-align:center;font-size:11.5px;color:#2A3A4A;display:block;}
.qcat:hover{border-color:var(--teal);color:var(--teal);text-decoration:none;}
.qcat-icon{font-size:20px;margin-bottom:4px;display:block;}

/* ── SECTION BLOCK ── */
.sec-block{background:#fff;border:1px solid var(--border);border-radius:6px;
  margin-bottom:14px;overflow:hidden;}
.sec-head{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;
  gap:10px;border-bottom:1px solid var(--border);flex-wrap:wrap;}
.sec-title{font-size:15px;font-weight:600;color:var(--navy);}
.sec-more{font-size:12px;color:var(--teal);}

/* ── PRODUCT GRID ──
 * auto-fill rather than a fixed 5 columns, so the grid reflows instead of overflowing. */
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));}
.prod-tile{padding:12px;border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);display:flex;flex-direction:column;}
.prod-tile:hover{background:var(--teal-l);text-decoration:none;}
.prod-img{height:110px;background:var(--paper);border-radius:4px;display:flex;
  align-items:center;justify-content:center;margin-bottom:8px;font-size:9px;
  color:var(--ink3);text-align:center;line-height:1.4;overflow:hidden;}
.prod-img img{max-height:110px;width:auto;object-fit:contain;mix-blend-mode:multiply;}
.prod-ph{font-size:9px;color:var(--ink3);letter-spacing:.5px;line-height:1.5;}
.prod-name{font-size:12px;color:var(--ink);line-height:1.4;margin-bottom:4px;
  min-height:34px;}
.prod-impa{font-size:10px;color:var(--ink3);margin-bottom:5px;
  font-variant-numeric:tabular-nums;}
.prod-price{font-weight:700;color:var(--red);font-size:14px;margin-top:auto;}
.prod-poa{font-size:12px;color:var(--ink2);font-weight:600;margin-top:auto;}
.prod-locked{font-size:11.5px;color:var(--teal);margin-top:auto;}
.prod-add{font-size:11px;color:var(--ink3);margin-top:6px;padding-top:6px;
  border-top:1px solid var(--border);}

/* ── RIGHT SIDEBAR / WIDGETS ── */
.right-sidebar{width:210px;flex:none;}
.side-widget{background:#fff;border:1px solid var(--border);border-radius:4px;
  margin-bottom:12px;overflow:hidden;}
.sw-head{background:var(--navy);color:#fff;padding:10px 12px;font-size:12.5px;
  font-weight:600;}
.sw-head-teal{background:var(--teal);}
.sw-body{padding:12px;}
.sw-row{display:flex;justify-content:space-between;gap:8px;font-size:12px;padding:6px 0;
  border-bottom:1px solid var(--border);}
.sw-row:last-of-type{border-bottom:none;}
.sw-row span:first-child{color:var(--ink2);}
.sw-row span:last-child{font-weight:600;text-align:right;}
.sw-btn{display:block;width:100%;padding:8px;background:var(--teal);color:#fff;
  border:none;border-radius:4px;font-size:12px;font-weight:600;cursor:pointer;
  margin-top:10px;text-align:center;}
.sw-btn:hover{background:#156558;color:#fff;text-decoration:none;}
.sw-note{font-size:11.5px;color:var(--ink2);line-height:1.55;}
.sw-textarea{width:100%;height:70px;margin-top:8px;border:1px solid var(--border);
  border-radius:4px;padding:8px;font-size:11.5px;resize:vertical;}

/* ── FORMS ── */
.form-card{background:#fff;border:1px solid var(--border);border-radius:6px;
  overflow:hidden;max-width:560px;}
.form-card-wide{max-width:100%;}
.form-head{padding:14px 18px;border-bottom:1px solid var(--border);background:var(--navy);
  color:#fff;}
.form-head h1{font-size:16px;margin-bottom:3px;}
.form-head p{font-size:12px;color:#91AFC5;}
.form-body{padding:18px;}
.fgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
.field{margin-bottom:12px;}
.field label{display:block;font-size:12px;color:var(--ink2);margin-bottom:4px;
  font-weight:500;}
.field input,.field select,.field textarea{width:100%;padding:9px 12px;
  border:1px solid var(--border);border-radius:4px;font-size:13px;background:#fff;}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--teal);}
.field textarea{min-height:120px;resize:vertical;}
.field .hint{font-size:11px;color:var(--ink3);margin-top:3px;}
.btn{background:var(--navy);color:#fff;border:none;padding:10px 22px;border-radius:4px;
  font-size:13px;font-weight:600;cursor:pointer;display:inline-block;}
.btn:hover{background:var(--navy2);color:#fff;text-decoration:none;}
.btn-amber{background:var(--amber);color:#3A2304;}
.btn-amber:hover{background:#C07820;color:#3A2304;}
.btn-teal{background:var(--teal);}
.btn-teal:hover{background:#156558;}
.btn-ghost{background:#fff;color:var(--navy);border:1px solid var(--border);}
.btn-ghost:hover{background:var(--paper);color:var(--navy);}
.btn-sm{padding:6px 12px;font-size:12px;}

/* ── MESSAGES ── */
.msg{padding:11px 14px;border-radius:4px;font-size:12.5px;margin-bottom:14px;
  line-height:1.55;}
.msg-err{background:#FDECEA;color:#8E2A1E;border:1px solid #F5C6C2;}
.msg-ok{background:#D4EDDA;color:#1A6B3A;border:1px solid #B7DFC4;}
.msg-info{background var(--teal-l);background:var(--teal-l);color:#0F4A40;
  border:1px solid #BFDDD7;}
.msg-warn{background:var(--amber-l);color:#7A4E0A;border:1px solid #EBD3A8;}

/* ── TABLES ── */
.tbl{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--border);
  border-radius:6px;overflow:hidden;}
.tbl th{background:var(--paper);padding:9px 12px;text-align:left;font-size:11px;
  font-weight:600;color:var(--ink2);text-transform:uppercase;letter-spacing:.5px;
  border-bottom:1px solid var(--border);}
.tbl td{padding:9px 12px;border-bottom:1px solid var(--border);font-size:12.5px;}
.tbl tr:last-child td{border-bottom:none;}
.tbl .num{text-align:right;font-variant-numeric:tabular-nums;}
.mono{font-variant-numeric:tabular-nums;letter-spacing:.2px;}

.status{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:500;
  padding:2px 8px;border-radius:20px;}
.status-matched{background:#D4EDDA;color:#1A6B3A;}
.status-manual{background:#FFF3CD;color:#856404;}
.status-placed{background:#D6E4F0;color:#174A7C;}
.status-pending{background:#FFF3CD;color:#856404;}
.status-approved{background:#D4EDDA;color:#1A6B3A;}

/* ── PRODUCT PAGE ── */
.prod-layout{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:18px;
  align-items:start;}
.prod-gallery{background:#fff;border:1px solid var(--border);border-radius:6px;
  padding:16px;text-align:center;}
.prod-gallery .main-img{height:320px;display:flex;align-items:center;
  justify-content:center;}
.prod-gallery .main-img img{max-height:320px;object-fit:contain;mix-blend-mode:multiply;}
.prod-thumbs{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap;justify-content:center;}
.prod-thumbs img{width:56px;height:56px;object-fit:contain;border:1px solid var(--border);
  border-radius:4px;padding:3px;cursor:pointer;background:#fff;}
.prod-detail{background:#fff;border:1px solid var(--border);border-radius:6px;padding:18px;}
.prod-detail h1{font-size:19px;color:var(--navy);line-height:1.3;margin-bottom:6px;}
.prod-sku{font-size:12px;color:var(--ink3);margin-bottom:14px;}
.price-big{font-size:26px;font-weight:700;color:var(--red);}
.price-unit{font-size:12px;color:var(--ink3);font-weight:400;}
.buybox{border:1px solid var(--border);border-radius:6px;padding:14px;margin-top:14px;
  background:var(--paper);}
.qty-row{display:flex;gap:8px;align-items:center;margin:12px 0;}
.qty-row input{width:84px;padding:8px 10px;border:1px solid var(--border);
  border-radius:4px;text-align:center;}
.spec-tbl{width:100%;border-collapse:collapse;margin-top:16px;font-size:12.5px;}
.spec-tbl th{text-align:left;padding:7px 10px;background:var(--paper);width:34%;
  font-weight:600;color:var(--ink2);border-bottom:1px solid var(--border);}
.spec-tbl td{padding:7px 10px;border-bottom:1px solid var(--border);}

/* ── CART / CHECKOUT ── */
.co-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;
  align-items:start;}
.co-main{display:flex;flex-direction:column;gap:14px;min-width:0;}
.co-card{background:#fff;border:1px solid var(--border);border-radius:6px;overflow:hidden;}
.co-card-head{padding:12px 16px;border-bottom:1px solid var(--border);font-weight:600;
  font-size:13.5px;color:var(--navy);display:flex;align-items:center;gap:8px;}
.step-num{width:22px;height:22px;border-radius:50%;background:var(--navy);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;
  flex:none;}
.co-card-body{padding:14px 16px;}
.cart-row{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);
  align-items:center;flex-wrap:wrap;}
.cart-row:last-child{border-bottom:none;}
.cart-thumb{width:56px;height:56px;background:var(--paper);border-radius:4px;flex:none;
  display:flex;align-items:center;justify-content:center;font-size:9px;color:var(--ink3);
  text-align:center;line-height:1.4;overflow:hidden;}
.cart-thumb img{max-width:56px;max-height:56px;object-fit:contain;mix-blend-mode:multiply;}
.cart-info{flex:1;min-width:180px;}
.cart-name{font-size:13px;font-weight:500;margin-bottom:3px;}
.cart-meta{font-size:11px;color:var(--ink3);}
.cart-qty{display:flex;align-items:center;gap:6px;font-size:12px;margin-top:6px;}
.cart-qty input{width:64px;padding:4px 6px;border:1px solid var(--border);
  border-radius:3px;text-align:center;}
.cart-price{font-weight:700;font-size:14px;color:var(--red);text-align:right;
  min-width:90px;}

.delivery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:8px;}
.dlv-btn{padding:12px;border-radius:4px;border:1.5px solid var(--border);background:#fff;
  cursor:pointer;text-align:left;display:block;}
.dlv-btn.on{border-color:var(--teal);background:var(--teal-l);}
.dlv-icon{font-size:18px;margin-bottom:4px;display:block;}
.dlv-name{font-size:13px;font-weight:600;display:block;color:var(--navy);}
.dlv-btn.on .dlv-name{color:var(--teal);}
.dlv-sub{font-size:11px;color:var(--ink2);}

.pay-toggle{display:flex;gap:8px;flex-wrap:wrap;}
.pay-btn-opt{flex:1;min-width:170px;padding:11px;border-radius:4px;
  border:1.5px solid var(--border);background:#fff;text-align:left;}
.pay-btn-opt.on{border-color:var(--navy);background:var(--navy);color:#fff;}
.p-name{font-size:13px;font-weight:600;display:block;}
.p-sub{font-size:11px;opacity:.75;}

.co-summary{background:#fff;border:1px solid var(--border);border-radius:6px;padding:16px;
  position:sticky;top:76px;}
.co-summary h3{font-size:15px;margin-bottom:14px;padding-bottom:10px;
  border-bottom:1px solid var(--border);}
.sum-row{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:7px 0;
  color:var(--ink2);}
.sum-row.total{font-weight:700;font-size:16px;color:var(--navy);padding-top:12px;
  margin-top:6px;border-top:1px solid var(--border);}
.sum-row.total span:last-child{color:var(--red);}
.co-note{background:var(--amber-l);border-radius:4px;padding:10px;font-size:11.5px;
  color:#7A4E0A;margin:12px 0;line-height:1.55;}
.co-note b{color:#5A3A08;}
.place-btn{width:100%;padding:13px;background:var(--amber);color:#3A2304;border:none;
  border-radius:4px;font-size:14px;font-weight:700;cursor:pointer;margin-top:4px;}
.place-btn:hover{background:#C07820;}

/* ── PAGER ── */
.pager{display:flex;gap:6px;align-items:center;justify-content:center;margin:16px 0;
  flex-wrap:wrap;}
.pager a,.pager span{padding:6px 11px;border:1px solid var(--border);border-radius:4px;
  background:#fff;font-size:12.5px;color:var(--ink2);}
.pager a:hover{border-color:var(--teal);color:var(--teal);text-decoration:none;}
.pager .on{background:var(--navy);color:#fff;border-color:var(--navy);font-weight:600;}
.pager .gap{border:none;background:none;}

/* ── FOOTER ── */
.footer{background:var(--navy);color:#A9C0D1;margin-top:28px;padding:26px 0 18px;
  font-size:12px;}
.footer-inner{max-width:var(--wrap);margin:0 auto;padding:0 16px;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:22px;}
.footer h4{color:#fff;font-size:12.5px;margin-bottom:8px;letter-spacing:.3px;}
.footer a{color:#A9C0D1;display:block;padding:2px 0;}
.footer a:hover{color:#fff;}
.footer-bottom{max-width:var(--wrap);margin:18px auto 0;padding:12px 16px 0;
  border-top:1px solid rgba(255,255,255,.1);font-size:11px;color:#7D95A8;
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;}

/* ── RESPONSIVE ──
 * The mockup has none of this. Charles checks the fold at wide widths and on a phone,
 * and a maritime buyer is as likely to be on a handset at a jetty as at a desk. */
@media (max-width:1040px){
  .quickcats{grid-template-columns:repeat(3,1fr);}
  .right-sidebar{display:none;}
  .co-layout{grid-template-columns:1fr;}
  .co-summary{position:static;}
  .prod-layout{grid-template-columns:1fr;}
}
@media (max-width:860px){
  .page-wrap{flex-direction:column;}

  /* 27 categories stacked full-width put a screen and a half of links above the first
     product, and capping that with an inner scrollbar just looked like a broken frame.
     Collapsed to one tappable bar instead; it names the category you are currently in,
     so it doubles as a "you are here" rather than being dead chrome. */
  .cat-sidebar{width:100%;max-height:none;overflow:visible;}
  .cat-head{cursor:pointer;font-size:13px;padding:12px 14px;}
  .cat-head-hint{display:inline-block;background:rgba(255,255,255,.15);color:#CFE0EC;
    font-size:11px;font-weight:600;padding:1px 7px;border-radius:10px;}
  /* Chevron, rotating when open. */
  .cat-head::after{content:'';width:7px;height:7px;flex:none;margin-left:2px;
    border-right:2px solid #A9C0D1;border-bottom:2px solid #A9C0D1;
    transform:rotate(45deg) translate(-2px,-2px);transition:transform .15s;}
  .cat-sidebar[open] .cat-head::after{transform:rotate(-135deg) translate(-2px,-2px);}
  /* Two columns so an opened list is a short block, not another long scroll. */
  .cat-list{display:grid;grid-template-columns:1fr 1fr;}
  .cat-item{border-right:1px solid var(--border);font-size:12px;padding:9px 12px;}
  .cat-item:nth-child(2n){border-right:none;}
  .cat-item:last-child{border-bottom:1px solid var(--border);}
  .header-inner{flex-wrap:wrap;gap:10px;}
  .search-wrap{order:3;flex-basis:100%;}
  .logo{flex:1;}
  .hero{flex-direction:column;align-items:flex-start;padding:22px;}
  .hero-right{display:none;}
  .fgrid{grid-template-columns:1fr;}
}
@media (max-width:560px){
  /* "MARITIME PROCUREMENT PLATFORM" wrapped to three lines next to the mark and threw
     the whole header out of balance. The wordmark alone carries it at this width. */
  .logo-text small{display:none;}
  .logo-text{font-size:17px;}
  /* One column, not two: "Rigging Equipment & General Deck Items" wraps to three lines
     in a 187px column, which is worse than a longer list. */
  .cat-list{grid-template-columns:1fr;}
  .cat-item{border-right:none;}
  .quickcats{grid-template-columns:repeat(2,1fr);}
  .prod-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));}
  .hero-title{font-size:21px;}
  .search-wrap select{display:none;}
  .cart-price{text-align:left;min-width:0;}
}

@media print{
  .util-bar,.mainnav,.header-actions,.search-wrap,.footer,.pager{display:none;}
}
