/* Laptop World storefront. Spec sheet design system.
   Zero gradients, zero backdrop-filter, <= 25 colors, 4 font families, <= 9 font sizes. */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
main { min-height: 60vh; }
.media { background: var(--fog); border-radius: var(--r-m); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.art { display: contents; }
.art svg { width: 62%; max-width: 260px; height: auto; }
.badge { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; font-size: var(--fs-12); font-family: var(--f-mono); font-weight: 700; padding: 2px 8px; border-radius: var(--r-tech); background: var(--white); border: 1px solid var(--line); }
.badge--sale { background: var(--sale); color: var(--white); border-color: var(--sale); }
.textlink { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: var(--fs-14); color: var(--blue); min-height: var(--tap); text-decoration: underline; text-underline-offset: 4px; }
.textlink:hover { color: var(--ink); }

/* ---------- header ---------- */
#site-header { display: block; min-height: 60px; }
@media (min-width: 1024px) {
  #site-header { min-height: 108px; }
}
.hdr { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.hdr__top { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.hdr__logo img { height: 48px; width: auto; object-fit: contain; }
.hdr__search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: var(--tap); padding-inline: 14px; background: var(--white); border-radius: var(--r-tech); border: 1px solid var(--line); color: var(--ink-2); }
.hdr__search:focus-within { border-color: var(--ink); outline: 1px solid var(--ink); }
.hdr__search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: var(--fs-14); color: var(--ink); letter-spacing: 0 !important; }
.hdr__search input::placeholder { color: var(--slate); }

.hdr__acts { margin-inline-start: auto; display: flex; gap: 8px; }
.hdr__act { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border-radius: var(--r-tech); font-weight: 700; font-size: var(--fs-14); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.hdr__act:hover { background: var(--wash); border-color: var(--ink); }
.hdr__act[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-tech); background: var(--blue); color: var(--white); font-size: var(--fs-12); font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

.hdr__search-toggle { display: none; width: var(--tap); height: var(--tap); border: 1px solid var(--line); border-radius: var(--r-tech); background: var(--white); place-items: center; color: var(--ink); }
.hdr__menu { display: none; width: var(--tap); height: var(--tap); border: 1px solid var(--line); border-radius: var(--r-tech); background: var(--white); place-items: center; color: var(--ink); }

/* Desktop Navigation with 6 Groups */
.hdr__nav { display: flex; align-items: center; gap: 6px; padding-block: 0 10px; overflow: visible; }
.nav-link { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--r-tech); font-weight: 600; font-size: var(--fs-14); color: var(--slate); border: 1px solid transparent; text-decoration: none; }
.nav-link:hover { color: var(--ink); background: var(--wash); border-color: var(--line); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); background: transparent; border-radius: 0; }

/* Navigation Dropdown for Multi-category Groups */
.nav-dropdown { position: relative; display: inline-flex; }
.nav-dropdown__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: var(--r-tech); font-weight: 600; font-size: var(--fs-14); color: var(--slate); background: none; border: 1px solid transparent; cursor: pointer; }
.nav-dropdown__btn:hover, .nav-dropdown.is-open .nav-dropdown__btn { background: var(--wash); color: var(--ink); border-color: var(--line); }
.nav-dropdown__btn.is-active { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); border-radius: 0; }
.nav-dropdown__panel { display: none; position: absolute; top: calc(100% + 4px); inset-inline-start: 0; min-width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tech); box-shadow: var(--shadow-elevated); padding: 8px; z-index: 100; flex-direction: column; gap: 4px; }
.nav-dropdown.is-open .nav-dropdown__panel { display: flex; }
.nav-dropdown__item { display: flex; align-items: center; min-height: 38px; padding: 6px 12px; border-radius: var(--r-tech); font-size: var(--fs-13); font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-dropdown__item:hover { background: var(--wash); }
.nav-dropdown__item.is-active { background: var(--blue-subtle); color: var(--blue); font-weight: 700; }

/* Mobile Search Bar Toggle */
.hdr__mobile-search { display: none; background: var(--wash); border-bottom: 1px solid var(--line); padding: 8px var(--gutter); }
.hdr__mobile-search.open { display: block; }
.hdr__mobile-search-form { display: flex; align-items: center; gap: 8px; min-height: var(--tap); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tech); padding-inline: 12px; }
.hdr__mobile-search-form input { flex: 1; border: 0; background: none; outline: 0; font-size: var(--fs-14); min-width: 0; color: var(--ink); letter-spacing: 0 !important; }
.hdr__mobile-search-close { width: 36px; height: 36px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); border-radius: var(--r-tech); }

/* Mobile Drawer */
.drawer-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 26, 0.6);
  z-index: 90;
}
.drawer-scrim.open {
  display: block;
}

.drawer {
  display: none !important;
  position: fixed;
  inset-block: 0;
  right: 0;
  left: auto;
  width: min(340px, 100vw);
  max-width: 100%;
  background: var(--white);
  z-index: 100;
  box-shadow: var(--shadow-sheet);
  flex-direction: column;
}

@media (max-width: 480px) {
  .drawer {
    width: 100vw !important;
    max-width: 100vw !important;
    inset-inline: 0 !important;
  }
}

.drawer.open {
  display: flex !important;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .drawer,
  .drawer-scrim {
    display: none !important;
  }
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-18); }
.drawer-close { width: var(--tap); height: var(--tap); border: 1px solid var(--line); background: var(--wash); border-radius: var(--r-tech); display: grid; place-items: center; color: var(--ink); }
.drawer__nav { flex: 1; overflow-y: auto; padding: 12px var(--gutter) 24px; display: flex; flex-direction: column; gap: 12px; }
.drawer__link--all { display: flex; align-items: center; min-height: var(--tap); padding: 0 14px; background: var(--ink); color: var(--white); border-radius: var(--r-tech); font-weight: 700; font-size: var(--fs-14); text-decoration: none; }
.drawer__group { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.drawer__group-title { font-size: var(--fs-12); font-weight: 700; color: var(--ink-3); text-transform: uppercase; padding: 4px 6px; }
.drawer__group-list { display: flex; flex-direction: column; gap: 2px; }
.drawer__sublink { display: flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-tech); font-size: var(--fs-14); font-weight: 500; color: var(--ink); text-decoration: none; }
.drawer__sublink:hover { background: var(--wash); }
.drawer__sublink.is-active { background: var(--blue-subtle); color: var(--blue); font-weight: 700; }
.drawer__foot { padding: 16px var(--gutter); border-top: 1px solid var(--line); background: var(--wash); }
.drawer__note { font-size: var(--fs-12); color: var(--ink-3); margin-top: 8px; text-align: center; }

/* ---------- buttons: 3 strict styles only ---------- */
.btn, .btn-primary, .btn--blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--r-tech);
  font-family: var(--f-display);
  font-size: var(--fs-14);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover, .btn-primary:hover, .btn--blue:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
  color: var(--white);
}
.btn--ghost, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-tech);
  font-family: var(--f-display);
  font-size: var(--fs-14);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.btn--ghost:hover, .btn-secondary:hover {
  background: var(--wash);
  color: var(--ink);
}
.btn--block, .btn-block { width: 100%; }

/* ---------- hero: above-the-fold on 1440x900 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; padding-block: clamp(20px, 2.5vw, 36px); }
.hero__copy { display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.25; margin: 0 0 14px; color: var(--ink); }
.hero__copy p { margin: 0 0 24px; max-width: 44ch; font-size: var(--fs-15); color: var(--ink-2); line-height: 1.6; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Finder inside hero: Paper spec-sheet container (no dark rounded on-ink box) */
.finder { min-width: 0; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-box); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.finder__top-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.finder__title { font-family: var(--f-display); font-size: var(--fs-13); font-weight: 700; color: var(--ink); }
.finder__label { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-13); font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.finder__label output { color: var(--ink); font-family: var(--f-mono); font-weight: 700; }
.finder input[type=range] { width: 100%; accent-color: var(--ink); height: 24px; }
.finder__list { display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.finder__list a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-tech); text-decoration: none; color: var(--ink); }
.finder__list a:hover { background: var(--wash); }
.finder__thumb { width: 44px; height: 44px; border-radius: var(--r-tech); border: 1px solid var(--line); background: var(--wash); display: grid; place-items: center; }
.finder__thumb .art svg { width: 75%; }
.finder__name { font-weight: 700; font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder__price { font-family: var(--f-mono); font-size: var(--fs-13); font-weight: 700; color: var(--ink); }
.finder__none { color: var(--slate); font-size: var(--fs-13); padding: 8px; }

/* toggles: chips with zero pill (2px radius) */
.tog-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tog { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: var(--r-tech); border: 1px solid var(--line); background: var(--wash); color: var(--ink); font-size: var(--fs-13); font-weight: 600; cursor: pointer; }
.tog em { font-style: normal; font-size: var(--fs-12); font-family: var(--f-mono); color: var(--slate); }
.tog:hover { border-color: var(--ink); background: var(--white); }
.tog[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tog[aria-pressed="true"] em { color: var(--line); }
.finder .tog { background: var(--wash); border-color: var(--line); color: var(--ink); }
.finder .tog:hover { border-color: var(--ink); background: var(--white); }
.finder .tog[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.finder .tog[aria-pressed="true"] em { color: var(--line); }
.tog--link { text-decoration: none; }
.tog-row--page .tog { min-height: var(--tap); padding-inline: 16px; font-size: var(--fs-14); }

/* ---------- location banner (confirmed fact only) ---------- */
.location-banner { margin-block: 8px 18px; }
.location-box { display: flex; align-items: center; gap: 10px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-tech); padding: 10px 16px; font-size: var(--fs-13); }
.location-tag { background: var(--ink); color: var(--white); font-size: var(--fs-12); font-weight: 700; padding: 2px 8px; border-radius: var(--r-tech); }
.location-text { margin: 0; color: var(--ink-2); font-weight: 600; }

/* ---------- sections: table-row aesthetic (no numbering, 2px ink line above) ---------- */
.sec { padding-block: clamp(20px, 3vw, 36px); }
.sec__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 20px; }
.sec__head h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.5vw, 26px); line-height: 1.3; color: var(--ink); margin: 0; }
.sec__sub { font-size: var(--fs-13); color: var(--slate); margin-top: 4px; }

/* 6-Category Grid: 2px radius, 1px border */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tech); padding: 16px 18px; min-height: 120px; text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease; }
.cat-tile:hover { background: var(--wash); border-color: var(--ink); }
.cat-tile__art { height: 50px; display: flex; align-items: center; }
.cat-tile__art .art svg { width: auto; height: 42px; max-width: 130px; }
.cat-tile__txt { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; gap: 8px; }
.cat-tile h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-15); line-height: 1.3; color: var(--ink); margin: 0; }
.cat-tile__count { font-size: var(--fs-12); font-family: var(--f-mono); font-weight: 600; color: var(--slate); white-space: nowrap; }

/* ---------- product cards: 1px border, 0 shadow, 2px radius, full-width button ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 16px; }
.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 14px;
  box-shadow: none;
  position: relative;
  transition: border-color .15s ease;
}
.card:hover {
  border-color: var(--ink);
}
.card__media {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r-tech);
  overflow: hidden;
}
.card__link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.card__link img { padding: 10px; max-width: 100%; max-height: 100%; object-fit: contain; }
.card__no-img-banner { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-tech); padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; color: var(--slate); font-family: var(--f-mono); font-size: var(--fs-12); margin-bottom: 8px; }
.card__body { padding: 10px 0 0; flex: 1; display: flex; flex-direction: column; }
.card__brand { font-size: var(--fs-11); color: var(--slate); font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.card__name {
  font-family: var(--f-display);
  font-size: var(--fs-15);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  min-height: 2.8em;
  max-height: 4.2em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__name a {
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.card__name a:hover { color: var(--blue); }

/* Card specs micro-table */
.card__specs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; margin-block: 8px 12px; font-size: var(--fs-12); display: flex; flex-direction: column; gap: 3px; }
.card__spec-row { display: flex; justify-content: space-between; align-items: baseline; }
.card__spec-k { color: var(--slate); font-weight: 500; }
.card__spec-v { font-family: var(--f-mono); font-weight: 600; direction: ltr; color: var(--ink); }

/* Card Price Row */
.card__foot { display: flex; flex-direction: column; margin-top: auto; padding-top: 6px; }
.card__price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.pr { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.pr__now { font-family: var(--f-mono); font-weight: 700; font-size: var(--fs-22); line-height: 1.1; color: var(--ink); }
.pr__now small { font-family: var(--f-body); font-size: var(--fs-12); font-weight: 600; margin-inline-start: 4px; color: var(--slate); }
.pr__now--na { font-family: var(--f-display); font-size: var(--fs-14); font-weight: 700; color: var(--slate); }
.pr__old { font-family: var(--f-mono); font-size: var(--fs-13); color: var(--slate); text-decoration: line-through; margin-inline-start: 6px; }
.pr__off { font-family: var(--f-mono); font-size: var(--fs-12); font-weight: 700; color: var(--white); background: var(--sale); padding: 1px 6px; border-radius: var(--r-tech); }

/* Full-width button inside card */
.card .btn-primary, .card .btn-secondary, .card .btn--blue { width: 100%; height: 42px; font-size: var(--fs-13); }

.cmp-tog {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-end: 6px;
  z-index: 2;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
}
.cmp-tog input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.cmp-tog > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-tech);
  background: var(--white);
  border: 1px solid var(--line);
  pointer-events: none;
  color: var(--ink);
}
.cmp-tog:hover > span { border-color: var(--ink); }
.cmp-tog input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- listing & shop ---------- */
.page-title { padding-block: 20px 8px; }
.page-title h1 { line-height: 1.3; font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 4vw, 36px); margin-top: 6px; }
.crumbs { font-size: var(--fs-14); color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.shop { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 32px; padding-block: 16px 64px; align-items: start; min-width: 0; max-width: 100%; }
.shop > section { min-width: 0; max-width: 100%; }
.rail { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; }
@media (min-width: 901px) {
  .rail { margin-inline: -12px; padding-inline: 12px; }
}
.rail__head, .rail__foot, .scrim { display: none; }
.fgroup { padding-block: 16px; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; padding-top: 0; }
.fgroup h3, .fgroup summary { font-size: var(--fs-14); font-weight: 700; margin-bottom: 10px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: '+'; font-weight: 500; color: var(--ink-2); }
.fgroup[open] > summary::after { content: '–'; }
.fgroup ul { display: flex; flex-direction: column; }
a.cat { display: flex; justify-content: space-between; padding: 7px 12px; margin-inline: -12px; border-radius: var(--r-s); font-size: var(--fs-14); }
a.cat:hover { background: var(--fog); }
a.cat[aria-current="true"] { background: var(--blue-subtle); color: var(--blue); font-weight: 600; }
.num { color: var(--ink-2); font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.checks .chk { width: 100%; min-height: var(--tap); }
.pricebox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pricebox input { min-height: var(--tap); border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 0 12px; background: var(--white); width: 100%; font-variant-numeric: tabular-nums; }
.listbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.count { font-weight: 600; font-size: var(--fs-14); margin-inline-end: auto; }
.listbar select { min-height: var(--tap); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 0 16px; background: var(--white); font-size: var(--fs-14); font-weight: 500; }
.filter-btn { display: none; min-height: var(--tap); padding-inline: 18px; }

/* ---------- row / list layout ---------- */
.row-list { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 100%; min-width: 0; }
.row-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-card); min-width: 0; }
.row-card:hover { border-color: var(--blue); }
.row-card__media { width: 110px; height: 110px; border-radius: var(--r-s); position: relative; align-self: start; background: var(--fog); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.row-card__media img { width: 100%; height: 100%; object-fit: contain; }
.row-card__media .art svg { width: 75%; height: auto; }
.row-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row-card__brand { font-size: var(--fs-12); font-weight: 600; color: var(--blue); }
.row-card__name { font-size: var(--fs-14); font-weight: 700; line-height: 1.35; margin: 0; }
.row-card__name a:hover { color: var(--blue); }
.row-card .chips-spec { margin: 2px 0 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.row-card .chips-spec li { font-size: var(--fs-12); padding: 2px 6px; background: var(--fog-2); border-radius: var(--r-s); border: 1px solid var(--line); }
.row-card__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--fog-2); }
.row-card__btn { min-height: 38px; padding: 0 16px; font-size: var(--fs-13); font-weight: 600; border-radius: var(--r-pill); }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--white); margin-top: 48px; }
.ftr__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-block: 48px 36px; }
.ftr__brand img { width: 52px; height: 52px; background: var(--white); border-radius: var(--r-s); padding: 4px; margin-bottom: 16px; }
.ftr__brand p { max-width: 34ch; color: var(--on-ink-2); font-size: var(--fs-14); line-height: 1.6; }
.ftr h2 { font-size: var(--fs-14); font-weight: 700; margin-bottom: 12px; }
.ftr li { margin-bottom: 8px; font-size: var(--fs-14); }
.ftr a { color: var(--on-ink-2); }
.ftr a:hover { color: var(--white); }
.ftr__soft { color: var(--on-ink-2); font-size: var(--fs-13); }
.ftr__base { padding-block: 18px 24px; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--on-ink-2); font-size: var(--fs-13); }

/* ---------- mobile bottom bar ---------- */
.tabbar { display: none; }
.cmpbar {
  visibility: hidden;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  justify-content: center;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 16px rgba(0, 27, 74, 0.18);
  pointer-events: none;
  transform: translateY(100%);
  transition: transform .25s ease, visibility .25s;
}
.cmpbar.show { transform: none; visibility: visible; }
.cmpbar__in {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  width: 100%;
  margin-inline: auto;
  padding: 12px var(--gutter);
  background: transparent;
  color: var(--white);
  border-radius: 0;
  font-weight: 500;
  font-size: var(--fs-14);
}
.cmpbar__acts { display: flex; align-items: center; gap: 14px; }
.cmpbar .linkbtn { color: var(--blue-subtle); text-decoration: underline; }
.cmpbar .btn { min-height: var(--tap); padding-inline: 18px; }
.listwrap { padding-bottom: 72px; }

/* ---------- responsive (<= 900px, <= 760px) ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .filter-btn { display: inline-flex; }
  .rail { position: fixed; inset: auto 0 0 0; top: auto; max-height: 86vh; width: 100vw; max-width: 100vw; margin-inline: 0; z-index: 70; background: var(--white); border-radius: var(--r-m) var(--r-m) 0 0; padding: 0 20px; transform: translateY(105%); visibility: hidden; pointer-events: none; transition: transform .25s, visibility .25s; display: flex; flex-direction: column; }
  .rail.open { transform: none; visibility: visible; pointer-events: auto; }
  .rail__head { display: flex; justify-content: space-between; align-items: center; padding-block: 16px 8px; position: sticky; top: 0; background: var(--white); z-index: 1; }
  .rail__head h2 { font-size: var(--fs-18); font-family: var(--f-display); }
  .rail__head .btn { width: var(--tap); padding: 0; }
  .rail__foot { display: block; position: sticky; bottom: 0; padding-block: 12px 20px; background: var(--white); border-top: 1px solid var(--line); margin-top: auto; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(8, 13, 26, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 760px) {
  .hdr__top { min-height: 64px; gap: 8px; min-width: 0; }
  .hdr__logo { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); }
  .hdr__logo img { height: 40px; width: auto; object-fit: contain; }
  .hdr__search, .hdr__acts, .hdr__nav { display: none; }
  .hdr__search-toggle, .hdr__menu { display: grid; flex-shrink: 0; }
  .hdr__search-toggle { margin-inline-start: auto; }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { padding: 12px; min-height: 110px; }
  .cat-tile__art { height: 44px; }
  .cat-tile__art .art svg { height: 38px; }
  .cat-tile h3 { font-size: var(--fs-14); }

  .shelf { margin-inline: calc(var(--gutter) * -1); overflow-x: clip; }
  .shelf .grid { display: flex; overflow-x: auto; gap: 12px; padding-inline: var(--gutter); scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 4px; }
  .shelf .card { flex: 0 0 72vw; max-width: 270px; scroll-snap-align: start; }

  .grid, .grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px 8px; min-width: 0; }
  .grid .card, .grid--shop .card { padding: 10px; min-width: 0; overflow: hidden; }
  .grid .card__body, .grid--shop .card__body { padding: 6px 2px 0; min-width: 0; }
  .grid .card__name, .grid--shop .card__name {
    font-size: var(--fs-13);
    line-height: 1.35;
    margin-block: 4px 6px;
    min-height: 2.7em;
    max-height: 4.05em;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .grid .chips-spec li { font-size: var(--fs-12); padding: 2px 4px; }
  .grid .pr__now, .grid--shop .pr__now { font-size: var(--fs-16); }
  .grid .card .btn, .grid--shop .card .btn { font-size: 12.5px; padding-inline: 4px; min-height: 40px; height: 40px; white-space: nowrap; }

  .ftr { padding-bottom: 76px; }
  .ftr__in { grid-template-columns: 1fr; gap: 24px; padding-block: 36px 24px; }
  .ftr a, .ftr__base a { min-height: var(--tap); display: inline-flex; align-items: center; padding-block: 8px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 1px solid var(--line); padding: 0 4px calc(env(safe-area-inset-bottom, 0px)); height: 56px; }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: var(--fs-12); font-weight: 600; color: var(--slate); padding-block: 4px 2px; min-height: 56px; justify-content: center; text-decoration: none; border-top: 2px solid transparent; }
  .tab__ic { display: grid; place-items: center; width: 28px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--ink); border-top: 2px solid var(--ink); font-weight: 700; }
  .tabbar a[aria-current="page"] .tab__ic { background: none !important; color: var(--ink); }
  .tabbar .cnt { position: absolute; top: 4px; inset-inline-start: calc(50% + 8px); min-width: 18px; height: 18px; font-size: var(--fs-12); }
  .cmpbar { bottom: calc(56px + 12px); }
}

/* ---------- device anatomy ("جوّه الجهاز"): Spec sheet paper blueprint ---------- */
.schem {
  --s: var(--ink);
  --f: var(--white);
  --hov: var(--wash);
  --lbl: var(--ink);
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-tech);
  padding: 12px;
}
.schem svg { width: 100%; height: auto; overflow: visible; }
.schem .deco { fill: none; stroke: var(--ink); stroke-width: 1.25px; opacity: .35; }
.schem .inner { fill: none; stroke: var(--ink); stroke-width: 1.25px; opacity: .5; }
.schem .line { stroke: var(--ink); stroke-width: 1.25px; opacity: .5; fill: none; }
.schem .hit { fill: transparent; pointer-events: all; stroke: none; }
.schem .part .box { fill: var(--white); stroke: var(--ink); stroke-width: 1.25px; transition: fill .15s, stroke .15s; }
.schem .part text { fill: var(--ink); font-family: var(--f-display); font-size: 13px; font-weight: 700; text-anchor: middle; direction: rtl; pointer-events: none; letter-spacing: 0 !important; }
.schem .part.na { opacity: .35; pointer-events: none; }
.schem .part.can { cursor: pointer; }
.schem .part.can:hover .box { fill: var(--wash); stroke: var(--ink); }
.schem .part.picked .box { fill: var(--blue-subtle); stroke: var(--blue); stroke-width: 1.5px; }
.schem .part.picked text { fill: var(--ink); font-weight: 700; }
.schem .part.sel .box { fill: var(--blue-subtle); stroke: var(--blue); stroke-width: 2px; }
.schem .part.sel text { fill: var(--ink); font-weight: 800; }
.schem .part:focus-visible .box { stroke: var(--blue); stroke-width: 3px; }

.finder__draw:empty, .finder__part:empty, .finder__specs:empty { display: none; }
.finder__draw { padding-block: 4px; }
.finder__part { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-tech); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.finder__part .finder__label { flex-direction: column; gap: 2px; margin: 0; color: var(--ink); font-size: var(--fs-14); font-weight: 700; }
.finder__hint { font-size: var(--fs-13); font-weight: 500; color: var(--slate); line-height: 1.5; }

/* Product Page Anatomy layout */
.anat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px; align-items: start; }
@media (max-width: 860px) { .anat { grid-template-columns: 1fr; } }
.anat__side { display: flex; flex-direction: column; gap: 12px; }
.anat__detail { border: 1px solid var(--line); border-radius: var(--r-tech); padding: 14px; background: var(--wash); }
.anat__detail h3 { font-family: var(--f-display); font-size: var(--fs-16); font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.anat__vals { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-13); margin-bottom: 8px; }
.anat__vals div { display: flex; justify-content: space-between; align-items: baseline; }
.anat__vals span { color: var(--slate); }
.anat__vals strong { font-family: var(--f-mono); direction: ltr; font-weight: 600; color: var(--ink); }
.anat__detail p { font-size: var(--fs-13); color: var(--slate); margin: 0; line-height: 1.5; }
.anat__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.anat__list li button { width: 100%; min-height: 44px; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-tech); background: var(--white); cursor: pointer; font-family: var(--f-body); font-size: var(--fs-13); color: var(--ink); }
.anat__list li button:hover { background: var(--wash); border-color: var(--ink); }
.anat__list li button[aria-pressed="true"] { border-color: var(--ink); background: var(--wash); font-weight: 700; outline: 1px solid var(--ink); }

/* ---------- PDP Specifications Table (2-column: Spec | Value) ---------- */
.sheet-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r-tech); overflow: hidden; margin-top: 14px; font-size: var(--fs-14); }
.sheet-table th, .sheet-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: right; }
.sheet-table tr:last-child th, .sheet-table tr:last-child td { border-bottom: none; }
.sheet-table th { background: var(--wash); font-family: var(--f-display); font-size: var(--fs-13); font-weight: 700; color: var(--ink); width: 35%; }
.sheet-table td {
  font-family: var(--f-body);
  direction: auto;
  text-align: right;
  color: var(--ink);
  font-weight: 500;
  font-variant-ligatures: contextual common-ligatures;
}

/* PDP Layout and actions */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 3.5vw, 44px); padding-block: 20px 48px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.pdp__stage { aspect-ratio: 4/3; background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-tech); overflow: hidden; position: relative; }
.pdp__stage img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.pdp__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pdp__thumbs button { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: var(--r-tech); background: var(--wash); padding: 4px; cursor: pointer; flex-shrink: 0; }
.pdp__thumbs button[aria-current="true"] { border-color: var(--ink); outline: 1px solid var(--ink); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp__info h1 { font-family: var(--f-display); font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--ink); margin: 4px 0 14px; line-height: 1.3; }
.pdp__brand { font-size: var(--fs-12); font-weight: 700; color: var(--slate); text-transform: uppercase; }
.pdp__buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block: 16px; }
.pdp__buy .btn { min-height: 48px; padding-inline: 24px; }

/* Keyspecs list */
.keyspecs { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.keyspecs li { border: 1px solid var(--line); border-radius: var(--r-tech); background: var(--wash); padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.keyspecs strong { font-family: var(--f-body); font-size: var(--fs-13); font-weight: 700; color: var(--ink); direction: ltr; text-align: right; }
.keyspecs span { font-size: var(--fs-11); color: var(--slate); font-weight: 600; }

.chips-spec .v, .keyspecs strong, .sheet-table td, .cmp td, .cmp thead a, .ptable td, .card__name a, .pdp__info h1, .line__name,
.pt__name, .finder__name, .anat__vals strong, .anat__list strong, .tile h3, .tog span, .pr__now, .card__brand, .pt__brand { unicode-bidi: plaintext; }

/* ---------- Cart Page Layout (Constrained 96px desktop / 72px mobile image) ---------- */
.cart {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
  padding-block: 20px 48px;
}
@media (max-width: 900px) {
  .cart {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 76px;
  }
}
.cart__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart__sum {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart__sum h2 {
  font-family: var(--f-display);
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.cart__sum .total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-block: 1px solid var(--line);
  padding-block: 12px;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--ink);
}
.line {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-tech);
  padding: 14px 16px;
}
@media (max-width: 600px) {
  .line {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px;
  }
}
.line__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.line__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.line__action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--fog-2);
}
.line__price {
  flex-shrink: 0;
}
.line__img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r-tech);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 600px) {
  .line__img {
    width: 72px;
    height: 72px;
  }
}
.line__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.line__img .art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.line__img .art svg {
  width: 75%;
  height: auto;
}
.line__name {
  font-family: var(--f-display);
  font-size: var(--fs-15);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.line__meta {
  font-size: var(--fs-12);
  color: var(--slate);
  margin-bottom: 8px;
}
.line__ctl {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-tech);
  background: var(--white);
}
.qty button {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty button:hover {
  background: var(--wash);
}
.qty output {
  min-width: 32px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Hero Compact Categories Grid (Fits in 900px on 1440) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-block: 16px 24px;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero__copy h1 {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.hero__desc {
  font-size: var(--fs-14);
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.hero__actions .btn {
  min-height: 44px;
  padding-inline: 20px;
}
.hero__cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hero-cat-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-tech);
  padding: 8px 10px;
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
  min-height: 48px;
}
.hero-cat-tile:hover {
  border-color: var(--ink);
  background: var(--wash);
}
.hero-cat-tile__art {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--r-tech);
  padding: 0;
}
.hero-cat-tile__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 27, 74, 0.12));
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-cat-tile:hover .hero-cat-tile__art img {
  transform: scale(1.12);
}
.hero-cat-tile__art .art svg {
  width: 26px;
  height: 20px;
}
.hero-cat-tile__art svg rect[fill="#EFF6FF"],
.hero-cat-tile__art svg rect[fill="#F8FAFC"],
.hero-cat-tile__art svg path[fill="#EFF6FF"] {
  fill: #E2E8F0;
}
.hero-cat-tile__art svg path[stroke="#0B6BE6"],
.hero-cat-tile__art svg path[stroke="#001B4A"] {
  stroke: var(--ink);
  stroke-width: 2.8px;
}
.hero-cat-tile__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hero-cat-tile__txt h3 {
  font-family: var(--f-display);
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-cat-tile__txt span {
  font-size: var(--fs-11);
  color: var(--ink-2);
  font-weight: 600;
  font-family: var(--f-mono);
}

.hero__finder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__finder .schem {
  border: none;
  padding: 0;
  max-width: 380px;
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-block: 14px 18px;
  }
  .hero__copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero__copy h1 {
    font-size: clamp(22px, 5.5vw, 28px);
    margin: 0;
  }
  .hero__desc {
    display: block;
    margin: 0;
    font-size: var(--fs-13);
    color: var(--ink-2);
    line-height: 1.5;
  }
  .hero__cats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 4px;
  }
  .hero-cat-tile {
    padding: 12px 14px;
    min-height: 64px;
    border-radius: var(--r-box);
    gap: 10px;
  }
  .hero-cat-tile__art {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    border-radius: var(--r-tech);
  }
  .hero-cat-tile__art .art svg {
    width: 28px;
    height: 22px;
  }
  .hero-cat-tile__txt {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .hero-cat-tile__txt h3 {
    font-size: var(--fs-13);
    font-weight: 700;
    white-space: normal;
    line-height: 1.3;
    overflow: visible;
  }
  .hero-cat-tile__txt span {
    font-size: var(--fs-11);
    color: var(--slate);
    margin-top: 2px;
  }
  .hero__actions {
    display: flex;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__finder {
    width: 100%;
    margin-top: 8px;
  }
}

/* Below-the-fold Finder Section */
.finder-explore-sec {
  padding-block: 24px 36px;
}
.finder-explore-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin-inline: auto;
}

/* Mobile PDP Fixed Bar */
.pdp__mobile-bar {
  display: none;
}
@media (max-width: 900px) {
  .pdp__buy-group-desktop {
    display: none !important;
  }
  .pdp__mobile-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 56px;
    z-index: 45;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 -2px 10px rgba(0, 27, 74, 0.08);
  }
  .pdp__mobile-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .pdp__mobile-bar-price {
    flex-shrink: 0;
  }
  .pdp__mobile-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .pdp__mobile-bar-actions .btn {
    flex: 1;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 13px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .pdp {
    padding-bottom: 125px;
  }
}

/* Mobile Listing Toolbar Cleanliness */
@media (max-width: 768px) {
  .listbar .seg {
    display: none !important;
  }
}

/* ---------- Instant Page Skeleton (Zero White Screen on Navigation) ---------- */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px 16px;
  width: 100%;
}
@media (max-width: 900px) {
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }
}
.skeleton-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-media {
  aspect-ratio: 4 / 3;
  background: var(--fog-2);
  border-radius: var(--r-tech);
  border: 1px solid var(--line);
  width: 100%;
}
.skeleton-line {
  height: 14px;
  background: var(--fog-2);
  border-radius: var(--r-tech);
}
.skeleton-btn {
  height: 40px;
  background: var(--fog-2);
  border: 1px solid var(--line);
  border-radius: var(--r-tech);
  margin-top: auto;
}

/* ==========================================================================
   Compare Page (مقارنة الأجهزة والمواصفات) - High Performance Responsive Matrix
   ========================================================================== */

.cmp-page {
  padding-top: 20px;
  padding-bottom: 48px;
}
@media (max-width: 900px) {
  .cmp-page {
    padding-top: 16px;
    padding-bottom: 96px;
  }
}

.page-title__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cmp-badge {
  display: inline-flex;
  align-items: center;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: var(--fs-12);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-tech);
  border: 1px solid var(--line);
}
.cmp-sub {
  font-size: var(--fs-13);
  color: var(--slate);
  margin-top: 4px;
  margin-bottom: 16px;
}

/* Compare Tools Toolbar */
.cmp-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.cmp-tools__group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmp-switch {
  cursor: pointer;
  user-select: none;
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.cmp-switch input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  cursor: pointer;
  margin: 0;
}
.diff-count {
  font-size: var(--fs-11);
  font-weight: 700;
  color: var(--blue);
  background: var(--wash);
  border: 1px solid rgba(11, 107, 230, 0.2);
  border-radius: var(--r-tech);
  padding: 2px 8px;
}
.cmp-tools__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--r-tech);
  padding: 6px 12px;
  font-size: var(--fs-12);
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  min-height: 34px;
}
.btn-ghost:hover {
  background: var(--wash);
  color: var(--ink);
  border-color: var(--ink);
}

/* Scroll Hint Banner on Mobile */
.cmp-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--slate);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r-tech);
  padding: 8px 12px;
  margin-bottom: 12px;
  text-align: center;
}
@media (max-width: 900px) {
  .cmp-hint {
    display: flex;
  }
}

/* Table Container & Horizontal Scroll Wrapper */
.cmp-wrap {
  position: relative;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 27, 74, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
}
.cmp-wrap .tw {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
  direction: rtl;
}

/* Compare Matrix Table */
table.cmp {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: right;
  font-size: var(--fs-13);
  table-layout: fixed;
  direction: rtl;
}
@media (min-width: 901px) {
  table.cmp {
    min-width: 780px;
  }
}

/* First Column: Spec Label (Sticky on horizontal scroll in RTL) */
.cmp-spec-col,
table.cmp thead th:first-child,
table.cmp tfoot th:first-child {
  position: sticky;
  right: 0;
  inset-inline-start: 0;
  z-index: 10;
  background: #F8FAFC;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-12);
  width: 110px;
  min-width: 100px;
  max-width: 125px;
  padding: 12px 14px;
  border-inline-end: 2px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: right;
  box-shadow: -3px 0 6px rgba(0, 27, 74, 0.06);
}
table.cmp thead th:first-child {
  z-index: 15;
  background: #F8FAFC;
}
table.cmp tfoot th:first-child {
  z-index: 12;
  background: #F8FAFC;
}
.cmp-spec-head-lbl {
  font-weight: 800;
  font-family: var(--f-display);
  font-size: var(--fs-13);
  color: var(--ink);
}

/* Product Value Columns */
.cmp-val-col,
table.cmp thead th:not(:first-child),
table.cmp tfoot td {
  width: 185px;
  min-width: 165px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  vertical-align: middle;
  text-align: right;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
}
table.cmp tr td:last-child,
table.cmp tr th:last-child {
  border-inline-end: none;
}
.cmp-brand-val {
  font-weight: 700;
  color: var(--ink);
}
.cmp-spec-val {
  color: var(--ink);
  font-weight: 500;
}

/* Header Row (Product Cards) */
table.cmp thead th {
  padding: 14px 12px;
  background: var(--white);
  border-bottom: 2px solid var(--ink);
  vertical-align: top;
}
.cmp__head-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.cmp__remove-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--wash);
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--r-tech);
  padding: 3px 8px;
  font-size: var(--fs-11);
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  min-height: 26px;
}
.cmp__remove-btn:hover {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #F87171;
}
.cmp__img {
  width: 96px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wash);
  border-radius: var(--r-tech);
  border: 1px solid var(--line);
  padding: 6px;
  overflow: hidden;
}
.cmp__img img,
.cmp__img svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cmp__title {
  font-family: var(--f-display);
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
  text-align: center;
}
.cmp__title:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Rows Styling */
table.cmp tbody tr:nth-child(even) td {
  background: #FCFDFE;
}
table.cmp tbody tr:hover td {
  background: var(--wash);
}
table.cmp tbody tr:hover th {
  background: #E2E8F0;
}

/* Differing Specs Highlighting */
table.cmp td.diff {
  background: rgba(11, 107, 230, 0.06) !important;
  font-weight: 700;
  color: var(--ink);
}
table.cmp tr:has(td.diff) th {
  color: var(--blue);
}

/* Foot Row (Add to Cart) */
table.cmp tfoot td {
  padding: 14px 12px;
  background: var(--canvas);
  border-top: 2px solid var(--ink);
  border-bottom: none;
}
table.cmp tfoot .btn,
table.cmp tfoot .btn-primary,
table.cmp tfoot .btn--blue {
  width: 100%;
  min-height: 40px;
  font-size: var(--fs-12);
  font-weight: 700;
  border-radius: var(--r-tech);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Compare Empty State */
.cmp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  margin-top: 16px;
}
.cmp-empty .empty__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--r-box);
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cmp-empty h2 {
  font-family: var(--f-display);
  font-size: var(--fs-18);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.cmp-empty p {
  font-size: var(--fs-13);
  color: var(--slate);
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.cmp-empty .empty__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

