/* styles.css - VocabSutra Editorial Design System */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --orange: #ea580c;
  --orange-hover: #c2410c;
  --orange-subtle: #fff7ed;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 10px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

body {
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 65px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

.brand span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links .bundle-link {
  color: var(--orange);
  font-weight: 700;
}

.cart-button {
  background: var(--navy);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}

.cart-badge {
  background: var(--orange);
  padding: 2px 7px;
  border-radius: 50%;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Hero & Exam Badges */
.page-hero {
  padding: 45px 0 30px;
  text-align: center;
  background: white;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto;
}

.exam-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.badge {
  background: #f1f5f9;
  color: var(--navy-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Dynamic Pricing Display (With Strikethrough) */
.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}

.price-crossed {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-large {
  font-size: 2rem;
  font-weight: 800;
}

.price-large-crossed {
  font-size: 1.3rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Buttons */
.btn-primary {
  background: var(--orange);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--orange-hover);
}

.btn-secondary {
  background: var(--navy);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 0.85rem;
  text-align: center;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 15px;
  margin-top: auto;
}

/* Single Product Detail Page Card */
.product-detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 35px;
  margin: 40px 0;
}

.product-detail-card h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--navy);
}

.detail-list {
  margin: 0 0 30px 20px;
  line-height: 1.9;
  color: #334155;
}

.buy-action-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 15px;
}

/* Bundle Box */
.bundle-box {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 35px;
  margin: 40px 0;
}

.bundle-box h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 15px;
}

/* Policy Notice */
.policy-card {
  background: var(--orange-subtle);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 20px;
  margin: 30px 0;
  font-size: 0.9rem;
  color: #7c2d12;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: white;
  z-index: 101;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-drawer {
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.remove-btn {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.btn-checkout {
  width: 100%;
  background: var(--orange);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 35px 0;
  text-align: center;
  margin-top: 60px;
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .cart-drawer { max-width: 100%; }
}
/* --- Brand Logo & Cover Artwork Styles --- */

/* Navbar Brand Logo */
.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* Card Cover Image Wrapper */
.card-cover-wrapper {
  background: #090e17;
  height: 200px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: -24px -24px 18px -24px;
  position: relative;
}

/* 3D Realistic Book Cover Shadow */
.book-card-cover {
  width: 120px;
  height: 170px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}

.card:hover .book-card-cover {
  transform: scale(1.04) rotate(-1deg);
}

/* Fallback badge if image is not uploaded yet */
.cover-placeholder {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 10px;
}