/* Shared enterprise catalog enhancements for laptops.html and desktops.html. */

body { font-family: "DM Sans", system-ui, -apple-system, sans-serif; }
body.gallery-open { overflow: hidden; }
h1, h2, h3, h4, .logo, .btn { font-family: "Manrope", "DM Sans", sans-serif; }

header {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 4px 24px -18px rgba(8, 35, 60, .5);
}

.logo { color: #0a1628; }
.nav-links a { color: #45546a; }
.nav-links a:hover { color: #1a4fd6; }
.nav-links a.active { color: #1a4fd6; }
.nav-phone { color: #263449; }
.burger span { background: #0a1628; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 11px 16px;
  border-radius: 8px;
  color: #fff;
  background: #1a4fd6;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select):focus-visible {
  outline: 3px solid rgba(6, 182, 212, .55);
  outline-offset: 3px;
}

/* The old placeholder SVG was painting over real product photos. */
.media-ph { display: none !important; }

.shop-grid { align-items: stretch; }

.product-card {
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .11);
  border-color: #c9d4e3;
}

.product-card[hidden], .cat-section[hidden] { display: none !important; }

.product-media.catalog-gallery {
  display: block;
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  background: #f8fafc;
}

.gallery-stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, #fff, #f8fafc);
  cursor: zoom-in;
}

.gallery-stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
  transform-origin: 50% 50%;
  transition: transform .28s ease;
}

.gallery-stage img.gallery-view--full { transform: scale(1); }
.gallery-stage img.gallery-view--close { transform: scale(1.28); }
.gallery-stage img.gallery-view--detail { transform: scale(1.58) translate(-2%, 2%); }

.gallery-stage__label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  color: #0a1628;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 14px rgba(15, 23, 42, .1);
  font-size: 11px;
  font-weight: 800;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 9px;
  border-top: 1px solid #edf1f6;
  background: #fff;
}

.gallery-thumb {
  position: relative;
  min-width: 0;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe2eb;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.gallery-thumb:hover { border-color: #8ba4c8; }

.gallery-thumb[aria-pressed="true"] {
  border: 2px solid #1a4fd6;
  box-shadow: 0 0 0 2px rgba(26, 79, 214, .12);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  pointer-events: none;
}

.gallery-thumb--close img { transform: scale(1.25); }
.gallery-thumb--detail img { transform: scale(1.52) translate(-2%, 2%); }

.product-body h3 { font-size: 17px; }
.product-blurb { font-size: 13px; }
.product-price { font-size: 20px; }

.product-compare {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 11px 0 10px;
  padding: 8px 10px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  color: #344155;
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.product-compare:hover { border-color: #a9bad1; }

.product-compare input {
  width: 17px;
  height: 17px;
  margin: 0 8px 0 0;
  accent-color: #1a4fd6;
}

.catalog-trust {
  color: #e7eef8;
  background: #0a1628;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.catalog-trust__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.catalog-trust__item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 10px 15px;
  border-right: 1px solid rgba(255, 255, 255, .09);
  font-size: 12.5px;
  font-weight: 700;
}

.catalog-trust__item:last-child { border-right: 0; }

.catalog-trust__mark {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #06213a;
  background: #67e8f9;
  font-size: 12px;
  font-weight: 900;
}

.catalog-commerce {
  position: sticky;
  top: 70px;
  z-index: 60;
  padding: 13px 0;
  border-bottom: 1px solid #dfe5ed;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(230px, 1.8fr) minmax(170px, .8fr) auto auto;
  gap: 10px;
  align-items: end;
}

.catalog-field { display: grid; gap: 5px; }

.catalog-field label {
  color: #5b6573;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.catalog-field input,
.catalog-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd8e4;
  border-radius: 9px;
  padding: 0 12px;
  color: #0f172a;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.catalog-field input:focus,
.catalog-field select:focus { border-color: #1a4fd6; }

.catalog-stock-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cfd8e4;
  border-radius: 9px;
  color: #344155;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.catalog-stock-toggle input {
  width: 17px;
  height: 17px;
  margin: 0 8px 0 0;
  accent-color: #1a4fd6;
}

.catalog-quote-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  color: #fff;
  background: #1a4fd6;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-quote-link:hover { background: #123fb3; }

.catalog-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 6px;
  color: #5b6573;
  font-size: 13px;
}

.catalog-reset {
  padding: 7px 10px;
  border: 0;
  color: #1a4fd6;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.catalog-reset[hidden] { display: none; }

.catalog-empty {
  margin: 24px 0;
  padding: 34px;
  border: 1px dashed #b9c6d7;
  border-radius: 14px;
  color: #5b6573;
  background: #f8fafc;
  text-align: center;
}

.catalog-empty strong {
  display: block;
  margin-bottom: 5px;
  color: #0a1628;
  font-size: 18px;
}

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 880;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(680px, calc(100% - 28px));
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  color: #fff;
  background: rgba(6, 14, 30, .97);
  box-shadow: 0 20px 50px rgba(2, 8, 23, .32);
  transform: translate(-50%, calc(100% + 42px));
  transition: transform .24s ease;
}

.compare-tray.is-visible { transform: translate(-50%, 0); }
.compare-tray__copy { min-width: 0; }
.compare-tray__copy strong { display: block; font-size: 14px; }
.compare-tray__copy span { color: #a9bad1; font-size: 12px; }
.compare-tray__actions { display: flex; gap: 8px; }

.compare-tray button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 9px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.compare-tray button[data-compare-open] { border-color: #1a4fd6; background: #1a4fd6; }
.compare-tray button:disabled { opacity: .48; cursor: not-allowed; }
body.has-compare-tray .fab { bottom: 98px; }

.catalog-toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  z-index: 990;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: #b42318;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .25);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.catalog-toast.is-visible { opacity: 1; transform: translateY(0); }

dialog.catalog-dialog {
  width: min(1080px, calc(100% - 30px));
  max-width: none;
  max-height: min(92vh, 820px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 35px 90px rgba(2, 8, 23, .4);
}

dialog.catalog-dialog::backdrop {
  background: rgba(2, 8, 23, .75);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.catalog-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #dbe2eb;
  border-radius: 50%;
  color: #0a1628;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gallery-dialog__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr);
  min-height: 610px;
}

.gallery-dialog__media {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  background: #f5f7fa;
}

.gallery-dialog__stage {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e0e6ee;
  border-radius: 14px;
  background: #fff;
  touch-action: pan-y;
}

.gallery-dialog__stage img {
  width: 100%;
  height: min(58vh, 520px);
  padding: clamp(20px, 5vw, 48px);
  object-fit: contain;
  transform-origin: 50% 50%;
  transition: transform .3s ease;
}

.gallery-dialog__stage img.gallery-view--full { transform: scale(1); }
.gallery-dialog__stage img.gallery-view--close { transform: scale(1.28); }
.gallery-dialog__stage img.gallery-view--detail { transform: scale(1.62) translate(-2%, 2%); }

.gallery-dialog__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #dbe2eb;
  border-radius: 50%;
  color: #0a1628;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
  font: inherit;
  font-size: 28px;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-dialog__nav--prev { left: 14px; }
.gallery-dialog__nav--next { right: 14px; }

.gallery-dialog__counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 22, 40, .82);
  font-size: 12px;
  font-weight: 800;
}

.gallery-dialog__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 112px));
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.gallery-dialog__thumb {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 6px;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  color: #45546a;
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.gallery-dialog__thumb[aria-pressed="true"] {
  border: 2px solid #1a4fd6;
  color: #1a4fd6;
}

.gallery-dialog__thumb img {
  width: 100%;
  height: 54px;
  object-fit: contain;
  pointer-events: none;
  transform-origin: 50% 50%;
}

.gallery-dialog__thumb img.gallery-view--close { transform: scale(1.2); }
.gallery-dialog__thumb img.gallery-view--detail { transform: scale(1.45) translate(-2%, 2%); }

.gallery-dialog__info {
  display: flex;
  flex-direction: column;
  padding: 72px 28px 28px;
  overflow: auto;
}

.gallery-dialog__eyebrow {
  color: #1a4fd6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.gallery-dialog__title {
  margin: 8px 0 10px;
  color: #0a1628;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.15;
}

.gallery-dialog__spec { color: #5b6573; font-size: 14px; line-height: 1.65; }
.gallery-dialog__price { margin: 22px 0 6px; font-size: 26px; font-weight: 900; }
.gallery-dialog__stock { color: #15803d; font-size: 13px; font-weight: 800; }

.gallery-dialog__facts {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 16px;
  border-radius: 12px;
  background: #f6f8fb;
}

.gallery-dialog__fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #5b6573;
  font-size: 12.5px;
}

.gallery-dialog__fact strong { color: #0f172a; text-align: right; }

.gallery-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: auto;
}

.gallery-dialog__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
}

.gallery-dialog__order { color: #063a23; background: #10dc78; }
.gallery-dialog__call { color: #fff; background: #1a4fd6; }

.compare-dialog__body { padding: 64px 26px 26px; overflow: auto; }
.compare-dialog__body h2 { margin: 0 0 6px; font-size: 28px; }
.compare-dialog__body > p { margin: 0 0 22px; color: #5b6573; }

.compare-table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border: 1px solid #dfe5ed;
}

.compare-table th,
.compare-table td {
  padding: 13px 14px;
  border-right: 1px solid #dfe5ed;
  border-bottom: 1px solid #dfe5ed;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  width: 140px;
  color: #45546a;
  background: #f6f8fb;
  font-size: 12px;
}

.compare-table td { min-width: 190px; font-size: 13px; line-height: 1.55; }
.compare-table a { color: #1a4fd6; font-weight: 900; }

@media (max-width: 900px) {
  .catalog-tools { grid-template-columns: 1fr 1fr; }
  .catalog-trust__inner { grid-template-columns: 1fr 1fr; }
  .catalog-trust__item:nth-child(2) { border-right: 0; }
  .catalog-trust__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .gallery-dialog__layout { grid-template-columns: 1fr; }
  .gallery-dialog__media { min-height: 54vh; }
  .gallery-dialog__info { padding-top: 26px; }
}

@media (max-width: 680px) {
  .nav-links.mobile {
    background: #fff;
    border-bottom-color: #dfe5ed;
    box-shadow: 0 18px 35px rgba(15, 23, 42, .14);
  }
  .nav-links.mobile a {
    color: #263449;
    border-bottom-color: #edf1f5;
  }
  .catalog-commerce { position: static; }
  .catalog-tools { grid-template-columns: 1fr; }
  .catalog-quote-link { width: 100%; }
  .catalog-trust__item { padding: 10px; font-size: 11.5px; }
  .gallery-thumb { height: 48px; }
  .gallery-stage__label { min-height: 30px; font-size: 10px; }
  .compare-tray { align-items: stretch; gap: 8px; padding: 10px; }
  .compare-tray__copy { display: none; }
  .compare-tray__actions { width: 100%; }
  .compare-tray button { flex: 1; }
  body.has-compare-tray .fab { bottom: 94px; }
  dialog.catalog-dialog {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .gallery-dialog__layout { min-height: 100%; }
  .gallery-dialog__media { min-height: 48vh; padding: 62px 12px 12px; }
  .gallery-dialog__stage img { height: 38vh; padding: 18px; }
  .gallery-dialog__thumbs { gap: 6px; }
  .gallery-dialog__info { padding: 22px 18px 24px; }
  .gallery-dialog__actions { position: sticky; bottom: 0; padding-top: 10px; background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
