:root {
  --bg: #0f1115;
  --card: #151823;
  --text: #ffffff;
  --muted: #9aa3b2;
  --accent: #8ad0ff;
  --accent-2: #b693ff;
  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(1200px 800px at 10% -10%, #1b1f2b 0%, #0f1115 60%) no-repeat fixed;
  color: var(--text);
}

.container { width: min(1100px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }

.site-header { position: sticky; top: 0; backdrop-filter: saturate(120%) blur(10px); background: rgba(15,17,21,0.6); border-bottom: 1px solid var(--border); z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.3px; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0a0b0f; font-weight: 900; }
.nav a { color: var(--text); text-decoration: none; margin-left: 20px; opacity: 0.9; }
.nav a:hover { opacity: 1; }
.cart-link { position: relative; }
.cart-count { position: absolute; top: -8px; right: -12px; background: var(--accent-2); color: #0b0c10; border-radius: 999px; padding: 2px 6px; font-size: 12px; font-weight: 800; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; padding: 48px 0 20px; }
.hero h1 { font-size: clamp(32px, 4vw, 48px); margin: 8px 0 10px; }
.hero p { color: var(--muted); margin: 0 0 16px; }
.search { display: flex; gap: 10px; }
.search input { flex: 1; background: var(--card); border: 1px solid var(--border); color: var(--text); padding: 12px 14px; border-radius: 12px; }
.search button { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0c10; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer; }

.hero-visual { position: relative; min-height: 220px; }
.glass-card { position: absolute; inset: 12px; background: var(--glass); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.glass-glow { position: absolute; width: 220px; height: 220px; right: -40px; top: -40px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 60%); filter: blur(38px); opacity: 0.5; }

.section-heading { padding: 16px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding-bottom: 40px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } .grid { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.card .cover { aspect-ratio: 3/4; background: #10131a; display: grid; place-items: center; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .content { padding: 12px; display: grid; gap: 6px; }
.card h3 { margin: 2px 0; font-size: 15px; line-height: 1.3; }
.card .author { color: var(--muted); font-size: 13px; }
.card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { cursor: pointer; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--text); padding: 8px 10px; }

.quick-view { width: min(960px, 92vw); border: 1px solid var(--border); border-radius: 18px; background: #0f1219; color: var(--text); }
.qv-body { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; padding: 18px; }
.qv-close { position: absolute; right: 10px; top: 8px; background: transparent; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }
.qv-cover { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.qv-meta { display: grid; gap: 10px; align-content: start; }
.qv-actions { display: flex; align-items: center; gap: 10px; }

.site-footer { border-top: 1px solid var(--border); padding: 22px 0 40px; margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a, .site-footer a:visited { color: var(--text); text-decoration: none; opacity: 0.9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #0f1219; color: var(--text); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  z-index: 9999; opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 0%{ background-position:200% 0 } 100%{ background-position: -200% 0 } }
.card.skeleton .cover { background: #10131a; }
.card.skeleton .content > * { height: 12px; border-radius: 6px; }

