/**
 * InFront — test product page (?test=1)
 * PDP DIST V2 — distributor-style (Mouser/Element14 DNA)
 */

/* ====================================================================
   1. RESET / TAKEOVER — hide all of warehouse/IQIT chrome on this page
   ==================================================================== */
body.pdp-dist { background:#f4f6f8 !important; color:#0f172a; font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif !important; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; font-feature-settings:"cv02","cv03","cv04","cv11"; font-size:14px; line-height:1.5; }
body.pdp-dist *, body.pdp-dist *::before, body.pdp-dist *::after { box-sizing:border-box; }

/* Hide live site chrome — test page uses its own pdp header; show real footer */
body.pdp-dist #header,
body.pdp-dist #desktop-header-container,
body.pdp-dist #mobile-header,
body.pdp-dist #wrapper > .breadcrumb,
body.pdp-dist #wrapper .breadcrumb,
body.pdp-dist #wrapper nav.breadcrumb,
body.pdp-dist nav.breadcrumb,
body.pdp-dist .breadcrumb,
body.pdp-dist #iqitproductsnav,
body.pdp-dist #back-to-top,
body.pdp-dist #notifications,
body.pdp-dist #cookieAlert { display:none !important; }

/* Full-width product content only — do not override header containers */
body.pdp-dist #wrapper { padding:0 !important; margin:0 !important; background:#f4f6f8 !important; min-height:0 !important; overflow:visible !important; }
body.pdp-dist #inner-wrapper { max-width:none !important; padding:0 !important; margin:0 !important; width:100% !important; overflow:visible !important; }
body.pdp-dist #content-wrapper { padding:0 !important; max-width:none !important; flex:0 0 100% !important; width:100% !important; overflow:visible !important; }
body.pdp-dist #content-wrapper.col-md-9,
body.pdp-dist #content-wrapper.left-column { flex:0 0 100% !important; max-width:100% !important; width:100% !important; }
body.pdp-dist #left-column, body.pdp-dist #right-column { display:none !important; }
body.pdp-dist #wrapper .row,
body.pdp-dist #inner-wrapper > .row,
body.pdp-dist #content-wrapper .row { margin:0 !important; }
body.pdp-dist #main-page-content { padding:0 !important; margin:0 !important; }
body.pdp-dist #wrapper .container,
body.pdp-dist #wrapper .container-fluid,
body.pdp-dist #inner-wrapper.container { max-width:none !important; padding:0 !important; }

/* Hide the default page header/title PrestaShop renders before our content */
body.pdp-dist #main > .page-header,
body.pdp-dist #main > header.page-header,
body.pdp-dist #main > h1.page-title,
body.pdp-dist #main > div.product-prices,
body.pdp-dist section#main > .page-header,
body.pdp-dist section#main > header:not(.pdp-header),
body.pdp-dist section#main > h1.page-title,
body.pdp-dist section#main > h1.h1.page-title,
body.pdp-dist section#main > div.product-prices,
body.pdp-dist .pdp-test-banner-old { display:none !important; }

/* ====================================================================
   2. DESIGN TOKENS
   ==================================================================== */
.pdp {
  --bg:#f4f6f8;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --surface-3:#eef2f6;
  --line:#e2e8f0;
  --line-strong:#cbd5e1;
  --ink:#0f172a;
  --ink-2:#334155;
  --ink-3:#64748b;
  --ink-4:#94a3b8;
  --brand:#238b6b;
  --brand-ink:#1a7358;
  --brand-soft:#e8f5ef;
  --accent:#0b5cad;
  --warn:#b45309;
  --warn-soft:#fef3c7;
  --ok:#15803d;
  --ok-soft:#dcfce7;
  --bad:#b91c1c;
  --bad-soft:#fee2e2;
  --shadow-sm:0 1px 2px rgba(15,23,42,.06);
  --shadow-md:0 1px 3px rgba(15,23,42,.06),0 4px 12px rgba(15,23,42,.04);
  --radius-sm:4px;
  --radius:6px;
  --radius-lg:10px;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Consolas,monospace;
}
.pdp { color:var(--ink); }
.pdp a { color:var(--accent); text-decoration:none; }
.pdp a:hover { text-decoration:underline; }
.pdp h1, .pdp h2, .pdp h3, .pdp h4 { color:var(--ink); font-weight:600; letter-spacing:-0.01em; margin:0; }

.pdp-wrap { max-width:1320px; margin:0 auto; padding:0 20px; }

/* ====================================================================
   3. HEADER — slim, distributor-style
   ==================================================================== */
.pdp-utility { background:#0f172a; color:#cbd5e1; font-size:12px; }
.pdp-utility__row { max-width:1320px; margin:0 auto; padding:8px 20px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.pdp-utility__left, .pdp-utility__right { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.pdp-utility a { color:#cbd5e1; }
.pdp-utility a:hover { color:#fff; text-decoration:none; }
.pdp-utility__phone { color:#fff !important; font-weight:600; }
.pdp-utility__phone i { color:var(--brand); margin-right:6px; }
.pdp-utility__divider { width:1px; height:14px; background:#334155; }
.pdp-utility__pill { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:99px; background:rgba(35,139,107,.22); color:#86efac !important; font-weight:600; font-size:11px; letter-spacing:.02em; text-transform:uppercase; }
.pdp-utility__cart { display:inline-flex; align-items:center; gap:8px; color:#fff !important; font-weight:600; }
.pdp-utility__cart-count { min-width:18px; height:18px; padding:0 5px; border-radius:99px; background:var(--brand); color:#fff; font-size:10px; font-weight:700; display:grid; place-items:center; }

.pdp-utility__cart { display:inline-flex; align-items:center; gap:8px; color:#fff !important; font-weight:600; position:relative; }
.pdp-utility__cart-count { min-width:18px; height:18px; padding:0 5px; border-radius:99px; background:var(--brand); color:#fff; font-size:10px; font-weight:700; display:grid; place-items:center; }

.pdp-header { background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:200; overflow:visible; box-shadow:0 1px 0 rgba(15,23,42,.04); }
.pdp-header__inner { max-width:1320px; margin:0 auto; padding:0 20px; position:relative; }
.pdp-header__row { max-width:none; margin:0; padding:16px 0; display:grid; grid-template-columns:auto 1fr auto; gap:28px; align-items:center; }
.pdp-logo { display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; }
.pdp-logo:hover { text-decoration:none; }
.pdp-logo__img { display:block; max-height:42px; width:auto; }
.pdp-logo__mark { width:38px; height:38px; border-radius:6px; background:linear-gradient(135deg,#0f9d8e 0%,#0a7d72 100%); color:#fff; display:grid; place-items:center; font-weight:800; font-size:15px; letter-spacing:-.02em; box-shadow:0 1px 0 rgba(255,255,255,.2) inset; }
.pdp-logo__name { display:flex; flex-direction:column; line-height:1.1; }
.pdp-logo__name strong { font-size:16px; color:#0f172a; font-weight:700; letter-spacing:-.01em; }
.pdp-logo__name span { font-size:11px; color:#64748b; font-weight:500; letter-spacing:.04em; text-transform:uppercase; }

.pdp-search-wrap { position:relative; width:100%; max-width:760px; min-width:0; z-index:221; }
.pdp-search-wrap.is-open .pdp-search { border-color:var(--brand); box-shadow:0 0 0 3px rgba(35,139,107,.18); }
.pdp-search { display:flex; max-width:none; width:100%; height:46px; border:1.5px solid #cbd5e1; border-radius:6px; overflow:hidden; background:#fff; transition:border-color .12s ease, box-shadow .12s ease; }
.pdp-search:focus-within { box-shadow:0 0 0 3px rgba(35,139,107,.18); border-color:var(--brand); }

.pdp-search-backdrop { position:fixed; inset:0; background:rgba(15,23,42,.28); z-index:198; opacity:0; pointer-events:none; transition:opacity .15s ease; }
.pdp-search-backdrop.is-visible { opacity:1; pointer-events:auto; }

.pdp-search-panel { position:absolute; left:50%; right:auto; width:min(1280px, calc(100vw - 40px)); transform:translateX(-50%); top:calc(100% + 10px); z-index:300; background:#fff; border:1.5px solid var(--brand); border-radius:12px; box-shadow:0 24px 64px rgba(15,23,42,.18); overflow:hidden; max-height:min(620px, calc(100vh - 120px)); display:flex; flex-direction:column; }
.pdp-search-panel[hidden] { display:none !important; }
.pdp-search-panel__head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; border-bottom:1px solid #e2e8f0; background:#f8fafc; }
.pdp-search-panel__count { font-size:13px; font-weight:600; color:#334155; }
.pdp-search-panel__count em { font-style:normal; color:var(--brand-ink); }
.pdp-search-panel__hint { font-size:12px; color:#64748b; }
.pdp-search-panel__body { overflow-y:auto; -webkit-overflow-scrolling:touch; }
.pdp-search-panel__status { padding:28px 18px; font-size:14px; color:#64748b; text-align:center; }
.pdp-search-panel__status--error { color:#b91c1c; }
.pdp-search-panel__spinner { display:inline-block; width:16px; height:16px; margin-right:8px; border:2px solid #cbd5e1; border-top-color:var(--brand); border-radius:50%; vertical-align:-3px; animation:pdp-search-spin .65s linear infinite; }
@keyframes pdp-search-spin { to { transform:rotate(360deg); } }

.pdp-search-panel__grid { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:12px; padding:14px 16px 16px; }
.pdp-search-panel__tile { display:flex; flex-direction:column; min-height:196px; padding:10px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; text-decoration:none !important; color:var(--ink) !important; cursor:pointer; transition:border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.pdp-search-panel__tile:hover, .pdp-search-panel__tile.is-active { border-color:var(--brand); box-shadow:0 8px 24px rgba(35,139,107,.12); transform:translateY(-1px); }
.pdp-search-panel__thumb { display:flex; align-items:center; justify-content:center; height:96px; margin-bottom:10px; padding:8px; border-radius:8px; background:#f8fafc; border:1px solid #eef2f7; overflow:hidden; }
.pdp-search-panel__thumb img { width:100%; height:100%; max-height:80px; object-fit:contain; display:block; }
.pdp-search-panel__thumb--empty { background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%); }
.pdp-search-panel__meta { display:flex; flex-direction:column; gap:6px; min-height:0; flex:1; }
.pdp-search-panel__name { font-size:12px; font-weight:600; line-height:1.35; color:#0f172a; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pdp-search-panel__name mark { background:rgba(35,139,107,.16); color:#0a7d72; padding:0 2px; border-radius:2px; font-weight:700; }
.pdp-search-panel__ref { font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size:11px; font-weight:600; color:#64748b; letter-spacing:.03em; }
.pdp-search-panel__price { margin-top:auto; padding-top:8px; font-size:14px; font-weight:800; color:#0f172a; letter-spacing:-.01em; }

.pdp-search-panel__all { display:block; width:100%; border:0; border-top:1px solid #e2e8f0; background:#f8fafc; color:var(--brand-ink); font:inherit; font-size:14px; font-weight:700; padding:14px 18px; text-align:center; cursor:pointer; flex-shrink:0; }
.pdp-search-panel__all:hover { background:#ecfdf5; color:var(--brand); }

@media (max-width:1100px){
  .pdp-search-panel__grid { grid-template-columns:repeat(4, minmax(0, 1fr)); }
}
@media (max-width:900px){
  .pdp-search-panel__grid { grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (max-width:768px){
  .pdp-search-panel { left:50%; right:auto; width:calc(100vw - 24px); transform:translateX(-50%); border-radius:0 0 12px 12px; max-height:min(70vh, 520px); }
  .pdp-search-panel__grid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; padding:12px; }
  .pdp-search-panel__tile { min-height:180px; padding:8px; }
  .pdp-search-panel__thumb { height:80px; }
}
.pdp-search__input { flex:1; border:0; padding:0 16px; font-size:14px; color:var(--ink); outline:none; font-family:inherit; }
.pdp-search__input::placeholder { color:#94a3b8; }
.pdp-search__btn { background:var(--brand); color:#fff; border:0; padding:0 20px; font-weight:600; font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center; min-width:52px; font-family:inherit; }
.pdp-search__btn:hover { background:var(--brand-ink); }

.pdp-actions { display:flex; align-items:center; gap:4px; }
.pdp-action--tool { flex-direction:column; gap:4px; padding:6px 10px; min-width:72px; text-align:center; }
.pdp-action--tool .pdp-action__icon { width:auto; height:auto; font-size:20px; color:var(--ink-2); }
.pdp-action--tool .pdp-action__label { font-size:11px; color:var(--ink-3); font-weight:500; line-height:1.1; }
.pdp-action--tool:hover .pdp-action__label { color:var(--ink); }
.pdp-action { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:6px; color:var(--ink) !important; text-decoration:none; }
.pdp-action:hover { background:#f1f5f9; text-decoration:none !important; }
.pdp-action__icon { width:32px; height:32px; display:grid; place-items:center; color:var(--ink-2); position:relative; flex-shrink:0; }
.pdp-action__icon svg { width:24px; height:24px; }
.pdp-action__text { display:flex; flex-direction:column; line-height:1.15; font-size:11px; color:var(--ink-3); }
.pdp-action__text strong { font-size:13px; color:var(--ink); font-weight:600; }
.pdp-action__count { position:absolute; top:-4px; right:-6px; min-width:18px; height:18px; padding:0 5px; border-radius:99px; background:var(--brand); color:#fff; font-size:10px; font-weight:700; display:grid; place-items:center; border:2px solid #fff; }

.pdp-cats { background:#fff; border-bottom:1px solid var(--line); overflow:visible; position:relative; z-index:199; }
.pdp-cats--ift { padding:0; overflow:visible; }
.pdp-cats--ift .ift-menu-host { max-width:1320px; margin:0 auto; padding:0 20px; overflow:visible; }

/* IFT-MENU mockup overrides (cache-safe — lives in product-test.css) */
body.pdp-dist .ift-menu__bar { min-height:46px; border-top:1px solid var(--line); }
body.pdp-dist .ift-menu__home {
  width:46px;
  min-height:46px;
  border-right:1px solid var(--line);
  color:var(--ink-2);
}
body.pdp-dist .ift-menu__home:hover,
body.pdp-dist .ift-menu__home:focus-visible {
  color:var(--brand-ink);
  background:#f1f5f9;
}
body.pdp-dist .ift-menu__home .fa { font-size:16px; }
body.pdp-dist .ift-menu__horizontal .ift-menu__link {
  padding:14px 16px;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink);
}
body.pdp-dist .ift-menu__rail { margin-left:auto; border-left:1px solid var(--line); }
body.pdp-dist .ift-menu__rail-item > .ift-menu__link { text-transform:none; letter-spacing:0; font-size:13px; padding:14px 18px; }
/* Test preview: keep desktop nav layout unless very small screens */
body.pdp-dist .ift-menu__toggle { display:none !important; }
body.pdp-dist .ift-menu__bar {
  display:flex !important;
  position:relative;
  overflow:visible;
  flex-direction:row !important;
  max-height:none !important;
}
body.pdp-dist .ift-menu__horizontal {
  position:static;
  overflow:visible;
  flex:1 1 auto;
  min-width:0;
  width:auto !important;
}
body.pdp-dist .ift-menu__horizontal .ift-menu__list {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  overflow:visible !important;
  max-height:none !important;
  border-top:0 !important;
}
body.pdp-dist .ift-menu__horizontal .ift-menu__link {
  width:auto !important;
  white-space:nowrap !important;
  border-bottom:0 !important;
}
body.pdp-dist .ift-menu__horizontal .ift-menu__item { position:static; }
body.pdp-dist .ift-menu__horizontal .ift-menu__panel,
body.pdp-dist .ift-menu__horizontal .ift-menu__panel--wide {
  position:absolute !important;
  display:block !important;
  top:100% !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  min-width:0 !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transform:none !important;
  z-index:320;
}
body.pdp-dist .ift-menu__horizontal .ift-menu__item.is-open > .ift-menu__panel,
body.pdp-dist .ift-menu__horizontal .ift-menu__item--has-panel.is-open > .ift-menu__panel--wide {
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}
body.pdp-dist .ift-menu__horizontal .ift-menu__panel--wide .ift-menu__panel-inner {
  border-radius:0 0 10px 10px;
  border-top:0;
  box-shadow:0 16px 48px rgba(15,23,42,.12);
}
body.pdp-dist .pdp-cats { z-index:210; overflow:visible; }
body.pdp-dist .pdp-header { overflow:visible; }

@media (max-width: 640px) {
  body.pdp-dist .ift-menu__toggle {
    display:flex !important;
    background:#f3f4f6 !important;
    color:var(--ink) !important;
    border-bottom:1px solid var(--line);
    font-weight:600;
  }
  body.pdp-dist .ift-menu.is-mobile-open .ift-menu__bar { display:flex !important; flex-direction:column; }
  body.pdp-dist .ift-menu__bar { display:none !important; }
}
.pdp-cats__row { max-width:1320px; margin:0 auto; padding:0 20px; display:flex; align-items:center; gap:0; overflow-x:auto; scrollbar-width:none; }
.pdp-cats__row::-webkit-scrollbar { display:none; }
.pdp-cats__item { display:inline-flex; align-items:center; gap:6px; padding:11px 14px; font-size:13px; color:var(--ink-2); white-space:nowrap; border-bottom:2px solid transparent; transition:color .15s, border-color .15s; }
.pdp-cats__item:hover { color:var(--brand-ink); border-bottom-color:var(--brand); text-decoration:none; }
.pdp-cats__item.is-current { color:var(--brand-ink); border-bottom-color:var(--brand); font-weight:600; }
.pdp-cats__item--all { padding-left:0; padding-right:18px; border-right:1px solid var(--line); margin-right:8px; font-weight:600; color:var(--ink); }
.pdp-cats__item--all i { color:var(--brand); }
.pdp-cats__item--right { margin-left:auto; }
.pdp-cats__item--deal { color:var(--warn); font-weight:600; }
.pdp-cats__item--deal:hover { color:var(--warn); border-bottom-color:var(--warn); }

/* ====================================================================
   4. BREADCRUMBS — pill trail with brand accent
   ==================================================================== */
@keyframes pdpCrumbsIn {
  from { opacity:0; transform:translateY(-4px); }
  to   { opacity:1; transform:translateY(0); }
}

.pdp-crumbs {
  margin:16px 0 6px;
  padding:0;
  animation:pdpCrumbsIn .35s ease both;
}

.pdp-crumbs__list {
  list-style:none;
  margin:0;
  padding:10px 14px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.2rem .15rem;
  background:linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.85);
  position:relative;
  overflow:hidden;
}

.pdp-crumbs__list::before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:linear-gradient(180deg, var(--brand) 0%, #1a7358 100%);
  border-radius:var(--radius-lg) 0 0 var(--radius-lg);
}

.pdp-crumbs__item {
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
  margin:0;
  padding:0;
  font-size:13px;
  line-height:1.2;
  color:var(--ink-3);
}

.pdp-crumbs__link {
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.42rem .72rem;
  color:var(--ink-2) !important;
  text-decoration:none !important;
  font-weight:500;
  border-radius:999px;
  transition:color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pdp-crumbs__link:hover,
.pdp-crumbs__link:focus-visible {
  color:var(--brand-ink) !important;
  background:var(--brand-soft);
  box-shadow:0 0 0 1px rgba(35,139,107,.12);
  transform:translateY(-1px);
  outline:none;
}

.pdp-crumbs__link:focus-visible {
  box-shadow:0 0 0 2px rgba(35,139,107,.35);
}

.pdp-crumbs__home-icon {
  flex:0 0 auto;
  width:16px;
  height:16px;
  color:var(--brand);
  opacity:.9;
  transition:transform .18s ease, opacity .18s ease;
}

.pdp-crumbs__link:hover .pdp-crumbs__home-icon,
.pdp-crumbs__link:focus-visible .pdp-crumbs__home-icon {
  opacity:1;
  transform:scale(1.06);
}

.pdp-crumbs__label {
  max-width:280px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pdp-crumbs__sep {
  flex:0 0 auto;
  width:12px;
  height:12px;
  color:var(--ink-4);
  margin:0 .05rem;
}

.pdp-crumbs__current {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.48rem .85rem;
  color:var(--ink);
  font-weight:600;
  font-size:13px;
  letter-spacing:-.01em;
  background:linear-gradient(135deg, rgba(35,139,107,.14) 0%, rgba(35,139,107,.06) 100%);
  border:1px solid rgba(35,139,107,.22);
  border-radius:999px;
  max-width:min(100%, 52rem);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  box-shadow:0 1px 2px rgba(35,139,107,.08);
}

.pdp-crumbs__current::before {
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--brand);
  flex:0 0 auto;
  box-shadow:0 0 0 3px rgba(35,139,107,.18);
}

@media (max-width: 767px) {
  .pdp-crumbs { margin:12px 0 4px; }

  .pdp-crumbs__list {
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    padding:8px 12px 8px 14px;
    mask-image:linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }

  .pdp-crumbs__list::-webkit-scrollbar { display:none; }

  .pdp-crumbs__item { font-size:12px; }

  .pdp-crumbs__link { padding:.35rem .58rem; }

  .pdp-crumbs__label { max-width:11rem; }

  .pdp-crumbs__current {
    font-size:12px;
    padding:.38rem .68rem;
    max-width:none;
  }

  /* Collapse middle crumbs — show home, parent, current */
  .pdp-crumbs[data-depth="4"] .pdp-crumbs__item:not(.pdp-crumbs__item--home):not(.pdp-crumbs__item--current):not(:nth-last-child(2)),
  .pdp-crumbs[data-depth="5"] .pdp-crumbs__item:not(.pdp-crumbs__item--home):not(.pdp-crumbs__item--current):not(:nth-last-child(2)),
  .pdp-crumbs[data-depth="6"] .pdp-crumbs__item:not(.pdp-crumbs__item--home):not(.pdp-crumbs__item--current):not(:nth-last-child(2)) {
    display:none;
  }

  .pdp-crumbs[data-depth="4"] .pdp-crumbs__item:nth-last-child(2)::before,
  .pdp-crumbs[data-depth="5"] .pdp-crumbs__item:nth-last-child(2)::before,
  .pdp-crumbs[data-depth="6"] .pdp-crumbs__item:nth-last-child(2)::before {
    content:"\2026";
    color:var(--ink-4);
    font-size:1.05rem;
    line-height:1;
    margin:0 .35rem 0 .1rem;
    flex:0 0 auto;
    align-self:center;
    letter-spacing:.05em;
  }
}

/* ====================================================================
   5. PRODUCT MAIN — gallery + summary
   ==================================================================== */
.pdp-product { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); margin:12px 0 28px; overflow:hidden; box-shadow:var(--shadow-sm); }
.pdp-product__grid { display:grid; gap:0; }
@media (max-width:980px){ .pdp-product__grid { grid-template-columns:1fr; } }
@media (min-width:981px){ .pdp-product__grid { grid-template-columns:minmax(0,5fr) minmax(0,7fr); } }

/* --- Gallery --- */
.pdp-gallery { padding:24px; border-right:1px solid var(--line); }
@media (max-width:980px){ .pdp-gallery { border-right:0; border-bottom:1px solid var(--line); } }
.pdp-gallery__main { position:relative; aspect-ratio:1/1; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; cursor:zoom-in; }
.pdp-gallery__main img { width:100%; height:100%; object-fit:contain; padding:24px; }
.pdp-gallery__zoom { position:absolute; top:12px; right:12px; background:rgba(255,255,255,.95); border:1px solid var(--line); padding:7px 10px; border-radius:5px; font-size:11px; color:var(--ink-2); display:inline-flex; align-items:center; gap:6px; cursor:pointer; font-family:inherit; font-weight:500; }
.pdp-gallery__zoom:hover { background:#fff; color:var(--brand-ink); border-color:var(--brand); }
.pdp-gallery__badges { position:absolute; top:12px; left:12px; display:flex; flex-direction:column; gap:6px; }
.pdp-gallery__badge { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; border-radius:3px; }
.pdp-gallery__badge--sale { background:var(--warn); color:#fff; }
.pdp-gallery__badge--new { background:var(--brand); color:#fff; }

.pdp-gallery__thumbs { display:grid; grid-template-columns:repeat(auto-fill,minmax(72px,1fr)); gap:8px; margin-top:10px; }
.pdp-gallery__thumb { aspect-ratio:1/1; background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:0; cursor:pointer; overflow:hidden; transition:border-color .15s; }
.pdp-gallery__thumb img { width:100%; height:100%; object-fit:contain; padding:6px; }
.pdp-gallery__thumb:hover { border-color:var(--ink-3); }
.pdp-gallery__thumb.is-active { border-color:var(--brand); border-width:2px; }

.pdp-gallery__features { display:flex; flex-wrap:wrap; gap:12px 20px; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.pdp-gallery__feature { display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--ink-2); max-width:160px; line-height:1.3; }
.pdp-gallery__feature i { width:28px; height:28px; border-radius:6px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; flex-shrink:0; font-size:12px; }

/* --- Summary --- */
.pdp-summary { padding:24px 28px; display:flex; flex-direction:column; gap:0; }

.pdp-brandrow { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:10px; border-bottom:1px solid var(--line); margin-bottom:14px; }
.pdp-brand { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--ink-3); }
.pdp-brand img { max-height:30px; width:auto; }
.pdp-brand a { color:var(--ink-2); font-weight:600; font-size:13px; }
.pdp-brandrow__share { display:flex; gap:4px; }
.pdp-iconbtn { width:32px; height:32px; display:grid; place-items:center; border:1px solid var(--line); border-radius:5px; background:#fff; color:var(--ink-3); cursor:pointer; }
.pdp-iconbtn:hover { color:var(--ink); border-color:var(--ink-3); }
.pdp-iconbtn svg { width:14px; height:14px; }

.pdp-title { font-size:24px; line-height:1.28; font-weight:700; color:var(--ink) !important; margin:0 0 10px !important; padding:0 !important; letter-spacing:-0.02em !important; text-transform:none !important; }

.pdp-meta-inline { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; font-size:12.5px; color:var(--ink-3); margin-bottom:12px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.pdp-meta-inline__sku { font-family:var(--mono); color:var(--ink-2); font-weight:500; }
.pdp-meta-inline__sku strong { color:var(--ink-3); font-weight:600; font-family:inherit; margin-right:4px; }

.pdp-rating { display:flex; align-items:center; gap:8px; padding:0; margin:0; font-size:12.5px; color:var(--ink-3); border:0; }
.pdp-rating__stars--empty { color:#d1d5db; letter-spacing:2px; font-size:13px; }
.pdp-rating__num { color:var(--ink); font-weight:600; }
.pdp-rating a { color:var(--accent); }

.pdp-shortdesc { font-size:13.5px; line-height:1.6; color:var(--ink-2); margin:0 0 16px; }

/* Key specs strip */
.pdp-keyspecs { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); margin-bottom:18px; overflow:hidden; }
.pdp-keyspecs__item { background:#fff; padding:10px 12px; display:flex; flex-direction:column; gap:2px; }
.pdp-keyspecs__label { font-size:10.5px; color:var(--ink-3); font-weight:500; text-transform:uppercase; letter-spacing:.05em; }
.pdp-keyspecs__value { font-size:15px; color:var(--ink); font-weight:600; font-family:var(--mono); letter-spacing:-.02em; line-height:1.2; }

/* Buy box */
.pdp-buy { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:20px; box-shadow:var(--shadow-sm); }
.pdp-stock { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:5px; margin-bottom:14px; font-size:13px; }
.pdp-stock--in { background:var(--ok-soft); color:#166534; }
.pdp-stock--low { background:var(--warn-soft); color:#92400e; }
.pdp-stock--out { background:var(--bad-soft); color:#991b1b; }
.pdp-stock__dot { width:8px; height:8px; border-radius:99px; background:currentColor; flex-shrink:0; box-shadow:0 0 0 3px rgba(255,255,255,.6); }
.pdp-stock strong { font-weight:700; }
.pdp-stock__qty { color:inherit; opacity:.85; margin-left:auto; font-size:12px; font-family:var(--mono); }

.pdp-pricerow { display:flex; align-items:flex-end; gap:14px; margin-bottom:6px; flex-wrap:wrap; }
.pdp-price { display:flex; align-items:baseline; gap:8px; }
.pdp-price__amount { font-size:32px; font-weight:700; color:var(--ink); letter-spacing:-.02em; font-feature-settings:"tnum"; line-height:1; }
.pdp-price__tax { font-size:12px; color:var(--ink-3); font-weight:500; }
.pdp-price__was { font-size:13px; color:var(--ink-3); }
.pdp-price__was s { color:var(--ink-3); }
.pdp-price__save { display:inline-block; padding:3px 7px; border-radius:3px; background:var(--warn); color:#fff; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.pdp-price__exgst { font-size:12px; color:var(--ink-3); margin-bottom:8px; font-feature-settings:"tnum"; }

/* Buy now, pay later — unified PayPal · Zip · Afterpay panel */
.pdp-bnpl {
  position:relative;
  margin:14px 0 16px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
}

.pdp-bnpl__row {
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.pdp-bnpl__badge {
  flex-shrink:0;
  width:34px;
  height:34px;
  border-radius:7px;
  background:var(--brand-soft);
  color:var(--brand-ink);
  font-size:14px;
  font-weight:800;
  font-family:var(--mono);
  display:flex;
  align-items:center;
  justify-content:center;
}

.pdp-bnpl__body { flex:1; min-width:0; }

.pdp-bnpl__lead {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:13px;
  line-height:1.45;
  color:var(--ink-2);
}

.pdp-bnpl__lead-text { display:inline; }

.pdp-bnpl__lead strong { color:var(--ink); font-weight:600; }

.pdp-bnpl__instalment {
  font-weight:700;
  color:var(--brand-ink);
  font-feature-settings:"tnum";
}

.pdp-bnpl__lead-note { color:var(--ink-3); margin-left:2px; }

.pdp-bnpl__chips {
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}

.pdp-bnpl__chip {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:28px;
  padding:4px 10px;
  border:1px solid var(--line);
  border-radius:5px;
  background:#fff;
  cursor:pointer;
  font-family:inherit;
  line-height:1;
  transition:border-color .15s, box-shadow .15s;
}

.pdp-bnpl__chip:hover {
  border-color:var(--line-strong);
  box-shadow:0 1px 3px rgba(15,23,42,.08);
}

.pdp-bnpl__mark {
  font-size:13px;
  font-weight:700;
  letter-spacing:-.01em;
  white-space:nowrap;
}

.pdp-bnpl__pp-pay { color:#003087; }
.pdp-bnpl__pp-pal { color:#009cde; }

.pdp-bnpl__chip-sub {
  font-size:10px;
  font-weight:600;
  color:#003087;
  opacity:.85;
}

.pdp-bnpl__chip--zip {
  background:#1d092c;
  border-color:#1d092c;
}

.pdp-bnpl__mark--zip {
  color:#fff;
  font-size:15px;
  font-weight:800;
  letter-spacing:-.03em;
  text-transform:lowercase;
}

.pdp-bnpl__chip--afterpay {
  background:#b2fce4;
  border-color:#000;
}

.pdp-bnpl__mark--afterpay {
  color:#000;
  font-size:12px;
  font-weight:700;
  text-transform:lowercase;
  letter-spacing:-.02em;
}

/* Hide module source + PayPal hook clutter */
.pdp-bnpl__source,
.pdp-bnpl__paypal-hooks {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.pdp-form__row { display:flex; gap:8px; align-items:stretch; margin-bottom:12px; flex-wrap:wrap; }
.pdp-qty { display:inline-flex; align-items:stretch; height:46px; min-width:148px; border:1.5px solid var(--ink); border-radius:6px; overflow:hidden; background:#fff; flex-shrink:0; }
.pdp-qty button { width:42px; border:0; background:#fff; color:var(--ink); font-size:18px; font-weight:600; cursor:pointer; transition:background .15s; padding:0; flex-shrink:0; }
.pdp-qty button:hover { background:var(--surface-3); }
.pdp-qty input,
.pdp-qty .bootstrap-touchspin input.form-control {
  width:56px !important; min-width:56px; max-width:72px; height:100% !important;
  border:0 !important; border-left:1px solid var(--line) !important; border-right:1px solid var(--line) !important;
  text-align:center; font-size:15px; font-weight:600; font-family:inherit; color:var(--ink) !important;
  background:#fff !important; box-shadow:none !important;
  -moz-appearance:textfield; appearance:textfield; outline:none; padding:0 4px !important;
}
.pdp-qty input::-webkit-outer-spin-button, .pdp-qty input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.pdp-qty .bootstrap-touchspin {
  display:inline-flex !important; visibility:visible !important; align-items:stretch;
  width:auto !important; border:0 !important; background:transparent !important; box-shadow:none !important;
}
.pdp-cta { flex:1; height:46px; border:0; border-radius:6px; background:var(--brand); color:#fff; font-size:14px; font-weight:700; letter-spacing:.01em; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:9px; transition:background .15s, transform .05s; font-family:inherit; }
.pdp-cta:hover { background:var(--brand-ink); }
.pdp-cta:active { transform:translateY(1px); }
.pdp-cta i { font-size:15px; }
.pdp-cta--secondary { background:var(--ink); }
.pdp-cta--secondary:hover { background:#000; }

.pdp-buy__altrow { display:flex; gap:8px; margin-top:8px; }
.pdp-buy__alt { flex:1; height:38px; border:1px solid var(--line); border-radius:5px; background:#fff; color:var(--ink-2); font-size:12.5px; font-weight:500; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:7px; font-family:inherit; }
.pdp-buy__alt:hover { border-color:var(--ink-2); color:var(--ink); }
.pdp-buy__alt i { color:var(--ink-3); }

.pdp-buy__rail { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
@media (max-width:900px){ .pdp-buy__rail { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .pdp-buy__rail { grid-template-columns:1fr; } }
.pdp-buy__rail-item { display:flex; flex-direction:column; gap:6px; align-items:flex-start; font-size:11.5px; line-height:1.4; text-align:left; }
.pdp-buy__rail-item i { color:var(--brand); font-size:18px; margin-bottom:2px; }
.pdp-buy__rail-item strong { display:block; color:var(--ink); font-size:12.5px; font-weight:600; }
.pdp-buy__rail-item span { color:var(--ink-3); }
.pdp-buy__rail-item a { color:var(--accent); font-weight:500; }

/* ====================================================================
   6. CONTENT TABS — sticky, distributor-style
   ==================================================================== */
.pdp-tabs { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); margin-bottom:20px; overflow:hidden; }
.pdp-tabs__nav { display:flex; gap:0; border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; z-index:30; overflow-x:auto; scrollbar-width:none; }
.pdp-tabs__nav::-webkit-scrollbar { display:none; }
.pdp-tabs__btn { padding:14px 22px; border:0; background:transparent; color:var(--ink-2); font-size:13.5px; font-weight:600; cursor:pointer; border-bottom:3px solid transparent; transition:color .15s, border-color .15s; font-family:inherit; white-space:nowrap; letter-spacing:-.005em; }
.pdp-tabs__btn:hover { color:var(--ink); }
.pdp-tabs__btn.is-active { color:var(--brand-ink); border-bottom-color:var(--brand); }
.pdp-tabs__btn .pdp-tabs__count { color:var(--ink-3); font-weight:500; font-size:12px; margin-left:4px; }
.pdp-tabs__btn.is-active .pdp-tabs__count { color:var(--brand-ink); }

.pdp-section { padding:28px 32px; border-bottom:1px solid var(--line); scroll-margin-top:60px; }
.pdp-section:last-child { border-bottom:0; }
.pdp-section__title { font-size:18px; font-weight:600; margin:0 0 18px; color:var(--ink); letter-spacing:-.01em; }
.pdp-overview { display:grid; grid-template-columns:1fr 320px; gap:28px; align-items:start; }
@media (max-width:900px){ .pdp-overview { grid-template-columns:1fr; } }
.pdp-overview__highlights { display:flex; flex-direction:column; gap:14px; }
.pdp-overview__card { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#fff; }
.pdp-overview__card img { width:100%; height:120px; object-fit:cover; display:block; }
.pdp-overview__card-body { padding:14px 16px; }
.pdp-overview__card-title { font-size:14px; font-weight:700; color:var(--ink); margin:0 0 6px; }
.pdp-overview__card-text { font-size:12.5px; color:var(--ink-3); line-height:1.5; margin:0; }

.pdp-section__lead { font-size:14px; color:var(--ink-2); line-height:1.65; margin:0 0 18px; max-width:780px; }

/* Description content */
.pdp-richtext { font-size:14px; color:var(--ink-2); line-height:1.7; }
.pdp-richtext > * { max-width:980px; }
#overview .pdp-richtext > *,
#overview .pdp-desc,
#overview .pdp-desc__body { max-width:none; width:100%; }
.pdp-richtext h1, .pdp-richtext h2, .pdp-richtext h3 { color:var(--ink); margin:24px 0 10px; font-weight:600; }
.pdp-richtext h1 { font-size:18px; }
.pdp-richtext h2 { font-size:16px; }
.pdp-richtext h3 { font-size:14.5px; }
.pdp-richtext p { margin:0 0 12px; }
.pdp-richtext ul, .pdp-richtext ol { margin:0 0 12px; padding-left:22px; }
.pdp-richtext li { margin-bottom:4px; }
.pdp-richtext img { max-width:100%; height:auto; border-radius:var(--radius); margin:12px 0; border:1px solid var(--line); }
.pdp-richtext a { color:var(--accent); }
.pdp-richtext strong, .pdp-richtext b { color:var(--ink); font-weight:600; }
.pdp-richtext table { border-collapse:collapse; margin:12px 0; }
.pdp-richtext th, .pdp-richtext td { border:1px solid var(--line); padding:6px 10px; }

/* Long description — collapsed to ~20 lines, expand on More */
.pdp-desc { position:relative; max-width:none; width:100%; }
.pdp-desc__body {
  max-height:calc(1.7em * 20);
  overflow:hidden;
  transition:max-height .45s ease;
}
.pdp-desc.is-open .pdp-desc__body { max-height:var(--pdp-desc-full, 4000px); }
.pdp-desc__fade {
  position:absolute;
  left:0; right:0; bottom:44px;
  height:72px;
  background:linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 88%);
  pointer-events:none;
  transition:opacity .25s ease;
}
.pdp-desc.is-open .pdp-desc__fade,
.pdp-desc.is-short .pdp-desc__fade { opacity:0; visibility:hidden; }
.pdp-desc__more {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:14px;
  padding:10px 18px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--brand-ink);
  font-size:13px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  transition:background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.pdp-desc__more:hover {
  background:var(--brand-soft);
  border-color:var(--brand);
  color:var(--brand-ink);
  box-shadow:var(--shadow-md);
}
.pdp-desc__more-icon {
  display:inline-block;
  font-size:14px;
  line-height:1;
  transition:transform .35s ease;
}
.pdp-desc.is-open .pdp-desc__more-icon { transform:rotate(180deg); }
.pdp-desc.is-short .pdp-desc__more { display:none; }

/* Spec table */
.pdp-spectable { width:100%; max-width:1100px; border-collapse:collapse; font-size:13px; }
.pdp-spectable tbody tr:nth-child(odd) { background:var(--surface-2); }
.pdp-spectable th { width:35%; padding:9px 14px; text-align:left; color:var(--ink-2); font-weight:500; vertical-align:top; border-bottom:1px solid var(--line); }
.pdp-spectable td { padding:9px 14px; color:var(--ink); font-weight:500; vertical-align:top; border-bottom:1px solid var(--line); font-family:var(--mono); font-size:12.5px; }
@media (max-width:680px){ .pdp-spectable th { width:45%; } }

/* Documents */
.pdp-docs { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:10px; max-width:920px; }
.pdp-doc { display:flex; gap:14px; align-items:center; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; color:var(--ink) !important; transition:border-color .15s, box-shadow .15s; text-decoration:none !important; }
.pdp-doc:hover { border-color:var(--brand); box-shadow:var(--shadow-sm); }
.pdp-doc__icon { width:40px; height:48px; flex-shrink:0; background:var(--bad-soft); color:var(--bad); border-radius:3px; display:grid; place-items:center; font-size:11px; font-weight:700; letter-spacing:.04em; }
.pdp-doc__icon--pdf { background:var(--bad-soft); color:#991b1b; }
.pdp-doc__icon--zip { background:#dbeafe; color:#1e40af; }
.pdp-doc__body { flex:1; min-width:0; }
.pdp-doc__name { font-size:13.5px; font-weight:600; color:var(--ink); display:block; margin-bottom:2px; }
.pdp-doc__meta { font-size:11px; color:var(--ink-3); }
.pdp-doc__cta { color:var(--accent); font-size:12px; font-weight:600; flex-shrink:0; }

.pdp-docs__empty { padding:18px 20px; border:1px dashed var(--line-strong); border-radius:var(--radius); background:var(--surface-2); color:var(--ink-3); font-size:13px; max-width:600px; }
.pdp-docs__empty strong { color:var(--ink); display:block; margin-bottom:4px; }
.pdp-docs__empty a { color:var(--accent); font-weight:600; }

/* Reviews */
.pdp-reviews__summary { display:flex; gap:32px; align-items:center; padding-bottom:20px; border-bottom:1px solid var(--line); margin-bottom:20px; flex-wrap:wrap; }
.pdp-reviews__score { display:flex; flex-direction:column; gap:4px; }
.pdp-reviews__score-num { font-size:42px; font-weight:700; line-height:1; color:var(--ink); font-feature-settings:"tnum"; }
.pdp-reviews__score-stars { color:#f59e0b; font-size:16px; letter-spacing:2px; }
.pdp-reviews__score-meta { font-size:12px; color:var(--ink-3); }
.pdp-reviews__bars { flex:1; max-width:320px; display:flex; flex-direction:column; gap:5px; }
.pdp-reviews__bar { display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--ink-3); }
.pdp-reviews__bar-label { width:18px; text-align:right; font-family:var(--mono); }
.pdp-reviews__bar-track { flex:1; height:6px; background:var(--surface-3); border-radius:99px; overflow:hidden; }
.pdp-reviews__bar-fill { height:100%; background:#f59e0b; border-radius:99px; transition:width .8s ease; }
.pdp-reviews__bar-count { width:24px; text-align:right; font-family:var(--mono); }
.pdp-reviews__write { margin-left:auto; }
.pdp-btn { display:inline-flex; align-items:center; gap:7px; padding:10px 16px; border-radius:5px; border:1px solid var(--ink); background:#fff; color:var(--ink); font-size:13px; font-weight:600; cursor:pointer; text-decoration:none !important; font-family:inherit; }
.pdp-btn:hover { background:var(--ink); color:#fff; }
.pdp-btn--brand { background:var(--brand); border-color:var(--brand); color:#fff; }
.pdp-btn--brand:hover { background:var(--brand-ink); border-color:var(--brand-ink); }

.pdp-reviews__empty { padding:30px; text-align:center; background:var(--surface-2); border:1px dashed var(--line-strong); border-radius:var(--radius); }
.pdp-reviews__empty p { margin:0 0 14px; color:var(--ink-2); font-size:14px; }

/* Compatibility / related grid */
.pdp-related__grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.pdp-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:14px; transition:border-color .15s, box-shadow .15s; display:flex; flex-direction:column; gap:8px; }
.pdp-card:hover { border-color:var(--brand); box-shadow:var(--shadow-sm); }
.pdp-card a { color:inherit; text-decoration:none !important; }
.pdp-card__img { aspect-ratio:1/1; background:var(--surface-2); border-radius:var(--radius-sm); overflow:hidden; }
.pdp-card__img img { width:100%; height:100%; object-fit:contain; padding:10px; }
.pdp-card__brand { font-size:10.5px; color:var(--ink-3); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.pdp-card__name { font-size:13px; color:var(--ink); font-weight:500; line-height:1.4; min-height:2.8em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pdp-card__price { font-size:15px; color:var(--ink); font-weight:700; font-feature-settings:"tnum"; margin-top:auto; }
.pdp-card__price small { font-size:11px; color:var(--ink-3); font-weight:500; margin-left:4px; }
.pdp-card__sku { font-size:11px; color:var(--ink-3); font-family:var(--mono); }

/* ====================================================================
   7. FOOTER
   ==================================================================== */
.pdp-footer { background:#0f172a; color:#94a3b8; margin-top:32px; padding:40px 0 0; font-size:13px; }
.pdp-footer__grid { max-width:1320px; margin:0 auto; padding:0 20px; display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr 1fr; gap:32px; padding-bottom:32px; border-bottom:1px solid #1e293b; }
@media (max-width:880px){ .pdp-footer__grid { grid-template-columns:1fr 1fr; } }
.pdp-footer h4 { color:#fff; font-size:13px; font-weight:600; margin:0 0 12px; text-transform:uppercase; letter-spacing:.05em; }
.pdp-footer ul { list-style:none; margin:0; padding:0; }
.pdp-footer li { margin-bottom:7px; }
.pdp-footer a { color:#94a3b8; }
.pdp-footer a:hover { color:#fff; text-decoration:none; }
.pdp-footer__about p { line-height:1.6; margin:0 0 12px; }
.pdp-footer__contact { font-size:13px; }
.pdp-footer__contact a { color:#fff; font-weight:600; }
.pdp-footer__contact div { margin-bottom:5px; display:flex; gap:8px; align-items:flex-start; }
.pdp-footer__contact i { color:var(--brand); width:14px; padding-top:3px; }
.pdp-footer__bottom { max-width:1320px; margin:0 auto; padding:18px 20px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; font-size:11.5px; color:#64748b; }
.pdp-footer__pay { display:flex; gap:6px; align-items:center; }
.pdp-footer__pay span { padding:3px 8px; border:1px solid #334155; border-radius:3px; font-size:10px; color:#94a3b8; font-weight:500; letter-spacing:.04em; }

/* ====================================================================
   8. LIGHTBOX
   ==================================================================== */
.pdp-lightbox { position:fixed; inset:0; background:rgba(15,23,42,.92); display:none; align-items:center; justify-content:center; z-index:9999; padding:30px; }
.pdp-lightbox.is-open { display:flex; }
.pdp-lightbox__img { max-width:90%; max-height:90vh; object-fit:contain; border-radius:6px; background:#fff; padding:30px; }
.pdp-lightbox__close { position:absolute; top:20px; right:20px; width:42px; height:42px; border:0; border-radius:50%; background:#fff; color:var(--ink); cursor:pointer; font-size:20px; }
.pdp-lightbox__nav { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border:0; border-radius:50%; background:#fff; color:var(--ink); cursor:pointer; font-size:18px; }
.pdp-lightbox__nav--prev { left:20px; }
.pdp-lightbox__nav--next { right:20px; }
.pdp-lightbox__counter { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); padding:6px 14px; background:rgba(255,255,255,.95); border-radius:99px; font-size:12px; color:var(--ink); font-family:var(--mono); }
body.pdp-lock { overflow:hidden; }

/* ====================================================================
   9. PS overrides — make the existing add-to-cart machinery work
   ==================================================================== */
/* Hide PS TouchSpin chrome — custom pdp-qty stepper owns +/- controls */
.pdp .bootstrap-touchspin-up,
.pdp .bootstrap-touchspin-down,
.pdp .input-group-btn-vertical,
.pdp .input-group-btn,
.pdp .input-group-prepend,
.pdp .input-group-append,
.pdp .btn-touchspin { display:none !important; visibility:hidden !important; }

.pdp .blockreassurance_product { display:none !important; } /* we render our own rail */
.pdp .product-additional-info { display:none !important; }

/* ====================================================================
   10. RESPONSIVE
   ==================================================================== */
@media (max-width:768px){
  .pdp-utility__row { font-size:11px; }
  .pdp-header__row { grid-template-columns:1fr auto; gap:12px; padding:10px 16px; }
  .pdp-search-wrap { grid-column:1 / -1; max-width:none; }
  .pdp-search { display:flex; max-width:none; }
  .pdp-actions { gap:0; justify-content:flex-end; }
  .pdp-action--tool .pdp-action__label { display:none; }
  .pdp-cats__row { padding:0 16px; }
  .pdp-wrap { padding:0 16px; }
  .pdp-product { border-left:0; border-right:0; border-radius:0; margin:0 -16px 16px; }
  .pdp-summary { padding:20px; }
  .pdp-section { padding:20px; }
  .pdp-title { font-size:18px !important; }
}

/* Test preview pill */
.pdp-test-pill {
  position: fixed; top: 10px; right: 10px; z-index: 9998;
  padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 600;
  background: rgba(15,157,142,.12); color: #0a7d72; letter-spacing: .02em;
}

/* Category carousel + browsing history strips */
body.pdp-dist .pdp-product-strips {
  width: 100vw; max-width: 100vw; margin: 24px calc(50% - 50vw) 0;
  padding: 0 16px 8px; box-sizing: border-box; clear: both;
}
body.pdp-dist .pdp-product-strips .ift-fc-section,
body.pdp-dist .pdp-product-strips .ift-bh-strip { max-width: 1320px; margin-left: auto; margin-right: auto; }

/* Product variants in buy box */
.pdp .product-variants { margin-bottom: 12px; }
.pdp .product-variants .form-control,
.pdp .product-variants select { width: 100%; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 13px; font-family: inherit; }
.pdp .product-variants label { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; display: block; }
