/* PORT-IT — визуальный слой поверх Bootstrap 5, повторяющий палитру
   старого сайта (тема oct_techstore). Затрагивает только шапку, меню,
   футер и главную — не трогает страницы конфигуратора/корзины/заказа. */

:root {
  --portit-accent: #229ac8;
  --portit-accent-dark: #1f90bb;
  --portit-dark: #4f5f6f;
  --portit-topbar: #1b2430;
  --portit-topbar-hover: #243040;
  --portit-text: #666;
  --portit-heading: #444;
  --portit-price: #e1262d;
  --portit-red-dark: #8b1e2d;
  --portit-line: #e6e9ee;
  --portit-gold: #f5b942;
}

body { color: var(--portit-text); }

/* ---------- Верхняя тёмная полоса ---------- */
#top {
  background: var(--portit-topbar);
  color: #fff;
  font-size: 12px;
  padding: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.portit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}
.portit-top-links {
  display: flex;
  min-width: 0;
  overflow: hidden;
}
.portit-top-links a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
  letter-spacing: 0;
  transition: color .2s ease, letter-spacing .2s ease, background .2s ease;
}
.portit-top-links a:first-child { border-left: 0; }
.portit-top-links a:hover {
  color: var(--portit-price);
  letter-spacing: .04em;
}
.portit-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.portit-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1d2430;
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: transform .18s ease;
}
.portit-rating:hover { transform: translateY(-1px); color: #1d2430; }
.portit-pin {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: var(--portit-price);
  transform: rotate(-45deg);
  position: relative;
}
.portit-pin:after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}
.portit-stars { color: var(--portit-gold); letter-spacing: 1px; font-size: 11px; }
.portit-client > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  padding: 0 10px;
  height: 40px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s ease, transform .18s ease;
}
.portit-client > a:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateY(-1px); }
.portit-client .dropdown-menu a { color: #333; }
#top .dropdown-toggle::after { display: none; }

/* ---------- Шапка «Пилюли» ---------- */
header { background: #fff; padding: 6px 0; border-bottom: 1px solid var(--portit-line); }
.portit-header-main {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) auto;
  grid-template-areas: "logo menu search actions";
  align-items: center;
  gap: 12px;
}
#logo { grid-area: logo; margin: 0; }
#logo img { max-height: 52px; }
.portit-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.portit-logo-top { font-size: 22px; font-weight: 700; color: #1b2430; letter-spacing: .02em; }
.portit-logo-top span { padding: 0 5px; }
.portit-logo-bot { font-size: 13px; font-weight: 800; color: var(--portit-red-dark); letter-spacing: .18em; margin-top: 3px; }

.portit-mega { grid-area: menu; position: relative; flex-shrink: 0; }
.portit-mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #2c3644;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, filter .18s ease;
}
.portit-mega-btn:hover,
.portit-mega.is-open .portit-mega-btn {
  background: #1b2430;
  transform: translateY(-1px);
}
.portit-mega-burger {
  width: 14px;
  height: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.portit-mega-burger i {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.portit-mega.is-open .portit-mega-burger i:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.portit-mega.is-open .portit-mega-burger i:nth-child(2) { opacity: 0; }
.portit-mega.is-open .portit-mega-burger i:nth-child(3) { transform: translateY(-4.2px) rotate(-45deg); }
.portit-mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(920px, 92vw);
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 40;
  box-shadow: 0 18px 50px rgba(20, 24, 30, .16);
}
.portit-mega.is-open .portit-mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.portit-mega.is-open .portit-mega-col {
  animation: portit-mega-stagger .28s ease both;
}
.portit-mega.is-open .portit-mega-col:nth-child(2) { animation-delay: .05s; }
.portit-mega.is-open .portit-mega-col:nth-child(3) { animation-delay: .1s; }
.portit-mega.is-open .portit-mega-col:nth-child(n+4) { animation-delay: .14s; }
@keyframes portit-mega-stagger {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.portit-mega-col h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.portit-mega-col h4 a { color: var(--portit-topbar); text-decoration: none; }
.portit-mega-col-continue { visibility: hidden; }
.portit-mega-col .portit-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3b4450;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0;
  transition: color .2s ease, letter-spacing .2s ease, background .2s ease;
}
.portit-mega-col .portit-nav-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--portit-price);
  opacity: .7;
  flex-shrink: 0;
}
.portit-mega-col .portit-nav-item:hover {
  color: var(--portit-price);
  letter-spacing: .03em;
  background: #fff5f5;
}

.portit-search,
#search.portit-search {
  grid-area: search;
  min-width: 0;
  position: relative;
  margin-bottom: 0;
}
.portit-search-input {
  width: 100%;
  height: 44px;
  border: 1px solid #e4e8ee;
  border-radius: 999px;
  padding: 0 44px 0 18px;
  font-size: 14px;
  outline: none;
  background: #f7f8fa;
  transition: border-color .18s ease, background .18s ease;
}
.portit-search-input:focus { border-color: #9aa8b8; background: #fff; }
.portit-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #7b8491;
  cursor: pointer;
  border-radius: 50%;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.portit-search-btn:hover {
  background: #e9eef4;
  color: var(--portit-topbar);
  transform: rotate(-8deg) scale(1.06);
}

.portit-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
  margin-left: auto;
}
.portit-phone,
.portit-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f5f8;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
header .portit-phone {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
header .portit-phone:hover,
.portit-cart:hover {
  background: #e9eef4;
  transform: translateY(-2px);
}
.portit-phone-num {
  font-size: 18px;
  font-weight: 800;
  color: #3a4450;
  letter-spacing: -.02em;
  white-space: nowrap;
  line-height: 1.1;
  text-decoration: none;
}
.portit-callback {
  font-size: 11px;
  color: var(--portit-price);
  text-decoration: underline;
  white-space: nowrap;
}
.portit-callback:hover { text-decoration: none; color: var(--portit-price); }
#cart { margin-bottom: 0; }
.portit-cart-wrap { display: block; }
.portit-cart { color: var(--portit-price); font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; }
.portit-cart-ico { position: relative; color: #1d2430; }
.portit-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #b7c0ca;
  color: #fff;
  border-radius: 99px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  transition: background .18s ease, transform .18s ease;
}
.portit-cart:hover .portit-cart-badge { background: var(--portit-price); transform: scale(1.08); }
#cart .dropdown-menu { background: #fff; border-radius: 14px; border-color: var(--portit-line); }

@media (max-width: 1100px) {
  .portit-top-links a:nth-child(n+4) { display: none; }
  .portit-phone-num { font-size: 15px; }
}
@media (max-width: 860px) {
  .portit-header-main {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "logo menu actions"
      "search search search";
  }
  .portit-top-links a:nth-child(n+3) { display: none; }
  .portit-client span { display: none; }
  .portit-mega-panel { grid-template-columns: 1fr 1fr; width: min(92vw, 520px); }
}
@media (max-width: 560px) {
  .portit-top { padding: 0 2px; }
  .portit-header-main { gap: 8px; }
  .portit-mega-label { display: none; }
  .portit-mega-btn { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .portit-phone-num { font-size: 12px; }
  .portit-callback { display: none; }
  .portit-cart-sum { display: none; }
  .portit-rating .portit-stars,
  .portit-rating b { display: none; }
}

/* ---------- Кнопки ---------- */
.btn-primary {
  --bs-btn-bg: var(--portit-accent);
  --bs-btn-border-color: var(--portit-accent);
  --bs-btn-hover-bg: var(--portit-accent-dark);
  --bs-btn-hover-border-color: var(--portit-accent-dark);
}

/* OpenCart default pins footer { position:absolute; bottom:-1px } over content
   and reserves space via #content padding-bottom. Category pages have no #content,
   so the Navy rail painted over the product grid. Keep PORT-IT footer in flow. */
#container {
  position: relative;
  margin-bottom: 0;
}
#content,
#column-left,
#column-right {
  padding-bottom: 0;
}
@media (min-width: 576px) {
  #content,
  #column-left,
  #column-right {
    padding-bottom: 0;
  }
}

/* ---------- Футер: 1 доверие + 2 инженер + 3 стекло + 4 navy-рейка ---------- */
footer,
footer.portit-foot,
.portit-foot {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  z-index: 1;
  margin-top: 40px;
  padding-top: 0;
  border: 0;
  color: #e8edf2;
  background: #121820;
  overflow: hidden;
  isolation: isolate;
}
.portit-foot-rail {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--portit-topbar);
  color: #fff;
  height: 34px;
  padding: 0;
}
.portit-foot-rail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 72px;
  background: var(--portit-price);
  animation: portit-rail-scan 5.5s ease-in-out infinite;
  pointer-events: none;
}
.portit-foot-rail-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: portit-rail-move 32s linear infinite;
}
.portit-foot-rail:hover .portit-foot-rail-track { animation-play-state: paused; }
.portit-foot-rail-set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 100%;
}
.portit-foot-rail-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: 100%;
  padding: 0 22px 0 0;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  transition: letter-spacing .2s ease, color .2s ease;
}
.portit-foot-rail-item i {
  font-size: 11px;
  color: rgba(255, 255, 255, .72);
  transition: color .2s ease, transform .2s ease;
}
.portit-foot-rail-item:hover { letter-spacing: .04em; color: #fff; }
.portit-foot-rail-item:hover i {
  color: var(--portit-price);
  transform: translateY(-1px);
}
.portit-foot-rail-sep {
  width: 5px;
  height: 5px;
  background: var(--portit-price);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-right: 22px;
  opacity: .9;
}
@keyframes portit-rail-move {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--portit-rail-w, 50%))); }
}
@keyframes portit-rail-scan {
  0% { left: -72px; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .portit-foot-rail-track,
  .portit-foot-rail::after { animation: none; }
  .portit-foot-rail-set:last-child { display: none; }
  .portit-foot-rail-set { flex-wrap: wrap; width: 100%; justify-content: center; }
}
.portit-foot-shell {
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}
.portit-foot-bg {
  position: absolute;
  top: 0;
  right: -12px;
  bottom: -12px;
  left: -12px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(8px);
  transform: scale(1.06);
  opacity: .35;
  pointer-events: none;
}
.portit-foot-in {
  position: relative;
  z-index: 1;
  padding: 28px 15px 22px;
}
.portit-foot-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.portit-foot-pills a {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #fff;
}
.portit-foot-pills a:hover { background: #e1262d; border-color: #e1262d; color: #fff; }
.portit-foot-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.portit-foot-trust > div {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px 14px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
}
.portit-foot-trust i {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(225, 38, 45, .16);
  color: #ff6b6f;
  font-size: 16px;
}
.portit-foot-trust b { display: block; font-size: 20px; color: #fff; line-height: 1.15; }
.portit-foot-trust span { font-size: 11px; color: #8b95a3; }
.portit-foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .7fr);
  gap: 22px;
  align-items: start;
}
.portit-foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.portit-foot h5 {
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.portit-foot a { color: #c5ced6; text-decoration: none; }
.portit-foot a:hover { color: #fff; }
.portit-foot ul { margin: 0; padding: 0; }
.portit-foot ul li { margin-bottom: 6px; }
.portit-foot-eng {
  background: rgba(18, 22, 28, .72);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 16px;
}
.portit-foot-eng h3 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.portit-foot-slot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #9aa3ad;
  margin-bottom: 12px;
}
.portit-foot-slot i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #3dd68c;
  border-radius: 50%;
  margin-right: 6px;
  animation: portit-pulse 1.6s infinite;
}
@keyframes portit-pulse { 50% { opacity: .35; } }
.portit-foot-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.portit-foot-form input,
.portit-foot-form textarea {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  width: 100%;
  resize: none;
  min-height: 0;
  line-height: 1.35;
}
.portit-foot-form textarea,
.portit-foot-form button { grid-column: 1 / -1; }
.portit-foot-form textarea { min-height: 72px; height: 72px; }
.portit-foot-form button {
  border: 0;
  border-radius: 8px;
  background: #e1262d;
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}
.portit-foot-form-ok { margin: 10px 0 0; font-size: 12px; color: #7dffa8; }
.portit-foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.portit-foot .portit-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  margin-right: 8px;
  color: #fff;
}
.portit-foot .portit-socials a:hover { background: #e1262d; }
.portit-foot-phone { font-size: 18px; font-weight: 800; color: #fff !important; }
.portit-foot-pay { display: flex; gap: 8px; margin-left: auto; }
.portit-foot-pay span {
  background: #fff;
  color: #1b2430;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}
.portit-foot .portit-legal { font-size: 11px; color: #8b95a3; margin: 16px 0 8px; line-height: 1.5; }
.portit-foot .portit-copy { font-size: 12px; color: #aeb6bd; }
@media (max-width: 991px) {
  .portit-foot-main, .portit-foot-trust, .portit-foot-cols { grid-template-columns: 1fr 1fr; }
  .portit-foot-pay { margin-left: 0; }
}
@media (max-width: 640px) {
  .portit-foot-trust, .portit-foot-cols, .portit-foot-main { grid-template-columns: 1fr; }
}

/* ---------- Главная: hero + мастер (вариант Pause + spring + колесо) ---------- */
.portit-hero {
  position: relative;
  min-height: 353px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 21px 0;
  overflow: hidden;
  color: #fff;
  margin-bottom: 30px;
}
.portit-hero-bg {
  position: absolute;
  inset: -14px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(2.2px);
  transform: scale(1.05);
  transition: filter .45s ease, transform .45s ease;
}
.portit-hero:hover .portit-hero-bg {
  filter: blur(7px);
  transform: scale(1.1);
}
.portit-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(10,14,20,.2);
  pointer-events: none;
}
.portit-hero > .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  width: 100%;
  align-self: stretch;
}
.portit-hero-glass {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 16px;
  padding: 18px 20px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(32,36,42,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .35s ease, border-color .35s ease;
}
.portit-hero:hover .portit-hero-glass {
  background: rgba(18,22,28,.62);
  border-color: rgba(255,255,255,.46);
}
.portit-hero-left,
.portit-hero-right {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.portit-hero-left {
  justify-content: flex-start;
  gap: 0;
}
/* Правая колонка не раздувает ряд: высоту задаёт левый блок,
   мастер подбора растягивается и обрезает ленту CPU внутри. */
.portit-hero-right {
  height: 0;
  min-height: 100%;
  overflow: hidden;
}
.portit-hero-badge {
  display: inline-flex;
  align-self: flex-start;
  background: #f23534;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.portit-hero-title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}
.portit-hero-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255,255,255,.72);
}
.portit-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0; }
.portit-hero-tag {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(18,22,28,.72);
  border: 1px solid rgba(255,255,255,.14);
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}
.portit-hero-tag::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -45%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.portit-hero-tag:hover::after {
  opacity: 1;
  animation: portit-hero-sweep .7s ease;
}
.portit-hero-tag:hover { background: rgba(242,53,52,.92); border-color: #f23534; color: #fff; }
@keyframes portit-hero-sweep { from { left: -45%; } to { left: 120%; } }

.portit-wiz {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.portit-wiz-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0;
}
.portit-wiz-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.portit-wiz-back {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.portit-wiz-summary {
  display: none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.portit-wiz-summary.is-on { display: block; }
.portit-wiz-viewport {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
.portit-wiz-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(110%);
  transition: transform .55s cubic-bezier(.22,1.4,.36,1);
}
.portit-wiz-panel[hidden] { display: none !important; }
.portit-wiz-panel.is-in { transform: none; }
.portit-wiz-panel.is-out { transform: translateX(-118%); }

.portit-cpu-window {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}
.portit-cpu-window::before,
.portit-cpu-window::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}
.portit-cpu-window::before { top: 0; background: linear-gradient(to bottom, rgba(20,24,30,.85), transparent); }
.portit-cpu-window::after { bottom: 0; background: linear-gradient(to top, rgba(20,24,30,.85), transparent); }
.portit-cpu-shift { will-change: transform; }
.portit-cpu-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: portit-drift-down 18s linear infinite;
}
.portit-cpu-window:hover .portit-cpu-track { animation-play-state: paused; }
@keyframes portit-drift-down {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.portit-cpu-item {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  width: 100%;
}
.portit-cpu-item small { display: block; opacity: .65; font-size: 11px; }
.portit-cpu-item:hover,
.portit-cpu-item.is-on { background: #f23534; border-color: #f23534; }

.portit-choice-row,
.portit-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1 1 auto; min-height: 0; align-items: stretch; }
.portit-choice,
.portit-form-item {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 12px;
  padding: 8px 8px 10px;
  cursor: pointer;
  text-align: center;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.portit-choice.is-on,
.portit-form-item.is-on { background: rgba(242,53,52,.22); border-color: #f23534; }
.portit-choice svg,
.portit-form-item svg { display: block; margin: 0 auto 6px; max-height: 56px; width: auto; }
.portit-choice b,
.portit-form-item b { display: block; font-size: 13px; }
.portit-wiz-q { margin: 0 0 8px; font-size: 15px; font-weight: 700; flex-shrink: 0; }

@media (max-width: 860px) {
  .portit-hero { padding: 16px 0; min-height: 0; }
  .portit-hero-glass { grid-template-columns: 1fr; }
  .portit-hero-left,
  .portit-hero-right { height: auto; min-height: 0; }
  .portit-hero-title { font-size: 22px; }
  .portit-wiz-viewport { min-height: 180px; }
  .portit-cpu-window { min-height: 160px; }
  .portit-choice-row,
  .portit-form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .portit-hero-tag { white-space: normal; }
  .portit-choice-row,
  .portit-form-row { grid-template-columns: 1fr; }
}

.portit-services-header { text-align: center; margin: 10px 0 30px; }
.portit-services-title { font-size: 24px; font-weight: 700; color: var(--portit-heading); text-transform: uppercase; }
.portit-services-subtitle { color: #888; font-size: 13px; }

/* ---------- Главная: подбор / замена / склад ---------- */
.portit-home { padding-bottom: 28px; }
.portit-home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
  gap: 18px;
  margin-bottom: 28px;
  align-items: stretch;
}
.portit-pick,
.portit-bill {
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.portit-pick h2,
.portit-bill h2,
.portit-shelf-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #1d2430;
}
.portit-bill > p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7380;
  line-height: 1.45;
}
.portit-pick-tasks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.portit-pick-task {
  border: 1px solid var(--portit-line);
  background: #f6f8fa;
  color: #1d2430;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
}
.portit-pick-task i { color: #6b7380; font-size: 14px; }
.portit-pick-task b { font-size: 12px; font-weight: 800; line-height: 1.2; }
.portit-pick-task small { font-size: 10px; color: #6b7380; line-height: 1.3; }
.portit-pick-task:hover { border-color: #1b2430; }
.portit-pick-task.is-on {
  background: #e8edf3;
  border-color: #1b2430;
  color: #1d2430;
  box-shadow: inset 3px 0 0 #e1262d;
}
.portit-pick-task.is-on i { color: #e1262d; }
.portit-pick-task.is-on small { color: #5c6673; }
.portit-pick-loads { display: grid; gap: 12px; margin-bottom: 16px; }
.portit-pick-load { display: grid; gap: 6px; }
.portit-pick-load span { font-size: 12px; color: #6b7380; font-weight: 600; }
.portit-pick-load.is-hot span { color: #1d2430; }
.portit-segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.portit-segs button {
  border: 1px solid var(--portit-line);
  background: #fff;
  border-radius: 8px;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #4f5f6f;
  cursor: pointer;
}
.portit-segs button.is-on {
  background: #e8edf3;
  border-color: #1b2430;
  color: #1d2430;
}
.portit-pick-board {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--portit-line);
}
.portit-ffig {
  width: 44px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
}
.portit-ffig span {
  display: block;
  height: 7px;
  background: #d8dee6;
  border: 1.5px solid #4f5f6f;
  border-radius: 2px;
  box-sizing: border-box;
}
.portit-ffig.is-tower { justify-content: center; }
.portit-ffig.is-tower span:nth-child(1) { display: none; }
.portit-ffig.is-tower span:nth-child(2) { display: none; }
.portit-ffig.is-tower span:nth-child(3) { height: 36px; width: 22px; margin: 0 auto; }
.portit-ffig.is-tower span:nth-child(4) { height: 6px; width: 28px; margin: 0 auto; }
.portit-ffig.is-1u span:nth-child(1),
.portit-ffig.is-1u span:nth-child(2),
.portit-ffig.is-1u span:nth-child(3) { display: none; }
.portit-ffig.is-1u span:nth-child(4) { height: 10px; }
.portit-ffig.is-2u span:nth-child(1),
.portit-ffig.is-2u span:nth-child(2) { display: none; }
.portit-ffig.is-2u span { height: 12px; }
.portit-pick-spec {
  flex: 1 1 140px;
  font-size: 14px;
  font-weight: 800;
  color: #1d2430;
  line-height: 1.35;
}
.portit-pick-spec small { display: block; font-weight: 500; color: #6b7380; font-size: 12px; margin-top: 2px; }
.portit-pick-cta,
.portit-bill-form button,
.portit-shelf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f23534;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.portit-pick-cta:hover,
.portit-bill-form button:hover,
.portit-shelf-cta:hover { color: #fff; filter: brightness(1.08); }
.portit-bill-form { display: grid; gap: 8px; }
.portit-bill-form label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; color: #6b7380; }
.portit-bill-form input,
.portit-bill-form select {
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  width: 100%;
  background: #fff;
  font-weight: 600;
  color: #1d2430;
}
.portit-bill-form input.is-bad { border-color: #e1262d; }
.portit-bill-form input.is-ok { border-color: #2f9e6a; }
.portit-bill-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.portit-bill-notes span {
  background: #f6f8fa;
  border: 1px solid var(--portit-line);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #1d2430;
}
.portit-bill-ok { margin: 12px 0 0; font-size: 13px; color: #2f9e6a; font-weight: 700; }
.portit-swap-msg { font-size: 13px; color: #6b7380; }
.portit-shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.portit-shelf-head a { font-size: 13px; font-weight: 700; color: #4f5f6f; text-decoration: none; }
.portit-shelf-head a:hover { color: #1d2430; }
.portit-shelf {
  margin-bottom: 8px;
}
.portit-shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.portit-shelf-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.portit-shelf-photo {
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.portit-shelf-photo img { max-height: 120px; max-width: 100%; object-fit: contain; }
.portit-shelf-sku { font-size: 11px; color: #6b7380; }
.portit-shelf-name {
  font-size: 13px;
  font-weight: 700;
  color: #1d2430;
  text-decoration: none;
  line-height: 1.3;
  min-height: 2.6em;
  margin-bottom: 6px;
}
.portit-shelf-price { color: #1d2430; font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.portit-shelf-cta { margin-top: auto; width: 100%; }
@media (max-width: 991px) {
  .portit-home-split { grid-template-columns: 1fr 1fr; }
  .portit-pick-tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .portit-home-split,
  .portit-shelf-grid { grid-template-columns: 1fr; }
  .portit-pick-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.portit-cat-card { text-align: center; margin-bottom: 30px; }
.portit-cat-card img { max-height: 140px; margin-bottom: 12px; }
.portit-cat-card .portit-cat-title { display: block; font-weight: 700; color: var(--portit-heading); margin-bottom: 6px; text-decoration: none; }
.portit-cat-card .portit-cat-desc { font-size: 13px; color: #888; margin-bottom: 8px; }
.portit-cat-card .portit-cat-more { color: var(--portit-accent); font-size: 13px; text-decoration: none; font-weight: 600; }

/* ---------- Каталог: светлый soft ---------- */
.portit-catalog { padding-bottom: 40px; }
.portit-catalog > .breadcrumb {
  display: none;
}
.portit-crumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 6px;
  padding: 10px 0 8px;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--portit-line);
  border-radius: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #6b7380;
}
.portit-crumbs a {
  display: inline-flex;
  align-items: center;
  color: #6b7380;
  text-decoration: none;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: color .15s ease;
}
.portit-crumbs a:hover { color: #e1262d; }
.portit-crumbs .fa-home,
.portit-crumbs .fas { font-size: 1em; line-height: 1; }
.portit-crumbs-sep {
  color: #c5ccd4;
  font-weight: 400;
  flex: 0 0 auto;
  user-select: none;
}
.portit-crumbs-now {
  color: #1b2430;
  font-weight: 500;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .portit-crumbs { flex-wrap: wrap; }
  .portit-crumbs-now {
    flex-basis: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}
.portit-cat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.portit-catalog .portit-cat-title { font-size: 26px; font-weight: 800; color: #1d2430; margin: 0; }
.portit-cat-sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.portit-sort-btn {
  display: inline-flex;
  border: 1px solid #e6e9ee;
  background: #fff;
  color: #1d2430;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.portit-sort-btn:hover { color: #1d2430; }
.portit-sort-btn.is-on { background: #1b2430; color: #fff; border-color: #1b2430; }
.portit-sort-btn.is-on:hover { color: #fff; }

.portit-cat-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.portit-cat-pills-lab { font-size: 11px; color: #6b7380; font-weight: 600; }
.portit-xchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1b2430;
  color: #fff;
  border-radius: 999px;
  padding: 5px 8px 5px 10px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.portit-xchip:hover { color: #fff; }
.portit-xchip i { font-style: normal; opacity: .7; }
.portit-cat-clear { font-size: 11px; color: #6b7380; text-decoration: underline; }

.portit-cat-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  align-items: start;
}
.portit-cat-layout.is-solo { grid-template-columns: 1fr; }
.portit-cat-side {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  padding: 12px 14px;
  position: sticky;
  top: 12px;
}
.portit-fg { margin-bottom: 4px; }
.portit-fg summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  color: #1b2430;
  padding: 8px 0;
  list-style: none;
}
.portit-fg summary::-webkit-details-marker { display: none; }
.portit-fg summary::after { content: "+"; float: right; color: #6b7380; font-weight: 800; }
.portit-fg[open] summary::after { content: "–"; }
.portit-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 0;
  font-size: 12px;
  color: #1d2430;
  text-decoration: none;
}
.portit-opt:hover { color: #f23534; }
.portit-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #b7bec7;
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.portit-box i { width: 8px; height: 8px; background: #fff; transform: scale(0); transition: transform .18s cubic-bezier(.22,1.4,.36,1); }
.portit-opt.is-on .portit-box { background: #f23534; border-color: #f23534; }
.portit-opt.is-on .portit-box i { transform: scale(1); }

.portit-cat-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.portit-cat-sub a {
  border: 1px solid #e6e9ee;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #1d2430;
  text-decoration: none;
}

#portit-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.portit-catalog .product-thumb.portit-pcard,
.portit-pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  position: relative;
  transition: box-shadow .28s ease, transform .28s ease;
}
.portit-pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(27,36,48,.12); }
.portit-pcard-photo,
.portit-pcard-photo a,
.portit-pcard-photo img {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.portit-pcard-photo {
  height: 140px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portit-pcard-photo a { display: grid; place-items: center; width: 100%; height: 100%; }
.portit-pcard-photo img {
  display: block;
  max-height: 140px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform .35s ease;
}
.portit-pcard:hover .portit-pcard-photo img { transform: scale(1.05); }
.portit-pcard-sku { font-size: 11px; color: #6b7380; margin-top: 8px; flex-shrink: 0; }
.portit-pcard-name { font-size: 13px; font-weight: 700; line-height: 1.3; min-height: 2.6em; margin: 4px 0 6px; flex-shrink: 0; }
.portit-pcard-name a { color: #1d2430; text-decoration: none; }
.portit-pcard-price { color: #e1262d; font-weight: 800; font-size: 16px; margin-bottom: 8px; flex-shrink: 0; }
.portit-pcard-price s { color: #9aa3ad; font-weight: 600; font-size: 13px; margin-left: 6px; }
.portit-pcard-specs { flex: 1 1 auto; }
.portit-pcard-specs table { width: 100%; border-collapse: collapse; font-size: 11px; }
.portit-pcard-specs td { padding: 4px 0; border-bottom: 1px dotted #e4e7ec; color: #4f5f6f; }
.portit-pcard-specs td:first-child { color: #6b7380; width: 46%; }
.portit-pcard-cta {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f23534;
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.portit-pcard-cta:hover { color: #fff; filter: brightness(1.06); }
.portit-pcard .button { display: none; }
.portit-cat-pager { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; }

/* ---------- Карточка товара (вариант 6) ---------- */
.portit-product .portit-crumbs {
  font-size: 11px;
  font-weight: 400;
  margin: 0 0 10px;
  padding: 10px 0 0;
  border-bottom: 0;
}
.portit-product .portit-crumbs-now {
  color: #6b7380;
  font-weight: 400;
}
.portit-pd { margin-bottom: 28px; }
.portit-pd-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 210px;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}
.portit-pd-hero:not(:has(.portit-pd-gallery)) {
  grid-template-columns: minmax(0, 1fr) 210px;
}
.portit-pd-gallery {
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 14px;
}
.portit-pd-gallery .image { margin: 0; }
.portit-pd-gallery img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 0;
  background: #fff;
}
.portit-pd-gallery .img-thumbnail { padding: 0; border: 0; background: transparent; }
.portit-pd-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.portit-pd-thumbs a {
  width: 52px; height: 40px; border: 1px solid var(--portit-line); border-radius: 6px;
  display: grid; place-items: center; overflow: hidden; background: #fff;
}
.portit-pd-thumbs a.is-on { outline: 2px solid #1b2430; }
.portit-pd-thumbs img { max-height: 36px; width: auto; }
.portit-pd-title { margin: 0 0 10px; font-size: 26px; letter-spacing: -.03em; color: #1d2430; font-weight: 700; }
.portit-pd-sku { font-size: 12px; color: #6b7380; margin-bottom: 10px; }
.portit-pd-spec { width: 100%; border-collapse: collapse; font-size: 13px; }
.portit-pd-spec td {
  padding: 6px 0;
  background-image: radial-gradient(circle, #cfd5dd 1px, transparent 1.5px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  background-position: 0 20px;
  color: #4f5f6f;
}
.portit-pd-spec td:first-child { color: #6b7380; width: 46%; }
.portit-pd-spec td span { background: #fff; padding-right: 8px; }
.portit-pd-spec td:last-child span { float: right; padding-left: 8px; background: #fff; color: #1d2430; font-weight: 600; }
.portit-pd-more { display: inline-block; margin-top: 8px; color: #e1262d; font-size: 13px; font-weight: 700; }
.portit-pd-from { margin-top: 14px; font-size: 24px; font-weight: 800; color: #1b2430; letter-spacing: -.03em; }

.portit-now {
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  color: #4f5f6f;
  display: grid;
  gap: 12px;
}
.portit-now b { display: block; color: #1d2430; font-size: 13px; margin-bottom: 2px; }
.portit-now span { color: #6b7380; }

.portit-pd-build {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 12px;
  align-items: start;
}

.portit-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.portit-tabs .nav-link {
  text-align: center;
  padding: 11px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1d2430;
  background: #fff;
  border: 1px solid var(--portit-line) !important;
  border-radius: 10px 10px 0 0;
}
.portit-tabs .nav-link.active {
  background: #1b2430;
  color: #fff;
  border-color: #1b2430 !important;
}
.portit-pd-panel {
  background: #fff;
  border: 1px solid var(--portit-line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 0 0 8px;
}
.portit-pd-panel.tab-pane { display: none; }
.portit-pd-panel.show { display: block; }
.portit-pd-copy { padding: 16px 18px; color: #4f5f6f; font-size: 14px; }
.portit-pd-attrs { width: 100%; border-collapse: collapse; font-size: 13px; }
.portit-pd-attrs th { text-align: left; padding: 8px 0; color: #1b2430; }
.portit-pd-attrs td { padding: 6px 0; border-bottom: 1px dotted #e4e7ec; }
.portit-pd-attrs td:first-child { color: #6b7380; width: 44%; }

#scf-accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-color: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: #f6f8fb;
  --bs-accordion-active-color: #1d2430;
  --bs-accordion-btn-bg: #fff;
  --bs-accordion-bg: #fff;
}
.portit-slot.accordion-item {
  border: 0;
  border-bottom: 1px solid var(--portit-line);
  border-radius: 0;
  background: #fff;
}
.portit-slot.accordion-item:last-child { border-bottom: 0; }
.portit-slot .accordion-button { box-shadow: none; }
.portit-slot .accordion-button:not(.collapsed) { background: #f6f8fb; color: #1d2430; box-shadow: none; }
.portit-slot .accordion-button:focus { box-shadow: none; }
.portit-slot-h {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 0;
  text-align: left;
  color: #1d2430;
  box-shadow: none;
}
.portit-slot-h:not(.collapsed) { background: #f6f8fb; }
.portit-slot-h::after { margin-left: auto; }
.portit-slot-h i.ico {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; background: #eef1f5; color: #1b2430; font-size: 12px;
}
.portit-slot.is-need .portit-slot-h i.ico { color: #e1262d; background: #fdecee; }
.portit-slot.is-on .portit-slot-h i.ico { color: #1a7a3c; background: #e8f6ec; }
.portit-slot-h b { font-size: 14px; font-weight: 700; }
.portit-need { color: #e1262d; font-size: 11px; font-weight: 700; margin-left: 6px; }
.portit-slot-sum { font-size: 12px; color: #6b7380; margin-left: 8px; }
.portit-slot .accordion-body { padding: 0 16px 12px 54px; }
.portit-scf-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) 110px 118px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f2f5; }
.portit-scf-item img { width: 52px; height: 40px; object-fit: contain; border: 0; background: #f4f6f8; border-radius: 6px; }
.portit-scf-item .fw-semibold { font-size: 13px; color: #1d2430; }
.portit-scf-qty { width: 118px; }

.portit-qty {
  display: inline-flex;
  border: 1px solid var(--portit-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.portit-qty button {
  width: 28px;
  border: 0;
  background: #f4f6f8;
  color: #1d2430;
  font-size: 14px;
  line-height: 1;
  padding: 6px 0;
  cursor: pointer;
}
.portit-qty input {
  width: 32px;
  min-width: 32px;
  border: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #1d2430;
  background: #fff;
  padding: 6px 0;
  box-shadow: none;
}

.portit-dock {
  position: sticky;
  top: 12px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 12px;
}
.portit-chassis { width: 100%; line-height: 0; }
.portit-ch-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.portit-ch-svg .bay-led { fill: #2a3038; }
.portit-ch-svg .led-power { fill: #1a1e24; }
.portit-ch-svg .led-warn { fill: #3d444e; stroke: #8b939c; stroke-width: .8; stroke-linejoin: round; }

.portit-dock[data-state="off"] .ch-metal {
  filter: grayscale(.3) brightness(.68) saturate(.55);
}
.portit-dock[data-state="off"] .led-warn {
  fill: #ffb020;
  stroke: #ffd27a;
  filter: drop-shadow(0 0 2px #ffb020) drop-shadow(0 0 7px #e1262d);
  animation: portit-led-pulse 1.15s ease-in-out infinite;
}
.portit-dock[data-state="off"] .led-power {
  fill: #e1262d;
  filter: drop-shadow(0 0 2px #e1262d) drop-shadow(0 0 6px #e1262d);
}
.portit-dock[data-state="ready"] .ch-metal { filter: none; }
.portit-dock[data-state="ready"] .led-power {
  fill: #3dcc6a;
  filter: drop-shadow(0 0 2px #3dcc6a) drop-shadow(0 0 8px #3dcc6a);
}
.portit-dock[data-state="ready"] .led-warn { fill: #3d444e; stroke: #8b939c; filter: none; }
.portit-dock[data-state="ready"] .bay-led.is-live {
  fill: #3dcc6a;
  filter: drop-shadow(0 0 1.6px #3dcc6a);
}

@keyframes portit-led-pulse {
  0%, 100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 2px #ffb020) drop-shadow(0 0 7px #e1262d); }
  50% { opacity: .42; filter: brightness(.7) drop-shadow(0 0 1px #ffb020); }
}

.portit-dock-photo { margin-bottom: 10px; }
.portit-dock-cap {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -.01em;
  color: #e1262d;
}
.portit-dock[data-state="ready"] .portit-dock-cap { color: #1a7a3c; }
.portit-dock-from { font-size: 11px; color: #6b7380; }
.portit-dock-sum { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #1b2430; margin: 2px 0 8px; }
.portit-dock-build { list-style: none; margin: 0 0 12px; padding: 0; max-height: 220px; overflow: auto; }
.portit-dock-build li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--portit-line);
  font-size: 11px;
}
.portit-dock-build span { color: #6b7380; flex-shrink: 0; max-width: 42%; }
.portit-dock-build b { font-weight: 600; text-align: right; color: #1d2430; }
.portit-dock-qty { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12px; color: #6b7380; }
.portit-dock-cta {
  width: 100%;
  border: 0;
  background: #e1262d;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  cursor: pointer;
}
.portit-dock-cta.is-off { opacity: .38; filter: grayscale(.25); }
.portit-dock-more { display: flex; gap: 6px; margin-top: 8px; }
.portit-dock-more button {
  flex: 1;
  border: 1px solid var(--portit-line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #1d2430;
}
#scf-error-message { min-height: 1em; margin-top: 8px; font-size: 12px; color: #e1262d; }

@media (prefers-reduced-motion: reduce) {
  .portit-ch-svg .led-warn,
  .portit-ch-svg .led-power { animation: none !important; }
}

@media (max-width: 992px) {
  .portit-pd-hero,
  .portit-pd-build { grid-template-columns: 1fr; }
  .portit-dock { position: static; order: -1; }
  .portit-pd-build { display: flex; flex-direction: column; }
  .portit-tabs { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .portit-scf-item { grid-template-columns: 44px 1fr; }
  .portit-scf-item .text-end, .portit-scf-qty { grid-column: 2; }
}


@media (max-width: 992px) {
  .portit-cat-layout,
  .portit-cat-layout.is-solo { grid-template-columns: 1fr; }
  .portit-cat-side { position: static; }
  #portit-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  #portit-product-grid { grid-template-columns: 1fr; }
}
