/* ANTREJKA STORE - Antiquarian & Rare Books Official E-Commerce Stylesheet */
:root {
  --bg-main: #0c121e;
  --bg-card: #151f32;
  --bg-card-alt: #1a273e;
  --border-color: #24344d;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa820a;
  --blue-accent: #38bdf8;
  --green-badge: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 14px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Legal Verification Top Bar */
.gov-banner {
  background: #111d31;
  border-bottom: 1px solid var(--border-color);
  padding: 7px 0;
  font-size: 12px;
  color: #cbd5e1;
}
.gov-banner .flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gov-pill {
  background: #064e3b;
  color: #34d399;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* Header & Navigation */
header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--gold-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}
.brand-badge {
  background: linear-gradient(135deg, #d4af37, #996515);
  color: #0b1120;
  font-weight: 900;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
  font-family: var(--font-serif);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s;
  padding: 6px 10px;
  border-radius: 4px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

/* Hero Section */
.hero {
  padding: 50px 0;
  background: radial-gradient(circle at 50% 30%, #1a2a47 0%, var(--bg-main) 70%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
}
.stat-box strong {
  display: block;
  font-size: 24px;
  color: var(--gold-primary);
  font-family: var(--font-serif);
}
.stat-box span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Grid & Cards */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}
.book-cover {
  height: 240px;
  width: 100%;
  object-fit: cover;
  background: #111d31;
}
.book-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-cat {
  font-size: 11px;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.book-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.book-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.book-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.book-price {
  font-size: 18px;
  font-weight: 800;
  color: #34d399;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.badge-gold { background: rgba(212, 175, 55, 0.2); color: var(--gold-light); border: 1px solid var(--gold-primary); }
.badge-green { background: #064e3b; color: #34d399; }
.badge-blue { background: #0c4a6e; color: #38bdf8; }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}
.data-table th {
  background: #0e1726;
  color: var(--gold-light);
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: #e2e8f0;
  font-size: 13px;
}
.data-table tr:hover td {
  background: var(--bg-card-alt);
}

/* Section styling */
.section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Footer */
footer {
  background: #070b14;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 60px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 14px;
  font-family: var(--font-serif);
}
.footer-col p {
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid #172338;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
