/*
 * Global chrome: ribbon, glass nav, mega-menu flyouts, bag flyout, search overlay,
 * mobile drawer, footer directory and the floating specialist button.
 * Desktop nav from 1069px up (Apple's breakpoint), drawer below.
 */

/* Scrolling card rows: never wider than the content column. On wide or zoomed-out screens cards that
   cross the column border are clipped with a soft edge and slide in as the row scrolls. */
:root { --p136-row-inset: max(var(--p136-gutter), calc((min(100vw, var(--p136-wide)) - var(--p136-page)) / 2)); }
.p136-rowclip { width: min(100%, var(--p136-wide)); margin-inline: auto; overflow: clip; }
@media (min-width: 1321px) {
  .p136-rowclip {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  }
}
@media (prefers-reduced-motion: reduce) { .p136-rowclip { -webkit-mask-image: none; mask-image: none; } }

/* Ribbon ---------------------------------------------------------------- */
.p136-ribbon {
  background: var(--p136-surface);
  color: var(--p136-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}
.p136-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  min-height: var(--p136-ribbon-h);
  padding-block: 4px;
  flex-wrap: wrap;
}
.p136-ribbon__price::before { content: "●"; margin-inline-end: 6px; color: var(--p136-ok); font-size: 0.65em; vertical-align: 1px; }
.p136-ribbon__price[data-state="stale"]::before,
.p136-ribbon__price[data-state="missing"]::before { color: var(--p136-danger); }
.p136-ribbon__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--p136-ink-2); }
.p136-ribbon__phone .p136-uicon { width: 14px; height: 14px; }
.p136-ribbon__demo {
  padding: 1px 10px;
  border-radius: var(--p136-r-pill);
  background: #eef2ff;
  color: #3b4cca;
  font-weight: 600;
  font-size: 0.6875rem;
}
@media (max-width: 734px) {
  .p136-ribbon__inner { gap: 2px 14px; font-size: 0.6875rem; }
}

/* Header bar ---------------------------------------------------------------- */
.p136-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--p136-z-header);
}
.p136-bar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color var(--p136-t-med) var(--p136-ease);
}
.p136-bar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: var(--p136-header-h);
}
.p136-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--p136-ink);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.p136-brand:hover { text-decoration: none; }
.p136-brand__name { color: var(--p136-ink); font-weight: 800; }
.p136-brand__mark { display: block; flex: none; height: 26px; width: auto; }
.p136-menu-btn { display: none; }

.p136-nav { min-width: 0; }
.p136-nav__list { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1.4vw, 22px); }
.p136-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--p136-header-h);
  padding-inline: 8px;
  color: var(--p136-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.86;
  transition: opacity var(--p136-t-fast) var(--p136-ease);
}
.p136-nav__link:hover, .p136-nav__link[aria-expanded="true"], .p136-nav__link[aria-current="page"] { opacity: 1; text-decoration: none; }
.p136-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 8px;
  inset-block-end: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--p136-brand);
  transform: scaleX(0);
  transition: transform var(--p136-t-med) var(--p136-ease-out);
}
.p136-nav__link[aria-expanded="true"]::after, .p136-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.p136-tools { display: flex; align-items: center; gap: 0; }
.p136-tools .p136-iconbtn { width: 36px; height: 36px; position: relative; color: var(--p136-ink); }
.p136-tools .p136-iconbtn:hover { text-decoration: none; }
.p136-cart-count {
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 2px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding-inline: 4px;
  border-radius: 9px;
  background: var(--p136-accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}
.p136-cart-count[hidden] { display: none; }

@media (max-width: 1068px) {
  .p136-bar__inner { grid-template-columns: 44px 1fr auto; }
  .p136-menu-btn { display: inline-grid; }
  .p136-nav { display: none; }
  .p136-brand { grid-column: 2; justify-self: center; grid-row: 1; }
  .p136-tools { grid-column: 3; grid-row: 1; }
  .p136-menu-btn { grid-column: 1; grid-row: 1; }
  .p136-flyouts { display: none !important; }
}
@media (max-width: 734px) {
  .p136-tools__account { display: none; }
}

/* Scrim behind flyouts (page blurs, Apple style) -------------------------------- */
.p136-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--p136-z-header) - 1);
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--p136-t-med) var(--p136-ease);
}
.p136-scrim.is-open { opacity: 1; }

/* Mega-menu flyouts ------------------------------------------------------------------ */
.p136-flyouts {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  background: #fff;
  border-bottom: 1px solid var(--p136-line-soft);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transform: translateY(-6px);
  transition: clip-path var(--p136-t-med) var(--p136-ease-out), opacity var(--p136-t-fast) var(--p136-ease), transform var(--p136-t-med) var(--p136-ease-out);
}
.p136-flyouts.is-open { clip-path: inset(0 0 -60px 0); opacity: 1; transform: none; }
.p136-flyout__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: var(--p136-s7);
  padding-block: 28px 36px;
}
.p136-flyout__inner > .p136-flyout__col:only-child { grid-column: 1 / -1; }
.p136-flyout__title { margin-block-end: 12px; color: var(--p136-faint); font-size: 0.75rem; font-weight: 600; }
.p136-flyout__col { opacity: 0; transform: translateY(8px); }
.p136-flyouts.is-open .p136-flyout__col {
  opacity: 1;
  transform: none;
  transition: opacity var(--p136-t-med) var(--p136-ease), transform var(--p136-t-med) var(--p136-ease-out);
  transition-delay: calc(60ms + var(--i, 0) * 50ms);
}
.p136-flyout__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px 12px; }
.p136-flyout__cards a { display: grid; justify-items: start; gap: 6px; color: var(--p136-ink); }
.p136-flyout__cards a:hover { text-decoration: none; }
.p136-flyout__cards a:hover .p136-flyout__name { color: var(--p136-accent); }
.p136-flyout__img { width: 100%; height: 68px; object-fit: contain; object-position: start; transition: transform var(--p136-t-med) var(--p136-ease-out); }
.p136-flyout__cards a:hover .p136-flyout__img { transform: scale(1.05); }
.p136-flyout__name { font-size: 0.8125rem; font-weight: 700; line-height: 1.4; transition: color var(--p136-t-fast); }
.p136-flyout__from { font-size: 0.75rem; color: var(--p136-muted); }
.p136-flyout__links { display: grid; gap: 8px; }
.p136-flyout__links a { color: var(--p136-ink); font-size: 1rem; font-weight: 700; line-height: 1.5; }
.p136-flyout__links a:hover { color: var(--p136-accent); text-decoration: none; }
.p136-flyout__links--small a { font-size: 0.8125rem; font-weight: 500; }

/* Bag flyout ---------------------------------------------------------------------- */
.p136-bag {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: max(var(--p136-gutter), calc((100vw - var(--p136-wide)) / 2));
  width: min(340px, 100vw - 24px);
  max-height: calc(100vh - var(--p136-header-h) - 32px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--p136-line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--p136-shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity var(--p136-t-fast) var(--p136-ease), transform var(--p136-t-med) var(--p136-ease-out);
}
.p136-bag.is-open { opacity: 1; transform: none; pointer-events: auto; }
.p136-bag__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 0; }
.p136-bag__title { font-size: 1rem; font-weight: 800; }
.p136-bag__body { padding: 6px 16px; overflow-y: auto; }
.p136-bag__empty { padding-block: 28px; color: var(--p136-muted); text-align: center; }
.p136-bag__item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding-block: 10px; border-block-end: 1px solid var(--p136-line-soft); }
.p136-bag__item:last-child { border-block-end: 0; }
.p136-bag__img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--p136-surface); }
.p136-bag__name { font-size: 0.8125rem; font-weight: 600; line-height: 1.5; }
.p136-bag__meta { font-size: 0.75rem; color: var(--p136-muted); }
.p136-bag__foot { display: grid; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--p136-line-soft); background: #fff; }
.p136-bag__sum { display: grid; gap: 6px; margin: 0; font-size: 0.8125rem; }
.p136-bag__sum > div { display: flex; justify-content: space-between; gap: 12px; }
.p136-bag__sum dt { color: var(--p136-muted); }
.p136-bag__sum dd { margin: 0; }
.p136-bag__sum .is-strong { font-size: 0.9375rem; font-weight: 800; }
.p136-bag__sum .is-strong dt { color: var(--p136-ink); }
@media (max-width: 734px) {
  .p136-bag { inset-inline: 12px; width: auto; }
}

/* Search overlay ----------------------------------------------------------------------- */
dialog.p136-search {
  width: 100%;
  max-width: none;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  color: var(--p136-ink);
  overflow: auto;
  inset-block-start: 0;
}
dialog.p136-search::backdrop { background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.p136-search[open] { animation: p136-search-in var(--p136-t-med) var(--p136-ease-out); }
@keyframes p136-search-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.p136-search__inner { padding-block: 16px 40px; min-height: min(60vh, 480px); }
.p136-search__form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block-end: 10px;
  border-bottom: 1px solid var(--p136-line);
  max-width: 720px;
  margin-inline: auto;
}
.p136-search__form .p136-uicon { width: 22px; height: 22px; color: var(--p136-muted); flex: none; }
.p136-search__form input[type="search"] {
  flex: 1;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 700;
}
.p136-search__form input[type="search"]:focus { box-shadow: none; }
.p136-search__form input[type="search"]::-webkit-search-cancel-button { display: none; }
.p136-search__quick, .p136-search__results { max-width: 720px; margin: 20px auto 0; }
.p136-search__label { margin-block-end: 8px; color: var(--p136-faint); font-size: 0.75rem; font-weight: 600; }
.p136-search__quick ul { display: grid; gap: 4px; }
.p136-search__quick a { display: inline-flex; padding-block: 4px; color: var(--p136-ink); font-size: 1rem; font-weight: 600; }
.p136-search__quick a:hover { color: var(--p136-accent); text-decoration: none; }
.p136-search__results { display: grid; gap: 4px; }
.p136-search__hit {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--p136-ink);
  animation: p136-fade-up 320ms var(--p136-ease-out) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.p136-search__hit:hover, .p136-search__hit[aria-selected="true"] { background: var(--p136-surface); text-decoration: none; }
.p136-search__hit img { width: 60px; height: 46px; object-fit: contain; }
.p136-search__hit-title { font-size: 0.9375rem; font-weight: 700; line-height: 1.5; }
.p136-search__hit-meta { font-size: 0.75rem; color: var(--p136-muted); }
.p136-search__hit-price { font-size: 0.8125rem; color: var(--p136-ink-2); white-space: nowrap; }
.p136-search__empty { padding-block: 24px; color: var(--p136-muted); }
.p136-search__all { display: inline-flex; margin-block-start: 12px; }
@keyframes p136-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 734px) {
  .p136-search__hit { grid-template-columns: 56px 1fr; }
  .p136-search__hit-price { grid-column: 2; }
  .p136-search__hit img { width: 56px; height: 48px; }
}

/* Mobile drawer -------------------------------------------------------------------------- */
dialog.p136-drawer {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0 var(--p136-gutter) 32px;
  border: 0;
  background: #fff;
  color: var(--p136-ink);
  overflow-y: auto;
}
dialog.p136-drawer::backdrop { background: transparent; }
dialog.p136-drawer[open] { animation: p136-drawer-in var(--p136-t-med) var(--p136-ease-out); }
@keyframes p136-drawer-in { from { opacity: 0; } to { opacity: 1; } }
.p136-drawer__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--p136-header-h); }
.p136-drawer__search { position: relative; display: flex; align-items: center; margin-block: 8px 20px; }
.p136-drawer__search .p136-uicon { position: absolute; inset-inline-start: 14px; color: var(--p136-muted); width: 20px; height: 20px; }
.p136-drawer__search input { min-height: 40px; padding-inline-start: 44px; border-radius: 12px; background: var(--p136-surface); border-color: transparent; }
.p136-drawer__nav ul { display: grid; }
.p136-drawer__nav li { opacity: 0; }
dialog.p136-drawer[open] .p136-drawer__nav li {
  animation: p136-drawer-item 520ms var(--p136-ease-out) both;
  animation-delay: calc(120ms + var(--i, 0) * 45ms);
}
@keyframes p136-drawer-item { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.p136-drawer__nav a { display: block; padding-block: 8px; color: var(--p136-ink); font-size: 1.375rem; font-weight: 700; }
.p136-drawer__nav a:hover { text-decoration: none; color: var(--p136-accent); }
.p136-drawer__minor { margin-block-start: 22px; padding-block-start: 18px; border-top: 1px solid var(--p136-line-soft); }
.p136-drawer__minor a { padding-block: 5px; font-size: 0.9375rem; font-weight: 600; color: var(--p136-ink-2); }
.p136-drawer__phone { margin-block-start: 20px; color: var(--p136-muted); font-size: 0.8125rem; }
@media (min-width: 1069px) { dialog.p136-drawer { display: none; } }

/* Footer --------------------------------------------------------------------------------------- */
.p136-footer {
  margin-block-start: var(--p136-section);
  padding-block: 24px 28px;
  background: var(--p136-surface);
  color: var(--p136-muted);
  font-size: 0.75rem;
  line-height: 1.8;
}
.p136-footer a { color: var(--p136-ink-2); }
.p136-footer a:hover { color: var(--p136-accent); }
.p136-footer__notes { display: grid; gap: 4px; padding-block-end: 14px; font-size: 0.75rem; border-bottom: 1px solid var(--p136-line); }
.p136-footer__notes strong { color: var(--p136-ink-2); }
.p136-footer__dir { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--p136-line); font-size: 0.75rem; }
.p136-fcol summary { margin-block-end: 8px; color: var(--p136-ink); font-size: 0.75rem; font-weight: 700; list-style: none; cursor: default; }
.p136-fcol summary::-webkit-details-marker { display: none; }
.p136-fcol ul { display: grid; gap: 6px; }
.p136-fcol address { display: grid; gap: 6px; font-style: normal; }
.p136-footer__legal { display: grid; gap: 4px; padding-block-start: 14px; font-size: 0.75rem; }
.p136-footer__minor { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-block-start: 6px; }
.p136-footer__credit { color: var(--p136-faint); }

@media (max-width: 1068px) {
  .p136-footer__dir { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 734px) {
  .p136-footer__dir { display: block; padding-block: 8px; }
  .p136-fcol { border-bottom: 1px solid var(--p136-line); }
  .p136-fcol:last-child { border-bottom: 0; }
  .p136-fcol summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding-block: 12px;
    font-size: 0.8125rem;
    cursor: pointer;
  }
  .p136-fcol summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; line-height: 1; transition: transform var(--p136-t-med) var(--p136-ease); }
  .p136-fcol[open] summary::after { transform: rotate(45deg); }
  .p136-fcol ul, .p136-fcol address { padding-block-end: 16px; }
}

/* Floating specialist button ------------------------------------------------------------------- */
.p136-help-float {
  position: fixed;
  inset-inline-end: 20px;
  inset-block-end: var(--p136-float-bottom, 20px);
  z-index: var(--p136-z-sticky);
  display: grid;
  justify-items: end;
  gap: 10px;
}
.p136-help-float__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--p136-r-pill);
  background: rgba(29, 29, 31, 0.9);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform var(--p136-t-fast) var(--p136-ease), background-color var(--p136-t-fast) var(--p136-ease);
}
.p136-help-float__btn:hover { background: #000; }
.p136-help-float__btn:active { transform: scale(0.96); }
.p136-help-float__btn .p136-uicon { width: 18px; height: 18px; }
.p136-help-float__panel {
  width: min(264px, 100vw - 40px);
  padding: 10px;
  border: 1px solid var(--p136-line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--p136-shadow-md);
  animation: p136-fade-up 260ms var(--p136-ease-out) both;
}
.p136-help-float__lead { padding: 2px 6px 8px; font-size: 0.75rem; color: var(--p136-muted); }
.p136-help-float__row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--p136-ink); font-size: 0.8125rem; font-weight: 600; }
.p136-help-float__row:hover { background: var(--p136-surface); text-decoration: none; }
.p136-help-float__row small { display: block; font-weight: 400; color: var(--p136-muted); }
.p136-help-float__row .p136-uicon { width: 22px; height: 22px; color: var(--p136-accent); }
@media (max-width: 734px) {
  .p136-help-float { inset-inline-end: 14px; inset-block-end: var(--p136-float-bottom, 14px); }
  .p136-help-float__btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .p136-help-float__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}
@media print { .p136-help-float, .p136-header, .p136-ribbon { display: none; } }

/* While a flyout is open the bar turns opaque so the dimmed page does not tint it */
.p136-header:has(.p136-flyouts.is-open) .p136-bar,
.p136-header:has(.p136-bag.is-open) .p136-bar { background: rgba(255, 255, 255, 0.98); }
