/* ===========================================================
   Component + layout styles
   =========================================================== */

/* ---- logo ---- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: block; border-radius: 8px; box-shadow: 0 4px 12px -4px rgba(14,92,156,.45); }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--display); }
.logo-text strong { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.logo-sub { font-size: 9.5px; font-weight: 600; letter-spacing: .26em; color: var(--ink-45); margin-top: 2px; }

/* =================== HEADER =================== */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-bar { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.navlink { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 13px; border-radius: 10px; font-weight: 550; font-size: 14.5px; color: var(--ink-80); background: transparent; border: 0; transition: background .14s, color .14s; white-space: nowrap; }
.navlink:hover { background: var(--surface-2); color: var(--ink); }
.navlink.active { color: var(--purple); }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: transparent; border: 1px solid transparent; color: var(--ink-80); transition: background .14s, border-color .14s; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--purple); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; font-family: var(--display); }
.icon-btn .dot.blue { background: var(--blue); }
.hamburger { display: none; }

/* search in header */
.hsearch { position: relative; flex: 0 1 360px; transition: flex-basis .25s ease; }
.hsearch.focused { flex-basis: 460px; }
.hsearch-input { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px 0 40px; font-size: 14.5px; font-family: var(--sans); background: var(--surface-2); transition: border-color .15s, background .15s, box-shadow .15s; }
.hsearch-input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(18,121,190,.12); }
.hsearch .sicon { position: absolute; left: 13px; top: 12px; color: var(--ink-45); pointer-events: none; }
.hsearch kbd { position: absolute; right: 10px; top: 11px; font-family: var(--display); font-size: 11px; font-weight: 600; color: var(--ink-45); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.hsearch.focused kbd { display: none; }

/* suggest dropdown */
.suggest { position: absolute; top: 52px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); overflow: hidden; z-index: 70; }
.suggest-head { padding: 9px 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-45); border-bottom: 1px solid var(--line-2); }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; transition: background .12s; }
.suggest-item:hover, .suggest-item.hl { background: var(--surface-2); }
.suggest-item .si-ph { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.suggest-item .si-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.suggest-item .si-sku { font-size: 12px; color: var(--ink-45); }
.suggest-match { margin-left: auto; }

/* =================== MEGA MENU =================== */
.mega-wrap { position: relative; }
.mega { position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 55; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-3); transform-origin: top; }
.mega-grid { max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 30px; display: grid; grid-template-columns: repeat(4, 1fr) 1.1fr; gap: 8px 30px; }
.mega-col { padding: 6px 0; }
.mega-cat { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 14.5px; margin-bottom: 10px; color: var(--ink); }
.mega-cat .dotmark { width: 7px; height: 7px; border-radius: 2px; background: var(--purple); }
.mega-child { display: block; font-size: 13.5px; color: var(--ink-60); padding: 4px 0; transition: color .12s, padding .12s; }
.mega-child:hover { color: var(--blue); padding-left: 4px; }
.mega-feature { background: var(--surface-2); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; }
.mega-feature h4 { font-size: 16px; margin-bottom: 6px; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega.anim { animation: megaIn .22s cubic-bezier(.2,.7,.2,1); }

/* =================== HERO (split, light) =================== */
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--surface-2)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; }
.hero-left { padding: 64px 0 64px; display: flex; flex-direction: column; justify-content: center; max-width: 600px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: .98; margin: 16px 0 0; }
.hero h1 .accent { color: var(--purple); }
.hero-lead { font-size: 18px; color: var(--ink-60); margin-top: 20px; max-width: 480px; }
.hero-since { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .04em; color: var(--ink-60); white-space: nowrap; }
.hero-since .rule { width: 28px; height: 2px; background: var(--purple); }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-search { margin-top: 26px; }
.hero-right { position: relative; }
.hero-right .ph { border-radius: 0; height: 100%; }
.hero-right .hero-tag { position: absolute; left: 24px; bottom: 24px; background: rgba(14,14,16,.85); color: #fff; backdrop-filter: blur(8px); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.hero-tag .ht-num { font-family: var(--display); font-size: 22px; font-weight: 700; }

/* big PN search hero */
.bigsearch { display: flex; gap: 0; max-width: 520px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: var(--sh-2); overflow: hidden; }
.bigsearch input { flex: 1; border: 0; height: 58px; padding: 0 18px; font-size: 16px; font-family: var(--sans); background: transparent; }
.bigsearch input:focus { outline: none; }
.bigsearch button { border: 0; background: var(--ink); color: #fff; padding: 0 22px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: background .15s; }
.bigsearch button:hover { background: var(--purple); }
.bigsearch-hint { font-size: 13px; color: var(--ink-45); margin-top: 10px; }
.bigsearch-hint b { color: var(--ink-80); font-weight: 600; }

/* =================== TRUST STRIP (collapsible) =================== */
.trust { border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--ink-60); }
.trust-bar { display: flex; align-items: center; gap: 16px; padding: 12px 0; min-height: 52px; }
.trust-items { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: center; flex: 1; min-width: 0;
  transition: max-height .3s cubic-bezier(.2,.7,.2,1), opacity .22s ease; }
.trust-summary { display: none; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-80); }
.trust-summary svg { color: var(--blue); }
.trust.collapsed .trust-items { display: none; }
.trust.open .trust-summary { display: none; }
.trust.collapsed .trust-summary { display: flex; }
.trust-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; height: 32px; padding: 0 12px;
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-60);
  transition: background .15s, border-color .15s, color .15s; }
.trust-toggle:hover { background: #fff; border-color: var(--ink-30); color: var(--ink); }
.trust-toggle .tt-chev { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.trust.collapsed .trust-toggle .tt-chev { transform: rotate(0deg); }
.trust.open .trust-toggle .tt-chev { transform: rotate(180deg); }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-60); white-space: nowrap; }
.trust-item svg { color: var(--blue); flex: none; }
.trust-item b { color: var(--ink); font-weight: 600; }
.trust-sep { width: 1px; height: 18px; background: var(--line); }

/* =================== SECTION =================== */
.section { padding: 64px 0; }
.section-sm { padding: 44px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); }
.section-head .sh-sub { color: var(--ink-60); margin-top: 8px; font-size: 16px; }
.seeall { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); font-size: 15px; white-space: nowrap; }
.seeall:hover { gap: 9px; }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: #fff; overflow: hidden; transition: transform .18s, box-shadow .2s, border-color .2s; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.tile-num { font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--ink-30); }
.tile h3 { font-size: 17px; margin-top: 8px; }
.tile .tile-blurb { font-size: 12.5px; color: var(--ink-45); margin-top: 5px; line-height: 1.4; }
.tile .tile-go { position: absolute; top: 16px; right: 16px; color: var(--ink-30); transition: transform .18s, color .18s; }
.tile:hover .tile-go { color: var(--purple); transform: translate(3px,-3px); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--purple); transform: scaleY(0); transform-origin: top; transition: transform .22s; }
.tile:hover::before { transform: scaleY(1); }

/* product rail / grid */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { cursor: pointer; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.pcard-media { position: relative; }
.pcard-media .ph { border-radius: 0; }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.pcard-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pcard-group { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--purple); }
.pcard-title { font-size: 16px; line-height: 1.18; font-family: var(--display); font-weight: 600; }
.pcard-sku { font-size: 12.5px; color: var(--ink-45); }
.pcard-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }

/* price */
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price-now { font-family: var(--display); font-weight: 700; color: var(--ink); }
.price-sm .price-now { font-size: 18px; }
.price-md .price-now { font-size: 24px; }
.price-lg .price-now { font-size: 34px; }
.price-was { font-size: 12px; color: var(--ink-45); text-decoration: line-through; }
.price-core { font-size: 11.5px; color: var(--ink-45); margin-top: 2px; }
.price-call { font-family: var(--display); font-weight: 600; color: var(--warn); font-size: 16px; }
.price-quote-link { text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: opacity .15s; }
.price-quote-link:hover { opacity: .72; text-decoration: underline; }
.price-md .price-was, .price-lg .price-was { font-size: 15px; }

/* atq button tweak */
.atq { flex: none; }
.pcard-foot .atq { height: 36px; padding: 0 12px; font-size: 13px; }

/* toast */
.toaster { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--sh-3); font-size: 14px; font-weight: 500; animation: toastIn .22s ease; }
.toast svg { color: #6fe0a8; }
.toast-action { color: #7cc0ff; font-weight: 600; margin-left: 4px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* footer */
.footer { background: var(--ink); color: #c9c9d0; padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-family: var(--display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer a { display: block; padding: 5px 0; font-size: 14px; color: #c9c9d0; transition: color .12s; }
.footer a:hover { color: #fff; }
.footer-bot { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: #8a8a93; flex-wrap: wrap; }
.footer .logo-text strong, .footer .logo-sub { color: #fff; }
