/* ============================================================
   BOOKNOOK STORE THEME — Dedicated Self-Contained Stylesheet
   Design Language: Antique Cream, Library Walnut, Reading Amber, 2:3 Cards
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=DM+Mono:wght@400;500;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  /* Brand Tokens */
  --brand-amber: #D97706;         /* Reading Amber */
  --brand-amber-hover: #B45309;
  --brand-walnut: #5C3D2E;        /* Library Walnut Brown */
  --brand-forest: #2D5A3F;        /* Vintage Green */
  --brand-ink: #1C1917;           /* Ink Black */

  /* Semantic UI Colors */
  --color-bg: #FBF7EE;            /* Antique Bookish Cream */
  --color-surface: #FFFFFF;
  --color-surface-2: #F4ECE0;
  --color-surface-3: #EADDCB;
  --color-text: #292524;
  --color-text-2: #57534E;
  --color-text-3: #8C827A;
  --color-border: #E6DCce;
  --color-border-strong: #D5C7B5;

  /* Typography */
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Geometry - Classic & Refined */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-card: 8px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(41, 37, 36, 0.06);
  --shadow-md: 0 4px 16px rgba(41, 37, 36, 0.08);
  --shadow-lg: 0 12px 32px rgba(41, 37, 36, 0.12);
  --shadow-hover: 0 12px 28px rgba(217, 119, 6, 0.18);

  --max-w: 1320px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary, .btn-amber {
  background: var(--brand-amber);
  color: #FFFFFF;
}

.btn-primary:hover, .btn-amber:hover {
  background: var(--brand-amber-hover);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transform: translateY(-2px);
}

.btn-walnut {
  background: var(--brand-walnut);
  color: #FFFFFF;
}

.btn-walnut:hover {
  background: #452D21;
  box-shadow: 0 4px 14px rgba(92, 61, 46, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--brand-walnut);
  background: transparent;
  color: var(--brand-walnut);
}

.btn-outline:hover {
  background: rgba(92, 61, 46, 0.08);
}

.btn-dark {
  background: var(--brand-ink);
  color: #FFFFFF;
}

.btn-dark:hover {
  background: #000000;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.95rem 2.4rem;
  font-size: 1rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-amber { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge-walnut { background: #F5EFEB; color: var(--brand-walnut); border: 1px solid var(--color-border); }
.badge-forest { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-dark { background: var(--brand-ink); color: #FFFFFF; }

/* Top Announcement Ticker */
.book-ticker {
  background: var(--brand-ink);
  color: #E6DCce;
  font-size: 0.8rem;
  padding: 0.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.02em;
}

.book-ticker strong {
  color: var(--brand-amber);
}

/* Header */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-main {
  padding: 1.15rem 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.9rem;
  font-weight: 700;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}

.brand-logo i {
  color: var(--brand-amber);
}

.brand-logo span {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-walnut);
}

.search-bar-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem 0.35rem 1.25rem;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--brand-amber);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  color: var(--color-text);
}

.search-btn {
  background: var(--brand-walnut);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--brand-amber);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--brand-amber);
}

.action-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--brand-amber);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav Bar */
.nav-bar {
  background: #FFFFFF;
  border-top: 1px solid var(--color-border);
}

.nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-item a {
  display: block;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-2);
  transition: var(--transition);
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--brand-walnut);
  border-bottom: 2px solid var(--brand-amber);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #F4ECE0 0%, #EADDCB 100%);
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: var(--brand-walnut);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--brand-ink);
  margin-bottom: 1.25rem;
}

.hero-title span {
  font-style: italic;
  color: var(--brand-amber);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--color-text-2);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  max-height: 480px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

/* Genre Explorer Bar */
.spec-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.spec-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.spec-pill {
  padding: 0.45rem 1.1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-2);
  cursor: pointer;
  transition: var(--transition);
}

.spec-pill.active, .spec-pill:hover {
  background: var(--brand-walnut);
  color: #FFFFFF;
  border-color: var(--brand-walnut);
}

/* Categories Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  border-color: var(--brand-amber);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(217, 119, 6, 0.08);
  color: var(--brand-amber);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background: var(--brand-amber);
  color: #FFFFFF;
}

.category-name {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 0.25rem;
}

.category-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-3);
}

/* Product Cards (2:3 Portrait Book Cover Ratio) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  border-color: var(--brand-amber);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--color-surface-2);
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

.product-badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  color: var(--color-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  background: #FEE2E2;
  color: #EF4444;
  border-color: #FCA5A5;
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.author-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-walnut);
  margin-bottom: 0.2rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.35;
  color: var(--brand-ink);
  margin-bottom: 0.35rem;
}

.isbn-strip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-2);
  background: var(--color-bg);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  display: block;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--brand-ink);
}

.price-old {
  font-size: 0.8rem;
  color: var(--color-text-3);
  text-decoration: line-through;
}

.add-cart-btn {
  background: var(--brand-amber);
  color: #FFFFFF;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.add-cart-btn:hover {
  background: var(--brand-amber-hover);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* Trust Strip */
.trust-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.trust-icon {
  font-size: 1.75rem;
  color: var(--brand-amber);
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 0.15rem;
}

.trust-text p {
  font-size: 0.8rem;
  color: var(--color-text-2);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-2);
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--brand-ink);
  color: #BDB7AB;
  margin-top: auto;
  padding-top: 4.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #BDB7AB;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--brand-amber);
  padding-left: 4px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1rem 0 1.25rem;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--brand-amber);
}

.footer-newsletter p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: #FFF;
  outline: none;
  font-size: 0.85rem;
}

.newsletter-input:focus {
  border-color: var(--brand-amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.8rem;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.cart-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  color: var(--color-text-2);
  font-size: 1.25rem;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.drawer-item-img {
  width: 55px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.drawer-item-info {
  flex: 1;
}

.drawer-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--brand-ink);
  margin-bottom: 0.2rem;
}

.drawer-item-price {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--brand-amber);
  margin-bottom: 0.4rem;
}

.drawer-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: fit-content;
  background: var(--color-bg);
}

.drawer-qty-stepper button {
  padding: 0.15rem 0.5rem;
  font-weight: 700;
}

.drawer-qty-stepper span {
  padding: 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.drawer-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--brand-ink);
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid var(--brand-amber);
  animation: slideInToast 0.3s ease forwards;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Catalog Filter Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.filter-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  position: sticky;
  top: 85px;
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-2);
  cursor: pointer;
}

.filter-item input[type="checkbox"] {
  accent-color: var(--brand-amber);
}

/* PDP Layout */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.pdp-gallery {
  position: sticky;
  top: 85px;
}

.pdp-main-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  object-fit: cover;
  margin-bottom: 1rem;
}

.pdp-thumb-row {
  display: flex;
  gap: 0.75rem;
}

.pdp-thumb {
  width: 65px;
  height: 95px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  cursor: pointer;
  object-fit: cover;
}

.pdp-thumb.active {
  border-color: var(--brand-amber);
}

.pdp-title {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.pdp-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1.25rem 0;
}

.pdp-price {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--brand-amber);
}

/* Meta Specs Table */
.book-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 1.5rem 0;
}

.book-spec-table tr:nth-child(even) {
  background: var(--color-bg);
}

.book-spec-table td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.book-spec-table td.spec-key {
  font-weight: 600;
  color: var(--color-text-2);
  width: 35%;
  font-family: var(--font-mono);
}

/* Forms & Tables */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-text-2);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-text);
  background: #FFFFFF;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--brand-amber);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--color-surface-2);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-serif);
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .pdp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.8rem; }
  .header-main .container { flex-wrap: wrap; }
  .search-bar-wrap { order: 3; max-width: 100%; width: 100%; }
  .nav-bar { overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
