/* Palm General Supply storefront. Catalogue layout: black utility header, ivory pages, white product tiles. */
:root {
  --ink: #0d0d0c; --ink-2: #2b2a27; --muted: #6a665d; --line: #dcd6c8; --paper: #f2eee5; --card: #ffffff; --hover: #f7f4ee;
  --head: #000000; --head-2: #161614; --on-head: #f2eee5; --ok: #1f8a4c; --wa: #1fa855; --focus: #c9a24a;
  --f-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; --f-ar: "IBM Plex Sans Arabic", "Archivo", Tahoma, sans-serif;
  --r: 10px; --wrap: 1280px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
[dir="rtl"] body { font-family: var(--f-ar); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ico { flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; background: #fff; padding: 8px 12px; z-index: 100; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; } .skip:focus { clip-path: none; width: auto; height: auto; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.empty a { color: var(--ink); font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; } .btn.dark:hover { background: var(--ink-2); }
.btn.light { background: var(--on-head); color: var(--ink); border-color: var(--on-head); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; } .btn.wa:hover { filter: brightness(1.06); }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn.big { min-height: 50px; padding: 12px 22px; font-size: 15px; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--head); color: var(--on-head); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--head); z-index: 31; }
.top-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 22px; width: auto; }
.logo span { font-weight: 800; letter-spacing: .12em; font-size: 14px; line-height: 1; display: flex; flex-direction: column; gap: 3px; font-family: var(--f-body); }
.logo span b { font-weight: 500; font-size: 9px; letter-spacing: .22em; opacity: .75; }
.allbtn { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--on-head); border: 1px solid rgba(242,238,229,.35); border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.allbtn[aria-expanded="true"], .allbtn:hover { background: var(--on-head); color: var(--ink); }
.burger { display: inline-grid; gap: 3px; } .burger i { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.search { display: flex; align-items: center; background: #fff; border-radius: 999px; overflow: hidden; min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; padding: 11px 16px; font: inherit; font-size: 14px; color: var(--ink); background: transparent; }
.search input:focus { outline: none; } .search:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.search button { border: 0; background: var(--ink); color: #fff; width: 44px; height: 40px; margin: 2px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.tools { display: flex; align-items: center; gap: 6px; }
.lang { background: transparent; border: 0; color: var(--on-head); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.lang:hover { background: var(--head-2); }
.qlink { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.qlink:hover { background: var(--head-2); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--on-head); color: var(--ink); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.count[hidden] { display: none; }

/* mega menu */
.mega { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0,0,0,.18); max-height: calc(100vh - 70px); overflow: auto; }
.mega-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; min-height: 380px; }
.mega-deps { list-style: none; margin: 0; padding: 10px 0; border-inline-end: 1px solid var(--line); }
.mega-deps a { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 9px 18px; text-decoration: none; font-weight: 600; font-size: 14px; }
.mega-deps a .n { color: var(--muted); font-weight: 400; font-size: 12px; }
.mega-deps a.on, .mega-deps a:hover { background: var(--paper); }
.mega-cats { padding: 22px 26px; }
.mega-cats h3 a { text-decoration: none; font-size: 20px; } .mega-cats h3 span { font-size: 13px; color: var(--muted); font-weight: 600; }
.mega-cats p { color: var(--muted); margin: 6px 0 16px; max-width: 60ch; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mc-grid a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 13px; }
.mc-grid a:hover { border-color: var(--ink); }

/* hero */
.hero { background: var(--head); color: var(--on-head); }
.hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding-block: 44px 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 56px); max-width: 16ch; }
.hero p { color: rgba(242,238,229,.75); margin-top: 14px; max-width: 58ch; font-size: 16px; }
.hero-search { display: flex; gap: 8px; margin-top: 22px; max-width: 620px; }
.hero-search input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 14px 18px; font: inherit; }
.hero-kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid rgba(242,238,229,.25); }
.hero-kpis div { padding: 16px 12px 0 0; display: flex; flex-direction: column; }
[dir="rtl"] .hero-kpis div { padding: 16px 0 0 12px; }
.hero-kpis dt { font-size: 12px; color: rgba(242,238,229,.6); text-transform: uppercase; letter-spacing: .08em; }
.hero-kpis dd { margin: auto 0 0; padding-top: 6px; line-height: 1.1; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* sections and tiles */
.sec { padding-block: 34px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.more { font-weight: 700; text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 14px 16px; display: grid; justify-items: center; gap: 10px; text-align: center; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.tile-ico { width: 92px; height: 92px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.tile-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.tile-n { font-size: 12px; color: var(--muted); }
.how { background: var(--card); border-block: 1px solid var(--line); padding-block: 34px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 6px; padding-top: 14px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); font-weight: 800; font-size: 13px; color: var(--muted); }
.steps span { color: var(--muted); }
.partners { background: var(--head); color: var(--on-head); max-width: none; } .partners > * { max-width: var(--wrap); margin-inline: auto; }
.partners h2 { margin-bottom: 16px; }
.plogos { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.plogos img { height: 34px; width: auto; opacity: .85; }
.help { background: var(--ink-2); color: var(--on-head); }
.help-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 26px; }
.help p { color: rgba(242,238,229,.7); margin-top: 4px; }
.help-act { display: flex; gap: 10px; flex-wrap: wrap; }
.help .btn.dark { background: var(--on-head); color: var(--ink); border-color: var(--on-head); }

/* footer */
.foot { background: var(--head); color: var(--on-head); padding-top: 36px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
.fbrand img { height: 20px; width: auto; margin-bottom: 10px; } .fbrand span { font-weight: 800; letter-spacing: .12em; }
.fbrand p { color: rgba(242,238,229,.6); margin-top: 8px; font-size: 12px; letter-spacing: .06em; }
.foot h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(242,238,229,.6); margin-bottom: 10px; }
.foot a, .foot p { display: block; color: var(--on-head); text-decoration: none; padding: 3px 0; font-size: 14px; }
.foot a:hover { text-decoration: underline; }
.foot-bot { border-top: 1px solid rgba(242,238,229,.15); margin-top: 28px; padding-block: 16px; font-size: 12px; color: rgba(242,238,229,.6); }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding-block: 16px 10px; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* catalogue page */
.cat-page { padding-bottom: 40px; }
.cat-head { margin-bottom: 14px; } .cat-head p { margin-top: 6px; max-width: 70ch; }
.subtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 22px; }
.stile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; justify-items: center; gap: 8px; text-align: center; text-decoration: none; font-weight: 600; font-size: 13px; }
.stile:hover { border-color: var(--ink); } .stile small { color: var(--muted); font-weight: 400; }
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.side { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 0; position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow: auto; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.side-head h2 { font-size: 16px; }
.fbox { padding: 12px 16px; border-top: 1px solid var(--line); }
.fbox h3, .fh { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.fbox input[type=search], .other input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; background: var(--paper); }
.tree, .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tree a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.tree a span { color: var(--muted); font-size: 12px; } .tree .sub a { padding-inline-start: 18px; }
.tree a.on, .tree a:hover { background: var(--paper); font-weight: 700; }
.checks label { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: 14px; cursor: pointer; }
.checks input { width: 16px; height: 16px; accent-color: var(--ink); }
.checks small { color: var(--muted); margin-inline-start: auto; }
.res-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.res-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.res-tools select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font: inherit; background: var(--card); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.only-m { display: none; }

/* product cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.plist { display: grid; gap: 10px; }
.pc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.pc:hover { border-color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.pc-img { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--paper); color: var(--ink); position: relative; overflow: hidden; }
.pc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.pc-cat { font-size: 11px; line-height: 16px; height: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .pc-cat { letter-spacing: 0; }
.pc h3 { font-size: 15px; line-height: 20px; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .pc h3 a { text-decoration: none; } .pc h3 a:hover { text-decoration: underline; }
.pc-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(2, 18px); gap: 2px; font-size: 12.5px; line-height: 18px; }
.pc-specs li { display: flex; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; } .pc-specs span { color: var(--muted); flex: none; } .pc-specs li:not(:empty) span::after { content: ":"; }
.pc-specs b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pc-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.pc-foot .btn { flex: none; }
.pc-unit { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pc.list { flex-direction: row; align-items: stretch; }
.pc.list .pc-img { width: 150px; aspect-ratio: auto; min-height: 112px; flex: none; }
.pc.list .pc-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 18px); gap: 2px 18px; }
.pc.list h3 { height: auto; -webkit-line-clamp: 1; }

/* product page */
.prod-page { padding-bottom: 30px; }
.prod { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.prod-media { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; position: sticky; top: 80px; }
.prod-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-ico { width: 72%; height: 72%; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.prod-info { display: grid; gap: 10px; }
.prod-info h1 { font-size: clamp(24px, 3.4vw, 36px); }
.desc { font-size: 16px; color: var(--ink-2); max-width: 62ch; }
.choose { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 14px; }
.choose h2 { font-size: 16px; }
.attr-h { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font: inherit; font-size: 14px; cursor: pointer; }
.opt:hover { border-color: var(--ink); } .opt.on { border: 2px solid var(--ink); font-weight: 700; padding: 5px 11px; }
.opt i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 16px; }
.qtybox { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--card); overflow: hidden; }
.qty button { width: 42px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.qty input { width: 64px; border: 0; text-align: center; font: inherit; font-size: 16px; -moz-appearance: textfield; } .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.specs { margin-top: 34px; }
.specs h2 { margin-bottom: 12px; }
.specs table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.specs th, .specs td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.specs th { width: 34%; background: var(--hover); font-weight: 600; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

/* quote page */
.quote-page { padding-bottom: 40px; } .quote-page > h1 { margin-bottom: 6px; }
.q-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 22px; align-items: start; }
.q-list, .q-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.q-list h2 { font-size: 18px; margin-bottom: 10px; }
.qitems { list-style: none; margin: 0; padding: 0; display: grid; }
.qitems li { display: grid; grid-template-columns: 44px 1fr 74px auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qi-ico { width: 44px; height: 44px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; }
.qi-main { display: grid; min-width: 0; } .qi-main small { color: var(--muted); overflow-wrap: anywhere; }
.qitems input { width: 74px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; text-align: center; }
.qi-unit { font-size: 12px; color: var(--muted); }
.other { margin-top: 16px; } .other .row { display: flex; gap: 8px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.form input, .form textarea { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; font-weight: 400; background: var(--paper); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.msg { padding: 12px; border-radius: 8px; font-size: 14px; } .msg.ok { background: #e3f3e8; color: #135c32; } .msg.bad { background: #fbe5e3; color: #8a2219; }
.contact { margin-top: 16px; display: grid; gap: 8px; }
.crow { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 14px; }
.crow span { color: var(--muted); } .crow.wa { border-color: var(--wa); }

.toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%) translateY(30px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; transition: .2s; z-index: 60; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* responsive */
@media (max-width: 1000px) {
  .top-in { grid-template-columns: auto auto 1fr; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .tools { justify-self: end; }
  .hero-in { grid-template-columns: 1fr; gap: 26px; }
  .cat-layout { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; border-radius: 0; z-index: 50; transform: translateX(-105%); transition: transform .2s; padding-top: env(safe-area-inset-top, 0px); }
  [dir="rtl"] .side { inset: 0 0 0 auto; transform: translateX(105%); }
  .side { visibility: hidden; } .filters-open .side { visibility: visible; }
  .filters-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .only-m { display: inline-flex; }
  .prod { grid-template-columns: 1fr; gap: 20px; } .prod-media { position: relative; top: 0; max-width: 520px; }
  .q-layout { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .mega-in { grid-template-columns: 1fr; } .mega-cats { display: none; } .mega-deps { border: 0; }
}
@media (max-width: 600px) {
  .logo span b { display: none; }
  .allbtn span:not(.burger) { display: none; } .allbtn { padding: 9px 11px; }
  .qlink .lbl { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 16px 10px 12px; } .tile-ico { width: 70px; height: 70px; } .tile-ico .ico { width: 48px; height: 48px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-body { padding: 10px; } .pc h3 { font-size: 14px; } .pc-foot .btn span { display: none; } .pc-foot .btn { padding: 6px 10px; }
  .pc.list .pc-img { width: 96px; } .pc.list .pc-specs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-kpis dd { font-size: 22px; }
  .hero-search { flex-direction: column; }
  .qitems li { grid-template-columns: 40px 1fr 64px auto; } .qi-unit { display: none; }
  .buy .btn.big { flex: 1 1 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .res-tools label { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* sub navigation */
.subnav { background: #1b1b1b; border-top: 1px solid #2a2a2a; }
.subnav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { color: #d9d4c7; text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 10px 12px; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.on { color: #fff; border-bottom-color: #fff; }

/* content pages */
.pg-hero { background: #111; color: #fff; padding: 38px 0 42px; margin-top: 10px; }
.pg-hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05; letter-spacing: -.02em; }
.pg-hero p { color: #cfc9bb; max-width: 62ch; margin-top: 12px; font-size: 17px; }
.pg-body { padding: 28px 20px 40px; display: grid; gap: 24px; }
.pg-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.pg-toc a { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: 14px; }
.pg-toc a:hover { border-color: var(--ink); }
.pg-secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.pg-secs.plain { grid-template-columns: 1fr; max-width: 820px; }
.pg-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 16px; scroll-margin-top: 140px; }
.pg-secs.plain .pg-sec { grid-template-columns: 1fr; }
.pg-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.pg-sec h2, .ind h2 { font-size: 19px; margin-bottom: 6px; }
.pg-sec p, .ind p { color: #3d3a34; line-height: 1.6; }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 5px; font-size: 14px; }
.ticks li { padding-inline-start: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ind { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.ind-deps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.ind-deps a { font-size: 12.5px; font-weight: 600; text-decoration: none; background: var(--paper); border-radius: 99px; padding: 4px 10px; }
.ind-deps a:hover { background: var(--ink); color: #fff; }
.faq { max-width: 820px; display: grid; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; color: #3d3a34; line-height: 1.6; }
.ct-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
.ct-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 6px; text-decoration: none; }
.ct-card span { color: var(--muted); font-size: 13px; } .ct-card b { font-size: 15px; overflow-wrap: anywhere; }
a.ct-card:hover { border-color: var(--ink); }
.ct-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.pg-cta { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.pg-cta h2 { font-size: 20px; }
@media (max-width: 800px) { .pg-toc { display: none; } .ct-grid { grid-template-columns: 1fr; } .pg-secs { grid-template-columns: 1fr; } .pg-sec { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ct-cards { grid-template-columns: 1fr; } }
.msg:empty { display: none; }

/* header dropdowns + tools */
.subnav-in { align-items: center; overflow: visible; }
.dd { position: relative; }
.dd > a { display: inline-flex; align-items: center; gap: 6px; }
.dd-menu { display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 230px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 18px 40px rgba(0,0,0,.18); padding: 6px; z-index: 40; max-height: 70vh; overflow: auto; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: grid; }
.dd-menu a { color: var(--ink) !important; border: 0 !important; padding: 8px 10px !important; border-radius: 6px; font-weight: 600; }
.dd-menu a:hover { background: var(--paper); }
.sn-tools { margin-inline-start: auto; display: flex; gap: 2px; }
.sn-tools a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .subnav-in { overflow-x: auto; } .dd-menu { display: none !important; } .dd > a svg { display: none; } .sn-tools { margin: 0; } }

/* home feature sections */
.feature { position: relative; color: #fff; background: #111 var(--img) center / cover no-repeat; }
.feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%); }
.feature.alt::before { background: linear-gradient(270deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%); }
[dir="rtl"] .feature::before { transform: scaleX(-1); }
.feature-in { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; min-height: 460px; padding-top: 56px; padding-bottom: 56px; }
.feature.alt .feature-in { grid-template-columns: .8fr 1.2fr; }
.feature .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: #d9d4c7; }
.feature h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.02em; margin: 8px 0 14px; }
.feature p { color: #e9e5db; font-size: 17px; max-width: 52ch; line-height: 1.55; }
.feature-card { background: rgba(242,238,229,.96); color: var(--ink); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 4px; max-width: 360px; justify-self: end; width: 100%; }
.feature.alt .feature-card { justify-self: start; }
.feature-card b { font-size: 16px; margin-bottom: 6px; }
.feature-card a { text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 7px 0; display: flex; gap: 10px; align-items: center; border-top: 1px solid rgba(0,0,0,.08); }
.feature-card .arr { opacity: 0; transition: opacity .15s; } .feature-card a:hover .arr, .feature-card a:focus .arr { opacity: 1; }
[dir="rtl"] .feature-card .arr { transform: scaleX(-1); }
@media (max-width: 800px) { .feature-in, .feature.alt .feature-in { grid-template-columns: 1fr; min-height: 0; } .feature.alt .feature-card { order: 2; } .feature-card { justify-self: stretch !important; max-width: none; } .feature::before, .feature.alt::before { background: rgba(0,0,0,.7); } }

/* blog */
.blogstrip { padding: 40px 0 44px; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.bcard-img { display: block; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--paper); }
.bcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcard-body { padding: 14px 16px 18px; display: grid; gap: 6px; }
.bcard time { font-size: 12px; color: var(--muted); }
.bcard h3 { font-size: 17px; line-height: 1.3; } .bcard h3 a { text-decoration: none; } .bcard h3 a:hover { text-decoration: underline; }
.bcard p { color: #3d3a34; font-size: 14px; line-height: 1.5; }
.article { max-width: 760px; margin: 0 auto; padding: 10px 0 40px; }
.article .hero-img { aspect-ratio: 16 / 8; border-radius: var(--r); overflow: hidden; position: relative; margin: 18px 0 22px; } .article .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.02em; }
.article time { color: var(--muted); font-size: 14px; display: block; margin-top: 10px; }
.article h2 { font-size: 21px; margin: 26px 0 8px; }
.article p { font-size: 17px; line-height: 1.7; color: #2a2823; margin-bottom: 12px; }
.article .pg-cta { margin-top: 28px; }

/* footer additions */
.news { margin-top: 18px; display: grid; gap: 8px; max-width: 360px; }
.news label { font-size: 13.5px; color: #cfc9bb; }
.news-row { display: flex; gap: 6px; } .news-row input { flex: 1; min-width: 0; border-radius: 99px; border: 1px solid #444; background: #1b1b1b; color: #fff; padding: 9px 14px; }
.news-msg { font-size: 13px; color: #cfc9bb; min-height: 1em; }
.social { display: flex; gap: 12px; margin-top: 12px; } .social a { color: #fff; opacity: .85; } .social a:hover { opacity: 1; }
.fcontact { margin-top: 12px; font-size: 13.5px; color: #cfc9bb; } .fcontact a { color: #cfc9bb; }
.foot-in { grid-template-columns: 1.4fr repeat(5, 1fr) !important; }
.foot-bot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .foot-bot a { color: inherit; }
.track { max-width: 520px; }
@media (max-width: 1100px) { .foot-in { grid-template-columns: 1fr 1fr 1fr !important; } }
@media (max-width: 600px) { .foot-in { grid-template-columns: 1fr 1fr !important; } .fbrand { grid-column: 1 / -1; } }
.foot-bot span a { display: inline; padding: 0; }
.fcontact a { display: inline; }

/* photo tiles (departments, categories, mega menu) */
.tile.photo { padding: 0 0 14px; overflow: hidden; gap: 8px; }
.tile-img { width: 100%; aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--paper); display: grid; place-items: center; }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile.photo:hover .tile-img img { transform: scale(1.04); }
.tile.photo .tile-name { padding: 0 10px; min-height: 2.5em; display: flex; align-items: center; }
.stile.photo { padding: 0 0 10px; overflow: hidden; }
.stile-img { width: 100%; aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--paper); display: block; }
.stile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stile.photo > span:not(.stile-img) { padding: 0 8px; }
.mc-grid a img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
@media (max-width: 600px) { .tile.photo { padding: 0 0 10px; } .tile.photo .tile-name { font-size: 13px; } }
.mega-deps a { grid-template-columns: 30px 1fr auto; } .md-img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }

/* quote: document upload */
.upl { display: grid; gap: 6px; }
.upl .fh { font-weight: 700; }
.small { font-size: 13px; }
.drop { border: 2px dashed var(--line); border-radius: var(--r); padding: 18px; display: grid; justify-items: center; gap: 4px; text-align: center; cursor: pointer; background: var(--paper); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--ink); background: #fff; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop b { background: var(--ink); color: #fff; border-radius: 99px; padding: 7px 16px; font-size: 14px; }
.drop span { color: var(--muted); font-size: 13px; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.flist li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 14px; }
.flist li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flist li small { color: var(--muted); }
.qi-ico img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; display: block; }

/* v23: photo pickers, photo cards and clear "you selected" highlight */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pick { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #222; color: #fff; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, border-color .15s ease; }
.pick-img, .pick-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); }
.pick b { position: absolute; inset-inline: 10px; bottom: 9px; z-index: 1; font-size: 14px; line-height: 1.25; }
.pick-ico { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; }
.pick:hover { transform: translateY(-2px); }
.pick.on { border-color: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.pick.on::before { content: "✓"; position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.pg-secs.imgd { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.pg-sec.has-img, .ind.has-img { display: flex; flex-direction: column; padding: 0; overflow: hidden; gap: 0; scroll-margin-top: 150px; position: relative; transition: opacity .35s ease, box-shadow .35s ease, transform .35s ease; }
.sec-img { position: relative; aspect-ratio: 16 / 8; background: var(--paper); }
.sec-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sec-img.noimg { aspect-ratio: 16 / 4; }
.sec-badge { position: absolute; bottom: -22px; inset-inline-start: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.sec-dep { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(13,13,12,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.sec-dep:empty { display: none; }
.sec-body { padding: 30px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sec-body .btn { align-self: flex-start; margin-top: 12px; }
.ind-lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.ind .ind-deps { margin-top: 6px; padding-top: 0; }
/* the highlight */
.pg-secs.focusing > .pg-sec:not(.is-target) { opacity: .32; }
.pg-sec.is-target { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 18px 44px rgba(0,0,0,.18); animation: palmPulse 1.2s ease 1; }
.pg-sec.is-target::before { content: attr(data-sel); position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 12px 5px 10px; border-radius: 99px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.pg-sec.is-target:not(.has-img)::before { top: -12px; }
.pg-sec.is-target:focus { outline: 3px solid var(--ink); }
@keyframes palmPulse { 0% { transform: scale(.985); } 40% { transform: scale(1.012); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pg-sec.is-target { animation: none; } .pick:hover { transform: none; } }
/* guides */
.gfilter { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 6px 12px; cursor: pointer; text-transform: capitalize; }
.chip span:last-child { color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on span:last-child { color: #cfc9bb; }
.gbox { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--ink); border-radius: var(--r); padding: 14px 16px; margin: 6px 0 14px; }
.gbox b { display: block; margin-bottom: 6px; }
.gbox-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.gbox-links a { font-weight: 600; font-size: 14px; }
@media (max-width: 800px) {
  .picker { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 4px; }
  .pick { flex: 0 0 150px; scroll-snap-align: start; }
  .pg-secs.imgd { grid-template-columns: 1fr; }
}
