:root {
  --cfnet-navy: #12345b;
  --cfnet-blue: #1677c8;
  --cfnet-blue-dark: #0c5fa5;
  --cfnet-accent: #ffb020;
  --cfnet-ink: #172033;
  --cfnet-muted: #667085;
  --cfnet-surface: #ffffff;
  --cfnet-bg: #f5f7fb;
  --cfnet-border: #e3e8ef;
  --cfnet-radius: 12px;
  --cfnet-shadow: 0 6px 24px rgba(18, 52, 91, .09);
}

body {
  background: var(--cfnet-bg);
  color: var(--cfnet-ink);
  -webkit-font-smoothing: antialiased;
}

.navbar.main-content {
  min-height: 82px;
  padding: 8px 28px;
  box-shadow: 0 2px 12px rgba(18, 52, 91, .08);
  position: relative;
  z-index: 20;
}

.navbar-brand { margin-right: 22px; }
.brand-logo-link { width: 76px; height: 64px; object-fit: contain; }
.navbar-top-search-box { max-width: 720px; }
.navbar-top-search-box .select2-container .select2-selection--single,
.navbar-top-search-box .form-control {
  min-height: 46px;
  border: 2px solid var(--cfnet-blue);
  border-radius: 8px !important;
  background: #fff;
}
.navbar-top-search-box .select2-selection__rendered { line-height: 42px !important; padding-left: 16px !important; }
.navbar-top-search-box .select2-selection__arrow { height: 42px !important; }

.cfnet-orders-link { color: var(--cfnet-ink) !important; font-weight: 700; white-space: nowrap; }
.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  transition: background .2s ease, transform .2s ease;
}
.header-icon:hover { background: #edf6ff; transform: translateY(-1px); }
.header-icon .badge { top: 1px; right: 0; }

.cfnet-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
  min-height: 38px;
  padding: 7px 20px;
  background: var(--cfnet-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.cfnet-trust-strip a, .cfnet-trust-strip i { color: var(--cfnet-accent); }
.cfnet-trust-strip i { margin-right: 6px; }

.wrapper > .container-fluid, .main-content-wrapper > .container-fluid { max-width: 1480px; }
.product-grid, .product-layout, .product-card,
.cart-table-wrapper, .checkout-wrapper, .card {
  border-radius: var(--cfnet-radius);
}
.product-grid, .product-card, .cart-table-wrapper, .checkout-wrapper {
  background: var(--cfnet-surface);
  border: 1px solid var(--cfnet-border);
  box-shadow: var(--cfnet-shadow);
}
.product-grid, .product-card { transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; }
.product-grid:hover, .product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18, 52, 91, .14); }

.button-primary, .btn-primary, .add-to-cart, .checkout-btn {
  background: var(--cfnet-blue) !important;
  border-color: var(--cfnet-blue) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 700;
}
.button-primary:hover, .btn-primary:hover, .add-to-cart:hover, .checkout-btn:hover {
  background: var(--cfnet-blue-dark) !important;
  border-color: var(--cfnet-blue-dark) !important;
}
.button-danger { border-radius: 8px !important; }
.table-cart-product { background: #fff; }
.table-cart-product thead { background: #f0f5fa; }
.table-cart-product th { border-top: 0; color: var(--cfnet-ink) !important; font-weight: 700; }
.cart-product-title a { color: var(--cfnet-ink); }

@media (max-width: 991.98px) {
  .navbar.main-content { min-height: 68px; padding: 6px 14px; }
  .brand-logo-link { width: 58px; height: 52px; }
  .cfnet-trust-strip { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .cfnet-trust-strip span:nth-child(3) { display: none; }
  .cart-table-wrapper { overflow-x: auto; }
}

@media (max-width: 575.98px) {
  .cfnet-trust-strip { font-size: 12px; gap: 18px; }
  .cfnet-trust-strip span:nth-child(2) { display: none; }
  .wrapper > .container-fluid { padding-left: 10px; padding-right: 10px; }
  .cart-product-title { font-size: 15px; }
}

/* Spatial storefront */
.cfnet-legacy-slider { display: none; }
.cfnet-spatial-hero {
  width: min(1480px, calc(100% - 28px));
  min-height: 560px;
  margin: 18px auto 0;
  padding: clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.35fr) minmax(230px, .65fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  overflow: hidden;
  position: relative;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 58% 35%, rgba(32, 192, 255, .38), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(93, 78, 255, .36), transparent 26%),
    linear-gradient(135deg, #08152f 0%, #0b2f72 52%, #0867c4 100%);
  box-shadow: 0 26px 70px rgba(8, 31, 76, .28);
}
.cfnet-spatial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}
.cfnet-hero-copy, .cfnet-showroom, .cfnet-side-showcase { position: relative; z-index: 2; }
.cfnet-location-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px); font-weight: 700; font-size: 13px;
}
.cfnet-location-pill i { color: #ff9f1a; }
.cfnet-hero-copy h1 { margin: 0 0 20px; color: #fff; font-size: clamp(40px, 4.5vw, 72px); line-height: .98; letter-spacing: -.045em; font-weight: 900; }
.cfnet-hero-copy h1 span { display: block; color: #ff9f1a; }
.cfnet-hero-copy p { max-width: 480px; margin: 0 0 30px; color: #dceaff; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.cfnet-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cfnet-primary-cta, .cfnet-support-cta { display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 800; }
.cfnet-primary-cta { color: #fff !important; background: linear-gradient(135deg, #ff8a00, #ff5e00); box-shadow: 0 12px 28px rgba(255, 106, 0, .32); }
.cfnet-support-cta { color: #fff !important; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.cfnet-showroom { min-height: 390px; display: grid; place-items: center; perspective: 1200px; transform-style: preserve-3d; }
.cfnet-showroom::before { content: ""; position: absolute; width: 82%; height: 28%; bottom: 30px; border-radius: 50%; background: linear-gradient(180deg, rgba(146,221,255,.45), rgba(17,96,203,.12)); border: 1px solid rgba(178,230,255,.55); box-shadow: 0 0 45px rgba(70,190,255,.45), inset 0 0 24px rgba(255,255,255,.28); transform: rotateX(64deg); }
.cfnet-main-product { width: min(88%, 560px); height: 320px; display: grid; place-items: center; position: relative; z-index: 3; transform-style: preserve-3d; transition: transform .14s ease-out; }
.cfnet-main-product img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 34px 26px rgba(0,0,0,.38)); transform: translateZ(55px); }
.cfnet-orbit { position: absolute; border: 2px solid rgba(78,213,255,.72); border-radius: 50%; transform: rotateX(68deg); box-shadow: 0 0 20px rgba(40,205,255,.5); }
.cfnet-orbit-one { width: 92%; height: 54%; animation: cfnet-orbit-pulse 4s ease-in-out infinite; }
.cfnet-orbit-two { width: 62%; height: 38%; animation: cfnet-orbit-pulse 4s ease-in-out 1s infinite reverse; }
@keyframes cfnet-orbit-pulse { 50% { opacity: .35; transform: rotateX(68deg) scale(1.05); } }
.cfnet-product-specs { position: absolute; left: -18px; top: 50px; z-index: 5; display: grid; gap: 9px; padding: 15px; max-width: 210px; border: 1px solid rgba(255,255,255,.24); border-radius: 16px; background: rgba(7,28,66,.62); backdrop-filter: blur(16px); box-shadow: 0 15px 35px rgba(0,0,0,.2); }
.cfnet-product-specs strong { font-size: 14px; }
.cfnet-product-specs span { color: #dbeaff; font-size: 12px; }
.cfnet-product-specs i { width: 18px; color: #63ddff; }
.cfnet-rotate-hint { position: absolute; bottom: 4px; z-index: 6; color: #e5f3ff; font-size: 13px; font-weight: 700; }
.cfnet-rotate-hint i { margin-right: 7px; color: #6be4ff; }
.cfnet-showroom-actions { position: absolute; bottom: 37px; z-index: 7; display: flex; gap: 9px; }
.cfnet-showroom-actions a { padding: 10px 15px; color: #fff; border-radius: 999px; background: rgba(5,23,57,.68); border: 1px solid rgba(255,255,255,.26); backdrop-filter: blur(12px); font-size: 13px; font-weight: 800; }
.cfnet-showroom-actions .cfnet-cart-cta { background: #ff6b00; border-color: #ff6b00; }
.cfnet-side-showcase { display: grid; gap: 14px; }
.cfnet-side-product { min-height: 148px; padding: 16px; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 22px; background: rgba(255,255,255,.12); backdrop-filter: blur(18px); color: #fff !important; font-weight: 800; overflow: hidden; transition: transform .25s ease, background .25s ease; }
.cfnet-side-product:hover { transform: translateY(-5px) rotateY(-4deg); background: rgba(255,255,255,.18); }
.cfnet-side-product img { width: 100%; height: 110px; object-fit: contain; filter: drop-shadow(0 15px 13px rgba(0,0,0,.28)); }
.cfnet-help-card { padding: 14px 16px; color: #082452 !important; border-radius: 18px; background: #e8f5ff; font-weight: 800; text-align: center; }
.cfnet-live-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #13c86c; box-shadow: 0 0 0 5px rgba(19,200,108,.15); }
.cfnet-category-dock { width: min(1360px, calc(100% - 42px)); margin: -30px auto 22px; padding: 14px 20px; position: relative; z-index: 8; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; border: 1px solid #dce9f7; border-radius: 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(17,54,98,.16); }
.cfnet-category-dock > a { min-height: 104px; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 16px; color: #102a4f; transition: transform .22s ease, background .22s ease; }
.cfnet-category-dock > a:hover { transform: translateY(-6px); background: #edf7ff; }
.cfnet-category-icon { width: 62px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #f7fbff, #dcefff); }
.cfnet-category-icon img { width: 52px; height: 48px; object-fit: contain; }
.cfnet-category-dock strong { font-size: 13px; text-align: center; }

/* Real product cards become interactive 3D objects. */
.product-section { border-radius: 24px !important; box-shadow: 0 18px 55px rgba(16,54,101,.1); }
.product-section .section-title { font-size: clamp(24px, 2.4vw, 36px) !important; font-weight: 900 !important; letter-spacing: -.025em; }
.product-grid { perspective: 900px; transform-style: preserve-3d; }
.product-grid .product-image { overflow: visible !important; transform-style: preserve-3d; }
.product-grid .product-image-container { min-height: 220px; display: grid; place-items: center; transform-style: preserve-3d; }
.product-grid .product-image-container img { max-height: 205px; object-fit: contain; transform: rotateX(var(--cfnet-rx, 0deg)) rotateY(var(--cfnet-ry, 0deg)) translateZ(24px); transform-style: preserve-3d; transition: transform .14s ease-out, filter .25s ease; filter: drop-shadow(0 15px 14px rgba(24,62,108,.18)); }
.product-grid:hover .product-image-container img { filter: drop-shadow(0 25px 22px rgba(24,62,108,.3)); }
.product-grid::after { content: "360°"; position: absolute; top: 12px; left: 12px; padding: 5px 8px; border-radius: 999px; color: #0f5da9; background: #e9f6ff; font-size: 11px; font-weight: 900; opacity: 0; transform: translateY(5px); transition: .2s ease; }
.product-grid:hover::after { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .cfnet-spatial-hero { grid-template-columns: .8fr 1.2fr; }
  .cfnet-side-showcase { display: none; }
}
@media (max-width: 767.98px) {
  .cfnet-spatial-hero { width: calc(100% - 16px); min-height: auto; padding: 28px 20px 34px; grid-template-columns: 1fr; border-radius: 22px; }
  .cfnet-hero-copy h1 { font-size: 44px; }
  .cfnet-showroom { min-height: 330px; }
  .cfnet-product-specs { display: none; }
  .cfnet-category-dock { width: calc(100% - 24px); margin-top: -18px; padding: 10px; grid-template-columns: repeat(3, 1fr); }
  .cfnet-category-dock > a { min-height: 88px; }
  .cfnet-category-icon { width: 48px; height: 44px; }
  .cfnet-category-icon img { width: 40px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .cfnet-orbit, .product-grid .product-image-container img { animation: none !important; transition: none !important; }
}

/* CFNET marketplace homepage — approved 21 Nov 2026 */
.cfnet-spatial-hero {
  width:min(1480px,calc(100% - 28px)); min-height:430px; margin:14px auto 0; padding:38px 48px;
  grid-template-columns:minmax(320px,.78fr) minmax(540px,1.22fr); gap:20px; border-radius:18px;
  background:radial-gradient(circle at 70% 22%,rgba(23,125,243,.68),transparent 34%),radial-gradient(circle at 92% 70%,rgba(87,46,207,.32),transparent 28%),linear-gradient(130deg,#06142e 0%,#092963 56%,#0b55b1 100%);
}
.cfnet-hero-copy h1{font-size:clamp(46px,4.3vw,66px);line-height:.96}.cfnet-hero-copy p{font-size:16px;max-width:500px;margin-bottom:22px}.cfnet-location-pill{margin-bottom:18px;color:#7be3ff;font-size:11px;letter-spacing:.08em}.cfnet-primary-cta,.cfnet-support-cta{min-height:46px;border-radius:11px}.cfnet-hero-facts{display:flex;flex-wrap:wrap;gap:18px;margin-top:21px;color:#afccec;font-size:11px;font-weight:700}
.cfnet-showroom{min-height:350px}.cfnet-main-product{width:min(100%,700px);height:390px}.cfnet-main-product img{max-height:390px;filter:drop-shadow(0 30px 28px rgba(0,0,0,.52))}.cfnet-showroom::before{display:none}.cfnet-orbit-one{width:82%;height:42%}.cfnet-orbit-two{width:58%;height:28%}
.cfnet-product-specs{left:3%;top:31%;padding:10px 13px;gap:1px;max-width:none}.cfnet-product-specs small{color:#82dfff;font-size:8px;font-weight:800;letter-spacing:.09em}.cfnet-product-specs strong{font-size:11px}.cfnet-warranty-spec{left:auto;right:4%;top:60%}.cfnet-rotate-hint{bottom:0;padding:8px 13px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(4,21,46,.72);font-size:10px}
.cfnet-delivery-card{position:absolute;right:22px;top:20px;z-index:6;display:grid;grid-template-columns:12px 1fr;align-items:center;column-gap:9px;padding:12px 15px;border:1px solid rgba(255,255,255,.2);border-radius:15px;background:rgba(255,255,255,.11);backdrop-filter:blur(14px)}.cfnet-delivery-card .cfnet-live-dot{grid-row:1/4}.cfnet-delivery-card small{color:#9fe9ff;font-size:8px;font-weight:800;letter-spacing:.08em}.cfnet-delivery-card strong{font-size:12px}.cfnet-delivery-card>span:last-child{font-size:8px;color:#dceaff}
.cfnet-category-dock{width:min(1440px,calc(100% - 40px));min-height:138px;margin:12px auto 18px;padding:15px 22px 11px;border:0;border-radius:8px;background:#fff;box-shadow:0 4px 18px rgba(17,54,98,.11)}.cfnet-category-dock>a{min-height:108px;gap:8px;border-right:1px solid #eef2f7;border-radius:8px}.cfnet-category-dock>a:last-child{border-right:0}.cfnet-category-dock>a:hover{transform:translateY(-4px);background:#f7fbff}.cfnet-category-icon{position:relative;width:86px;height:76px;overflow:visible;border-radius:50%;background:radial-gradient(ellipse at 50% 72%,#eaf1f8 0 40%,#f9fbfd 41% 64%,transparent 65%);animation:cfnet-product-float 4.2s ease-in-out infinite}.cfnet-category-icon:after{content:"";position:absolute;left:15px;right:15px;bottom:4px;height:10px;border-radius:50%;background:rgba(23,58,99,.15);filter:blur(7px)}.cfnet-category-icon img{position:relative;z-index:2;width:82px;height:72px;object-fit:contain;filter:drop-shadow(0 7px 5px rgba(23,58,99,.25));transition:transform .3s ease}.cfnet-category-dock>a:hover img{transform:translateY(-5px) scale(1.07)}.cfnet-category-dock strong{font-size:12px;font-weight:800;color:#17243a}@keyframes cfnet-product-float{0%,100%{transform:translateY(0) rotateY(-2deg)}50%{transform:translateY(-4px) rotateY(3deg)}}
@media(max-width:1100px){.cfnet-spatial-hero{grid-template-columns:.85fr 1.15fr;padding:34px 30px}.cfnet-main-product{height:330px}.cfnet-delivery-card{display:none}}
@media(max-width:767.98px){.cfnet-spatial-hero{grid-template-columns:1fr;padding:28px 20px}.cfnet-showroom{min-height:280px}.cfnet-main-product{height:290px}.cfnet-warranty-spec,.cfnet-delivery-card{display:none}.cfnet-category-dock{display:flex;overflow-x:auto;justify-content:flex-start}.cfnet-category-dock>a{min-width:118px;border-right:0}.cfnet-category-icon{width:72px;height:66px}.cfnet-category-icon img{width:68px;height:62px}}
