/* QualiQuip storefront — light retail, teal accent */
:root {
  --bg: #f3f5f7;
  --bg-2: #eef1f4;
  --card: #ffffff;
  --text: #1c2128;
  --muted: #5b6572;
  --line: #e3e7ec;
  --line-2: #cfd6de;
  --teal: #0f766e;
  --teal-2: #115e59;
  --teal-soft: #e6f4f2;
  --link: #0f766e;
  --sale: #b42318;
  --ok: #067647;
  --warn: #b54708;
  --err: #b42318;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1240px;
  --header: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.45; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--teal-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
h1, h2, h3, h4 { letter-spacing: -0.02em; margin: 0 0 .4rem; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
h2 { font-size: 1.25rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* buttons & forms */
.btn, button.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: 8px; padding: .62rem 1rem; line-height: 1.1; text-decoration: none !important;
}
.btn-primary, .search button { background: var(--teal); color: #fff !important; border-color: var(--teal); }
.btn-primary:hover, .search button:hover { background: var(--teal-2); border-color: var(--teal-2); }
.btn-ghost { background: #fff; color: var(--text) !important; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { padding: .42rem .7rem; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-buy { background: #0b3b39; color: #fff !important; border-color: #0b3b39; }
.input, select, textarea.input, .filters select, .filters input {
  width: 100%; background: #fff; border: 1px solid var(--line-2); border-radius: 8px;
  padding: .55rem .7rem; font: inherit; color: var(--text);
}
label { display: block; font-size: .82rem; font-weight: 650; color: var(--muted); margin: .55rem 0 .25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }

/* utility bar */
.topbar {
  background: #11212b; color: #d7e0e6; font-size: 12.5px; letter-spacing: .01em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar span + span::before { content: "·"; margin: 0 .55rem; color: #7d8b94; }

/* sample notice */
.site-notice {
  background: #fff8eb; border-bottom: 1px solid #f3d19c; color: #7a4d00; font-size: .88rem;
}
.site-notice .wrap { display: flex; gap: .8rem; align-items: center; justify-content: space-between; padding: .45rem 0; }
.site-notice button { appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; padding: .2rem .4rem; }

/* header */
.header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(16,24,40,.03); }
.header-row { display: grid; grid-template-columns: auto minmax(280px, 1fr) auto; gap: 1rem; align-items: center; min-height: var(--header); }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--text) !important; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; text-decoration: none !important; }
.logo img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.search { position: relative; display: flex; border: 2px solid var(--teal); border-radius: 10px; overflow: visible; background: #fff; }
.search input { flex: 1; border: 0; padding: .7rem .9rem; font: inherit; background: transparent; outline: none; min-width: 0; border-radius: 8px 0 0 8px; }
.search button { border: 0; border-radius: 0 8px 8px 0; padding: .7rem 1.05rem; }
.suggest {
  position: absolute; left: -2px; right: -2px; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); z-index: 80; padding: .35rem; display: none;
}
.suggest.open { display: block; }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: .7rem; align-items: center; padding: .45rem .5rem; border-radius: 8px; color: var(--text); text-decoration: none !important; }
.suggest a:hover, .suggest a:focus { background: var(--teal-soft); }
.suggest img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.suggest .meta { font-size: .78rem; color: var(--muted); }
.suggest .prc { font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: .2rem; }
.header-actions a, .icon-btn {
  color: var(--text) !important; text-decoration: none !important; font-size: .9rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: flex-start; padding: .35rem .65rem; border-radius: 8px; line-height: 1.15;
}
.header-actions a:hover, .icon-btn:hover { background: var(--bg); }
.header-actions .sub { font-size: .72rem; color: var(--muted); font-weight: 500; }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--teal); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav { background: #fff; border-top: 1px solid var(--line); }
.nav-row { display: flex; align-items: stretch; gap: .15rem; min-height: 42px; overflow-x: auto; }
.nav-row a, .nav-cat {
  color: var(--text) !important; text-decoration: none !important; font-size: .82rem; font-weight: 650;
  padding: .6rem .55rem; white-space: nowrap; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 650;
}
.nav-row a:hover, .nav-cat:hover, .nav-row a[aria-current="page"] { color: var(--teal) !important; }
.mega { display: none; position: absolute; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); z-index: 70; }
.nav-row:hover + .mega, .mega:hover, .nav.open .mega, .nav:focus-within .mega { display: block; }
.nav { position: relative; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; padding: 1rem 0 1.2rem; }
.mega a.cardish { display: block; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none !important; background: var(--bg); }
.mega a.cardish:hover { border-color: var(--teal); background: var(--teal-soft); }
.mega a.cardish strong { display: block; margin-bottom: .15rem; }
.mega a.cardish span { color: var(--muted); font-size: .8rem; }
.menu-toggle { display: none; }

/* drawer / mini-cart */
.overlay { position: fixed; inset: 0; background: rgba(16,24,40,.4); z-index: 90; display: none; }
.overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; width: min(400px, 100%); height: 100%; background: #fff;
  z-index: 100; box-shadow: var(--shadow); display: flex; flex-direction: column; transform: translateX(110%);
  transition: transform .2s ease;
}
.drawer.open { transform: none; }
.drawer header, .drawer-h { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); font-weight: 750; }
.drawer .body { flex: 1; overflow: auto; padding: 1rem 1.1rem; }
.drawer .foot { border-top: 1px solid var(--line); padding: 1rem 1.1rem; }
.mini-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .7rem; align-items: start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.mini-line img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mini-line .name { font-weight: 650; font-size: .9rem; color: var(--text); text-decoration: none !important; }
.mini-empty { color: var(--muted); text-align: center; padding: 2rem .5rem; }

/* page sections */
main { padding: 0 0 3rem; }
.flash { border-radius: 8px; padding: .7rem 1rem; margin: .8rem 0 0; }
.flash-ok { background: #e7f8ef; color: #067647; }
.flash-err { background: #fdecec; color: #b42318; }
.notice { background: #eef6ff; border: 1px solid #c6ddf5; border-radius: 8px; padding: .7rem .9rem; margin: .7rem 0; font-size: .92rem; }
.notice-warn { background: #fff8eb; border-color: #f3d19c; }
.notice-err { background: #fdecec; border-color: #f2c2c0; color: #b42318; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 1px 0 rgba(16,24,40,.03); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 750; color: var(--teal); margin: 0 0 .35rem; }
.muted, .lead { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 0 0 1rem; }
.section { padding: 1.6rem 0 .4rem; }

/* home */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 1.4rem 0 1.6rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: stretch; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero .lead { max-width: 38rem; margin: .5rem 0 1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-deal { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); text-decoration: none !important; color: inherit; }
.hero-deal img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.hero-deal .kicker { font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--sale); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: 1.1rem; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; font-size: .86rem; }
.trust strong { display: block; font-size: .9rem; }
.trust span { color: var(--muted); font-size: .8rem; }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none !important; color: var(--text); display: flex; flex-direction: column; }
.cat-tile:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.cat-tile .art { aspect-ratio: 1.3 / 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.cat-tile img { width: 70%; height: 80%; object-fit: contain; }
.cat-tile span { padding: .55rem .7rem .7rem; font-weight: 700; font-size: .9rem; }
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.brands a, .brands span { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .5rem; text-align: center; font-weight: 700; color: var(--text); text-decoration: none !important; font-size: .9rem; }
.brands a:hover { border-color: var(--teal); color: var(--teal); }
.cta-band { background: #11212b; color: #fff; border-radius: 16px; padding: 1.3rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cta-band p { color: #c5d0d6; margin: .3rem 0 0; }
.cta-band .btn-primary { background: #fff; color: #11212b !important; border-color: #fff; }
.cta-band .btn-ghost { background: transparent; color: #fff !important; border-color: #5b717c; }

/* product cards */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.prod-grid.list { grid-template-columns: 1fr; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-width: 0; position: relative; }
.prod-card:hover { border-color: #b9e0db; box-shadow: var(--shadow); }
.prod-card .art { aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); display: block; }
.prod-card .art img { width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.prod-card .body { padding: .7rem .8rem .85rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.prod-card .brand { font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.prod-card h3 { font-size: .95rem; font-weight: 650; line-height: 1.3; height: 2.55em; overflow: hidden; margin: 0; }
.prod-card h3 a { color: var(--text) !important; text-decoration: none !important; }
.prod-card h3 a:hover { color: var(--teal) !important; }
.prod-card .specs { font-size: .78rem; color: var(--muted); min-height: 2.4em; }
.prod-card .price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; margin: .2rem 0; font-size: 1.15rem; font-weight: 800; }
.prod-card .price s { color: var(--muted); font-weight: 500; font-size: .9rem; }
.prod-card .save { color: var(--sale); font-size: .8rem; font-weight: 700; }
.prod-card .stock { font-size: .78rem; color: var(--ok); font-weight: 650; }
.prod-card .actions { margin-top: auto; padding-top: .45rem; }
.prod-grid.list .prod-card { display: grid; grid-template-columns: 160px 1fr auto; gap: 1rem; align-items: center; padding-right: .8rem; }
.prod-grid.list .art { border: 0; aspect-ratio: auto; height: 140px; }
.prod-grid.list h3 { height: auto; }

/* listing */
.listing { display: grid; grid-template-columns: 240px 1fr; gap: 1.3rem; margin-top: 1rem; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem 1.1rem; align-self: start; position: sticky; top: 118px; }
.filters h3 { font-size: .95rem; margin-top: .2rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--teal-soft); color: var(--teal-2); border-radius: 999px; padding: .2rem .6rem; font-size: .8rem; font-weight: 650; text-decoration: none !important; }
.view-toggle { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.view-toggle a { padding: .35rem .6rem; color: var(--text); text-decoration: none !important; font-size: .8rem; font-weight: 650; }
.view-toggle a.on { background: var(--teal); color: #fff !important; }
.pagination { display: flex; gap: .35rem; justify-content: center; margin: 1.3rem 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 2.1rem; text-align: center; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); text-decoration: none !important; font-weight: 650; }
.pagination a:hover, .pagination .on { background: var(--teal); color: #fff !important; border-color: var(--teal); }
.filter-open { display: none; }

/* PDP */
.crumbs { font-size: .86rem; color: var(--muted); margin: 1rem 0 .8rem; }
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.6rem; align-items: start; }
.pdp-art { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pdp-art img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 1.2rem; }
.thumbs { display: flex; gap: .45rem; margin-top: .6rem; }
.thumbs button { width: 64px; height: 64px; padding: 4px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.thumbs button.on, .thumbs button:hover { border-color: var(--teal); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.15rem; box-shadow: var(--shadow); }
.buybox .price { font-size: 1.85rem; font-weight: 800; display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin: .3rem 0 .2rem; }
.buybox .price s { font-size: 1rem; color: var(--muted); font-weight: 500; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 650; }
.reviews-empty { font-size: .9rem; color: var(--muted); }
.sticky-atc {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--line); padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(16,24,40,.08);
}
.fbt { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.box-list { margin: 0; padding-left: 1.1rem; }
.box-list li { margin: .25rem 0; }

/* cart / checkout */
.two { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1.2rem; align-items: start; }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: .8rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 88px; height: 88px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sku { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.price { font-weight: 800; }
.totals { display: grid; gap: .45rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .grand { font-size: 1.1rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: .55rem; margin-top: .2rem; }
.ship-opt { display: block; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; margin: .45rem 0; }
.ship-opt:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.trust-inline { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8rem; color: var(--muted); margin-top: .8rem; }

/* footer */
footer.site { background: #11212b; color: #d5dee3; padding: 2rem 0 1.2rem; margin-top: 2rem; font-size: .9rem; }
footer.site .grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 1.4rem; }
footer.site h3 { color: #fff; font-size: .95rem; }
footer.site a { color: #d5dee3; display: block; margin: .25rem 0; }
footer.site a:hover { color: #fff; }
footer.site .fineprint { border-top: 1px solid #2a3c46; margin-top: 1.3rem; padding-top: .8rem; color: #8b9ba4; font-size: .8rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: 12px; }

/* tables / admin compatibility */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { text-align: left; padding: .55rem .45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 650; }
.pill { display: inline-block; border-radius: 999px; padding: .1rem .5rem; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pill-paid { background: #e7f8ef; color: #067647; }
.pill-pending { background: #fff8eb; color: #b54708; }
.pill-b2b { background: var(--teal-soft); color: var(--teal-2); }
.admin-body { background: var(--bg); }
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; padding: .8rem 0; }
.chart{display:flex;align-items:flex-end;gap:6px;min-height:160px;overflow-x:auto;padding-bottom:1.4rem}
.bar-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:28px;flex:1}
.bar-col .bar{width:100%;max-width:28px;background:linear-gradient(180deg,#2dd4bf,#0f766e);border-radius:6px 6px 0 0}
.bar-col span{font-size:.65rem;color:var(--muted);margin-top:.25rem;transform:rotate(-45deg);transform-origin:top left;white-space:nowrap}
.row-warn td{background:#fdecec}
.timeline{padding-left:1.1rem}
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.why article { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }

@media (max-width: 1100px) {
  .prod-grid, .cat-grid, .brands, .trust, .why { grid-template-columns: repeat(3, 1fr); }
  .fbt, .mega-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .header-row { grid-template-columns: auto 1fr auto; }
  .hero-grid, .listing, .pdp, .two, footer.site .grid { grid-template-columns: 1fr; }
  .prod-grid, .cat-grid, .brands { grid-template-columns: repeat(2, 1fr); }
  .filters { position: fixed; inset: 0 20% 0 0; max-width: 360px; width: 86%; z-index: 120; border-radius: 0; overflow: auto; display: none; }
  .filters.open { display: block; }
  .filter-open { display: inline-flex; }
  .trust, .why { grid-template-columns: 1fr 1fr; }
  .sticky-atc { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
  .menu-toggle { display: inline-flex; }
  .nav-row { display: none; }
  .nav.open .nav-row { display: flex; flex-wrap: wrap; }
  .header-actions .hide-sm { display: none; }
  .search { grid-column: 1 / -1; order: 3; }
  .header-row { grid-template-columns: auto auto; }
  .pdp-art img { aspect-ratio: 1; }
}
@media (max-width: 640px) {
  .form-grid, .hero-deal, .trust, .why, .prod-grid.list .prod-card { grid-template-columns: 1fr; }
  .prod-grid.list .art { height: 200px; }
}

.filters .drawer-h button{display:none}
@media (max-width:900px){.filters .drawer-h button{display:inline-flex}}

.mega{display:none}
.nav-row:hover + .mega,.mega:hover,.nav.open .mega,.nav:focus-within .mega{display:block}

/* overflow "More" category menu — never clip the last item */
.nav-row { overflow: visible; display: flex; align-items: stretch; gap: .15rem; }
.nav-items { display: flex; align-items: stretch; gap: .15rem; flex: 1; min-width: 0; overflow: hidden; }
.nav-more { position: relative; flex: 0 0 auto; }
.nav-more-btn {
  color: var(--text); font: inherit; font-size: .82rem; font-weight: 650;
  padding: .6rem .55rem; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-more-btn:hover { color: var(--teal); }
.nav-more-menu {
  display: none; position: absolute; right: 0; top: 100%; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); z-index: 80; padding: .35rem;
}
.nav-more.open .nav-more-menu { display: block; }
.nav-more-menu a {
  display: block; padding: .55rem .75rem; color: var(--text) !important;
  text-decoration: none !important; white-space: nowrap; border-radius: 8px; font-size: .9rem; font-weight: 650;
}
.nav-more-menu a:hover { background: var(--teal-soft); color: var(--teal-2) !important; }
@media (max-width: 900px) {
  .nav.open .nav-items { flex-wrap: wrap; overflow: visible; }
  .nav-more { display: none !important; }
}
