:root {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --accent: #B45309;
  --accent-gold: #D97706;
  --accent-light: #FDE68A;
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  --border-light: #E2E8F0;
  --border-strong: #CBD5E1;
  --success: #059669;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}
.announcement-bar {
  background: #0F172A;
  color: #F8FAFC;
  font-size: 13px;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
}
.announcement-bar .badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-right: 8px;
}
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0F172A 0%, #B45309 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.brand-text h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary);
}
.brand-text p {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}
nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--accent);
  font-weight: 600;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px;
}
.hero {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 60px 24px 50px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 28px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  background: white;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.book-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.book-card-header {
  height: 180px;
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
  position: relative;
}
.book-card-header.gold { background: linear-gradient(135deg, #78350F 0%, #B45309 100%); }
.book-card-header.emerald { background: linear-gradient(135deg, #064E3B 0%, #059669 100%); }
.book-card-header.indigo { background: linear-gradient(135deg, #312E81 0%, #4338CA 100%); }
.book-card-header .book-title-overlay {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.book-card-header .book-author-overlay {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.book-card-header .edition-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #FDE68A;
  font-weight: 600;
}
.book-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.book-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.book-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.book-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}
.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}
.book-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
}
.book-stock {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}
.btn-buy {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-buy:hover { background: var(--accent); }
.stats-banner {
  background: #0F172A;
  color: white;
  padding: 44px 24px;
  margin-top: 50px;
  border-radius: 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: center;
}
.stat-number {
  font-size: 34px;
  font-weight: 800;
  color: #F59E0B;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 500;
}
.site-footer {
  background: #0B1120;
  color: #94A3B8;
  padding: 50px 48px 24px;
  border-top: 1px solid #1E293B;
  margin-top: 70px;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col p, .footer-col ul {
  font-size: 13px;
  line-height: 1.8;
  list-style: none;
}
.footer-col a {
  color: #94A3B8;
  text-decoration: none;
}
.footer-col a:hover { color: white; }
.legal-box {
  background: #111827;
  border: 1px solid #1F2937;
  padding: 14px;
  border-radius: 8px;
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.6;
}
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.review-box {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.review-stars {
  color: #10B981;
  font-size: 16px;
  letter-spacing: 2px;
}
.review-author {
  font-weight: 700;
  color: var(--primary);
}
.review-meta {
  font-size: 12px;
  color: var(--text-dim);
}
.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-size: 12px;
  font-weight: 600;
}
.table-box {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  background: #F8FAFC;
  color: var(--primary);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.status-delivered { background: #ECFDF5; color: #059669; }
.info-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.info-item {
  background: #F8FAFC;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.info-item-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.info-item-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}