:root {
  --bg: #070d18;
  --bg-2: #0d1624;
  --bg-3: #111e30;
  --surface: rgba(255, 255, 255, .035);
  --surface-strong: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .1);
  --border-soft: rgba(255, 255, 255, .065);
  --orange: #ff6b00;
  --orange-soft: rgba(255, 107, 0, .15);
  --orange-mid: rgba(255, 107, 0, .42);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --white: #fff;
  --display: 'Rajdhani', sans-serif;
  --body: 'DM Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html.light-theme {
  --bg: #f2f5f9;
  --bg-2: #e8eef5;
  --bg-3: #dfe8f1;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: rgba(255, 255, 255, .94);
  --border: rgba(18, 31, 48, .14);
  --border-soft: rgba(18, 31, 48, .08);
  --text: #172235;
  --muted: #526278;
  --dim: #718198;
  --white: #172235;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--body); font-weight: 400; line-height: 1.5; }
body.cart-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: #fff; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--orange-mid); border-radius: 100px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.catalog-shell { max-width: 1280px; padding: 0 40px; margin: 0 auto; }

.cart-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 100px; background: var(--orange); color: #fff; font: 500 .7rem/1 var(--mono); }

.catalog-hero { position: relative; min-height: 395px; overflow: hidden; background: linear-gradient(120deg, var(--bg) 0%, var(--bg-2) 63%, #101b2d 100%); border-bottom: 1px solid var(--border-soft); }
html.light-theme .catalog-hero { background: linear-gradient(120deg, #f8fafc, #e9f0f7 65%, #e1e9f2); }
.hero-grid { position: absolute; inset: 0; opacity: .38; background-image: linear-gradient(rgba(255, 107, 0, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 107, 0, .11) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, #000 10%, transparent 76%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-orb-one { width: 570px; height: 570px; top: -360px; right: 7%; background: radial-gradient(circle, rgba(255, 107, 0, .34), transparent 68%); }
.hero-orb-two { width: 430px; height: 430px; bottom: -330px; left: 42%; background: radial-gradient(circle, rgba(6, 182, 212, .2), transparent 68%); }
.hero-inner { position: relative; padding-top: 118px; padding-bottom: 64px; }
.eyebrow { margin: 0 0 15px; color: var(--orange); font: 500 .72rem/1 var(--mono); letter-spacing: .27em; }
.catalog-hero .eyebrow { margin-top: 0; }
.catalog-hero h1 { max-width: 760px; margin: 0; color: var(--white); font: 600 clamp(2.65rem, 5vw, 4.65rem)/.92 var(--display); letter-spacing: -.035em; }
.catalog-hero h1 span { background: linear-gradient(120deg, var(--orange), #ffab00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 1rem; }
.hero-points { display: flex; align-items: center; gap: 14px; margin-top: 32px; color: var(--text); font: 500 .77rem/1 var(--mono); letter-spacing: .02em; }
.hero-points i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }

.catalog-main { padding-top: 78px; padding-bottom: 96px; }
.catalog-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.catalog-intro h2, .cart-head h2 { margin: 0; color: var(--white); font: 600 clamp(2.2rem, 4vw, 3.2rem)/.9 var(--display); letter-spacing: -.02em; }
.catalog-note { max-width: 480px; margin: 0; color: var(--muted); font-size: .91rem; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-tab { border: 1px solid transparent; border-radius: 9px; padding: 10px 14px; background: transparent; color: var(--muted); font: 600 .88rem/1 var(--display); letter-spacing: .04em; transition: color .2s, background .2s, border-color .2s; }
.filter-tab em { margin-left: 4px; color: var(--dim); font: 400 .63rem/1 var(--mono); font-style: normal; }
.filter-tab:hover { color: var(--text); }
.filter-tab.is-active { background: var(--orange-soft); border-color: var(--orange-mid); color: var(--orange); }
.filter-tab.is-active em { color: inherit; }
.search-box { position: relative; width: min(315px, 100%); }
.search-box::after { position: absolute; right: 14px; top: 50%; content: '⌕'; color: var(--orange); font-size: 1.35rem; line-height: 1; transform: translateY(-50%) rotate(-18deg); pointer-events: none; }
.search-box input { width: 100%; height: 40px; padding: 0 42px 0 13px; outline: none; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2); color: var(--text); font-size: .83rem; transition: border-color .2s, box-shadow .2s; }
.search-box input::placeholder { color: var(--dim); }
.search-box input:focus { border-color: var(--orange-mid); box-shadow: 0 0 0 3px var(--orange-soft); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.product-card { position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.product-card:hover { z-index: 1; transform: translateY(-5px); border-color: var(--orange-mid); box-shadow: 0 18px 42px rgba(0, 0, 0, .22); }
.product-image { position: relative; display: grid; place-items: center; aspect-ratio: 1.12; padding: 17px; overflow: hidden; background: linear-gradient(145deg, var(--bg-3), var(--bg-2)); }
.product-image::after { position: absolute; inset: 0; content: ''; opacity: .55; background: radial-gradient(circle at 78% 19%, var(--orange-soft), transparent 34%); pointer-events: none; }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; filter: drop-shadow(0 17px 14px rgba(0,0,0,.25)); transition: transform .45s var(--ease); }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-type { position: absolute; top: 12px; left: 12px; z-index: 1; border: 1px solid var(--border); border-radius: 100px; padding: 5px 9px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); color: var(--muted); font: 400 .6rem/1 var(--mono); letter-spacing: .03em; }
.product-type.cable { color: #67e8f9; border-color: rgba(103, 232, 249, .26); }
.product-content { display: flex; flex: 1; flex-direction: column; padding: 17px 17px 16px; }
.product-name { display: -webkit-box; overflow: hidden; min-height: 61px; margin: 0; color: var(--text); font: 600 1.12rem/1.02 var(--display); letter-spacing: -.01em; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.product-spec { margin: 11px 0 0; color: var(--dim); font: 400 .63rem/1.4 var(--mono); letter-spacing: .015em; }
.product-bottom { display: flex; align-items: end; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 17px; }
.product-price { color: var(--white); font: 600 1.3rem/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.product-price small { display: block; margin-top: 5px; color: var(--dim); font: 400 .57rem/1 var(--mono); }
.add-button { display: inline-grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border: 1px solid var(--orange-mid); border-radius: 10px; background: var(--orange-soft); color: var(--orange); font-size: 1.55rem; line-height: 1; transition: color .2s, background .2s, transform .2s; }
.add-button:hover { transform: rotate(90deg); background: var(--orange); color: #fff; }
.no-results { grid-column: 1 / -1; padding: 64px 20px; border: 1px dashed var(--border); border-radius: 16px; color: var(--muted); text-align: center; }
.no-results strong { display: block; margin-bottom: 7px; color: var(--text); font: 600 1.5rem/1 var(--display); }

.cart-backdrop { position: fixed; z-index: 1001; inset: 0; width: 100%; border: 0; background: rgba(1, 6, 14, .58); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-drawer { position: fixed; z-index: 1002; top: 0; right: 0; display: flex; flex-direction: column; width: min(440px, 100vw); height: 100dvh; padding: 29px; overflow: hidden; border-left: 1px solid var(--border); background: var(--bg-2); box-shadow: -20px 0 56px rgba(0,0,0,.25); transform: translateX(105%); transition: transform .42s var(--ease); }
.cart-drawer.is-open { transform: translateX(0); }
.cart-backdrop.is-open { opacity: 1; visibility: visible; }
.floating-cart { position: fixed; z-index: 1000; right: 28px; bottom: 26px; display: grid; place-items: center; width: 116px; height: 116px; padding: 0; border: 0; border-radius: 50%; background: transparent; perspective: 720px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .28)); transition: filter .25s var(--ease), transform .25s var(--ease); }
.floating-cart::before { position: absolute; inset: 8px; content: ''; border: 1px solid var(--orange-mid); border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 0, .15), rgba(7, 13, 24, .22) 62%, transparent 72%); box-shadow: inset 0 0 23px rgba(255, 107, 0, .14), 0 0 25px rgba(255, 107, 0, .16); animation: cart-pulse 2.8s ease-in-out infinite; }
.floating-cart-orbit { position: absolute; inset: 0; border: 1px dashed rgba(255, 107, 0, .38); border-radius: 50%; animation: cart-orbit 8s linear infinite; }
.floating-cart img { position: relative; z-index: 1; width: 113px; height: 113px; object-fit: contain; transform-origin: 50% 55%; animation: cart-float-spin 8s cubic-bezier(.45, 0, .55, 1) infinite; }
.floating-cart .cart-count { position: absolute; z-index: 2; top: 7px; right: 7px; min-width: 26px; height: 26px; border: 2px solid var(--bg); box-shadow: 0 3px 10px rgba(0,0,0,.28); }
.floating-cart:hover, .floating-cart:focus-visible { filter: drop-shadow(0 18px 24px rgba(255, 107, 0, .32)); outline: none; transform: scale(1.08); }
.floating-cart:hover img, .floating-cart:focus-visible img { animation-play-state: paused; transform: translateY(-5px) rotate(-9deg) scale(1.1); }
@keyframes cart-pulse { 0%, 100% { transform: scale(.93); opacity: .7; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes cart-orbit { to { transform: rotate(360deg); } }
@keyframes cart-float-spin { 0%, 100% { transform: translateY(0) rotateY(0deg) rotateZ(-5deg) scale(1); } 25% { transform: translateY(-7px) rotateY(18deg) rotateZ(3deg) scale(1.04); } 50% { transform: translateY(-2px) rotateY(360deg) rotateZ(-5deg) scale(1); } 75% { transform: translateY(-8px) rotateY(342deg) rotateZ(3deg) scale(1.04); } }
.cart-head { display: flex; align-items: start; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.cart-head .eyebrow { margin-bottom: 9px; }
.cart-head h2 { font-size: 2.35rem; }
.close-cart { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 1.8rem; line-height: 1; transition: border-color .2s, color .2s; }
.close-cart:hover { border-color: var(--orange-mid); color: var(--orange); }
.cart-items { flex: 1; overflow-y: auto; padding: 3px 5px 8px 0; }
.cart-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--border-soft); }
.cart-item-image { display: grid; place-items: center; width: 68px; height: 68px; padding: 7px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface); }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-name { margin: 0 0 6px; color: var(--text); font: 600 .98rem/1.05 var(--display); }
.cart-item-price { margin: 0; color: var(--muted); font: 400 .68rem/1 var(--mono); }
.quantity-controls { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.quantity-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.quantity-stepper button { width: 25px; height: 25px; border: 0; background: transparent; color: var(--muted); font-size: 1.05rem; line-height: 1; transition: color .2s, background .2s; }
.quantity-stepper button:hover { background: var(--orange-soft); color: var(--orange); }
.quantity-value { display: grid; place-items: center; min-width: 26px; color: var(--text); font: 500 .67rem/1 var(--mono); }
.remove-item { padding: 0; border: 0; background: transparent; color: var(--dim); font: 500 .62rem/1 var(--mono); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.remove-item:hover { color: var(--orange); }
.empty-cart { flex: 1; display: grid; place-content: center; padding: 34px 30px; text-align: center; }
.empty-cart.is-hidden { display: none; }
.empty-mark { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 18px; border: 1px solid var(--orange-mid); border-radius: 14px; background: var(--orange-soft); color: var(--orange); font-size: 2rem; }
.empty-cart h3 { margin: 0; color: var(--white); font: 600 1.6rem/1 var(--display); }
.empty-cart p { margin: 12px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.cart-footer { padding-top: 21px; border-top: 1px solid var(--border); }
.cart-total { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.cart-total span { color: var(--muted); font-size: .84rem; }
.cart-total strong { color: var(--white); font: 600 1.9rem/1 var(--display); letter-spacing: .01em; }
.cart-hint { margin: 16px 0; color: var(--dim); font-size: .72rem; line-height: 1.45; }
.checkout-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 49px; border: 0; border-radius: 10px; background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(255, 107, 0, .2); font: 600 1rem/1 var(--display); letter-spacing: .055em; transition: transform .2s, box-shadow .2s, opacity .2s; }
.checkout-button i { font-size: 1.25rem; font-style: normal; line-height: 1; transition: transform .2s; }
.checkout-button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 107, 0, .34); }
.checkout-button:not(:disabled):hover i { transform: translateX(4px); }
.checkout-button:disabled { opacity: .4; cursor: not-allowed; }
.clear-cart { display: block; margin: 14px auto 0; padding: 0; border: 0; background: transparent; color: var(--dim); font: 500 .68rem/1 var(--mono); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.clear-cart:disabled { opacity: .45; cursor: not-allowed; }
.clear-cart:not(:disabled):hover { color: var(--orange); }
.toast { position: fixed; z-index: 1003; left: 50%; bottom: 28px; max-width: min(440px, calc(100vw - 34px)); padding: 12px 17px; border: 1px solid var(--orange-mid); border-radius: 10px; background: var(--bg-3); color: var(--text); box-shadow: 0 14px 35px rgba(0,0,0,.24); font-size: .82rem; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .25s, transform .25s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .catalog-shell { padding-left: 19px; padding-right: 19px; }
  .cart-trigger-label { display: none; }
  .catalog-hero { min-height: 350px; }
  .hero-inner { padding-top: 108px; padding-bottom: 48px; }
  .catalog-hero .eyebrow { margin-top: 0; }
  .hero-copy { font-size: .92rem; }
  .hero-points { flex-wrap: wrap; gap: 9px; font-size: .64rem; }
  .catalog-main { padding-top: 52px; padding-bottom: 64px; }
  .catalog-intro { display: block; margin-bottom: 25px; }
  .catalog-note { margin-top: 17px; font-size: .84rem; }
  .catalog-toolbar { display: block; padding: 8px; }
  .filter-tabs { margin-bottom: 8px; }
  .filter-tab { padding: 9px 11px; font-size: .8rem; }
  .search-box { display: block; width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-image { padding: 11px; }
  .product-type { top: 7px; left: 7px; padding: 4px 6px; font-size: .48rem; }
  .product-content { padding: 12px; }
  .product-name { min-height: 57px; font-size: .94rem; }
  .product-spec { margin-top: 8px; font-size: .53rem; }
  .product-bottom { gap: 4px; padding-top: 12px; }
  .product-price { font-size: 1.1rem; }
  .product-price small { font-size: .48rem; }
  .add-button { flex-basis: 33px; width: 33px; height: 33px; border-radius: 8px; font-size: 1.35rem; }
  .cart-drawer { padding: 22px 18px; }
  .cart-head { padding-bottom: 17px; }
  .cart-head h2 { font-size: 2rem; }
}
@media (max-width: 560px) { .floating-cart { right: 15px; bottom: 15px; width: 94px; height: 94px; } .floating-cart img { width: 94px; height: 94px; } .floating-cart::before { inset: 6px; } .floating-cart .cart-count { top: 2px; right: 2px; } }
@media (max-width: 380px) { .product-grid { grid-template-columns: 1fr; } .product-image { aspect-ratio: 1.5; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
