/* LINKIT. Store — storefront styles. White page, logo black for text, logo blue for actions. */
:root {
  /* LinkIT brand: logo black + logo blue on white */
  --ink: #111418;
  --ink-2: #2B3038;
  --steel: #5E6670;
  --steel-2: #8A929C;
  --line: #DCE0E5;
  --line-2: #E9ECEF;
  --paper: #FFFFFF;      /* page background: white */
  --soft: #F5F7F9;       /* inputs, image wells */
  --brand-wash: #EDF6FE; /* light touch of logo blue */
  --white: #FFFFFF;
  --brand: #1E8CE3;     /* LinkIT logo blue */
  --blue: #1270C9;      /* logo blue, deepened for readable text and buttons */
  --blue-ink: #0C59A3;
  --blue-wash: #E6F2FC;
  --red: #E2231A;
  --red-ink: #B9160F;
  --led: #1E8CE3;
  --ok: #17A05D;
  --amber: #E8A317;

  --well: #F4F5F7;       /* grey boxes behind products, like a showroom shelf */
  --well-2: #ECEEF1;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shell: 1280px;
  --gutter: clamp(16px, 3vw, 32px);

  /* type scale: 1.25 ratio from 16px */
  --t-xs: .8rem;
  --t-sm: .875rem;
  --t-base: 1rem;
  --t-md: 1.25rem;
  --t-lg: 1.563rem;
  --t-xl: 1.953rem;
  --t-2xl: 2.441rem;
  --t-3xl: clamp(2.2rem, 4.6vw, 3.6rem);
}

:lang(ar) {
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --display: "IBM Plex Sans Arabic", "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
:lang(ar) body { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--t-2xl); font-weight: 700; font-stretch: 112%; }
h2 { font-size: var(--t-xl); font-weight: 700; font-stretch: 108%; }
h3 { font-size: var(--t-md); font-weight: 650; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.15em;
  border: 1px solid transparent; border-radius: 99px;
  font-weight: 600; font-size: var(--t-sm); line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-quote { background: var(--blue); color: #fff; }
.btn-quote:hover { background: var(--blue-ink); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); color: #fff; }
.btn-outline { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-lg { min-height: 52px; font-size: var(--t-base); padding-inline: 1.5em; }
.btn-block { width: 100%; }
.btn.is-added { background: var(--blue-wash); color: var(--blue-ink); border-color: transparent; }

/* ───────── Header ───────── */
.masthead { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line-2), 0 6px 18px -14px rgba(17,20,24,.25); }
.masthead-row { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); min-height: 76px; }
.brandmark { display: flex; align-items: center; flex: none; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 50px; width: auto; max-width: 190px; object-fit: contain; }
.wordmark { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 118%; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.wordmark i { color: var(--brand); font-style: normal; }
.logo-plate { background: #fff; border-radius: 8px; padding: 8px 12px; }
.logo-light .wordmark { color: #fff; }

.cat-btn {
  display: inline-flex; align-items: center; gap: .5em; flex: none;
  min-height: 42px; padding: 0 16px; border: 0; border-radius: 99px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: var(--t-sm); cursor: pointer;
}
.cat-btn:hover { background: var(--blue-ink); }
.cat-btn-icon .icon { width: 18px; height: 18px; }
.cat-btn-icon .icon + .icon, .cat-btn[aria-expanded="true"] .cat-btn-icon .icon:first-child { display: none; }
.cat-btn[aria-expanded="true"] .cat-btn-icon .icon + .icon { display: block; }
.cat-chev { width: 14px; height: 14px; transition: transform .15s; }
.cat-btn[aria-expanded="true"] .cat-chev { transform: rotate(180deg); }

.search { flex: 1; display: flex; position: relative; min-width: 0; }
.search input { width: 100%; min-height: 44px; padding: .55em 3.2em .55em 1.1em; background: var(--well); border: 1px solid transparent; border-radius: 99px; }
[dir="rtl"] .search input { padding: .55em 1.1em .55em 3.2em; }
.search input:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.search button { position: absolute; inset-inline-end: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.search button:hover { color: var(--blue); }

.head-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.hotline { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--ink); padding: 0 8px; white-space: nowrap; }
.hotline .icon { color: var(--blue); width: 22px; height: 22px; }
.hotline:hover { color: var(--blue); }
.tool { position: relative; width: 42px; height: 42px; border-radius: 99px; display: grid; place-items: center; color: var(--ink); }
.tool:hover { background: var(--well); color: var(--ink); }
.tool .icon { width: 22px; height: 22px; }
.tool-text { font-weight: 700; font-size: .95rem; }
.quote-trigger .count {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}
.quote-trigger .count[data-empty] { display: none; }

/* Categories menu */
.catmenu { position: absolute; inset-inline: 0; top: 100%; z-index: 49; }
.catmenu-backdrop { position: fixed; inset: 76px 0 0; background: rgba(17, 20, 24, .45); }
.catmenu-wrap { position: relative; }
.catmenu-panel {
  position: relative; display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 420px; max-height: calc(100vh - 100px);
  background: #fff; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: 0 30px 50px -20px rgba(17,20,24,.4);
}
.catmenu-panel::before { /* little pointer under the Categories button */
  content: ""; position: absolute; top: -7px; inset-inline-start: 245px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg);
}
.catmenu-groups { list-style: none; margin: 0; padding: 12px 0; border-inline-end: 1px solid var(--line-2); overflow: auto; }
.group-link {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 20px; border: 0; background: none; text-align: start; font-weight: 600; font-size: var(--t-sm); color: var(--ink); cursor: pointer;
}
.group-link:hover, .group-link[aria-expanded="true"] { color: var(--blue); background: var(--brand-wash); }
.group-chev { width: 16px; height: 16px; transform: rotate(-90deg); color: var(--steel-2); }
[dir="rtl"] .group-chev { transform: rotate(90deg); }
.group-link[aria-expanded="true"] .group-chev { color: var(--blue); }
.group-acc { display: none !important; }
.catmenu-sections { padding: 22px 28px; columns: 3 200px; column-gap: 28px; overflow: auto; }
.sec { break-inside: avoid; margin-bottom: 22px; display: grid; gap: 7px; }
.sec-title { font-weight: 700; color: var(--ink); font-size: var(--t-sm); }
.sec-item { color: var(--steel); font-size: var(--t-sm); }
.sec-title:hover, .sec-item:hover { color: var(--blue); }

/* ───────── Home ───────── */
.banner { position: relative; margin-top: 22px; border-radius: var(--r-lg); overflow: hidden; background: var(--well); min-height: clamp(260px, 32vw, 470px); }
.banner-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; opacity: 0; visibility: hidden; transition: opacity .5s; }
.banner-slide.is-active { position: relative; opacity: 1; visibility: visible; min-height: inherit; }
.banner-text { padding: clamp(24px, 5vw, 70px); display: grid; gap: 10px; justify-items: start; position: relative; z-index: 1; }
.banner h1 { font-family: var(--font); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 3.2rem); letter-spacing: -.02em; line-height: 1.08; }
.banner-sub { font-size: clamp(1.6rem, 3.3vw, 2.8rem); line-height: 1.1; color: var(--ink-2); letter-spacing: -.02em; }
.banner-copy { color: var(--steel); max-width: 40ch; margin-top: 18px; }
.banner-media { align-self: stretch; position: relative; }
.banner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--well), transparent 30%); }
[dir="rtl"] .banner-media::before { background: linear-gradient(270deg, var(--well), transparent 30%); }
/* No photos yet: a compact text banner instead of an empty half */
.banner-compact { min-height: 0; background: var(--brand-wash); }
.banner-slide.is-text { grid-template-columns: 1fr; }
.banner-slide.is-text .banner-text { padding-block: clamp(28px, 4vw, 48px); }
.banner-slide.is-text h1, .banner-slide.is-text .banner-sub { display: inline; }
.banner-slide.is-text .banner-sub::before { content: " "; }
.banner-slide.is-text .banner-copy { margin-top: 6px; max-width: 60ch; }
.banner-products { position: relative; align-self: stretch; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; padding: clamp(18px, 3vw, 36px); padding-inline-start: 0; }
.banner-products a { display: grid; place-items: center; background: #fff; border-radius: var(--r); overflow: hidden; }
.banner-products a:first-child { grid-row: span 2; }
.banner-products a:only-child { grid-column: span 2; }
.banner-products img { width: 100%; height: 100%; object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue); color: #fff; }
.btn-sm { min-height: 34px; padding: .4em 1em; font-size: var(--t-xs); }
.dots { position: absolute; bottom: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 1px solid var(--steel-2); background: transparent; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--blue); border-color: var(--blue); }

.tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.tile { display: grid; gap: 10px; justify-items: center; align-content: center; padding: 14px 10px 16px; background: var(--well); border-radius: var(--r); color: var(--ink); text-align: center; transition: background-color .15s; }
.tile:hover { background: var(--well-2); color: var(--blue); }
.tile-img { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; color: var(--steel-2); }
.tile-img .icon { width: 44%; height: 44%; stroke-width: 1.1; }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tile-img img ~ .icon { visibility: hidden; }
.tile-name { font-size: var(--t-sm); font-weight: 500; line-height: 1.25; }
:lang(en) .tile-name { text-transform: uppercase; letter-spacing: .02em; }

.discover { padding-block: clamp(40px, 6vw, 72px); }
.rule-title { display: flex; align-items: center; gap: 18px; font-family: var(--font); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 2.1rem); letter-spacing: 0; text-align: center; margin-bottom: 26px; }
.rule-title::before, .rule-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule-title em { font-style: normal; color: var(--blue); }
:lang(en) .rule-title { text-transform: uppercase; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento-col { display: grid; gap: 20px; grid-template-rows: auto 1fr; }
.bento-col:last-child { grid-template-rows: 1fr auto; }

.promo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 250px; }
.promo-teal { background: #DCEEF2; }
.promo-blue { background: var(--brand-wash); }
.promo-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 22px 20px 30px; color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .5s; }
.promo-slide.is-active { position: relative; opacity: 1; visibility: visible; min-height: 250px; }
.promo-text { display: grid; gap: 6px; justify-items: start; }
.promo-brand { color: var(--steel); font-size: var(--t-sm); }
:lang(en) .promo-brand { text-transform: uppercase; }
.promo-name { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 105%; font-size: 1.45rem; line-height: 1.05; }
:lang(en) .promo-name { text-transform: uppercase; }
.promo-line { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 8px; }
.promo-img { display: grid; place-items: center; height: 100%; color: var(--steel-2); }
.promo-img img { max-height: 190px; object-fit: contain; mix-blend-mode: multiply; }
.promo-img .icon { width: 70px; height: 70px; stroke-width: 1; }
.promo-slide:hover .btn-dark { background: var(--blue); }

.mini-list { background: var(--well); border-radius: var(--r-lg); padding: 6px 16px; display: grid; }
.mini { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
.mini + .mini { border-top: 1px solid var(--line); }
.mini-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r); color: var(--steel-2); }
.mini-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mini-img .icon { width: 44px; height: 44px; stroke-width: 1.1; }
.mini-body { display: grid; align-content: start; gap: 6px; position: relative; }
.mini-name { color: var(--ink); font-size: var(--t-sm); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-name:hover { color: var(--blue); }
.round-btn { justify-self: end; margin-top: 8px; width: 38px; height: 38px; border-radius: 99px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.round-btn:hover { background: var(--blue-ink); }
.round-btn .icon { width: 18px; height: 18px; }

.bento-hero { position: relative; background: var(--well); border-radius: var(--r-lg); display: grid; align-items: stretch; min-height: 520px; }
.hero-card { display: none; grid-template-rows: 1fr auto auto auto; justify-items: center; gap: 10px; padding: 28px 40px 36px; text-align: center; }
.hero-card.is-active { display: grid; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-card-img { display: grid; place-items: center; width: 100%; min-height: 300px; color: var(--steel-2); }
.hero-card-img img { max-height: 320px; object-fit: contain; mix-blend-mode: multiply; }
.hero-card-img .icon { width: 110px; height: 110px; stroke-width: .9; }
.hero-card-name { color: var(--ink); max-width: 36ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-card-name:hover { color: var(--blue); }
.arrow { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; border-radius: 99px; border: 1px solid var(--ink); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.arrow:hover { border-color: var(--blue); color: var(--blue); }
.arrow .icon { width: 18px; height: 18px; }
.arrow-prev { inset-inline-start: -19px; }
.arrow-next { inset-inline-end: -19px; }
.arrow-prev .icon { transform: rotate(90deg); }
.arrow-next .icon { transform: rotate(-90deg); }
[dir="rtl"] .arrow-prev .icon { transform: rotate(-90deg); }
[dir="rtl"] .arrow-next .icon { transform: rotate(90deg); }


/* ───────── Listing ───────── */
.listing { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; padding: 10px 0 72px; }
.listing.no-side { grid-template-columns: minmax(0, 1fr); }
.side-nav { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 0; }
.side-head { display: block; padding: 8px 16px 10px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li a { display: block; padding: 7px 16px; color: var(--ink-2); font-size: var(--t-sm); }
.side-nav li a:hover { color: var(--blue); background: var(--well); }
.side-nav li a[aria-current] { color: var(--blue); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue); background: var(--brand-wash); }
[dir="rtl"] .side-nav li a[aria-current] { box-shadow: inset -3px 0 0 var(--blue); }
.list-title { font-family: var(--font); font-size: var(--t-xl); font-weight: 700; margin-bottom: 14px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill { position: relative; }
.pill summary {
  list-style: none; display: inline-flex; align-items: center; gap: .4em; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: var(--t-sm); color: var(--ink); cursor: pointer; white-space: nowrap;
}
.pill summary::-webkit-details-marker { display: none; }
.pill summary .icon { width: 14px; height: 14px; color: var(--steel); transition: transform .15s; }
.pill[open] summary { border-color: var(--blue); }
.pill[open] summary .icon { transform: rotate(180deg); }
.pill.is-on summary { border-color: var(--blue); color: var(--blue); background: var(--brand-wash); }
.pill-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; }
.pill-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 20; min-width: 230px; max-height: 340px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; box-shadow: 0 18px 36px -16px rgba(17,20,24,.35);
  display: grid; gap: 2px;
}
.pill-apply { margin-top: 8px; position: sticky; bottom: 0; }
.check { display: flex; align-items: center; gap: .6em; padding: 5px 0; font-size: var(--t-sm); color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); flex: none; }
.check .n { margin-inline-start: auto; color: var(--steel-2); font-size: var(--t-xs); }

.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.sortby { font-size: var(--t-sm); color: var(--steel); display: inline-flex; align-items: center; gap: .35em; }
.sortby select { border: 0; background: none; color: var(--blue-ink); font-weight: 600; font-size: var(--t-sm); cursor: pointer; padding: 4px 2px; }
.toolbar .count { color: var(--steel); font-size: var(--t-sm); }
.views { margin-inline-start: auto; display: flex; gap: 4px; }
.views button { width: 34px; height: 34px; border: 0; border-radius: var(--r-sm); background: none; color: var(--steel-2); display: grid; place-items: center; cursor: pointer; }
.views button[aria-pressed="true"] { color: var(--blue); }
.views button:hover { background: var(--well); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; align-items: center; }
.active-filters a { display: inline-flex; gap: .4em; align-items: center; padding: .25em .75em; border-radius: 99px; background: var(--brand-wash); color: var(--blue-ink); font-size: var(--t-xs); font-weight: 500; }
.active-filters a .icon { width: 12px; height: 12px; }
.active-filters a.clear { background: none; text-decoration: underline; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: var(--line); box-shadow: 0 16px 30px -18px rgba(17,20,24,.3); }
.card-media { aspect-ratio: 1 / .92; display: grid; place-items: center; background: var(--well); border-radius: var(--r); overflow: hidden; color: var(--steel-2); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.placeholder .icon { width: 34%; height: 34%; stroke-width: 1; }
.card-body { display: grid; gap: 6px; align-content: start; flex: 1; }
.card-title { font-family: var(--font); font-weight: 400; font-size: .95rem; line-height: 1.4; margin: 0; letter-spacing: 0; }
.card-title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a:hover { color: var(--blue); }
.card-summary { display: none; color: var(--steel); font-size: var(--t-sm); }
.sku { justify-self: start; display: inline-flex; align-items: center; gap: .35em; border: 0; background: none; padding: 0; color: var(--steel); font-size: var(--t-xs); cursor: pointer; max-width: 100%; }
.sku bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sku .icon { width: 13px; height: 13px; }
.sku:hover { color: var(--blue); }
.sku.is-copied { color: var(--ok); }
.card-foot { margin-top: auto; }
.card-foot .btn { width: 100%; min-height: 38px; }
.stock { display: inline-flex; align-items: center; gap: .4em; font-size: var(--t-xs); color: var(--ok); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock[data-s="on_order"] { color: var(--amber); }
.stock[data-s="discontinued"] { color: var(--steel-2); }

/* list view */
.grid.is-list { grid-template-columns: 1fr; }
.grid.is-list .card { display: grid; grid-template-columns: 180px minmax(0, 1fr) 180px; align-items: center; gap: 20px; }
.grid.is-list .card-summary { display: block; }
.grid.is-list .card-title a { -webkit-line-clamp: 3; }

.crumbs { display: flex; flex-wrap: wrap; gap: .4em; font-size: var(--t-sm); color: var(--steel); padding-top: 20px; }
.crumbs a { color: var(--steel); }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { color: var(--steel-2); }

/* ───────── Product page ───────── */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 12px 56px; }
.pdp-media { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); aspect-ratio: 1 / .85; display: grid; place-items: center; overflow: hidden; position: relative; }
.pdp-media img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 72px; height: 60px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 4px; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info .brand-link { font-weight: 600; font-size: var(--t-sm); }
.pdp-info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .35rem 0 .6rem; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--steel); font-size: var(--t-sm); margin-bottom: 1.1rem; }
.pdp-summary { font-size: var(--t-md); color: var(--ink-2); line-height: 1.5; max-width: 52ch; }
.pdp-keyspecs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 22px 0; }
.pdp-keyspecs div { background: var(--white); padding: 12px 14px; }
.pdp-keyspecs dt { font-size: var(--t-xs); color: var(--steel); }
.pdp-keyspecs dd { margin: 2px 0 0; font-weight: 600; font-size: var(--t-sm); }
.quote-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.quote-box-row { display: flex; gap: 10px; align-items: stretch; }
.quote-box p { color: var(--steel); font-size: var(--t-sm); margin-top: 12px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; flex: none; }
.qty button { width: 40px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--ink-2); }
.qty button:hover { background: var(--soft); }
.qty input { width: 56px; border: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { outline: none; background: var(--blue-wash); }
.quote-box .btn-quote { flex: 1; }
.pdp-assist { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-assist .btn { flex: 1; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.perks li { display: flex; gap: .6em; align-items: center; }
.perks .icon { color: var(--blue); }

.pdp-details { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: 56px; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: var(--t-sm); }
.spec-table th, .spec-table td { text-align: start; padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec-table th { width: 38%; color: var(--steel); font-weight: 500; background: #FAFBFC; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.prose { color: var(--ink-2); max-width: 64ch; }
.prose p + p { margin-top: .9em; }
.block-title { font-size: var(--t-md); margin-bottom: 14px; font-stretch: 105%; }

/* ───────── Quote list ───────── */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; padding-bottom: 72px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.panel-head h2 { font-size: var(--t-md); }
.panel-body { padding: 20px; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); align-items: start; }
.line:last-child { border-bottom: 0; }
.line-thumb { width: 72px; height: 60px; border-radius: var(--r-sm); background: #F7F8FA; border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; color: #97A0AB; }
.line-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.line-name { font-weight: 600; color: var(--ink); }
.line-meta { font-size: var(--t-xs); color: var(--steel); margin-top: 2px; }
.line-note { margin-top: 8px; width: 100%; min-height: 36px; padding: .4em .7em; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: var(--t-sm); background: #FAFBFC; }
.line-actions { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.link-btn { border: 0; background: none; color: var(--steel); font-size: var(--t-xs); cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--red); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.field label small { font-weight: 400; color: var(--steel-2); }
.input, .textarea, .field select {
  width: 100%; min-height: 44px; padding: .55em .8em;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.field .error, .error-text { color: var(--red-ink); font-size: var(--t-xs); }
.is-invalid { border-color: var(--red) !important; }
.hp { position: absolute; inset-inline-start: -9999px; }
.fine { font-size: var(--t-xs); color: var(--steel); margin-top: 12px; }

.notice { padding: 12px 16px; border-radius: var(--r-sm); font-size: var(--t-sm); margin-bottom: 16px; }
.notice-ok { background: #E6F6EE; color: #0D6B3D; }
.notice-err { background: #FDECEB; color: var(--red-ink); }

.sent { max-width: 720px; margin: 0 auto; padding: 56px 0 88px; }
.sent-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.sent-ref { display: inline-flex; gap: .5em; align-items: center; background: var(--brand-wash); border-radius: var(--r-sm); padding: .4em .8em; font-weight: 600; font-variant-numeric: tabular-nums; margin: 1rem 0; }
.sent-card ol { padding-inline-start: 1.2em; color: var(--ink-2); display: grid; gap: .4em; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14, 23, 38, .45); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); background: var(--white); z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease, visibility .25s; visibility: hidden; }
.drawer-open .drawer { visibility: visible; box-shadow: -20px 0 40px -20px rgba(14,23,38,.3); }
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.drawer-head h2 { font-size: var(--t-md); }
.drawer-body { flex: 1; overflow: auto; }
.drawer-body .line { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 14px 20px; }
.drawer-body .line-thumb { width: 56px; height: 48px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.drawer-msg { padding: 10px 20px; background: #E6F6EE; color: #0D6B3D; font-size: var(--t-sm); }
.icon-btn { width: 40px; height: 40px; border: 0; background: none; border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--soft); }

/* Footer */
.footer { background: var(--well); color: var(--steel); font-size: var(--t-sm); padding-top: 48px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding-bottom: 36px; }
.footer h4 a { color: var(--ink); }
.footer h4 { color: var(--ink); margin: 0 0 12px; font-size: var(--t-sm); }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--blue); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

.footer-about p { margin-top: 12px; max-width: 38ch; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 18px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--t-xs); }

/* product page: secondary "add to list" row */
.quote-box-list { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); align-items: center; flex-wrap: wrap; }
.quote-box-hint { font-size: var(--t-sm); color: var(--steel); margin-inline-end: auto; }
.pdp-media { background: var(--well); border: 0; }
.pdp-media img { mix-blend-mode: multiply; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178A45; color: #fff; }
.empty { border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 48px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.empty h2 { font-size: var(--t-md); font-family: var(--font); }
.empty p { color: var(--steel); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink-2); font-size: var(--t-sm); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager [aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager .disabled { color: var(--steel-2); background: transparent; }

/* ── Request-quote popup ── */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none !important; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 20, 24, .5); }
.modal-panel {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: var(--r-lg); border-top: 4px solid var(--brand);
  padding: 26px 26px 22px; box-shadow: 0 30px 60px -20px rgba(17, 20, 24, .45);
  animation: modal-in .18s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 10px; inset-inline-end: 10px; }
.modal-form { display: grid; gap: 14px; }
.modal-form h2, .modal-done h2 { font-size: var(--t-lg); padding-inline-end: 36px; }
.modal-lede { color: var(--steel); margin-top: -8px; }
.modal-form .form-grid { gap: 14px; }
.modal-form .notice { margin: 0; }
.modal-form .fine { margin: 0; text-align: center; }
.modal-open { overflow: hidden; }

.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-opt { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; min-width: 0; }
.choice-opt[hidden] { display: none; }
.choice-opt input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.choice-opt span { display: grid; gap: 2px; min-width: 0; }
.choice-opt strong { font-size: var(--t-sm); }
.choice-opt small, .choice-model { font-size: var(--t-xs); color: var(--steel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.choice-opt:has(input:checked) .choice-model { color: var(--blue-ink); font-weight: 600; }
.choice:has([data-selected-opt][hidden]) { grid-template-columns: 1fr; }

.modal-done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 12px 0 4px; }
.modal-done h2 { padding: 0; }
.modal-done p { color: var(--ink-2); max-width: 40ch; }
.done-check { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-wash); color: var(--brand); display: grid; place-items: center; }
.done-check .icon { width: 28px; height: 28px; stroke-width: 2.2; }

@media (max-width: 560px) {
  .modal { padding: 0; align-items: end; }
  .modal-panel { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; padding: 22px 16px 18px; }
  .choice { grid-template-columns: 1fr; }
  .modal-form .form-grid { grid-template-columns: 1fr; }
}


/* ───────── Responsive ───────── */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-hero { grid-column: 1 / -1; order: -1; min-height: 460px; }
  .hotline span { display: none; }
}
@media (max-width: 980px) {
  .listing { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; gap: 6px; overflow-x: auto; border: 0; padding: 0; scrollbar-width: none; }
  .side-head { display: none; }
  .side-nav ul { display: flex; gap: 6px; }
  .side-nav li a { white-space: nowrap; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; }
  .side-nav li a[aria-current] { box-shadow: none; border-color: var(--blue); }
  .quote-layout { grid-template-columns: 1fr; }
  .pdp, .pdp-details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid.is-list .card { grid-template-columns: 120px minmax(0, 1fr); }
  .grid.is-list .card-foot { grid-column: 2; }
}
@media (max-width: 860px) {
  .masthead-row { flex-wrap: wrap; padding-block: 10px; gap: 10px; min-height: 0; }
  .logo img { height: 40px; }
  .head-tools { margin-inline-start: auto; }
  .search { order: 4; flex-basis: 100%; }
  .cat-btn { order: 3; }
  .cat-btn > span:not(.cat-btn-icon) { display: inline; }
  /* Categories menu becomes a full-height list with sections opening underneath */
  .catmenu { position: fixed; inset: 0; top: 0; z-index: 100; }
  .catmenu-backdrop { inset: 0; }
  .catmenu-wrap { padding: 0; height: 100%; max-width: none; }
  .catmenu-panel { grid-template-columns: 1fr; width: min(380px, 88vw); height: 100%; max-height: none; border-radius: 0; }
  .catmenu-panel::before { display: none; }
  .catmenu-groups { border: 0; padding-top: 18px; }
  .catmenu-sections { display: none !important; }
  .group-acc:not([hidden]) { display: grid !important; padding: 4px 20px 14px 32px; gap: 2px; background: var(--well); }
  .group-link[aria-expanded="true"] .group-chev { transform: rotate(180deg); }
  .group-chev { transform: none; }
  [dir="rtl"] .group-chev { transform: none; }
  .acc-all, .acc-section { font-weight: 600; color: var(--ink); padding: 7px 0; font-size: var(--t-sm); }
  .acc-item { color: var(--steel); padding: 5px 12px; font-size: var(--t-sm); }
  .banner-slide { grid-template-columns: 1fr; }
  .banner-slide.is-active { min-height: 0; }
  .banner-media { min-height: 200px; order: -1; }
  .banner-products { padding: 0 16px 16px; min-height: 220px; }
  .banner-media::before { background: linear-gradient(0deg, var(--well), transparent 40%) !important; }
}
@media (max-width: 640px) {
  .tiles { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 31%; scroll-snap-align: start; }
  .tile { padding: 10px 6px 12px; }
  .tile-name { font-size: .72rem; }
  .bento { grid-template-columns: 1fr; }
  .bento-hero { min-height: 0; }
  .hero-card-img { min-height: 220px; }
  .arrow-prev { inset-inline-start: 8px; }
  .arrow-next { inset-inline-end: 8px; }
  .mini { grid-template-columns: 96px minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; gap: 8px; border-radius: var(--r); }
  .card-title { font-size: .85rem; }
  .form-grid { grid-template-columns: 1fr; }
  .line { grid-template-columns: 56px minmax(0, 1fr); }
  .line-thumb { width: 56px; height: 48px; }
  .line-actions { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .pdp-keyspecs { grid-template-columns: 1fr; }
  .pill-menu { position: fixed; inset: auto 0 0 0; top: auto; max-height: 70vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .toolbar .count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.btn > svg:not(.icon) { width: 20px; height: 20px; fill: currentColor; flex: none; }
.footer .logo img { height: 52px; }
[hidden] { display: none !important; }
