/* =============================================
   Knjigoslav — Design System
   Literary/editorial · knjigoslav.eu
   ============================================= */

/* ---- Paleta ---- */
:root {
  --bg: #f2ecdf;
  --bg-2: #e9e1cf;
  --ink: #1a1713;
  --ink-2: #4a4137;
  --muted: #857a68;
  --line: #d9cfb8;
  --accent: #6b1f24;
  --accent-ink: #f8efdc;
  --card: #fbf7ec;
  --highlight: #e7c469;
  --radius: 12px;
}
html[data-palette="ink"] {
  --bg: #f6f4ef; --bg-2: #ece9e0; --ink: #0e0e0c; --ink-2: #3a3934;
  --muted: #7a7870; --line: #d7d3c8; --accent: #0a0a0a; --accent-ink: #f6f4ef;
  --card: #ffffff; --highlight: #ffd864;
}
html[data-palette="night"] {
  --bg: #14130f; --bg-2: #1c1a15; --ink: #f1ead8; --ink-2: #c6bda4;
  --muted: #8a8373; --line: #2e2a21; --accent: #e4a24a; --accent-ink: #14130f;
  --card: #1c1a15; --highlight: #e4a24a;
}
html[data-palette="blueink"] {
  --bg: #eee7d3; --bg-2: #e4dcc4; --ink: #101a3a; --ink-2: #2e3a60;
  --muted: #6a6f85; --line: #cfc6ad; --accent: #1a2c66; --accent-ink: #eee7d3;
  --card: #f7f1dc; --highlight: #d86c3e;
}
html[data-palette="forest"] {
  --bg: #ece5d0; --bg-2: #e1d9bf; --ink: #1b1f15; --ink-2: #3a4130;
  --muted: #7a7a62; --line: #cfc6a6; --accent: #2d4a2a; --accent-ink: #ece5d0;
  --card: #f5efd9; --highlight: #c7802a;
}

/* ---- Tipografija i baza ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; height: auto; }

.display { font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -0.01em; line-height: 0.95; }
html[data-display="fraunces"] .display { font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -0.02em; }
html[data-display="sans"] .display { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; }

.serif { font-family: 'Fraunces', serif; }
.mono  { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.02em; }

/* ---- Animacije ---- */
@keyframes fadeIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse   { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* =============================================
   NAV
   ============================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto; padding: 14px 32px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 28px;
}
.logo {
  display: flex; align-items: baseline; gap: 6px;
  cursor: pointer; user-select: none;
}
.logo-mark {
  font-family: 'Instrument Serif', serif; font-size: 32px;
  line-height: 1; font-style: italic; color: var(--accent); position: relative; top: 2px;
}
.logo-word {
  font-family: 'Instrument Serif', serif; font-size: 22px;
  letter-spacing: -0.01em; color: var(--ink);
}
html[data-display="sans"]     .logo-word { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.03em; }
html[data-display="fraunces"] .logo-word { font-family: 'Fraunces', serif; font-weight: 600; }

.search-wrap { flex: 1; max-width: 520px; position: relative; }
.search-input {
  width: 100%; padding: 10px 14px 10px 38px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 13px;
  font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  border-color: var(--ink-2);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 12%, transparent);
}
.search-input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; opacity: 0.6; pointer-events: none;
}

.nav-right { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s; position: relative; flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-avatar {
  font-family: 'Instrument Serif', serif; font-size: 18px;
  background: var(--accent); color: var(--accent-ink);
}
.nav-avatar:hover { background: var(--accent); filter: brightness(1.1); }

.cart-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 600; width: 16px; height: 16px;
  border-radius: 50%; display: grid; place-items: center;
  font-family: 'Inter', sans-serif; line-height: 1;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 20px 50px -10px rgba(0,0,0,0.2);
  width: 200px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(-8px); z-index: 100;
}
.nav-dropdown-menu.open {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-inner { padding: 8px; }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 13px;
  color: var(--ink-2); transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover { background: var(--bg-2); color: var(--ink); }
.nav-dropdown-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.nav-dropdown-all { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 12px; }

/* =============================================
   WRAPPER
   ============================================= */
.wrapper { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 40px 0 80px;
  position: relative; overflow: hidden; min-height: 620px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s ease-in-out infinite;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-title { font-size: clamp(56px, 9vw, 132px); font-weight: 400; color: var(--ink); margin-bottom: 24px; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc { font-size: 17px; color: var(--ink-2); max-width: 440px; margin-bottom: 36px; line-height: 1.6; }
.hero-meta { display: flex; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.hero-meta-value { font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--ink); }

.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--accent-ink);
  padding: 16px 28px; border-radius: 999px; font-weight: 500; font-size: 14px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -10px color-mix(in oklab, var(--accent) 50%, transparent);
}
.hero-cta-2 {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 20px;
  font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--ink-2);
  margin-left: 12px; transition: gap 0.25s;
}
.hero-cta-2:hover { gap: 14px; }

/* Book visual */
.hero-book {
  position: relative; height: 520px;
  display: flex; align-items: center; justify-content: center; perspective: 1600px;
}
.hero-book-wrap { position: relative; width: 300px; height: 440px; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.hero-book-cover {
  position: absolute; inset: 0;
  border-radius: 3px 8px 8px 3px;
  box-shadow: -3px 0 0 rgba(0,0,0,0.15), -6px 0 0 rgba(0,0,0,0.08), 0 30px 80px -20px rgba(0,0,0,0.5), 0 50px 100px -30px rgba(0,0,0,0.3);
  padding: 40px 28px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #f1e6d0; overflow: hidden;
}
.hero-book-cover::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 20px;
  background: linear-gradient(90deg, rgba(0,0,0,0.3), transparent);
}
.hero-book-cover::after {
  content: ''; position: absolute; left: 14px; top: 14px; right: 14px; bottom: 14px;
  border: 1px solid rgba(241,230,208,0.3); border-radius: 2px; pointer-events: none;
}
.hero-book-flourish { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 14px; opacity: 0.6; }
.hero-book-title { font-family: 'Instrument Serif', serif; font-size: 42px; line-height: 1; letter-spacing: -0.01em; }
.hero-book-author { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.hero-book-ornament { width: 40px; height: 1px; background: currentColor; opacity: 0.4; }

.hero-floating {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 18px; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
  font-size: 12px; display: flex; align-items: center; gap: 10px;
  animation: float 4s ease-in-out infinite;
}
.hero-floating-1 { top: 60px; left: 0; }
.hero-floating-2 { bottom: 40px; right: -20px; animation-delay: -2s; }
.stars { color: var(--accent); letter-spacing: 1px; }

/* =============================================
   SEKCIJE
   ============================================= */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 40px; }
.section-eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.section-title { font-size: clamp(36px, 5vw, 68px); font-weight: 400; max-width: 700px; }
.section-title em { font-style: italic; color: var(--accent); }
.section-link {
  font-size: 13px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid var(--line);
  transition: gap 0.25s, border-color 0.2s; white-space: nowrap;
}
.section-link:hover { gap: 12px; border-color: var(--ink); }

/* =============================================
   KOLEKCIJE
   ============================================= */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.collection {
  position: relative; height: 380px; border-radius: 16px; overflow: hidden;
  padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.collection:hover { transform: translateY(-6px); }
.collection-bg { position: absolute; inset: 0; z-index: 0; }
.collection-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 6px);
  opacity: 0.6;
}
.collection-content { position: relative; z-index: 2; color: #fff; }
.collection-tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
  color: rgba(255,255,255,0.9); margin-bottom: 16px;
}
.collection-title { font-family: 'Instrument Serif', serif; font-size: 44px; line-height: 1; margin-bottom: 12px; max-width: 80%; }
html[data-display="sans"]     .collection-title { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.03em; }
html[data-display="fraunces"] .collection-title { font-family: 'Fraunces', serif; font-weight: 500; }
.collection-count { font-size: 12px; opacity: 0.7; }
.collection-books { position: absolute; bottom: -30px; right: 20px; display: flex; gap: 6px; z-index: 1; }
.collection-book-mini {
  width: 60px; height: 90px; background: rgba(255,255,255,0.9);
  border-radius: 2px 4px 4px 2px;
  box-shadow: -2px 0 0 rgba(0,0,0,0.1), 0 10px 30px -5px rgba(0,0,0,0.4);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px));
  transition: transform 0.5s;
}
.collection:hover .collection-book-mini { transform: rotate(var(--r, 0deg)) translateY(-20px); }
.collection-book-mini:nth-child(1) { --r: -8deg; --y: 4px; background: #e7c469; }
.collection-book-mini:nth-child(2) { --r: -2deg;           background: #d85c3e; }
.collection-book-mini:nth-child(3) { --r: 4deg;  --y: 2px; background: #6b1f24; }
.collection-book-mini:nth-child(4) { --r: 10deg; --y: 6px; background: #1a2c66; }

/* =============================================
   GRID KNJIGA
   ============================================= */
.books-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 24px; }
html[data-grid="list"] .books-grid { grid-template-columns: 1fr; gap: 20px; }
html[data-grid="list"] .book-card {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 28px; align-items: center; padding: 20px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
html[data-grid="list"] .book-cover-wrap { width: 120px; height: 180px; padding-top: 0; }
html[data-grid="list"] .book-cover { position: static; width: 100%; height: 100%; }
html[data-grid="list"] .book-meta { text-align: left; }
html[data-grid="list"] .book-price { margin-left: auto; }

.book-card { cursor: pointer; position: relative; }
.book-cover-wrap { position: relative; width: 100%; padding-top: 150%; margin-bottom: 14px; perspective: 800px; }
.book-cover {
  position: absolute; inset: 0;
  border-radius: 2px 6px 6px 2px;
  box-shadow: -2px 0 0 rgba(0,0,0,0.1), 0 15px 30px -10px rgba(0,0,0,0.2), 0 30px 60px -20px rgba(0,0,0,0.1);
  padding: 18px 14px 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; overflow: hidden;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s;
}
.book-card:hover .book-cover {
  transform: translateY(-8px) rotateY(-4deg);
  box-shadow: -2px 0 0 rgba(0,0,0,0.1), 0 25px 50px -10px rgba(0,0,0,0.3), 0 50px 80px -20px rgba(0,0,0,0.15);
}
.book-cover::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,0.25), transparent);
}
.book-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-cover-title { font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1; letter-spacing: -0.01em; position: relative; z-index: 1; }
.book-cover-author { font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; position: relative; z-index: 1; }
.book-cover-ornament { width: 24px; height: 1px; background: currentColor; opacity: 0.4; margin-bottom: 6px; position: relative; z-index: 1; }

.book-meta { text-align: left; }
.book-genre { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.book-title { font-family: 'Instrument Serif', serif; font-size: 20px; line-height: 1.1; margin-bottom: 4px; color: var(--ink); }
html[data-display="sans"]     .book-title { font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.02em; }
html[data-display="fraunces"] .book-title { font-family: 'Fraunces', serif; font-weight: 500; }
.book-author { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.book-publisher { font-style: italic; opacity: 0.85; }
.book-price { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink); font-weight: 500; }
.book-price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.book-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--highlight); color: var(--ink);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 3px 8px; border-radius: 4px; z-index: 3;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.book-wishlist {
  position: absolute; top: 10px; left: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s; z-index: 3;
}
.book-card:hover .book-wishlist { opacity: 1; transform: translateY(0); }
.book-wishlist.active { opacity: 1; transform: translateY(0); background: var(--accent); color: var(--accent-ink); }
.book-wishlist svg { width: 14px; height: 14px; }

/* Genre filter chips */
.genre-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 32px; }
.genre-chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: all 0.2s; background: transparent;
}
.genre-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.genre-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* =============================================
   EDITOR + COMMUNITY
   ============================================= */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.editors-note { padding: 48px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); position: relative; }
.quote-mark { font-family: 'Instrument Serif', serif; font-size: 120px; line-height: 0.6; color: var(--accent); margin-bottom: -20px; }
.editors-quote { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1.3; color: var(--ink); margin-bottom: 28px; }
html[data-display="sans"]     .editors-quote { font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: -0.02em; }
html[data-display="fraunces"] .editors-quote { font-family: 'Fraunces', serif; }
.editors-byline { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--highlight)); display: grid; place-items: center; color: var(--accent-ink); font-family: 'Instrument Serif', serif; font-size: 18px; }
.editors-name { font-weight: 500; }
.editors-role { color: var(--muted); font-size: 12px; }

.community-card { padding: 48px; border-radius: 20px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.community-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 80%, color-mix(in oklab, var(--accent) 40%, transparent), transparent 40%),
                    radial-gradient(circle at 80% 20%, color-mix(in oklab, var(--highlight) 25%, transparent), transparent 40%);
  opacity: 0.7;
}
.community-card > * { position: relative; z-index: 1; }
.community-title { font-family: 'Instrument Serif', serif; font-size: 44px; line-height: 1; margin-bottom: 18px; }
html[data-display="sans"]     .community-title { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.03em; }
html[data-display="fraunces"] .community-title { font-family: 'Fraunces', serif; font-weight: 600; }
.community-desc { opacity: 0.8; margin-bottom: 28px; font-size: 15px; max-width: 360px; }
.community-stats { display: flex; gap: 32px; margin-bottom: 28px; }
.community-stat-num { font-family: 'Instrument Serif', serif; font-size: 42px; line-height: 1; color: var(--highlight); }
.community-stat-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }
.community-cta { background: var(--bg); color: var(--ink); padding: 14px 24px; border-radius: 999px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.25s; }
.community-cta:hover { transform: translateY(-2px); }

/* =============================================
   DOBRODOŠLICA (naslovnica, ispod odabranih)
   ============================================= */
.welcome { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; background: var(--card); }
.welcome-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin-bottom: 14px; }
.welcome-title em { font-style: italic; color: var(--accent); }
.welcome-desc { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter { padding: 80px 0; border-top: 1px solid var(--line); text-align: center; }
.newsletter-title { font-family: 'Instrument Serif', serif; font-size: clamp(40px, 6vw, 80px); line-height: 1; margin-bottom: 20px; }
html[data-display="sans"]     .newsletter-title { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.03em; }
html[data-display="fraunces"] .newsletter-title { font-family: 'Fraunces', serif; font-weight: 500; }
.newsletter-desc { color: var(--muted); max-width: 500px; margin: 0 auto 32px; }
.newsletter-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.newsletter-input { flex: 1; padding: 16px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-family: inherit; font-size: 14px; outline: none; color: var(--ink); transition: border-color 0.2s; }
.newsletter-input:focus { border-color: var(--ink-2); }
.newsletter-btn { padding: 16px 28px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; transition: transform 0.25s; }
.newsletter-btn:hover { transform: translateY(-2px); }

/* =============================================
   FOOTER
   ============================================= */
footer { background: var(--ink); color: var(--bg); padding: 80px 32px 32px; margin-top: 80px; }
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-mark { font-family: 'Instrument Serif', serif; font-size: clamp(80px, 14vw, 200px); line-height: 0.9; letter-spacing: -0.02em; margin-bottom: 60px; opacity: 0.95; }
html[data-display="sans"]     .footer-mark { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.04em; }
html[data-display="fraunces"] .footer-mark { font-family: 'Fraunces', serif; font-weight: 600; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; margin-bottom: 16px; font-weight: 400; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; opacity: 0.85; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 12px; opacity: 0.6; }

/* =============================================
   KATEGORIJA STRANICA
   ============================================= */
.cat-header { padding: 60px 0 40px; }
.cat-breadcrumb { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.cat-breadcrumb a { color: var(--muted); }
.cat-breadcrumb a:hover { color: var(--ink); }
.cat-title { font-size: clamp(48px, 7vw, 96px); font-weight: 400; margin-bottom: 20px; }
.cat-desc { font-size: 16px; color: var(--ink-2); max-width: 600px; margin-bottom: 40px; }
.cat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.cat-toolbar-left, .cat-toolbar-right { display: flex; gap: 16px; align-items: center; }
.cat-result-count { font-size: 13px; color: var(--muted); }
.toolbar-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 999px; transition: background 0.2s; }
.toolbar-btn:hover { background: var(--bg-2); }
.toolbar-btn svg { width: 14px; height: 14px; }
.view-toggle { display: flex; gap: 2px; padding: 3px; background: var(--bg-2); border-radius: 8px; }
.view-toggle button { padding: 6px 10px; border-radius: 6px; font-size: 12px; transition: background 0.2s; }
.view-toggle button.active { background: var(--card); }

.cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.filter-sidebar { position: sticky; top: 100px; align-self: start; }
.filter-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 400; }
.filter-option { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; cursor: pointer; color: var(--ink-2); transition: color 0.2s; }
.filter-option:hover { color: var(--ink); }
.filter-option input { appearance: none; width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 3px; margin-right: 10px; transition: all 0.2s; flex-shrink: 0; cursor: pointer; }
.filter-option input:checked { background: var(--ink); border-color: var(--ink); }
.filter-option-label { flex: 1; display: flex; align-items: center; }
.filter-option-count { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.price-range { padding: 12px 0; }
.price-values { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 12px; margin-bottom: 12px; }
.price-track { position: relative; height: 2px; background: var(--line); border-radius: 2px; }
.price-fill { position: absolute; height: 100%; background: var(--accent); border-radius: 2px; }
.price-handle { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transform: translate(-50%, -50%); cursor: pointer; }

/* =============================================
   PRODUCT STRANICA
   ============================================= */
.product { padding: 40px 0 80px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.product-visual { position: sticky; top: 100px; }
.product-book-display { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; perspective: 1800px; }
.product-book { position: relative; width: 320px; height: 480px; transform-style: preserve-3d; transform: rotateY(-12deg); transition: transform 0.8s cubic-bezier(.2,.8,.2,1); }
.product-book:hover { transform: rotateY(-5deg); }
.product-book .book-cover { padding: 40px 30px 30px; }
.product-book .book-cover-title { font-size: 42px; }
.product-book .book-cover-author { font-size: 11px; }
.product-thumbs { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.product-thumb { width: 54px; height: 80px; border-radius: 2px 4px 4px 2px; cursor: pointer; opacity: 0.5; transition: opacity 0.2s, transform 0.2s; box-shadow: 0 4px 10px -2px rgba(0,0,0,0.2); }
.product-thumb:hover, .product-thumb.active { opacity: 1; }
.product-thumb.active { outline: 2px solid var(--accent); outline-offset: 3px; }

.product-info { padding-top: 20px; }
.product-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.product-title { font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 400; margin-bottom: 16px; }
.product-author { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 22px; color: var(--ink-2); margin-bottom: 24px; }
.product-rating { display: flex; gap: 10px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; font-size: 13px; }
.product-rating .stars { font-size: 14px; letter-spacing: 2px; }
.product-desc { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin-bottom: 28px; }
.product-desc p + p { margin-top: 14px; }
.product-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; padding: 24px 0; border-top: 1px solid var(--line); margin-bottom: 32px; }
.spec-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.spec-value { font-size: 14px; }
.product-price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.product-price { font-family: 'Instrument Serif', serif; font-size: 48px; line-height: 1; color: var(--accent); }
.product-price-old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.product-save { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 4px 8px; background: var(--highlight); color: var(--ink); border-radius: 4px; }
.product-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; }

.btn-primary {
  flex: 1; padding: 16px 24px; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px color-mix(in oklab, var(--accent) 50%, transparent); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-secondary {
  padding: 16px 20px; background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-secondary.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.product-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; padding-top: 16px; }
.product-tab { padding: 14px 20px; font-size: 13px; color: var(--muted); position: relative; transition: color 0.2s; }
.product-tab:hover { color: var(--ink); }
.product-tab.active { color: var(--ink); }
.product-tab.active::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2px; background: var(--accent); }

.reviews { display: flex; flex-direction: column; gap: 24px; }
.review { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-author { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-family: 'Instrument Serif', serif; font-size: 15px; color: var(--ink); }
.review-name { font-weight: 500; }
.review-date { font-size: 12px; color: var(--muted); }
.review-body { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* Preview modal */
.preview-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 100; display: none; align-items: center; justify-content: center; padding: 40px; backdrop-filter: blur(12px); }
.preview-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.preview-book { width: min(900px, 100%); max-height: 90vh; background: #fbf5e6; color: #1a1713; border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.preview-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; border-bottom: 1px solid #e5dcc3; }
.preview-title-label { font-family: 'Instrument Serif', serif; font-size: 20px; font-style: italic; }
.preview-close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background 0.2s; }
.preview-close:hover { background: #eee5cf; }
.preview-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 60px 80px; overflow-y: auto; position: relative; }
.preview-pages::after { content: ''; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 1px; background: linear-gradient(180deg, transparent, #c8bea2, transparent); }
.preview-page { font-family: 'Fraunces', serif; font-size: 15px; line-height: 1.7; color: #2a241a; }
.preview-page h2 { font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400; margin-bottom: 16px; line-height: 1; }
.preview-page p { margin-bottom: 12px; text-indent: 1.5em; }
.preview-page p:first-of-type { text-indent: 0; }
.preview-page p:first-of-type::first-letter { font-family: 'Instrument Serif', serif; font-size: 54px; float: left; line-height: 0.85; padding-right: 8px; padding-top: 4px; color: var(--accent); }
.preview-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; border-top: 1px solid #e5dcc3; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #6e6450; }

/* =============================================
   KOŠARICA
   ============================================= */
.cart { padding: 60px 0 80px; }
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.cart-items { display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
.cart-item-cover { width: 100px; height: 150px; border-radius: 2px 4px 4px 2px; box-shadow: -2px 0 0 rgba(0,0,0,0.1), 0 10px 20px -5px rgba(0,0,0,0.2); padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; position: relative; overflow: hidden; }
.cart-item-cover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,0.25), transparent); }
.cart-item-title { font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1.1; margin-bottom: 4px; }
.cart-item-author { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.cart-item-actions { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.cart-item-actions button { font-size: 12px; padding: 0; transition: color 0.2s; }
.cart-item-actions button:hover { color: var(--accent); }
.cart-item-right { text-align: right; }
.cart-item-price { font-family: 'Instrument Serif', serif; font-size: 24px; color: var(--ink); }

.cart-summary { padding: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; position: sticky; top: 100px; }
.cart-summary h3 { font-family: 'Instrument Serif', serif; font-size: 32px; font-weight: 400; margin-bottom: 24px; }
.cart-row { display: flex; justify-content: space-between; padding: 12px 0; font-size: 14px; color: var(--ink-2); }
.cart-row.total { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 12px; font-size: 18px; color: var(--ink); font-weight: 500; }
.cart-row .amt { font-family: 'Instrument Serif', serif; font-size: 18px; }
.cart-row.total .amt { font-size: 32px; color: var(--accent); }
.promo-input { display: flex; gap: 8px; margin: 20px 0; }
.promo-input input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-family: inherit; font-size: 13px; outline: none; color: var(--ink); }
.promo-input button { padding: 12px 16px; border-radius: 999px; border: 1px solid var(--ink); font-size: 12px; transition: background 0.2s; }
.promo-input button:hover { background: var(--ink); color: var(--bg); }
.checkout-btn { width: 100%; padding: 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 500; margin-top: 12px; transition: transform 0.25s; }
.checkout-btn:hover { transform: translateY(-2px); }
.cart-trust { display: flex; justify-content: space-around; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); text-align: center; }
.cart-trust > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cart-trust svg { width: 18px; height: 18px; opacity: 0.7; }

/* Cart empty state */
.cart-empty { text-align: center; padding: 100px 40px; }
.cart-empty-title { font-family: 'Instrument Serif', serif; font-size: 56px; line-height: 1; margin-bottom: 16px; color: var(--ink); }
.cart-empty-desc { color: var(--muted); font-size: 16px; margin-bottom: 32px; }

/* =============================================
   BIBLIOTEKA
   ============================================= */
.library-header { padding: 60px 0 40px; }
.library-title { font-size: clamp(48px, 7vw, 96px); line-height: 1; margin-bottom: 16px; }
.library-stats { display: flex; gap: 48px; margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.library-stat-num { font-family: 'Instrument Serif', serif; font-size: 44px; line-height: 1; color: var(--accent); }
.library-stat-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 6px; }
.library-tabs { display: flex; gap: 4px; margin: 32px 0; }
.lib-tab { padding: 10px 18px; border-radius: 999px; font-size: 13px; color: var(--ink-2); transition: all 0.2s; }
.lib-tab.active { background: var(--ink); color: var(--bg); }
.lib-tab:not(.active):hover { background: var(--bg-2); }

.continue-reading { padding: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 48px; display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: center; }
.continue-reading .book-cover-wrap { width: 120px; padding-top: 0; height: 180px; margin: 0; }
.continue-info .mono { color: var(--muted); margin-bottom: 8px; }
.continue-title { font-family: 'Instrument Serif', serif; font-size: 32px; line-height: 1; margin-bottom: 6px; }
.continue-author { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.progress-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.5s cubic-bezier(.2,.8,.2,1); }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.continue-btn { padding: 14px 24px; background: var(--ink); color: var(--bg); border-radius: 999px; font-size: 13px; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.25s; white-space: nowrap; }
.continue-btn:hover { transform: translateY(-2px); }

/* =============================================
   ČITAČ (READER)
   ============================================= */
body.reader-mode { overflow: hidden; }
.reader-page { background: #f5ecd7; color: #2a241a; min-height: 100vh; }
.reader-topbar { position: sticky; top: 0; z-index: 10; background: rgba(245,236,215,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid #d9cfb8; }
.reader-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 14px 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.reader-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 14px; border-radius: 999px; color: #2a241a; transition: background 0.2s; }
.reader-back:hover { background: rgba(0,0,0,0.05); }
.reader-title-bar { text-align: center; font-family: 'Instrument Serif', serif; font-size: 17px; font-style: italic; color: #3a3223; }
.reader-title-bar .reader-author-label { display: block; font-size: 11px; font-family: 'JetBrains Mono', monospace; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: #857a68; margin-bottom: 2px; }
.reader-tools { display: flex; gap: 4px; }
.reader-tool { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background 0.2s; }
.reader-tool:hover { background: rgba(0,0,0,0.05); }
.reader-tool.active { background: #2a241a; color: #f5ecd7; }
.reader-tool svg { width: 18px; height: 18px; opacity: 0.7; }
.reader-tool.active svg { opacity: 1; }

.reader-panel { position: fixed; top: 0; right: 0; width: 380px; height: 100vh; background: #f5ecd7; border-left: 1px solid #d9cfb8; z-index: 20; transform: translateX(100%); transition: transform 0.4s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(0,0,0,0.2); }
.reader-panel.open { transform: translateX(0); }
.reader-panel-head { padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #d9cfb8; }
.reader-panel-title { font-family: 'Instrument Serif', serif; font-size: 22px; color: #2a241a; }
.reader-panel-close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: background 0.2s; }
.reader-panel-close:hover { background: rgba(0,0,0,0.05); }
.reader-panel-body { flex: 1; overflow-y: auto; padding: 20px 28px 40px; }
.reader-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.15); z-index: 15; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.reader-backdrop.show { opacity: 1; pointer-events: auto; }

.reader-content { max-width: 700px; margin: 0 auto; padding: 80px 40px 120px; font-family: 'Fraunces', serif; font-size: 19px; line-height: 1.7; color: #2a241a; }
.reader-chapter-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #857a68; text-align: center; margin-bottom: 20px; }
.reader-chapter-title { font-family: 'Instrument Serif', serif; font-size: 52px; line-height: 1; text-align: center; margin-bottom: 60px; font-weight: 400; }
.reader-content p { margin-bottom: 20px; text-indent: 2em; }
/* Drop cap samo na prvom odlomku samog teksta — ne na svakom <p> u ugniježđenim divovima (npr. fusnote) */
.reader-body > p:first-of-type { text-indent: 0; }
.reader-body > p:first-of-type::first-letter { font-family: 'Instrument Serif', serif; font-size: 68px; float: left; line-height: 0.85; padding-right: 10px; padding-top: 6px; color: #6b1f24; }
/* Razmak među sekcijama (zamjena za prazne <p>&nbsp;</p> iz izvora) */
.reader-space { height: 28px; }
/* Fusnote (Word/EPUB izvoz: <hr /> + <div id="ftnX"><p>…) */
.reader-body hr { border: none; border-top: 1px solid #d9cfb8; margin: 48px auto 28px; width: 40%; }
.reader-body div[id^="ftn"] p { font-size: 14px; line-height: 1.55; text-indent: 0; margin-bottom: 12px; opacity: 0.85; }
/* Oznaka fusnote u tekstu — superskript */
.reader-body a[href^="#_ftn"] { font-size: 0.65em; vertical-align: super; line-height: 0; color: #6b1f24; text-decoration: none; }
.reader-body a[href^="#_ftn"]:hover { text-decoration: underline; }
/* Povratna poveznica unutar fusnote — normalna veličina */
.reader-body div[id^="ftn"] a { font-size: inherit; vertical-align: baseline; line-height: inherit; }
/* Skok na fusnotu: rezerva ispod fiksnog topbara + kratki bljesak odredišta */
.reader-body [id] { scroll-margin-top: 92px; }
.reader-body .fn-flash { border-radius: 3px; animation: fnFlash 1.6s ease-out; }
@keyframes fnFlash { 0%, 55% { background: rgba(228,162,74,0.42); } 100% { background: transparent; } }
.reader-divider { text-align: center; margin: 40px 0; color: #857a68; font-size: 24px; letter-spacing: 12px; }
.reader-progress { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: rgba(42,36,26,0.92); color: #f5ecd7; backdrop-filter: blur(12px); padding: 14px 24px; border-radius: 999px; display: flex; gap: 24px; align-items: center; font-size: 12px; font-family: 'JetBrains Mono', monospace; z-index: 10; }
.reader-progress-bar { width: 200px; height: 3px; background: rgba(245,236,215,0.2); border-radius: 2px; overflow: hidden; }
.reader-progress-fill { height: 100%; background: #e4a24a; transition: width 0.3s; }

/* Reader teme */
.reader-page[data-theme="cream"]       { background: #ebe3cd; }
.reader-page[data-theme="cream"]       .reader-topbar { background: rgba(235,227,205,0.92); border-bottom-color: #c9bfa1; }
.reader-page[data-theme="cream"]       .reader-panel  { background: #ebe3cd; border-left-color: #c9bfa1; }
.reader-page[data-theme="sepia"]       { background: #e8d5a8; color: #4a2d14; }
.reader-page[data-theme="sepia"]       .reader-content { color: #4a2d14; }
.reader-page[data-theme="sepia"]       .reader-topbar { background: rgba(232,213,168,0.92); border-bottom-color: #c9b482; }
.reader-page[data-theme="sepia"]       .reader-panel  { background: #e8d5a8; border-left-color: #c9b482; }
.reader-page[data-theme="night"]       { background: #1a1610; color: #d4c8a8; }
.reader-page[data-theme="night"]       .reader-content { color: #d4c8a8; }
.reader-page[data-theme="night"]       .reader-topbar { background: rgba(26,22,16,0.92); border-bottom-color: #3a3224; }
.reader-page[data-theme="night"]       .reader-panel  { background: #1a1610; border-left-color: #3a3224; color: #d4c8a8; }
.reader-page[data-theme="night"]       .reader-panel-title,
.reader-page[data-theme="night"]       .toc-title,
.reader-page[data-theme="night"]       .bm-title { color: #d4c8a8; }
.reader-page[data-theme="night"]       .reader-body > p:first-of-type::first-letter { color: #e4a24a; }
.reader-page[data-theme="night"]       .reader-body hr { border-top-color: #3a3224; }
.reader-page[data-theme="night"]       .reader-body a[href^="#_ftn"] { color: #e4a24a; }

/* Reader panels — TOC */
.toc-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(217,207,184,0.6); cursor: pointer; transition: padding 0.2s; }
.toc-item:hover { padding-left: 6px; }
.toc-item.current { color: #6b1f24; }
.toc-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #857a68; }
.toc-title { font-family: 'Instrument Serif', serif; font-size: 18px; line-height: 1.2; color: #2a241a; }
.toc-item.current .toc-title { color: #6b1f24; }
.toc-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #857a68; white-space: nowrap; }
.toc-read-dot { width: 6px; height: 6px; border-radius: 50%; background: #2d4a2a; display: inline-block; margin-left: 6px; }

/* Typography panel */
.tp-group { padding: 18px 0; border-bottom: 1px solid rgba(217,207,184,0.6); }
.tp-group:last-child { border-bottom: none; }
.tp-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #857a68; margin-bottom: 12px; }
.tp-fonts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tp-font-btn { padding: 14px 8px; border: 1px solid #d9cfb8; border-radius: 8px; background: transparent; font-size: 18px; color: #2a241a; cursor: pointer; transition: all 0.2s; text-align: center; }
.tp-font-btn.active { background: #2a241a; color: #f5ecd7; border-color: #2a241a; }
.tp-font-name { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; opacity: 0.7; }
.tp-stepper { display: grid; grid-template-columns: 40px 1fr 40px; gap: 12px; align-items: center; }
.tp-step-btn { width: 40px; height: 40px; border: 1px solid #d9cfb8; border-radius: 50%; background: transparent; font-size: 16px; color: #2a241a; cursor: pointer; transition: background 0.2s; }
.tp-step-btn:hover { background: rgba(0,0,0,0.05); }
.tp-step-value { text-align: center; font-family: 'Instrument Serif', serif; font-size: 22px; }
.tp-step-unit { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #857a68; margin-left: 4px; }
.tp-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tp-theme { aspect-ratio: 1/1.1; border-radius: 10px; cursor: pointer; border: 2px solid transparent; display: grid; place-items: end; padding: 10px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; transition: transform 0.2s; position: relative; }
.tp-theme:hover { transform: translateY(-2px); }
.tp-theme.active { border-color: #2a241a; }
.tp-theme-paper { background: #f5ecd7; color: #2a241a; }
.tp-theme-cream  { background: #ebe3cd; color: #2a241a; }
.tp-theme-sepia  { background: #e8d5a8; color: #4a2d14; }
.tp-theme-night  { background: #1a1610; color: #d4c8a8; }

/* Bookmarks */
.bm-item { padding: 16px 0; border-bottom: 1px solid rgba(217,207,184,0.6); cursor: pointer; transition: padding 0.2s; }
.bm-item:hover { padding-left: 6px; }
.bm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bm-title { font-family: 'Instrument Serif', serif; font-size: 17px; color: #2a241a; }
.bm-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #857a68; }
.bm-excerpt { font-family: 'Fraunces', serif; font-size: 13px; color: #4a4137; font-style: italic; line-height: 1.5; padding-left: 12px; border-left: 2px solid #e4a24a; }
.bm-add-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border: 1px dashed #c9bfa1; border-radius: 12px; background: transparent; color: #2a241a; font-size: 13px; cursor: pointer; transition: all 0.2s; margin-bottom: 16px; font-family: inherit; }
.bm-add-btn:hover { border-style: solid; background: rgba(0,0,0,0.03); }

/* Settings panel */
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(217,207,184,0.6); }
.set-label { font-size: 14px; }
.set-desc { font-size: 11px; color: #857a68; margin-top: 2px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.set-toggle { width: 40px; height: 24px; border-radius: 999px; background: #c9bfa1; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.set-toggle.on { background: #6b1f24; }
.set-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #f5ecd7; transition: transform 0.25s; }
.set-toggle.on::after { transform: translateX(16px); }
.set-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.set-stat { padding: 16px; border: 1px solid #d9cfb8; border-radius: 12px; }
.set-stat-val { font-family: 'Instrument Serif', serif; font-size: 28px; line-height: 1; color: #6b1f24; }
.set-stat-lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #857a68; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 6px; }

/* =============================================
   TWEAKS PANEL
   ============================================= */
.tweaks-trigger {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}
.tweaks-trigger:hover { transform: scale(1.08); box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5); }
.tweaks-panel { position: fixed; bottom: 80px; right: 24px; width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.25); z-index: 200; font-size: 13px; display: none; }
.tweaks-panel.open { display: block; animation: slideUp 0.3s ease; }
.tweaks-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.tweaks-title { font-family: 'Instrument Serif', serif; font-size: 18px; }
.tweaks-close { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; transition: background 0.2s; }
.tweaks-close:hover { background: var(--bg-2); }
.tweak-group { margin-bottom: 16px; }
.tweak-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.tweak-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; }
.tweak-swatches { display: flex; gap: 6px; }
.tweak-swatch { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.active { border-color: var(--ink); }
.tweak-btn { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: transparent; font-size: 12px; transition: all 0.2s; color: var(--ink-2); font-family: inherit; cursor: pointer; }
.tweak-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* =============================================
   AUTH STRANICE
   ============================================= */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 48px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-family: 'Instrument Serif', serif; font-size: 36px; line-height: 1; margin-bottom: 8px; }
.auth-desc { color: var(--muted); font-size: 14px; text-align: center; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; font-weight: 500; }
.form-input {
  width: 100%; padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
  font-family: inherit; font-size: 14px; color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 10%, transparent); }
.form-input.error { border-color: #c0392b; }
.form-error { font-size: 12px; color: #c0392b; margin-top: 6px; padding-left: 18px; }
.form-submit { width: 100%; padding: 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 500; transition: transform 0.25s; margin-top: 8px; }
.form-submit:hover { transform: translateY(-2px); }
.auth-divider { text-align: center; margin: 20px 0; color: var(--muted); font-size: 13px; position: relative; }
.auth-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); z-index: 0; }
.auth-divider span { background: var(--card); padding: 0 12px; position: relative; }
.auth-link { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted); }
.auth-link a { color: var(--accent); font-weight: 500; }
.flash-message { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; }
.flash-success { background: color-mix(in oklab, #2d4a2a 12%, transparent); color: #2d4a2a; border: 1px solid #2d4a2a; }
.flash-error   { background: color-mix(in oklab, #c0392b 10%, transparent); color: #c0392b; border: 1px solid #c0392b; }

/* =============================================
   CHECKOUT
   ============================================= */
.checkout-page { padding: 60px 0 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: start; }
.checkout-section { margin-bottom: 40px; }
.checkout-section-title { font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.stripe-element { padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.stripe-element.StripeElement--focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 10%, transparent); }
.checkout-order { padding: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; position: sticky; top: 100px; }
.checkout-order h3 { font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400; margin-bottom: 24px; }

/* =============================================
   GENERAL UTILITIES
   ============================================= */
.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.page-header { padding: 60px 0 40px; }
.page-title { font-size: clamp(48px, 7vw, 96px); font-weight: 400; margin-bottom: 16px; }
.page-desc { font-size: 16px; color: var(--ink-2); max-width: 600px; }
.empty-state { text-align: center; padding: 100px 40px; }
.empty-state-icon { font-size: 64px; margin-bottom: 24px; opacity: 0.3; }
.empty-state-title { font-family: 'Instrument Serif', serif; font-size: 48px; line-height: 1; margin-bottom: 16px; }
.empty-state-desc { color: var(--muted); font-size: 16px; margin-bottom: 32px; max-width: 400px; margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .books-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .topbar-inner { grid-template-columns: auto auto; gap: 12px; }
  .search-wrap { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-book { display: none; }
  .collections { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .twocol { grid-template-columns: 1fr; }
  .cat-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .product-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .reader-panel { width: 100vw; }
  .library-stats { gap: 24px; flex-wrap: wrap; }
  .continue-reading { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 600px) {
  .wrapper, .container { padding: 0 16px; }
  .topbar-inner { padding: 12px 16px; }
  .hero-title { font-size: clamp(40px, 12vw, 80px); }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .footer-cols { grid-template-columns: 1fr; }
  footer { padding: 60px 16px 24px; }
  .auth-card { padding: 32px 24px; }
}

/* ============================================================
   KOMENTARI U ČITAČU
   ============================================================ */

/* badge na alatnoj ikoni */
.reader-tool { position: relative; }
.reader-tool-badge {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: #6b1f24; color: #fff;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 16px;
  text-align: center; box-shadow: 0 0 0 2px #f5ecd7;
}

/* markeri u tekstu */
mark.cmt-anchor {
  background: rgba(107, 31, 36, 0.14);
  border-bottom: 2px solid rgba(107, 31, 36, 0.55);
  color: inherit; cursor: pointer; border-radius: 2px;
  transition: background 0.2s;
}
mark.cmt-anchor:hover { background: rgba(107, 31, 36, 0.26); }
.reader-page[data-theme="night"] mark.cmt-anchor {
  background: rgba(228, 162, 74, 0.18); border-bottom-color: rgba(228, 162, 74, 0.7);
}
.cmt-pin {
  cursor: pointer; font-size: 0.7em; vertical-align: super; margin: 0 1px;
  opacity: 0.85; user-select: none;
}
.cmt-pin:hover { opacity: 1; }
.cmt-flash { animation: cmtFlash 1.2s ease; }
@keyframes cmtFlash {
  0%, 100% { background: rgba(231, 196, 105, 0); }
  30% { background: rgba(231, 196, 105, 0.85); }
}

/* plutajuća traka na selekciji */
.cmt-toolbar {
  position: absolute; z-index: 60; display: none; gap: 2px;
  background: #2a241a; color: #f5ecd7; border-radius: 999px; padding: 4px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
}
.cmt-toolbar.show { display: flex; }
.cmt-tb-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 999px; font-size: 12px; color: #f5ecd7; white-space: nowrap;
}
.cmt-tb-btn:hover { background: rgba(255,255,255,0.12); }
.cmt-tb-btn svg { opacity: 0.85; }

/* "Komentiraj ovdje" na klik */
.cmt-addbtn {
  position: absolute; z-index: 60; display: none; padding: 7px 12px;
  background: #2a241a; color: #f5ecd7; border-radius: 999px; font-size: 12px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5); white-space: nowrap;
}
.cmt-addbtn:hover { background: #3a3224; }

/* composer + nit (popover) */
.cmt-composer, .cmt-thread {
  position: absolute; z-index: 70; display: none; width: 340px; max-width: calc(100vw - 32px);
  background: #fffdf6; border: 1px solid #d9cfb8; border-radius: 14px; padding: 14px;
  box-shadow: 0 18px 50px -16px rgba(0,0,0,0.4);
}
.reader-page[data-theme="night"] .cmt-composer,
.reader-page[data-theme="night"] .cmt-thread { background: #221d15; border-color: #3a3224; color: #d4c8a8; }
.cmt-input {
  width: 100%; resize: vertical; border: 1px solid #d9cfb8; border-radius: 10px;
  padding: 10px; font: inherit; font-size: 14px; background: #fff; color: #2a241a;
}
.cmt-input:focus { outline: none; border-color: #6b1f24; }
.cmt-composer-row { display: flex; gap: 8px; margin-top: 10px; }
.cmt-vis, .cmt-grp {
  flex: 1; padding: 8px 10px; border: 1px solid #d9cfb8; border-radius: 8px;
  font: inherit; font-size: 13px; background: #fff; color: #2a241a;
}
.cmt-composer-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.cmt-cancel, .cmt-save {
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
}
.cmt-cancel { color: #6b5d44; }
.cmt-cancel:hover { background: rgba(0,0,0,0.05); }
.cmt-save { background: #6b1f24; color: #fff; }
.cmt-save:hover { background: #571319; }
.cmt-save:disabled { opacity: 0.5; }

/* filter u panelu */
.cmt-filter { margin-bottom: 18px; }
.cmt-filter-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #8a7c5e; margin-bottom: 8px; }
.cmt-filter-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.cmt-filter-btn {
  padding: 6px 12px; border: 1px solid #d9cfb8; border-radius: 999px; font-size: 12px;
  color: #2a241a; transition: all 0.15s;
}
.cmt-filter-btn:hover { background: rgba(0,0,0,0.04); }
.cmt-filter-btn.active { background: #2a241a; color: #f5ecd7; border-color: #2a241a; }
.reader-page[data-theme="night"] .cmt-filter-btn { color: #d4c8a8; border-color: #3a3224; }
.reader-page[data-theme="night"] .cmt-filter-btn.active { background: #e4a24a; color: #1a1610; border-color: #e4a24a; }

/* kartice komentara (panel + nit) */
.cmt-list { display: flex; flex-direction: column; gap: 12px; }
.cmt-empty { font-size: 13px; color: #8a7c5e; line-height: 1.6; padding: 8px 0; }
.cmt-card {
  border: 1px solid #d9cfb8; border-radius: 12px; padding: 12px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cmt-card:hover { border-color: #b8a888; background: rgba(0,0,0,0.02); }
.cmt-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.cmt-author { font-weight: 600; font-size: 13px; color: #2a241a; }
.reader-page[data-theme="night"] .cmt-author { color: #e8dcc0; }
.cmt-you { font-weight: 400; font-size: 11px; color: #6b1f24; background: rgba(107,31,36,0.1); padding: 1px 6px; border-radius: 999px; }
.cmt-badge { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cmt-badge-javno    { background: rgba(45,74,42,0.12); color: #2d4a2a; }
.cmt-badge-prati    { background: rgba(58,42,92,0.12); color: #3a2a5c; }
.cmt-badge-grupa    { background: rgba(192,131,60,0.16); color: #8a5a18; }
.cmt-badge-privatno { background: rgba(107,31,36,0.12); color: #6b1f24; }
.cmt-quote { font-style: italic; font-size: 12px; color: #8a7c5e; border-left: 2px solid #d9cfb8; padding-left: 8px; margin-bottom: 6px; }
.cmt-text { font-size: 14px; line-height: 1.5; color: #2a241a; white-space: pre-wrap; word-break: break-word; }
.reader-page[data-theme="night"] .cmt-text { color: #d4c8a8; }
.cmt-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cmt-date { font-size: 11px; color: #a99c7e; font-family: 'JetBrains Mono', monospace; }
.cmt-actions { display: flex; gap: 10px; }
.cmt-link { font-size: 12px; color: #6b1f24; }
.cmt-link:hover { text-decoration: underline; }
.cmt-danger { color: #b03030; }
.cmt-thread { display: none; }
.cmt-thread .cmt-card-head { margin-bottom: 8px; }

/* ============================================================
   PRETPLATA
   ============================================================ */
.pp { padding: 20px 0 80px; }
.pp-flash { max-width: 560px; margin: 0 auto 24px; padding: 12px 16px; border-radius: 10px; text-align: center; font-size: 14px; }
.pp-flash.ok { background: #e7f1e9; color: #2d6a3a; border: 1px solid #bcd9c3; }
.pp-flash.bad { background: #f6e4e4; color: #b03030; border: 1px solid #e3bcbc; }
.pp-active { max-width: 760px; margin: 0 auto 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--card, #fffdf7); border: 1px solid var(--line, #e2d8c2); border-radius: 16px; padding: 20px 24px; }
.pp-active-l { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pp-active-name { font-family: 'Instrument Serif', serif; font-size: 24px; margin: 2px 0; }
.pp-active-meta { font-size: 13px; color: var(--muted); }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.pp-card { background: var(--card, #fffdf7); border: 1px solid var(--line, #e2d8c2); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; transition: .2s; }
.pp-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -24px rgba(0,0,0,.3); }
.pp-card-cur { border-color: var(--accent, #6b1f24); box-shadow: 0 0 0 2px rgba(107,31,36,.12); }
.pp-card-name { font-family: 'Instrument Serif', serif; font-size: 26px; }
.pp-price { font-size: 16px; font-weight: 600; margin: 10px 0 4px; }
.pp-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.pp-desc { font-size: 13px; color: var(--muted); min-height: 36px; margin: 4px 0 14px; }
.pp-feat { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.pp-feat li { font-size: 13.5px; padding: 6px 0 6px 24px; position: relative; }
.pp-feat li::before { content: '✓'; position: absolute; left: 0; color: var(--accent, #6b1f24); font-weight: 700; }
.pp-note { text-align: center; color: #b03030; font-size: 13px; margin-top: 18px; min-height: 18px; }
