:root {
  --bg: #0a0c14;
  --card: #121520;
  --muted: #9aa3b2;
  --text: #e8ecf1;
  --brand: #2f7cf6;
  --brand-2: #00c2a8;
  --border: #1f2430;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: #2a2a2a;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; position: relative; }
.section-header h2, .section-header h1 { margin: 0; }
.section-header h2::after { content: ""; display: block; height: 3px; width: 64px; margin-top: 10px; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 2px; }
.link { color: var(--brand); }

/* Header */
.topbar { 
  border-bottom: 1px solid var(--border); 
  background: rgba(18,21,32,0.85); 
  backdrop-filter: blur(12px); 
  position: sticky; 
  top: 0; 
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand .logo { width: 28px; height: 28px; background: url('../assets/logo.jpg') center/contain no-repeat; border-radius: 6px; }
.nav { display: flex; gap: 16px; }
.nav a { position: relative; color: var(--muted); padding-bottom: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: transform .25s ease; }
.nav a.active, .nav a:hover { color: var(--text); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }

/* Banner */
.banner { 
  position: relative; 
  background: 
    url('../assets/banner.jpg') center/cover,
    linear-gradient(135deg, #1a2140 0%, #141d36 50%, #0d1222 100%);
  color: #fff;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at center, rgba(99, 102, 241, 0.2) 0%, transparent 70%),
    linear-gradient(135deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}
.banner::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.35)); 
  z-index: 2;
}
.banner-inner { position: relative; z-index: 3; padding: 88px 16px; text-align: center; }
.banner h1 { font-size: 36px; margin: 0 0 8px; }
.banner p { color: #cbd5e1; margin: 0 0 16px; }

.btn { 
  display: inline-block; 
  padding: 12px 20px; 
  border-radius: 8px; 
  border: 1px solid var(--border); 
  background: #161a28; 
  color: var(--text);
  transition: all .3s ease;
  font-weight: 500;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-primary { 
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  border: none;
  box-shadow: 0 4px 15px rgba(47, 124, 246, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(47, 124, 246, 0.4);
}

/* Grids */
.grid { display: grid; gap: 16px; }
.categories-grid { grid-template-columns: repeat(2, 1fr); }
.products-grid { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  overflow: hidden; 
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover { 
  transform: translateY(-4px); 
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.3),
    0 0 0 1px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
}
.card:hover::before {
  opacity: 1;
}
.card .thumb { aspect-ratio: 4/3; background: #0f1320; display: flex; align-items: center; justify-content: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 12px; }
.card .title { margin: 0 0 6px; font-size: 16px; }
.card .meta { color: var(--muted); font-size: 12px; }

/* Category badge */
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; font-size: 12px; color: #fff; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }

/* Filters */
.filters { display: flex; gap: 12px; margin: 12px 0 16px; }
.filters input, .filters select { padding: 10px 12px; background: #111522; border: 1px solid var(--border); color: var(--text); border-radius: 8px; }

/* Product Detail */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 24px; }
.product-detail .gallery { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.product-detail .info { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.price { font-size: 22px; font-weight: 700; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
ul#product-specs { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 600px) { ul#product-specs { grid-template-columns: 1fr 1fr; } }
ul#product-specs li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #0f1423; color: var(--muted); }

/* Typography tweaks */
h1 { font-size: 28px; line-height: 1.2; letter-spacing: 0.2px; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: 0.2px; }
@media (min-width: 900px) { h1 { font-size: 34px; } h2 { font-size: 24px; } }
body { letter-spacing: 0.1px; }

/* Focus styles */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

@media (min-width: 900px) {
  .product-detail { grid-template-columns: 1.1fr 1fr; }
}

/* Footer */
footer .footer { 
  border-top: 1px solid var(--border); 
  margin-top: 32px; 
  background: 
    linear-gradient(135deg, rgba(18,21,32,0.8) 0%, rgba(10,12,20,0.9) 100%);
  backdrop-filter: blur(8px);
}
.footer .container { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 24px 16px; }
.footer .brandline { display: flex; align-items: center; gap: 10px; }
.footer .brandline .logo { width: 20px; height: 20px; background: url('../assets/logo.jpg') center/contain no-repeat; border-radius: 4px; }
.footer .muted { color: var(--muted); font-size: 14px; }

@media (min-width: 768px) {
  .footer .container { grid-template-columns: 2fr 1fr; }
}




