/* Modern CSS Reset & Theme Variables */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.05);
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --transition: all 0.3s ease;
}
[data-theme="dark"] {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --glass-bg: rgba(30,41,59,0.7);
  --glass-border: rgba(51,65,85,0.5);
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
/* ========== NAVBAR ========== */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 100;
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700;
  color: var(--primary); text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  text-decoration: none; color: var(--text);
  font-weight: 500; transition: color 0.2s;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); }
.nav-icons { display: flex; gap: 12px; align-items: center; }
.theme-toggle, .menu-toggle {
  background: none; border: none; font-size: 1.2rem; cursor: pointer;
  color: var(--text); padding: 6px;
  border-radius: 8px; transition: var(--transition);
}
.theme-toggle:hover, .menu-toggle:hover { background: var(--border); }
.badge {
  background: var(--danger); color: white;
  border-radius: 20px; padding: 2px 6px; font-size: 0.65rem;
  position: relative; top: -8px; left: -4px;
}
/* Mobile Menu */
.menu-toggle { display: none; }
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); flex-direction: column; padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
}
/* ========== FOOTER ========== */
.site-footer {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 40px 0 20px; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px; margin-bottom: 20px;
}
.footer-col h4 { margin-bottom: 12px; font-family: var(--font-display); font-weight: 600; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; margin: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.social-icons { display: flex; gap: 12px; }
.social-icons a { font-size: 1.2rem; color: var(--text-muted); transition: color 0.2s; }
.social-icons a:hover { color: var(--primary); }
.footer-bottom { text-align: center; color: var(--text-muted); padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.9rem; }
/* ========== BUTTONS ========== */
.btn {
  display: inline-block; padding: 10px 24px; border-radius: 40px;
  font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition); font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99,102,241,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
/* ========== CARDS ========== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0 40px;
}
.product-card { position: relative; overflow: hidden; }
.product-card .product-img {
  position: relative;
  height: 220px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.product-card .product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.platform-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.7); color: white;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.wishlist-btn {
  position: absolute; top: 10px; right: 10px;
  background: var(--card); border-radius: 50%;
  width: 34px; height: 34px; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  transition: var(--transition);
}
.wishlist-btn:hover { background: #fee2e2; color: var(--danger); }
.product-info { padding: 14px; }
.product-info .brand { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.product-info .name {
  font-weight: 600; font-size: 1rem; margin: 6px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.old-price { text-decoration: line-through; font-size: 0.85rem; color: var(--text-muted); }
.price { font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.discount { background: var(--success); color: white; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
/* ========== FILTERS ========== */
.filters-section { margin: 30px 0 20px; }
.platform-filters, .category-filters {
  display: flex; flex-wrap: nowrap; overflow-x: auto;
  gap: 12px; margin-bottom: 16px; padding-bottom: 8px;
}
.filter-btn {
  flex: 0 0 auto;
  padding: 10px 24px;
  border-radius: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 0.9rem;
}
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-btn:hover { border-color: var(--primary); }
/* ========== HERO ========== */
.hero { padding: 60px 0; text-align: center; }
.hero h1 { font-family: var(--font-display); font-size: 3rem; font-weight: 700; margin-bottom: 16px; }
.hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }
.search-wrapper { max-width: 600px; margin: 0 auto; }
.search-wrapper input {
  width: 100%; padding: 14px 24px; border-radius: 60px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); font-size: 1rem;
  outline: none; transition: var(--transition);
}
.search-wrapper input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.2); }
.trending-searches { margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.trending-searches a { color: var(--primary); margin: 0 4px; cursor: pointer; }
.trending-searches a:hover { text-decoration: underline; }
/* ========== PAGE CONTENT (About, Privacy etc.) ========== */
.page-content { padding: 60px 0; }
.page-content h1 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 20px; }
.page-content h2 { font-size: 1.5rem; margin: 30px 0 10px; }
.page-content p, .page-content li { color: var(--text-muted); margin-bottom: 12px; font-size: 1rem; line-height: 1.8; }
/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--success); color: white;
  padding: 12px 20px; border-radius: 40px;
  z-index: 1100; font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}
.toast-error { background: var(--danger); }
@keyframes slideUp { from { transform: translateY(20px); opacity:0; } to { transform: translateY(0); opacity:1; } }
/* ========== CART SPECIFIC ========== */
.cart-item {
  background: var(--card); border-radius: 16px; padding: 20px;
  border: 1px solid var(--border); margin-bottom: 16px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cart-item img { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; background: var(--bg); }
.cart-item .item-details { flex: 1; }
.cart-item .item-name { font-weight: 600; font-size: 1.1rem; }
.cart-item .item-price { font-weight: 700; color: var(--primary); }
.remove-btn {
  background: var(--danger); color: white; border: none;
  padding: 8px 16px; border-radius: 20px; cursor: pointer; font-weight: 500;
}
.empty-cart { text-align: center; padding: 50px; color: var(--text-muted); font-size: 1.2rem; }
.cart-summary { background: var(--card); border-radius: 16px; padding: 24px; border: 1px solid var(--border); margin-top: 24px; }
.checkout-btn { width: 100%; margin-top: 16px; }
/* ========== ADMIN PANEL ========== */
.admin-container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.login-container { max-width: 400px; margin: 80px auto; text-align: center; }
/* ... (admin specific styles) */
