/* ═══════════════════════════════════════════════════════════════
   Johana Král — Romantický knižní designový systém
   Paleta: krémová #f0f7fb · terakotová #ADD8E6 · šalvěj #ADD8E6
   Písmo:  Playfair Display (serif) + Lato (sans-serif)
═══════════════════════════════════════════════════════════════ */

/* ─── Proměnné ───────────────────────────────────────────────── */
:root {
  /* Krémová základna */
  --cream:         #f0f7fb;
  --cream-dark:    #daeef5;
  --cream-mid:     #D3D3D3;
  --cream-border:  rgba(173,216,230,.13);

  /* Terakotová růžová — hlavní akcent */
  --rose:          #ADD8E6;
  --rose-dark:     #7ec0d4;
  --rose-light:    #daeef5;
  --rose-glow:     rgba(173,216,230,.2);

  /* Šalvěj — vedlejší akcent */
  --sage:          #ADD8E6;
  --sage-dark:     #7ec0d4;
  --sage-light:    #daeef5;

  /* Inkoust / tmavá */
  --ink:           #1c3545;
  --ink-mid:       #1c3545;
  --ink-light:     #254a5e;
  --ink-border:    rgba(255,255,255,.08);

  /* Typografie */
  --text:          #254a5e;
  --muted:         #6a8fa0;
  --text-on-dark:  #daeef5;
  --muted-on-dark: rgba(173,216,230,.5);

  /* Stíny — teplé */
  --shadow-xs:     0 1px 4px rgba(45,74,94,.05);
  --shadow-sm:     0 3px 16px rgba(45,74,94,.08);
  --shadow:        0 8px 36px rgba(45,74,94,.1);
  --shadow-lg:     0 20px 64px rgba(45,74,94,.14);
  --shadow-rose:   0 8px 28px rgba(173,216,230,.26);

  /* Tvar */
  --radius:        8px;
  --radius-lg:     16px;
  --radius-xl:     28px;

  /* Písma */
  --font:          'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:          'Lato', -apple-system, 'Segoe UI', Helvetica, sans-serif;

  /* Zpětná kompatibilita */
  --gold:          var(--rose);
  --gold-dark:     var(--rose-dark);
  --gold-light:    var(--rose-light);
  --gold-glow:     var(--rose-glow);
  --parch:         var(--cream);
  --parch-dark:    var(--cream-dark);
  --parch-mid:     var(--cream-mid);
  --parch-border:  var(--cream-border);
  --dark:          var(--text);
  --blue:          var(--rose);
  --blue-dark:     var(--rose-dark);
  --blue-light:    var(--rose-light);
  --gray:          var(--cream-mid);
  --gray-mid:      var(--muted);
  --gray-dark:     var(--muted);
  --white:         #fff;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Jemná papírová textura */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  opacity: .6;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }
p + p { margin-top: .9rem; }

::selection { background: var(--rose-light); color: var(--text); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--cream-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--rose-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.75rem; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGACE
═══════════════════════════════════════════════════════════════ */
.navbar {
  background: rgba(240,247,251,.95);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--cream-border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 4px 20px rgba(45,74,94,.05);
  transition: background .35s, box-shadow .35s, border-color .35s;
}
.navbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.navbar-title {
  font-family: var(--font);
  font-size: 1.5rem; font-weight: 700;
  color: var(--text); letter-spacing: .01em;
  font-style: italic;
  transition: color .25s;
}
.navbar-title:hover { color: var(--rose-dark); }
.navbar-logo { height: 46px; width: auto; }

.navbar-menu { display: flex; align-items: center; gap: .05rem; }
.navbar-menu a {
  font-family: var(--sans);
  font-size: .74rem; font-weight: 400;
  color: var(--muted);
  padding: .48rem 1.05rem;
  border-radius: var(--radius);
  transition: color .22s, background .22s;
  letter-spacing: .1em; text-transform: uppercase;
  position: relative;
}
.navbar-menu a:not(.cart-icon)::after {
  content: '';
  position: absolute; bottom: 5px; left: 1.05rem; right: 1.05rem;
  height: 1px; background: var(--rose);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.22,.61,.36,1);
}
.navbar-menu a:not(.cart-icon):hover::after { transform: scaleX(1); }
.navbar-menu a:hover { color: var(--text); background: var(--cream-dark); }
.navbar-menu a.active {
  color: var(--rose-dark); background: var(--rose-light); font-weight: 700;
}
.navbar-menu a.active::after { transform: scaleX(1); }

.navbar-toggle {
  display: none; font-size: 1.25rem; padding: .4rem .55rem;
  color: var(--text); border-radius: var(--radius);
  transition: color .2s;
}
.nav-open .navbar-toggle { color: var(--rose); }

/* Košík */
.cart-icon { position: relative; padding: .44rem .8rem !important; color: var(--text) !important; }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--rose); color: #fff;
  font-family: var(--sans); font-size: .58rem; font-weight: 700;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}

/* Průhledný navbar nad hero */
.navbar-transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  position: fixed; top: 0; left: 0; right: 0;
}
.navbar-transparent .navbar-title     { color: rgba(173,216,230,.95); }
.navbar-transparent .navbar-menu a    { color: rgba(173,216,230,.62); }
.navbar-transparent .navbar-menu a:hover {
  color: var(--text-on-dark);
  background: rgba(255,255,255,.1);
}
.navbar-transparent .cart-icon        { color: rgba(173,216,230,.85) !important; }
.navbar-transparent .navbar-toggle    { color: var(--text-on-dark); }

.navbar-scrolled {
  background: rgba(240,247,251,.97) !important;
  border-bottom-color: var(--cream-border) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 28px rgba(45,74,94,.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}
.navbar-scrolled .navbar-title  { color: var(--text) !important; }
.navbar-scrolled .navbar-menu a { color: var(--muted) !important; }
.navbar-scrolled .navbar-menu a:hover { color: var(--text) !important; background: var(--cream-dark) !important; }
.navbar-scrolled .cart-icon     { color: var(--text) !important; }
.navbar-scrolled .navbar-toggle { color: var(--text) !important; }

.has-fixed-navbar main > .hero { margin-top: 0; }

@media (max-width: 820px) {
  .navbar-toggle { display: block; }
  .navbar-menu {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(240,247,251,.99);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--cream-border);
    padding: .75rem 1.25rem 1.5rem; gap: .15rem; z-index: 199;
    box-shadow: 0 12px 40px rgba(45,74,94,.1);
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { border-radius: var(--radius-lg); padding: .65rem 1rem; color: var(--text); }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; width: 100%;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  will-change: transform;
  filter: saturate(.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(28,53,69,.4) 0%, rgba(28,53,69,.78) 100%),
    linear-gradient(0deg, rgba(28,53,69,.75) 0%, rgba(28,53,69,.1) 55%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 760px;
  padding: 8rem 2.5rem;
  color: var(--text-on-dark);
  text-align: center;
}

/* Jemný ozdobný rámeček kolem hero textu */
.hero-content::before { display: none; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .85rem;
  font-family: var(--sans);
  font-size: .68rem; font-weight: 400;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 1.6rem;
  animation: heroIn .9s .1s cubic-bezier(.22,.61,.36,1) both;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block; width: 22px; height: 1px;
  background: rgba(242,213,208,.5); flex-shrink: 0;
}
.hero-title {
  font-family: var(--font);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700; line-height: 1.08;
  margin-bottom: 1.5rem; letter-spacing: -.02em;
  font-style: italic;
  animation: heroIn .9s .2s cubic-bezier(.22,.61,.36,1) both;
}
.hero-subtitle {
  font-family: var(--font);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 400; line-height: 1.72;
  color: rgba(173,216,230,.65);
  margin-bottom: 2.75rem; font-style: italic;
  max-width: 520px; margin-left: auto; margin-right: auto;
  animation: heroIn .9s .3s cubic-bezier(.22,.61,.36,1) both;
}
.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
  animation: heroIn .9s .4s cubic-bezier(.22,.61,.36,1) both;
}
.hero-no-image {
  background: radial-gradient(ellipse at 50% 40%, #254a5e 0%, var(--ink) 65%);
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3; opacity: .36; transition: opacity .25s;
  animation: scrollBounce 2.4s ease-in-out infinite, heroIn .9s .7s both;
}
.hero-scroll:hover { opacity: .7; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 6rem 1.5rem 5rem;
    max-width: 100%;
  }
  .hero { min-height: 92vh; }
}

/* ═══════════════════════════════════════════════════════════════
   TLAČÍTKA
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 2.25rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  transition: transform .22s cubic-bezier(.22,.61,.36,1),
              box-shadow .22s, background .22s, color .22s, border-color .22s;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
  background: var(--rose); border-color: var(--rose); color: #fff;
}
.btn-primary:hover {
  background: var(--rose-dark); border-color: var(--rose-dark);
  box-shadow: var(--shadow-rose);
}

.btn-outline {
  background: transparent;
  border-color: rgba(173,216,230,.42);
  color: var(--text-on-dark);
}
.btn-outline:hover {
  background: rgba(173,216,230,.1);
  border-color: rgba(173,216,230,.75);
}

.btn-secondary {
  background: transparent; border-color: var(--cream-mid); color: var(--text);
}
.btn-secondary:hover { background: var(--cream-dark); border-color: var(--cream-mid); }

.btn-danger {
  background: #4a8fa8; border-color: #4a8fa8; color: #fff;
}
.btn-danger:hover {
  background: #3a7a92; border-color: #3a7a92;
  box-shadow: 0 6px 20px rgba(74,143,168,.28);
}

.btn-sm  { padding: .46rem 1.25rem; font-size: .72rem; }
.btn-lg  { padding: .96rem 2.6rem; font-size: .86rem; }

/* Šalvějové tlačítko — pro akce s košíkem */
.btn-sage {
  background: var(--sage); border-color: var(--sage); color: #fff;
}
.btn-sage:hover {
  background: var(--sage-dark); border-color: var(--sage-dark);
  box-shadow: 0 8px 24px rgba(173,216,230,.3);
}

/* Elegantní textový odkaz "Číst dál" */
.read-more {
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  color: var(--rose-dark); letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .45rem;
  position: relative; padding-bottom: 1px;
}
.read-more::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 100%;
  height: 1px; background: var(--rose-dark);
  transition: right .28s cubic-bezier(.22,.61,.36,1);
}
.read-more:hover::after { right: 0; }
.read-more:hover { color: var(--rose); }

/* ═══════════════════════════════════════════════════════════════
   ALERTY
═══════════════════════════════════════════════════════════════ */
.alert {
  padding: 1rem 1.4rem; border-radius: var(--radius-lg);
  margin: 1.25rem 0; font-size: .88rem;
  font-family: var(--sans); line-height: 1.6;
}
.alert-success {
  background: #f0faf5; color: #1a5c38;
  border: 1px solid #bde5cc; border-left: 3px solid #4caf7d;
}
.alert-error {
  background: #fdf2f0; color: #7d1f1f;
  border: 1px solid var(--rose-light); border-left: 3px solid var(--rose);
}

/* ═══════════════════════════════════════════════════════════════
   SEKCE
═══════════════════════════════════════════════════════════════ */
.section { padding: 6.5rem 0; }
.section-alt {
  background: var(--cream-dark);
  background-image: radial-gradient(circle, rgba(173,216,230,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-dark .section-title   { color: var(--text-on-dark); }
.section-dark .section-label   { color: var(--rose-light); }
.section-dark .section-subtitle { color: var(--muted-on-dark); }

.section-label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans);
  font-size: .67rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--rose-dark); margin-bottom: .9rem;
}
.section-label::before {
  content: '◆';
  font-size: .45em; opacity: .65; letter-spacing: 0;
}
.section-title {
  font-family: var(--font);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700; color: var(--text);
  line-height: 1.15; margin-bottom: .9rem; letter-spacing: -.01em;
  font-style: italic;
}
.section-title-center { text-align: center; }
.section-subtitle {
  font-family: var(--font);
  font-size: .98rem; color: var(--muted);
  max-width: 540px; margin: 0 auto 3.5rem;
  text-align: center; font-style: italic; line-height: 1.75;
}

.section-divider {
  width: 44px; height: 1px;
  background: linear-gradient(90deg, var(--rose), transparent);
  margin: .8rem 0 3rem; border-radius: 1px;
}
.section-divider-center {
  margin: .8rem auto 3rem;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
}

/* ═══════════════════════════════════════════════════════════════
   KNIHY — grid + karta
═══════════════════════════════════════════════════════════════ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2rem;
}

.book-card {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .32s cubic-bezier(.22,.61,.36,1), box-shadow .32s, border-color .32s;
  display: flex; flex-direction: column;
  position: relative;
}
.book-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(180deg, var(--rose), var(--rose-dark));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
  z-index: 1;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.book-card:hover::before { transform: scaleY(1); }

.book-cover { aspect-ratio: 2/3; overflow: hidden; background: var(--cream-dark); }
.book-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .48s cubic-bezier(.22,.61,.36,1);
}
.book-card:hover .book-cover img { transform: scale(1.06); }
.book-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--cream-dark), var(--cream-mid));
  color: var(--cream-mid);
}

.book-info { padding: 1.3rem 1.25rem 1.45rem; flex: 1; display: flex; flex-direction: column; }
.book-category {
  font-family: var(--sans);
  font-size: .63rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rose-dark); font-weight: 700; margin-bottom: .45rem;
}
.book-title {
  font-family: var(--font); font-size: .98rem; font-weight: 600;
  color: var(--text); margin-bottom: .5rem; line-height: 1.38;
  font-style: italic;
}
.book-price {
  font-family: var(--font);
  font-size: 1.18rem; font-weight: 700; color: var(--rose-dark);
  margin-top: auto; margin-bottom: .85rem;
}
.book-status-sold {
  font-family: var(--sans); font-size: .74rem;
  color: var(--muted); font-weight: 500; letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════════════════
   POSTY — grid + karta
═══════════════════════════════════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 2rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .32s cubic-bezier(.22,.61,.36,1), box-shadow .32s, background .32s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: #fffcfa; }

.post-img { aspect-ratio: 16/9; overflow: hidden; background: var(--cream-dark); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .48s; }
.post-card:hover .post-img img { transform: scale(1.05); }

.post-body { padding: 1.55rem; }
.post-date {
  font-family: var(--sans); font-size: .66rem; color: var(--muted);
  margin-bottom: .55rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.post-title {
  font-family: var(--font); font-size: 1.08rem; font-weight: 600;
  color: var(--text); margin-bottom: .55rem; line-height: 1.38;
  font-style: italic;
}
.post-excerpt {
  font-family: var(--sans); font-size: .87rem; color: var(--muted);
  margin-bottom: 1.1rem; line-height: 1.68;
}

/* ═══════════════════════════════════════════════════════════════
   O AUTORCE
═══════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5.5rem; align-items: center;
}
.about-photo-wrap { position: relative; }
.about-photo-wrap::before {
  content: '';
  position: absolute; top: -14px; right: -14px; bottom: 14px; left: 14px;
  border: 1.5px solid var(--rose); border-radius: var(--radius-lg);
  opacity: .28; z-index: 0; pointer-events: none;
}
.about-photo-wrap img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--cream-dark), var(--cream-mid));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-mid);
}
.about-text h2 {
  font-family: var(--font);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700; margin-bottom: .5rem; letter-spacing: -.01em;
  font-style: italic;
}
.about-text .about-body {
  color: var(--muted); line-height: 1.92; font-size: .97rem;
  font-family: var(--sans);
}
.about-text .about-body p + p { margin-top: 1rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo-wrap { max-width: 280px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════════════
   KOŠÍK
═══════════════════════════════════════════════════════════════ */
.cart-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-border);
}
.cart-table th, .cart-table td {
  padding: 1.1rem 1.4rem; text-align: left;
  border-bottom: 1px solid var(--cream-dark);
  font-family: var(--sans); font-size: .88rem;
}
.cart-table th {
  background: var(--cream); color: var(--muted);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
}
.cart-table tr:last-child td { border-bottom: none; }
.cart-table input[type=number] {
  width: 70px; padding: .42rem .6rem;
  border: 1.5px solid var(--cream-mid); border-radius: var(--radius);
  font: inherit; font-family: var(--sans);
  transition: border-color .18s; text-align: center;
  background: var(--cream);
}
.cart-table input[type=number]:focus { outline: none; border-color: var(--rose-dark); }

/* ═══════════════════════════════════════════════════════════════
   FORMULÁŘE
═══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.45rem; }
.form-label {
  display: block; margin-bottom: .48rem;
  font-family: var(--sans); font-weight: 700; font-size: .72rem;
  color: var(--text); letter-spacing: .1em; text-transform: uppercase;
}
.form-control {
  width: 100%; padding: .76rem 1.15rem;
  border: 1.5px solid var(--cream-mid); border-radius: var(--radius-lg);
  font-family: var(--sans); font-size: .95rem; color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.form-control:focus {
  outline: none; border-color: var(--rose-dark);
  box-shadow: 0 0 0 3px var(--rose-glow);
}
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d6252' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.15rem center;
  padding-right: 2.8rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-hint { font-size: .75rem; color: var(--muted); margin-top: .42rem; font-family: var(--sans); }

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   GALERIE
═══════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 1; overflow: hidden;
  border-radius: var(--radius-lg); cursor: pointer;
  position: relative;
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(28,53,69,0);
  transition: background .28s;
}
.gallery-item:hover::after { background: rgba(28,53,69,.16); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .48s cubic-bezier(.22,.61,.36,1);
}
.gallery-item:hover img { transform: scale(1.08); }

/* ═══════════════════════════════════════════════════════════════
   STRÁNKOVÁNÍ
═══════════════════════════════════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .48rem 1.05rem; border-radius: var(--radius-lg);
  border: 1.5px solid var(--cream-mid);
  font-family: var(--sans); font-size: .8rem; color: var(--muted);
  transition: all .18s;
}
.pagination a:hover { background: var(--cream-dark); color: var(--text); }
.pagination .active span {
  background: var(--rose); border-color: var(--rose);
  color: #fff; font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER (podstránky)
═══════════════════════════════════════════════════════════════ */
.page-header {
  background: var(--ink); color: var(--text-on-dark);
  padding: 5.5rem 1.75rem 5.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(58,38,24,.55) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 80%, rgba(173,216,230,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(173,216,230,.06) 0%, transparent 50%);
}
.page-header::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,213,208,.6), transparent);
}
/* Rohové ozdoby */
.page-header .container::before,
.page-header .container::after {
  content: '◆';
  position: absolute;
  font-size: .6rem; color: rgba(242,213,208,.25); letter-spacing: 0;
  top: 1.75rem;
}
.page-header .container::before { left: 2.5rem; }
.page-header .container::after  { right: 2.5rem; }
.page-header h1 {
  position: relative;
  font-family: var(--font);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; margin-bottom: .65rem; letter-spacing: -.015em;
  font-style: italic;
}
.page-header p { position: relative; color: rgba(173,216,230,.48); font-style: italic; font-family: var(--font); }

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════════ */
.breadcrumb {
  font-family: var(--sans); font-size: .74rem; color: var(--muted);
  margin-bottom: 2rem; display: flex; align-items: center; gap: .4rem;
}
.breadcrumb a { color: var(--rose-dark); transition: color .15s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--cream-mid); }

/* ═══════════════════════════════════════════════════════════════
   DETAIL KNIHY
═══════════════════════════════════════════════════════════════ */
.book-detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; align-items: start; }
@media (max-width: 720px) {
  .book-detail-grid { grid-template-columns: 1fr; }
  .book-detail-grid > div:first-child { max-width: 220px; }
}

/* ═══════════════════════════════════════════════════════════════
   OBJEDNÁVKA
═══════════════════════════════════════════════════════════════ */
.order-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }

.order-sidebar {
  background: var(--cream);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  position: sticky; top: 90px;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   KONTAKT
═══════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink); color: rgba(173,216,230,.4);
  padding: 5.5rem 0 0; font-family: var(--sans);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(173,216,230,.32) 25%, rgba(173,216,230,.32) 75%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 4rem;
}
.footer-grid > div h4,
.footer-col h4,
.footer h4 {
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  color: rgba(173,216,230,.78); margin-bottom: 1.1rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.footer p, .footer a,
.footer-col p, .footer-col a {
  font-size: .84rem; color: rgba(173,216,230,.4); line-height: 1.78;
}
.footer a:hover, .footer-col a:hover { color: var(--rose-light); }
.footer ul li, .footer-col ul li { margin-bottom: .4rem; }
.footer-brand-name {
  font-family: var(--font); font-size: 1.5rem; font-weight: 700;
  color: rgba(173,216,230,.9); margin-bottom: .7rem;
  font-style: italic;
}
.footer-bottom {
  border-top: 1px solid rgba(173,216,230,.06);
  text-align: center; padding: 1.5rem;
  font-size: .73rem; color: rgba(173,216,230,.2);
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   COOKIE LIŠTA
═══════════════════════════════════════════════════════════════ */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(28,53,69,.97);
  color: rgba(173,216,230,.6);
  padding: 1.1rem 1.75rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
  z-index: 999; font-family: var(--sans); font-size: .82rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(173,216,230,.2);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════════════════ */
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   ORNAMENT — ozdobný oddělovač
═══════════════════════════════════════════════════════════════ */
.ornament {
  text-align: center;
  color: var(--rose); font-size: .78rem; font-family: var(--font);
  margin: 4rem 0; letter-spacing: .55rem; opacity: .5;
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  font-style: italic;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; max-width: 140px; height: 1px;
}
.ornament::before { background: linear-gradient(90deg, transparent, var(--rose)); }
.ornament::after  { background: linear-gradient(90deg, var(--rose), transparent); }

/* ═══════════════════════════════════════════════════════════════
   PRÁZDNÝ STAV
═══════════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 5.5rem 1.5rem; max-width: 440px; margin: 0 auto; }
.empty-state-icon { color: var(--cream-mid); margin: 0 auto 2rem; display: block; }
.empty-state h2 {
  font-family: var(--font); font-size: 1.65rem; font-weight: 700;
  color: var(--text); margin-bottom: .6rem; font-style: italic;
}
.empty-state p { font-family: var(--sans); color: var(--muted); margin-bottom: 2rem; font-size: .95rem; }

/* ═══════════════════════════════════════════════════════════════
   KOŠÍK — SOUHRN
═══════════════════════════════════════════════════════════════ */
.cart-summary {
  margin-top: 1.75rem; padding-top: 1.75rem;
  border-top: 1.5px solid var(--cream-mid);
}
.cart-total {
  font-family: var(--font);
  font-size: 1.55rem; font-weight: 700; color: var(--text);
  margin-bottom: .4rem; font-style: italic;
}
.cart-shipping-note {
  font-family: var(--sans); font-size: .85rem; color: var(--muted);
  margin-bottom: 1.5rem;
}
.cart-shipping-free {
  font-family: var(--sans); font-size: .85rem;
  color: #1a5c38; font-weight: 500; margin-bottom: 1.5rem;
}
.cart-actions { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   PLATEBNÍ MOŽNOSTI
═══════════════════════════════════════════════════════════════ */
.payment-options { display: flex; flex-direction: column; gap: .6rem; }
.payment-option {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--cream-mid); border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-family: var(--sans); font-size: .92rem; color: var(--text);
}
.payment-option:has(input:checked) {
  border-color: var(--rose); background: rgba(242,213,208,.25);
}
.payment-option:hover { border-color: var(--rose-dark); }
.payment-option input[type="radio"] {
  accent-color: var(--rose-dark); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   OBJEDNÁVKOVÝ FORMULÁŘ
═══════════════════════════════════════════════════════════════ */
.order-card {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem; margin-bottom: 1.5rem;
}
.order-card-title {
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  color: var(--muted); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1.4rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--cream-dark);
}
.order-sidebar-title {
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  color: var(--muted); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1.25rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--cream-dark);
}
.order-sidebar-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans); font-size: .87rem; color: var(--muted);
  margin-bottom: .5rem;
}
.order-sidebar-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font); font-size: 1.25rem; font-weight: 700;
  color: var(--text); margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1.5px solid var(--cream-mid);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   KONTAKTNÍ INFORMACE
═══════════════════════════════════════════════════════════════ */
.contact-info { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: .85rem;
  font-family: var(--sans); font-size: .92rem; color: var(--muted); line-height: 1.5;
}
.contact-info-item svg { flex-shrink: 0; margin-top: .1rem; color: var(--rose-dark); }
.contact-info-item a { color: var(--text); transition: color .15s; }
.contact-info-item a:hover { color: var(--rose-dark); }

/* ═══════════════════════════════════════════════════════════════
   DETAIL PŘÍSPĚVKU
═══════════════════════════════════════════════════════════════ */
.post-article-meta {
  font-family: var(--sans); font-size: .7rem; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; font-weight: 700;
}
.post-article-title {
  font-family: var(--font);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700; color: var(--text);
  line-height: 1.15; margin-bottom: 2.75rem; letter-spacing: -.015em;
  font-style: italic;
}
.post-article-image {
  width: 100%; border-radius: var(--radius-lg); margin-bottom: 2.75rem;
  max-height: 420px; object-fit: cover;
  box-shadow: var(--shadow);
}
.post-article-content {
  font-family: var(--sans); font-size: 1.05rem; line-height: 1.9; color: var(--text);
}
.post-article-content p + p { margin-top: 1.25rem; }
.post-article-content h2, .post-article-content h3 {
  font-family: var(--font); margin: 2.5rem 0 1rem; line-height: 1.3;
  letter-spacing: -.01em; font-style: italic;
}
.post-article-content img { border-radius: var(--radius-lg); margin: 2rem 0; max-width: 100%; }
.post-article-content blockquote {
  border-left: none;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  margin: 2.5rem 0;
  font-style: italic; color: var(--muted);
  font-family: var(--font); font-size: 1.1rem; line-height: 1.72;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  position: relative;
}
.post-article-content blockquote::before {
  content: '\201C';
  position: absolute; top: -.2rem; left: .9rem;
  font-size: 3.5rem; line-height: 1;
  color: var(--rose-light); font-family: var(--font); font-weight: 700;
  pointer-events: none;
}
.post-article-content a { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 3px; }
.post-article-back { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--cream-dark); }

/* ═══════════════════════════════════════════════════════════════
   DETAIL KNIHY — METADATA
═══════════════════════════════════════════════════════════════ */
.book-meta { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.book-meta-item { font-family: var(--sans); font-size: .84rem; color: var(--muted); }
.book-meta-item strong {
  color: var(--text); font-weight: 700; display: block;
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .15rem;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════════ */
#lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(10,6,4,.97); z-index: 9999;
  align-items: center; justify-content: center; flex-direction: column;
  cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
#lightbox.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#lightbox-img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  pointer-events: none;
}
#lightbox-title {
  color: rgba(173,216,230,.42); margin-top: 1.25rem;
  font-family: var(--font); font-size: .84rem; letter-spacing: .06em;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   CHYBOVÉ STRÁNKY
═══════════════════════════════════════════════════════════════ */
.error-page { text-align: center; padding: 7rem 1.5rem; }
.error-code {
  font-family: var(--font);
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 700; color: var(--cream-dark);
  line-height: 1; margin-bottom: .5rem; letter-spacing: -.04em;
  display: block; font-style: italic;
}
.error-page h2 {
  font-family: var(--font); font-size: 1.65rem; font-weight: 600;
  color: var(--text); margin-bottom: .75rem; font-style: italic;
}
.error-page p { font-family: var(--sans); color: var(--muted); font-size: .95rem; margin-bottom: 2.75rem; }
.error-page .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   SCROLL FADE-IN — jednoduché CSS reveal animace
═══════════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .7s cubic-bezier(.22,.61,.36,1) forwards;
}
.fade-up:nth-child(1) { animation-delay: .05s; }
.fade-up:nth-child(2) { animation-delay: .12s; }
.fade-up:nth-child(3) { animation-delay: .19s; }
.fade-up:nth-child(4) { animation-delay: .26s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Sage-tinted dekorativní badge (kategorie, stav) */
.badge-sage {
  display: inline-flex; align-items: center;
  background: var(--sage-light); color: var(--sage-dark);
  font-family: var(--sans); font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 100px;
}

/* ═══════════════════════════════════════════════════════════════
   DĚKOVNÁ STRÁNKA
═══════════════════════════════════════════════════════════════ */
.thankyou-page { text-align: center; padding: 5rem 1.5rem; max-width: 600px; margin: 0 auto; }
.thankyou-icon { color: var(--rose); margin: 0 auto 2rem; display: block; }
.thankyou-page h1 {
  font-family: var(--font); font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700; color: var(--text); margin-bottom: .65rem; letter-spacing: -.01em;
  font-style: italic;
}
.thankyou-page .order-number {
  font-family: var(--sans); color: var(--muted); font-size: 1rem; margin-bottom: 2.5rem;
}
.thankyou-card {
  background: #fff; border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  text-align: left; margin-bottom: 2.5rem;
  font-family: var(--sans); font-size: .92rem; color: var(--text); line-height: 1.72;
}
.thankyou-card p + p { margin-top: .75rem; }

/* ═══════════════════════════════════════════════════════════════
   SLEVA PRO ČLENY
═══════════════════════════════════════════════════════════════ */

/* Banner na stránce knih */
.member-banner {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--cream-mid);
  padding: .85rem 0;
}
.member-banner-active {
  background: var(--rose-light);
  border-color: var(--rose);
}
.member-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.member-banner-text {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  font-family: var(--sans); font-size: .9rem;
}
.member-banner-text strong { color: var(--text); }
.member-banner-text span   { color: var(--muted); }
.member-banner-actions     { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Badge na obálce knihy */
.book-member-badge {
  position: absolute; bottom: .6rem; left: 0; right: 0;
  text-align: center;
  background: var(--rose); color: var(--text-on-dark);
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .5rem;
}

/* Cena na kartě */
.book-price-wrap { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .75rem; }
.book-price-member { color: var(--rose); }
.book-price-original {
  font-size: .85rem; color: var(--muted); text-decoration: line-through;
  font-family: var(--sans);
}

/* Tag slevové ceny na detailu */
.member-price-tag {
  display: inline-block;
  background: var(--rose-light); color: var(--text);
  font-family: var(--sans); font-size: .75rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: var(--radius);
  letter-spacing: .04em;
}

/* Hint odkaz pro nepřihlášené na detailu */
.member-hint-link {
  font-family: var(--sans); font-size: .85rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--cream-mid);
  transition: color .2s;
}
.member-hint-link:hover { color: var(--rose); }

/* Auth karta (přihlášení / registrace) */
.auth-card {
  background: var(--white);
  border: 1px solid var(--cream-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.auth-card .form-control {
  background: var(--cream);
  border-color: var(--cream-mid);
  border-radius: var(--radius-lg);
}
.auth-card .form-control:focus {
  background: var(--white);
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-glow);
}

/* Box výhody registrace */
.member-benefit-box {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--rose-light);
  border: 1px solid var(--rose);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
}
.member-benefit-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--rose); color: var(--text-on-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1rem; font-weight: 900;
  flex-shrink: 0;
}
