:root{
  --accent:#0a84ff;
  --accent-dark:#006be6;
  --brand-dark:#05080d;
  --brand-ink:#0b1220;
  --bg:#f4f7fb;
  --white:#fff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
}

*{box-sizing:border-box;font-family:Inter,system-ui,Arial,sans-serif}

body{
  margin:0;
  min-width:320px;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--text);
}

.header{
  background:#fff;
  border-bottom:1px solid rgba(15,23,42,.08);
  padding:14px 24px;
  display:flex;
  align-items:center;
  gap:16px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:18px;
  color:var(--accent);
  cursor:pointer;
}

.logo-img{width:32px;height:32px;object-fit:contain}
.header-right{margin-left:auto;display:flex;gap:10px}

.header-right button{
  min-height:38px;
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:#1f2937;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.header-right button:hover{background:#f9fafb;border-color:#cbd5e1}

.checkout{
  max-width:1180px;
  margin:0 auto;
  padding:28px 20px 38px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:22px;
  align-items:start;
}

.form-section{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.checkout-head,
.form-card,
.summary-section{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:8px;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}

.checkout-head{padding:22px}
.checkout-head h1{margin:0;font-size:26px;line-height:1.15}
.checkout-head p{margin:8px 0 0;color:var(--muted);font-size:14px}

.form-card{padding:22px}
h2{margin:0 0 18px;font-size:18px}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
}

label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#374151;
  font-size:13px;
  font-weight:700;
}

input,select,textarea{
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid var(--line);
  background:#fff;
  color:#111827;
  font-size:14px;
  font-weight:500;
}

textarea{resize:vertical;min-height:92px}

input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(10,132,255,.14);
}

.summary-section{
  position:sticky;
  top:20px;
  padding:22px;
}

#cartItems{
  display:flex;
  flex-direction:column;
  margin-bottom:14px;
}

#cartItems div{
  font-size:14px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}

.checkout-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
}

.checkout-item span:first-child{min-width:0;line-height:1.35}
.checkout-item strong{white-space:nowrap}

.summary-section p{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:12px 0;
  color:#374151;
  font-size:14px;
}

.summary-section hr{
  border:0;
  border-top:1px solid var(--line);
  margin:16px 0;
}

.total{
  font-size:18px;
  font-weight:900;
  color:var(--text);
}

.total span{
  color:var(--accent);
  font-size:22px;
}

#orderBtn{
  width:100%;
  min-height:46px;
  margin-top:12px;
  padding:13px 16px;
  border:0;
  border-radius:8px;
  background:var(--accent);
  color:#fff;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(10,132,255,.22);
}

#orderBtn:hover{background:var(--accent-dark)}
#orderBtn:disabled{background:#9ca3af;box-shadow:none;cursor:not-allowed}

.summary-note{
  margin-top:14px;
  padding:12px;
  background:#f8fafc;
  border:1px solid #eef2f7;
  border-radius:8px;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
}

.order-status{
  margin-top:12px;
  display:none;
  padding:12px;
  border-radius:8px;
  font-size:14px;
  line-height:1.45;
}

.order-status.success{display:block;background:#e8f5e9;color:#256029}
.order-status.error{display:block;background:#ffebee;color:#b42318}
.order-status.loading{display:block;background:#e3f2fd;color:#0f5b99}

@media(max-width:900px){
  .checkout{grid-template-columns:1fr}
  .summary-section{position:static}
}

@media(max-width:640px){
  .header{flex-wrap:wrap;padding:12px 16px}
  .header-right{width:100%;margin-left:0}
  .header-right button{flex:1}
  .checkout{padding:18px 12px 30px}
  .form-grid{grid-template-columns:1fr}
  .checkout-head,.form-card,.summary-section{padding:16px}
  .checkout-head h1{font-size:24px}
  .checkout-item{grid-template-columns:1fr;gap:4px}
  .checkout-item strong{white-space:normal}
  #orderBtn{min-height:48px}
}




/* 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 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;
  }
}