:root {
  --primary: #0b5ed7;
  --primary-dark: #084298;
  --bg: #f6f9ff;
  --text: #162033;
  --muted: #64748b;
  --white: #ffffff;
  --border: #dbe4f0;
  --shadow: 0 18px 40px rgba(11, 94, 215, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none; }
.section { padding: 72px 0; }
.alt-bg { background: var(--bg); }
.eyebrow {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: 10px;
}
h1, h2, h3, h4, p { margin-top: 0; }
p { color: var(--muted); line-height: 1.7; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { border-color: var(--border); background: var(--white); }
.btn-full { width: 100%; }
.text-link { color: var(--primary); font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219,228,240,.7);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo strong { display: block; font-size: 1rem; }
.logo small { color: var(--muted); }
.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #63a4ff);
}
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--muted); font-weight: 600; }
.main-nav a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .cart-btn, .filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}
.cart-btn span {
  margin-left: 6px;
  background: var(--primary);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .82rem;
}
.search-bar { padding: 0 0 14px; }
.search-bar input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}
.hero {
  padding: 80px 0 48px;
  background:
    radial-gradient(circle at top right, rgba(99,164,255,.15), transparent 30%),
    linear-gradient(180deg, #f8fbff, #ffffff);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  max-width: 12ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.hero-points {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
}
.hero-card { display: grid; gap: 18px; }
.deal-card, .stat-box, .category-card, .product-card, .review-card, .cta-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.deal-card { padding: 28px; }
.deal-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11,94,215,.12);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat-box { padding: 20px; }
.stat-box strong { display: block; font-size: 1.3rem; }
.stat-box span { color: var(--muted); }
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  color: var(--muted);
}
.section-head { margin-bottom: 28px; }
.row-between {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.category-grid, .product-grid, .review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card, .review-card { padding: 24px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-media {
  min-height: 210px;
  padding: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef5ff, #f9fbff);
}
.device-shape {
  width: 120px;
  height: 180px;
  border-radius: 24px;
  background: linear-gradient(135deg, #11213d, #3a5ba0);
  position: relative;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.08);
}
.device-shape.laptop {
  width: 180px;
  height: 110px;
  border-radius: 14px;
}
.device-shape.tablet {
  width: 145px;
  height: 190px;
  border-radius: 18px;
}
.device-shape.accessory {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.badge {
  background: rgba(11,94,215,.1);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}
.price { font-size: 1.2rem; font-weight: 800; }
.product-actions { display: flex; gap: 10px; margin-top: auto; }
.product-actions .btn { flex: 1; }
.two-col {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-list article {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.cta-box {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer {
  background: #0d172a;
  color: #d7e3ff;
  padding: 60px 0 18px;
}
.site-footer p, .site-footer a { color: #b9c8e6; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
}
.footer-grid a { display: block; margin: 10px 0; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--white);
  z-index: 60;
  transition: right .28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0,0,0,.15);
}
.cart-drawer.open { right: 0; }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 50;
}
.cart-header, .cart-footer { padding: 20px; border-bottom: 1px solid var(--border); }
.cart-footer { border-bottom: 0; border-top: 1px solid var(--border); margin-top: auto; }
.cart-items { padding: 20px; overflow: auto; display: grid; gap: 14px; }
.cart-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
}
.cart-line { display: flex; justify-content: space-between; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; }
.muted { color: var(--muted); }
.empty-note { text-align: center; padding: 32px 16px; color: var(--muted); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .category-grid, .product-grid, .review-grid, .feature-list, .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .category-grid, .product-grid, .review-grid, .feature-list, .trust-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-copy h1 { max-width: none; }
  .hero-actions, .product-actions, .cta-box { flex-direction: column; align-items: stretch; }
}
