:root {
  --primary: #1c238f;
  --accent: #ff6b00;
  --surface: #ffffff;
  --bg: #f2f4f8;
  --text: #1e2335;
  --muted: #6a7285;
  --line: #e4e8f0;
}
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
body, p, h1, h2, h3, h4, h5, h6, span, small, div, label, td, th, a { color: inherit; }
.navbar { position: sticky; top: 0; z-index: 1080; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { color: var(--primary) !important; font-size: 2rem; font-weight: 800; }
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.hero { background: radial-gradient(circle at top right, #2932af, #121a75 68%); color: #fff; border-radius: 16px; padding: 2rem; }
.hero-badge { background: var(--accent); border-radius: 999px; padding: .35rem .8rem; font-weight: 600; display: inline-block; }
.price { color: var(--primary); font-weight: 800; font-size: 1.45rem; }
.tag { background: var(--accent); color: #fff; padding: .15rem .5rem; border-radius: 7px; font-size: .7rem; font-weight: 700; }
.product-card img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; }
.search-wrap { position: relative; min-width: 320px; }
.suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 1200; display: none; }
.toast-stack { position: fixed; right: 14px; top: 82px; z-index: 1300; }
.toast-msg { background: #fff; color:#111827; border-left: 4px solid #22c55e; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,.12); padding: .8rem 1rem; margin-bottom: .5rem; opacity: 0; transform: translateY(-8px); transition: .2s; }
.toast-msg.warn { border-left-color: #f97316; }
.toast-msg.show { opacity: 1; transform: translateY(0); }
.countdown { background: var(--primary); color: #fff; border-radius: 8px; padding: .35rem .7rem; font-weight: 700; letter-spacing: 1px; }
.skeleton { height: 280px; border-radius: 12px; background: linear-gradient(90deg,#edf1f7 25%,#e3e8f2 37%,#edf1f7 63%); background-size: 400% 100%; animation: pulse 1.3s infinite linear; }
@keyframes pulse { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.btn-accent { background: var(--accent); color: #fff; }
.mobile-bottom { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 1080; }
.mobile-bottom a { flex: 1; text-align: center; padding: .55rem .35rem; text-decoration: none; color: var(--muted); font-size: .78rem; }
.mobile-bottom a.active { color: var(--primary); font-weight: 700; }
.dark-mode {
  --surface: #111827;
  --bg: #030712;
  --text: #f9fafb;
  --muted: #d1d5db;
  --line: #374151;
}
.dark-mode .navbar,
.dark-mode .footer,
.dark-mode .card,
.dark-mode .list-group-item,
.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode .table,
.dark-mode .modal-content { background: var(--surface) !important; color: var(--text) !important; border-color: var(--line) !important; }
.dark-mode .text-muted,
.dark-mode small,
.dark-mode label,
.dark-mode td,
.dark-mode th,
.dark-mode p,
.dark-mode span,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6,
.dark-mode a { color: var(--text) !important; }
.dark-mode .btn-light { background: #1f2937; color: #fff; border-color: #374151; }
.dark-mode .price { color: #93c5fd !important; }
@media (max-width: 992px) {
  .desktop-only { display: none !important; }
  .search-wrap { min-width: 200px; width: 100%; }
}
@media (max-width: 768px) {
  .brand { font-size: 1.75rem; }
  .hero { padding: 1.2rem; }
  .container { padding-bottom: 72px; }
  .mobile-bottom { display: flex; }
  .product-card img { height: 150px; }
  .top-gap-mobile { margin-top: 1rem; }
}
