/* ===== RESET ===== */

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:'Inter',sans-serif;
  background:#0f172a;
  color:white;
}

/* ===== NAVBAR ===== */

.navbar{
  position:sticky;
  top:0;
  background:rgba(0,0,0,0.65);
  backdrop-filter:blur(8px);
  padding:10px 30px;
  color:white;
  font-weight:bold;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:999;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo img{
  height:40px;
  width:auto;
}

.logo span{
  font-size:1rem;
  white-space:nowrap;
}

.menu{
  display:flex;
  gap:25px;
  flex:1;
  justify-content:center;
  align-items:center;
}

.menu a{
  color:white;
  text-decoration:none;
  font-weight:bold;
  transition:.3s;
}

.menu a:hover{
  color:#00aaff;
}

.menu a.active{
  background:#003366;
  color:#fff;
  border-radius:6px;
  padding:5px 10px;
}

/* ===== DROPDOWN ===== */

.dropdown{
  position:relative;
  display:flex;
  align-items:center;
}

.drop-btn{
  background:none;
  border:none;
  color:white;
  font-weight:bold;
  cursor:pointer;
  font-size:.95rem;
  display:flex;
  align-items:center;
  gap:6px;
}

.dropdown-content{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  background:rgba(15,23,42,.98);
  min-width:220px;
  border-radius:10px;
  padding:8px 0;
  z-index:9999;
  flex-direction:column;
}

.dropdown-content a{
  color:white;
  padding:10px 15px;
  text-decoration:none;
  display:block;
  font-size:.9rem;
}

.dropdown-content a:hover{
  background:rgba(255,255,255,.08);
}

.dropdown.open .dropdown-content{
  display:flex;
}

.dropdown.open i{
  transform:rotate(180deg);
  transition:.3s;
}

/* ===== HAMBURGER ===== */

.menu-toggle{
  display:none;
  font-size:1.6rem;
  cursor:pointer;
  color:white;
}

/* ===== MOBILE ===== */

@media (max-width:900px){

  .navbar{
    padding:10px 15px;
  }

  .menu-toggle{
    display:block;
    z-index:1001;
  }

  .logo span{
    display:none;
  }

  .logo img{
    height:35px;
  }

  .menu{
    display:none;
    position:absolute;
    top:60px;
    left:0;
    width:100%;
    background:rgba(0,0,0,.95);
    flex-direction:column;
    align-items:center;
    gap:15px;
    padding:20px 0;
  }

  .menu.show{
    display:flex;
  }

  .dropdown{
    width:100%;
    justify-content:center;
  }

  .drop-btn{
    width:100%;
    justify-content:center;
    padding:10px;
  }

  .dropdown-content{
    position:static;
    width:100%;
    border-radius:0;
  }
}
/* ===== SIDEBAR ===== */

#sidebar{
  background:rgba(15,23,42,.92);
  backdrop-filter:blur(10px);
  overflow-y:auto;
  padding:20px;
  border-right:1px solid rgba(255,255,255,.08);
}

/* SCROLL */

#sidebar::-webkit-scrollbar{
  width:8px;
}

#sidebar::-webkit-scrollbar-thumb{
  background:#334155;
  border-radius:20px;
}

/* ===== CATEGORY ===== */

.group{
  margin-bottom:28px;
}

.group-title{
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  color:#38bdf8;
  margin-bottom:12px;
  padding-left:6px;
}

/* ===== ITEM CARD ===== */

.item{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  padding:14px;
  margin-bottom:10px;
  cursor:pointer;
  transition:.25s ease;
}

/* TITLE */

.item-name{
  font-size:.92rem;
  font-weight:600;
  color:white;
  margin-bottom:6px;
}

/* SUBTEXT */

.item-meta{
  font-size:.72rem;
  color:#94a3b8;
}

/* HOVER */

.item:hover{
  transform:translateY(-2px);
  background:rgba(59,130,246,.12);
  border-color:#3b82f6;
}

/* ACTIVE */

.item.active{
  background:linear-gradient(
    135deg,
    rgba(59,130,246,.22),
    rgba(37,99,235,.18)
  );

  border:1px solid #3b82f6;
  box-shadow:0 0 0 1px rgba(59,130,246,.15);
}

/* ===== MAIN LAYOUT ===== */

.layout{
  display:grid;
  grid-template-columns:340px 1fr;
  height:calc(100vh - 64px);
  overflow:hidden;
}

/* MOBILE */

@media (max-width:900px){

  .layout{
    grid-template-columns:1fr;
    height:auto;
  }

}


/* ===== DETAIL PANEL ===== */

#detail{
  overflow-y:auto;
  padding:30px;
  background:
    linear-gradient(
      180deg,
      rgba(15,23,42,.92),
      rgba(2,6,23,.95)
    );
}

/* MOBILE */

@media (max-width:900px){

  #detail{
    min-height:60vh;
    padding:20px;
  }

}

/* ===== HARDWARE CARD ===== */

.card{
  max-width:1100px;
  margin:auto;

  background:rgba(15,23,42,.78);

  border:1px solid rgba(255,255,255,.08);

  border-radius:22px;

  overflow:hidden;

  box-shadow:
    0 10px 35px rgba(0,0,0,.35);

  backdrop-filter:blur(10px);
}

/* ===== CARD HERO ===== */

.card-hero{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:30px;
  padding:30px;
}

/* IMAGE */

.card-image{
  width:100%;
  height:320px;
  border-radius:18px;
  overflow:hidden;
  background:#0f172a;
}


.card-image img{
  width:100%;
  height:100%;
  object-fit:contain;
   background:white;
}

/* INFO */

.card-info h1{
  margin:0 0 10px;
  font-size:2rem;
  color:white;
}

.card-desc{
  color:#cbd5e1;
  line-height:1.6;
  margin-bottom:20px;
}

/* MOBILE */

@media (max-width:900px){

  .card-hero{
    grid-template-columns:1fr;
  }

  .card-image{
    height:240px;
  }

}

/* ===== CONTENT ===== */

.card-content{
  padding:0 30px 30px;
}

.section{
  margin-top:30px;
}

.section h3{
  margin-bottom:15px;
  color:#38bdf8;
  font-size:1rem;
  text-transform:uppercase;
  letter-spacing:1px;
}

/* TAGS */

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tag{
  background:#2563eb;
  color:white;
  padding:8px 14px;
  border-radius:999px;
  font-size:.8rem;
}

/* LIST */

.spec-list{
  display:grid;
  gap:10px;
}

.spec-item{
  background:rgba(255,255,255,.04);
  border-radius:12px;
  padding:12px 15px;
  color:#cbd5e1;
}


.variants{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
  margin-top:10px;
}

.variant-card{
  background:#0f172a;
  border:1px solid #334155;
  padding:12px;
  border-radius:12px;
  transition:0.2s;
}

.variant-card:hover{
  transform:scale(1.02);
  border-color:#38bdf8;
}

.card-image-wrap{
  width:100%;
  height:340px;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.main-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ===== GALLERY ===== */

.gallery{
  display:grid;
  grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

  gap:16px;
  margin-top:15px;
}

.gallery img{
  width:100%;
  border-radius:14px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.08);
  cursor:pointer;
  transition:.25s;
}

.gallery img:hover{
  transform:scale(1.02);
}

/* ===== VARIANT LINKS ===== */

.variant-links{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.variant-links a{
  background:#2563eb;
  color:white;
  padding:8px 12px;
  border-radius:10px;
  text-decoration:none;
  font-size:.8rem;
  transition:.2s;
}

.variant-links a:hover{
  background:#38bdf8;
}

.hero-meta{
  color:#94a3b8;
  margin-bottom:12px;
}

.hero-cabinet{
  margin-bottom:20px;
  color:#cbd5e1;
}

.gallery-item{
  background:rgba(255,255,255,.03);
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
}

.gallery-item img{
  width:100%;
  display:block;
}

.gallery-caption{
  padding:10px;
  font-size:.82rem;
  color:#cbd5e1;
}

.variant-brand{
  font-size:1rem;
  font-weight:700;
  margin-bottom:12px;
  color:#38bdf8;
}

.variant-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  font-size:.84rem;
}

.variant-row span{
  color:#94a3b8;
}

.variant-links a{
  display:flex;
  align-items:center;
  gap:8px;
}

.brand-link{
  background:#2563eb;
}

.spec-link{
  background:#0f766e;
}

.spec-link:hover{
  background:#14b8a6;
}
