:root {
  --accent: #0a84ff;
  --bg: #f0f2f5;
  --white: #fff;
  --text: #1e1e1e;
  --muted: #6b7280;
}

/* Фон */
body {
  background: var(--bg);
  margin: 0;
  font-family: Inter, sans-serif;
}

/* Контейнер страницы */
.catalog-page {
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0px 6px 18px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Заголовок */
.catalog-page h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 28px;
  color: var(--text);
}

/* Сетка категорий */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Карточка категории */
.category-card {
  background: var(--white);
  border-radius: 12px;
  padding: 22px 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.05);
  transition: transform .18s ease, box-shadow .25s ease;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(15,23,42,.18);
  border-color: rgba(10,132,255,.25);
}

/* Иконка */
.cat-icon {
  font-size: 34px;
  margin-bottom: 12px;
}

/* Название категории */
.category-card h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

/* Подпись */
.category-card p {
  font-size: 14px;
  color: var(--muted);
}

/* ======= АДАПТИВ ======= */

@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile refinement shared by catalog landing pages */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-width: 320px; overflow-x: hidden; }
@media (max-width: 760px) {
  .catalog-page, .components-page, .peripherals-page, .power-page { margin: 18px 12px; padding: 22px 16px; border-radius: 10px; }
  .catalog-page h1, .components-page h1, .peripherals-page h1, .power-page h1 { font-size: 24px; line-height: 1.15; margin-bottom: 18px; }
  .categories-grid, .components-grid, .peripherals-grid, .power-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-card, .component-card, .peripheral-card, .power-card { padding: 16px 12px; border-radius: 8px; }
}
@media (max-width: 520px) {
  .categories-grid, .components-grid, .peripherals-grid, .power-grid { grid-template-columns: 1fr; }
  .category-card h2, .component-card h2, .peripheral-card h2, .power-card h2 { font-size: 16px; }
  .category-card p, .component-card p, .peripheral-card p, .power-card p { font-size: 13px; }
}



/* MRF dark theme */
:root {
  --accent: #22a1ff;
  --accent-hover: #0a84ff;
  --brand-dark: #05080d;
  --brand-ink: #0b1220;
  --bg: #070b12;
  --white: #ffffff;
  --text: #111827;
  --muted: #6b7280;
}

html {
  background: #070b12;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 161, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, #05080d 0%, #0a101b 44%, #070b12 100%);
  color: #e5edf7;
}

.site-header,
header,
.header {
  background: rgba(5, 8, 13, 0.94);
  border-bottom-color: rgba(34, 161, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.main-nav a,
nav.main a,
.logo,
.logo-name {
  color: #eaf4ff;
}

.main-nav a:hover,
.main-nav a.active,
nav.main a:hover {
  background: rgba(34, 161, 255, 0.12);
  color: #22a1ff;
}

.logo img,
.logo-img {
  border-radius: 8px;
  background: #05080d;
  box-shadow: 0 0 0 1px rgba(34, 161, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.32);
}

.catalog-wrapper,
.filters,
.catalog,
.card,
.hero,
.cart-panel,
.summary-panel,
.checkout-head,
.form-card,
.summary-section,
.info-card,
.category-card,
.product-card {
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  border-color: rgba(34, 161, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.card {
  border-radius: 8px;
}

.card:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.price,
.product-price,
.cart-total,
.summary-total,
.logo span {
  color: #0a84ff;
}

.cart-btn,
.back-btn,
.home-btn,
.btn-add,
.add-btn,
.btn-view,
.view-btn,
.btn-primary,
.submit-btn,
.checkout-btn,
.place-order-btn,
.header-right button {
  border-color: rgba(34, 161, 255, 0.42);
  background: linear-gradient(135deg, #05080d 0%, #0b1220 42%, #0a84ff 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(10, 132, 255, 0.18);
}

.cart-btn:hover,
.back-btn:hover,
.home-btn:hover,
.btn-add:hover,
.add-btn:hover,
.btn-view:hover,
.view-btn:hover,
.btn-primary:hover,
.submit-btn:hover,
.checkout-btn:hover,
.place-order-btn:hover,
.header-right button:hover {
  background: linear-gradient(135deg, #05080d 0%, #101b2d 38%, #22a1ff 100%);
  color: #fff;
  border-color: #22a1ff;
  box-shadow: 0 14px 28px rgba(10, 132, 255, 0.28);
}

input,
select,
textarea {
  border-color: rgba(10, 132, 255, 0.18);
}

footer {
  color: #9fb2c7;
  border-top-color: rgba(34, 161, 255, 0.16);
}

/* MRF catalog final dark override */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 161, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, #05080d 0%, #0a101b 44%, #070b12 100%) !important;
  color: #e5edf7 !important;
}

.catalog-page {
  background: rgba(7, 13, 24, 0.94) !important;
  border: 1px solid rgba(34, 161, 255, 0.22) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42) !important;
  color: #eaf4ff !important;
}

.catalog-page h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(10, 132, 255, 0.18);
}

.category-card {
  background: linear-gradient(180deg, rgba(16, 27, 45, 0.98), rgba(8, 14, 25, 0.98)) !important;
  border: 1px solid rgba(34, 161, 255, 0.26) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28) !important;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 161, 255, 0.72) !important;
  box-shadow: 0 18px 40px rgba(10, 132, 255, 0.18) !important;
}

.category-card h2 {
  color: #ffffff !important;
}

.category-card p {
  color: #b8c7d9 !important;
}

.cat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(10, 132, 255, 0.16);
  border: 1px solid rgba(34, 161, 255, 0.32);
}
/* MRF unified category dark theme override */
:root {
  --accent: #22a1ff;
  --accent-hover: #0a84ff;
  --brand-dark: #05080d;
  --brand-panel: #0b1422;
  --brand-panel-soft: #101c2d;
  --brand-line: rgba(34, 161, 255, 0.24);
  --brand-line-strong: rgba(34, 161, 255, 0.48);
  --bg: #070b12;
  --white: #0b1422;
  --text: #eef6ff;
  --muted: #9fb2c7;
}

html { background: #070b12 !important; }
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 161, 255, 0.14), transparent 28rem),
    linear-gradient(180deg, #05080d 0%, #0a101b 44%, #070b12 100%) !important;
  color: #eef6ff !important;
}

.site-header,
header,
.header {
  background: rgba(5, 8, 13, 0.96) !important;
  border-bottom: 1px solid rgba(34, 161, 255, 0.22) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34) !important;
}

.top,
.topbar {
  gap: 24px !important;
}

.logo,
.logo span {
  color: #22a1ff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.logo img,
.logo-img {
  border-radius: 8px !important;
  background: #05080d !important;
  box-shadow: 0 0 0 1px rgba(34, 161, 255, 0.24), 0 8px 20px rgba(0, 0, 0, 0.32) !important;
}

.main-nav {
  gap: 18px !important;
}

.main-nav a,
nav a {
  color: #dbeafe !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.main-nav a:hover,
.main-nav a.active,
nav a:hover,
nav a.active {
  background: rgba(34, 161, 255, 0.14) !important;
  color: #22a1ff !important;
}

.cart-btn,
.btn-add,
.add-btn,
.btn-view,
.view-btn,
.clear-btn,
.btn-accent {
  border: 1px solid rgba(34, 161, 255, 0.58) !important;
  background: linear-gradient(135deg, #05080d 0%, #0b1220 42%, #0a84ff 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(10, 132, 255, 0.18) !important;
}

.cart-btn:hover,
.btn-add:hover,
.add-btn:hover,
.btn-view:hover,
.view-btn:hover,
.clear-btn:hover,
.btn-accent:hover {
  border-color: #22a1ff !important;
  background: linear-gradient(135deg, #05080d 0%, #101b2d 38%, #22a1ff 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.catalog-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  max-width: 1460px !important;
  width: 100% !important;
  margin: 24px auto 0 !important;
}

.filters,
.catalog,
.catalog-page,
.components-page,
.peripherals-page,
.power-page {
  background: rgba(7, 13, 24, 0.94) !important;
  border: 1px solid rgba(34, 161, 255, 0.22) !important;
  color: #eef6ff !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34) !important;
}

.filters {
  border-radius: 10px !important;
  scrollbar-color: rgba(34, 161, 255, 0.55) rgba(7, 13, 24, 0.7) !important;
}

.filters::-webkit-scrollbar-thumb {
  background: rgba(34, 161, 255, 0.55) !important;
}

.filters-header strong,
.filter-head h4,
.filter-head,
.chev,
.catalog-header h1,
.catalog-header h2,
.catalog-page h1,
.components-page h1,
.peripherals-page h1,
.power-page h1 {
  color: #ffffff !important;
}

.filter-group {
  border-top-color: rgba(34, 161, 255, 0.18) !important;
}

.filter-body label,
.catalog-info,
.small,
.category-card p,
.component-card p,
.peripheral-card p,
.power-card p {
  color: #b9cbe0 !important;
}

input,
select,
textarea,
#categorySearch,
.search-input {
  background: #f8fbff !important;
  color: #0b1220 !important;
  border: 1px solid rgba(34, 161, 255, 0.3) !important;
  border-radius: 8px !important;
}

.catalog-header {
  border-bottom-color: rgba(34, 161, 255, 0.18) !important;
}

.card,
.product-card,
.category-card,
.component-card,
.peripheral-card,
.power-card {
  background: linear-gradient(180deg, rgba(16, 27, 45, 0.98), rgba(8, 14, 25, 0.98)) !important;
  border: 1px solid rgba(34, 161, 255, 0.22) !important;
  color: #eef6ff !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26) !important;
}

.card:hover,
.product-card:hover,
.category-card:hover,
.component-card:hover,
.peripheral-card:hover,
.power-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(34, 161, 255, 0.52) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(34, 161, 255, 0.1) !important;
}

.card img,
.product-card img {
  background: #f8fbff !important;
  border-radius: 8px !important;
  padding: 10px !important;
}

.card h3,
.product-card h3,
.category-card h2,
.component-card h2,
.peripheral-card h2,
.power-card h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(10, 132, 255, 0.1) !important;
}

.price,
.product-price {
  color: #22a1ff !important;
  font-weight: 900 !important;
}

.no-results {
  background: rgba(7, 13, 24, 0.94) !important;
  border-color: rgba(34, 161, 255, 0.26) !important;
  color: #ffb4b4 !important;
}

.card.out-of-stock,
.card.unavailable,
.product-card.out-of-stock,
.product-card.unavailable,
.card[data-stock="0"],
.product-card[data-stock="0"] {
  opacity: 0.58 !important;
  filter: grayscale(0.72) !important;
}

.card.out-of-stock .btn-add,
.card.unavailable .btn-add,
.product-card.out-of-stock .btn-add,
.product-card.unavailable .btn-add,
.card[data-stock="0"] .btn-add,
.product-card[data-stock="0"] .btn-add {
  background: #334155 !important;
  border-color: #475569 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

footer {
  color: #9fb2c7 !important;
  border-top: 1px solid rgba(34, 161, 255, 0.16) !important;
}

@media (max-width: 900px) {
  .main-nav { gap: 12px !important; }
  .catalog-wrapper { margin-top: 14px !important; }
}
/* MRF unified footer like homepage */
.mrf-footer,
footer.mrf-footer {
  margin-top: auto !important;
  padding: 20px 0 30px !important;
  background: transparent !important;
  border-top: 1px solid rgba(34, 161, 255, 0.16) !important;
  color: #9fb2c7 !important;
  text-align: center !important;
  font-size: 13px !important;
}

.mrf-footer .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 12px 16px 0 !important;
  border-top: 1px solid rgba(34, 161, 255, 0.12) !important;
}

.mrf-footer .footer-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px !important;
}

.mrf-footer strong {
  display: block !important;
  color: #eaf4ff !important;
  font-weight: 900 !important;
  margin-bottom: 5px !important;
}

.mrf-footer .small {
  color: #9fb2c7 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.mrf-footer a {
  color: #cfe7ff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.mrf-footer a:hover {
  color: #22a1ff !important;
}
/* MRF compact unified footer final */
.mrf-footer,
footer.mrf-footer {
  margin-top: 24px !important;
  padding: 8px 0 12px !important;
  min-height: 0 !important;
  background: transparent !important;
  border-top: 1px solid rgba(34, 161, 255, 0.16) !important;
  color: #9fb2c7 !important;
  text-align: center !important;
  font-size: 12px !important;
}

.mrf-footer .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 8px 16px 0 !important;
  border-top: 0 !important;
}

.mrf-footer .footer-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  gap: 4px !important;
  min-height: 0 !important;
}

.mrf-footer strong {
  display: block !important;
  color: #eaf4ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  margin: 0 0 3px !important;
  line-height: 1.15 !important;
}

.mrf-footer .small {
  color: #9fb2c7 !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
  margin: 0 !important;
}

.mrf-footer a {
  color: #cfe7ff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.mrf-footer a:hover {
  color: #22a1ff !important;
}

body > .mrf-footer:last-child,
main > .mrf-footer:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 640px) {
  .mrf-footer,
  footer.mrf-footer {
    margin-top: 18px !important;
    padding: 8px 0 10px !important;
  }

  .mrf-footer .small {
    font-size: 11px !important;
  }
}
/* MRF footer bottom placement final */
html,
body {
  min-height: 100% !important;
}

body {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

body > main,
body > .catalog-wrapper,
body > .catalog-page,
body > .components-page,
body > .peripherals-page,
body > .power-page {
  flex: 1 0 auto !important;
}

body > footer.mrf-footer,
body > .mrf-footer {
  margin-top: auto !important;
}

main > footer.mrf-footer,
main footer.mrf-footer {
  margin-top: clamp(34px, 6vh, 72px) !important;
}

.mrf-footer,
footer.mrf-footer {
  padding-top: 8px !important;
  padding-bottom: 12px !important;
}

@media (max-width: 640px) {
  main > footer.mrf-footer,
  main footer.mrf-footer {
    margin-top: 28px !important;
  }
}
/* MRF expanded main nav fit */
.main-nav {
  gap: 12px !important;
  align-items: center !important;
}

.main-nav a {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 8px !important;
  }

  .main-nav a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 14px !important;
  }
}