/* Products · PS5 visual system · 2026-10-11 */

body.products-workspace-active{
  background:
    radial-gradient(circle at 78% 0%,rgba(38,91,255,.10),transparent 29%),
    radial-gradient(circle at 28% 34%,rgba(0,180,255,.04),transparent 29%),
    #050912;
}
body.products-workspace-active .main{
  padding-top:24px;
  background:
    radial-gradient(circle at 74% 2%,rgba(26,91,224,.08),transparent 27%),
    linear-gradient(180deg,#050912,#05080e);
}
body.products-workspace-active .topbar{display:none}
body.products-workspace-active .nav-item[data-section="products"].active{
  background:linear-gradient(90deg,rgba(28,78,170,.92),rgba(22,48,102,.80));
  border:1px solid rgba(58,126,255,.76);
  box-shadow:inset 3px 0 0 #61a9ff,0 0 22px rgba(34,103,255,.20);
}
.products-ps5-section{
  max-width:none;
  width:min(1580px,100%);
  margin:0 auto;
  padding-bottom:34px;
}

/* Hero */
.products-ps5-hero{
  position:relative;
  min-height:150px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:0 0 15px;
  padding:24px 26px;
  border:1px solid rgba(56,103,177,.48);
  border-radius:24px;
  background:
    linear-gradient(112deg,rgba(17,36,68,.97),rgba(7,17,34,.985) 50%,rgba(4,10,21,.995)),
    #08111f;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.026),
    0 18px 52px rgba(0,0,0,.25),
    0 0 44px rgba(25,85,207,.055);
}
.products-ps5-hero::before{
  content:"";
  position:absolute;
  width:720px;
  height:310px;
  right:-78px;
  top:-224px;
  border:1px solid rgba(67,139,255,.68);
  border-radius:50%;
  transform:rotate(-8deg);
  box-shadow:0 0 17px rgba(41,118,255,.34);
  pointer-events:none;
}
.products-ps5-hero::after{
  content:"";
  position:absolute;
  width:500px;
  height:190px;
  right:-20px;
  bottom:-150px;
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(27,102,224,.22),transparent 68%);
  pointer-events:none;
}
.products-hero-copy,.products-hero-actions{position:relative;z-index:1}
.products-hero-copy{max-width:620px}
.products-hero-copy .eyebrow{
  color:#77a9dd;
  font-size:9px;
  letter-spacing:.16em;
}
.products-hero-copy h3{
  position:relative;
  margin:9px 0 8px;
  padding-left:21px;
  color:#f6f9ff;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.035em;
}
.products-hero-copy h3::before{
  content:"";
  position:absolute;
  left:0;
  top:1px;
  width:2px;
  height:40px;
  border-radius:2px;
  background:linear-gradient(180deg,#5dd7ff,#3478ff);
  box-shadow:0 0 12px rgba(66,139,255,.85);
}
.products-hero-copy p{
  margin:0;
  color:#99acc4;
  font-size:12px;
  line-height:1.55;
}
.products-hero-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  max-width:850px;
}
.products-search-wrap{
  width:min(390px,36vw);
  min-width:270px;
  height:46px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  border:1px solid #2a4e78;
  border-radius:14px;
  background:rgba(5,15,27,.76);
  box-shadow:inset 0 1px 8px rgba(0,0,0,.15);
  backdrop-filter:blur(10px);
}
.products-search-wrap:focus-within{
  border-color:#3c88e9;
  box-shadow:0 0 0 3px rgba(43,124,239,.10),inset 0 1px 8px rgba(0,0,0,.12);
}
.products-search-wrap svg{
  width:18px;height:18px;flex:0 0 18px;
  fill:none;stroke:#6d91bc;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.products-search-wrap input{
  min-width:0!important;
  width:100%;
  height:100%;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#e9f1fb!important;
  box-shadow:none!important;
}
.products-search-wrap input::placeholder{color:#607a99}
.products-hero-actions .btn{
  min-height:44px;
  padding:0 13px;
  border-radius:12px;
  font-size:10px;
  font-weight:750;
  white-space:nowrap;
}
.products-action-btn{
  border:1px solid #2f527e!important;
  background:rgba(9,24,43,.82)!important;
  color:#a9c7ec!important;
}
.products-action-btn:hover{
  border-color:#437dbf!important;
  color:#f2f7ff!important;
  background:#102c4e!important;
  box-shadow:0 0 18px rgba(44,120,234,.10);
}
.products-add-btn{
  border:1px solid #368aff!important;
  background:linear-gradient(135deg,#2089fa,#1755c7)!important;
  box-shadow:0 9px 25px rgba(17,102,238,.23),0 0 18px rgba(38,128,255,.11)!important;
}
.products-reload-btn{
  border-color:#2a4d75!important;
  background:rgba(6,17,31,.68)!important;
  color:#afc3dc!important;
}

/* KPI cards */
.products-ps5-summary{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:11px!important;
  margin:0 0 14px!important;
}
.products-summary-card{
  --sum-rgb:60,127,255;
  position:relative;
  min-height:106px;
  overflow:hidden;
  display:grid;
  grid-template-columns:46px 1fr;
  align-items:center;
  gap:12px;
  padding:14px 15px;
  border:1px solid rgba(var(--sum-rgb),.30);
  border-radius:18px;
  background:linear-gradient(145deg,#0d1b30,#07111e 72%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.022),0 12px 30px rgba(0,0,0,.18);
}
.products-summary-models{--sum-rgb:64,128,255}
.products-summary-modules{--sum-rgb:45,190,235}
.products-summary-parts{--sum-rgb:116,104,255}
.products-summary-hardware{--sum-rgb:36,208,154}
.products-summary-materials{--sum-rgb:227,163,62}
.products-summary-card::after{
  content:"";
  position:absolute;
  right:-22%;
  bottom:-64px;
  width:78%;
  height:100px;
  border-radius:50%;
  border-top:1px solid rgba(var(--sum-rgb),.63);
  filter:drop-shadow(0 -1px 7px rgba(var(--sum-rgb),.24));
}
.products-summary-orb{
  width:44px;height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--sum-rgb),.47);
  border-radius:15px;
  background:
    radial-gradient(circle at 35% 30%,rgba(var(--sum-rgb),.44),rgba(var(--sum-rgb),.09) 50%,transparent 72%);
  box-shadow:inset 0 0 17px rgba(var(--sum-rgb),.12),0 0 16px rgba(var(--sum-rgb),.12);
}
.products-summary-orb::before{
  content:"";
  width:18px;height:18px;
  border:1px solid rgb(var(--sum-rgb));
  border-radius:5px;
  box-shadow:inset 0 0 8px rgba(var(--sum-rgb),.17);
  transform:rotate(45deg);
}
.products-summary-card small,
.products-summary-card b,
.products-summary-card em{display:block;position:relative;z-index:1}
.products-summary-card small{color:#9db0c7;font-size:9px}
.products-summary-card b{
  margin:4px 0 3px;
  color:#f5f8fc;
  font-size:25px;
  line-height:1;
  letter-spacing:-.035em;
}
.products-summary-card em{
  color:#697f9a;
  font-size:8px;
  font-style:normal;
  line-height:1.25;
}

/* Main category switcher */
.products-ps5-tabs{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:5px!important;
  margin:0 0 14px!important;
  padding:5px!important;
  border:1px solid #213e61!important;
  border-radius:17px!important;
  background:linear-gradient(180deg,rgba(7,16,28,.96),rgba(5,12,21,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}
.products-ps5-tabs button{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 9px!important;
  border:1px solid transparent!important;
  border-radius:12px!important;
  background:transparent!important;
  color:#8197b3!important;
  font-size:10.5px;
  font-weight:750;
  transition:.16s ease;
}
.products-ps5-tabs button>span{
  color:#586f8b;
  font-size:7px;
  font-weight:900;
  letter-spacing:.12em;
}
.products-ps5-tabs button:hover{
  border-color:#27496f!important;
  background:#0c2036!important;
  color:#d8e8fa!important;
}
.products-ps5-tabs button.active{
  border-color:#2f7ef2!important;
  background:linear-gradient(135deg,rgba(29,82,187,.94),rgba(21,52,113,.96))!important;
  color:#f7faff!important;
  box-shadow:inset 0 0 0 1px rgba(94,158,255,.12),0 0 21px rgba(27,107,255,.17)!important;
}
.products-ps5-tabs button.active>span{color:#a9d0ff}

/* Search filters + sort */
#section-products .product-view-toolbar{
  align-items:center;
  margin:0 0 13px;
  padding:9px 10px;
  border:1px solid #203f62;
  border-radius:15px;
  background:linear-gradient(180deg,#081521,#06101b);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.017);
}
#section-products .product-filter-chips{gap:6px}
#section-products .product-filter-chips button{
  min-height:34px;
  padding:0 11px;
  border:1px solid #244568;
  border-radius:10px;
  background:#0a1929;
  color:#839bb8;
  font-size:9px;
}
#section-products .product-filter-chips button:hover{
  border-color:#396d9f;
  background:#10263d;
  color:#dfeafa;
}
#section-products .product-filter-chips button.active{
  border-color:#377fd5;
  background:linear-gradient(135deg,#154784,#102f59);
  color:#f4f8ff;
  box-shadow:0 0 15px rgba(42,119,228,.10);
}
#section-products .product-filter-chips button b{
  color:#90c3ff;
  font-size:8px;
}
#section-products .product-view-meta{
  color:#7188a4;
  font-size:9px;
}
#section-products .product-view-meta>span{
  padding:0 4px;
}
#section-products .product-view-meta>span b{color:#dbe9f8}
#section-products .product-view-meta select{
  min-width:165px;
  min-height:36px;
  border:1px solid #25486f;
  border-radius:10px;
  background:#071522;
  color:#d4dfeb;
  font-size:9px;
}

/* Product cards */
#section-products .product-card-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
#section-products .product-master-card{
  position:relative;
  overflow:hidden;
  min-width:0;
  min-height:245px;
  padding:16px;
  gap:11px;
  border:1px solid #203e60;
  border-radius:19px;
  background:
    radial-gradient(circle at 91% 2%,rgba(42,109,215,.09),transparent 31%),
    linear-gradient(145deg,#0a1728,#07111e 70%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.021),0 14px 34px rgba(0,0,0,.19);
}
#section-products .product-master-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,rgba(57,124,229,.028),transparent 25%,transparent 78%,rgba(45,126,255,.022));
}
#section-products .product-master-card.clickable:hover{
  transform:translateY(-2px);
  border-color:#3474b6;
  background:
    radial-gradient(circle at 91% 2%,rgba(53,124,233,.12),transparent 34%),
    linear-gradient(145deg,#0c1d32,#08131f 70%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.026),0 18px 38px rgba(0,0,0,.22),0 0 30px rgba(36,104,213,.06);
}
#section-products .product-card-top{position:relative;z-index:1;gap:13px}
#section-products .product-card-top>div:first-child{min-width:0}
#section-products .product-card-top h4{
  margin:6px 0 4px;
  color:#f2f6fb;
  font-size:15px;
  line-height:1.3;
  letter-spacing:-.01em;
}
#section-products .product-card-top p{
  color:#7188a3;
  font-size:9.5px;
}
#section-products .product-code{
  padding:4px 7px;
  border:1px solid rgba(69,135,233,.27);
  border-radius:7px;
  background:rgba(25,65,126,.45);
  color:#93c1ff;
  font-size:8px;
  letter-spacing:.04em;
}
#section-products .product-card-top img,
#section-products .product-image-placeholder,
#section-products .module-schematic{
  width:84px;
  height:84px;
  min-width:84px;
  border:1px solid #2a4d73;
  border-radius:15px;
  background:
    radial-gradient(circle at 50% 30%,rgba(47,108,199,.16),transparent 42%),
    #0c1a2a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 0 16px rgba(37,98,190,.07);
}
#section-products .product-image-placeholder{
  display:grid;
  place-items:center;
  color:#6f91b6;
  font-size:13px;
}
#section-products .module-schematic{gap:4px;color:#7e9abb}
#section-products .module-schematic .module-shape{
  border-color:#75a2d3;
  background:#0d1c2c;
}
#section-products .product-chips{
  position:relative;z-index:1;
  gap:5px;
}
#section-products .product-chips span{
  padding:4px 7px;
  border:1px solid #23415f;
  border-radius:8px;
  background:rgba(6,18,31,.62);
  color:#849bb5;
  font-size:8px;
}
#section-products .product-purchase-price{
  position:relative;z-index:1;
  padding:10px 11px;
  gap:6px;
  border:1px solid #22466f;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(13,35,61,.88),rgba(7,18,30,.88));
}
#section-products .product-purchase-price small{
  color:#6f89a6;
  font-size:8.5px;
}
#section-products .product-purchase-price b{
  color:#eef5ff;
  font-size:18px;
}
#section-products .product-purchase-price p{
  color:#8ea6c1;
  font-size:9px;
}
#section-products .product-synonyms{
  position:relative;z-index:1;
  border:1px solid #1c3856;
  border-radius:10px;
  background:rgba(4,13,23,.60);
  color:#a9bacd;
  font-size:9px;
}
#section-products .product-card-foot{
  position:relative;z-index:1;
  gap:7px;
  align-items:center;
  padding-top:10px;
  border-top:1px solid #1b3653;
}
#section-products .product-open-hint{
  color:#6f9fd5;
  font-size:9px;
}
#section-products .product-card-foot .btn{
  min-height:34px;
  padding:0 10px;
  border-color:#2a527d!important;
  border-radius:9px;
  background:#091a2b!important;
  color:#9bb9d9!important;
  font-size:8.5px;
}
#section-products .workspace-empty{
  border-color:#27507a;
  border-radius:19px;
  background:
    radial-gradient(circle at 50% 20%,rgba(34,104,211,.08),transparent 30%),
    rgba(4,12,21,.72);
}
#section-products .workspace-empty-icon{color:#65a7ff}

/* Specifications/readiness blocks inherit the same surface language */
#section-products .product-bom-readiness,
#section-products .product-eq-readiness,
#section-products .product-composition-shell,
#section-products .product-spec-grid>article,
#section-products .product-relation-row{
  border-color:#203e5e!important;
  background:
    linear-gradient(145deg,#091725,#07111d)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}
#section-products .product-bom-readiness,
#section-products .product-eq-readiness,
#section-products .product-composition-shell{border-radius:18px!important}

/* Product dialogs */
#productDialog::backdrop{
  background:rgba(0,5,12,.74);
  backdrop-filter:blur(8px);
}
#productDialog{
  border:0;
  background:transparent;
}
#productDialog .dialog-card,
#productDialog .product-detail-dialog{
  border:1px solid #28517b;
  border-radius:22px;
  background:
    radial-gradient(circle at 91% 0%,rgba(47,112,225,.10),transparent 30%),
    linear-gradient(145deg,#0b1b2e,#07111e 67%);
  box-shadow:0 30px 95px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.025);
}
#productDialog .product-detail-head{
  background:linear-gradient(180deg,rgba(9,23,39,.98) 78%,rgba(9,23,39,0));
}
#productDialog .panel-head h3{color:#f2f7fd}
#productDialog .panel-head .eyebrow{color:#76a9e2}
#productDialog .icon-btn{
  border:1px solid #2d527b;
  background:#0b1b2d;
  color:#b7cbe1;
}
#productDialog input,
#productDialog select,
#productDialog textarea{
  border-color:#284a70;
  background:#071522;
  color:#e2eaf3;
}
#productDialog input:focus,
#productDialog select:focus,
#productDialog textarea:focus{
  border-color:#3a82d9;
  box-shadow:0 0 0 3px rgba(45,126,226,.09);
}
#productDialog .product-detail-specs>div,
#productDialog .product-attr-list>div{
  border-color:#1e3b5a;
  background:rgba(5,15,26,.64);
}
#productDialog .product-detail-gallery img{
  border:1px solid #2d527a;
  box-shadow:0 10px 25px rgba(0,0,0,.18);
}
#productDialog .product-detail-bom,
#productDialog .module-eq-current,
#productDialog .module-eq-candidate{
  background:#081522;
  border-color:#254566;
}

/* Motion + responsive */
@media(max-width:1320px){
  .products-ps5-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .products-ps5-summary .products-summary-card:nth-child(4),
  .products-ps5-summary .products-summary-card:nth-child(5){min-height:96px}
  #section-products .product-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .products-ps5-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1000px){
  .products-ps5-hero{align-items:flex-start;flex-direction:column}
  .products-hero-actions{width:100%;justify-content:flex-start}
  .products-search-wrap{width:min(100%,520px)}
}
@media(max-width:760px){
  body.products-workspace-active .main{padding-top:10px}
  .products-ps5-hero{
    min-height:0;
    padding:18px;
    border-radius:18px;
  }
  .products-hero-copy h3{font-size:28px}
  .products-hero-actions{display:grid;grid-template-columns:1fr 1fr}
  .products-search-wrap{grid-column:1/-1;width:100%;min-width:0}
  .products-hero-actions .btn{width:100%}
  .products-ps5-summary{grid-template-columns:1fr 1fr}
  .products-summary-card{min-height:96px}
  .products-ps5-tabs{
    display:flex!important;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .products-ps5-tabs::-webkit-scrollbar{display:none}
  .products-ps5-tabs button{flex:0 0 auto;min-width:130px}
  #section-products .product-card-grid{grid-template-columns:1fr}
  #section-products .product-view-toolbar{align-items:stretch}
  #section-products .product-view-meta{width:100%;justify-content:space-between}
}
@media(max-width:480px){
  .products-hero-actions{grid-template-columns:1fr}
  .products-search-wrap{grid-column:auto}
  .products-ps5-summary{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  #section-products .product-master-card,
  .products-ps5-tabs button,
  .products-hero-actions .btn{transition:none!important}
}
