/* ==========================================================================
   Bookrik.bg — Премиум Онлайн Книжарница
   Класически WordPress / WooCommerce Книжен Стил
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Книжна Цветова Палитра */
  --book-burgundy: #801726;       /* Основен книжен бордо цвят */
  --book-burgundy-dark: #610e1a;  /* Тъмно бордо за hover състояния */
  --book-burgundy-light: #fbebee; /* Мек фон за бейджове и акценти */
  --book-navy: #192738;           /* Дълбоко оксфордско синьо за шапка и текст */
  --book-navy-light: #2c3e55;
  --book-gold: #c58f38;           /* Благородно книжно злато / охра */
  --book-gold-hover: #b07d2b;
  --book-gold-light: #fef7ec;
  
  /* Фонове и хартия */
  --bg-cream: #fdfbf7;            /* Топъл цвят на фин книжен лист */
  --bg-paper: #ffffff;            /* Чисто бяло за карти и секции */
  --bg-sand: #f4efe6;             /* Мек пясъчен цвят за разделители и банери */
  --bg-surface-alt: #faf7f2;
  
  /* Текст и сенки */
  --text-dark: #22252a;           /* Тъмен въглен за четене с висок контраст */
  --text-body: #3c424a;           /* Основен текст за четене */
  --text-muted: #6f7782;          /* Вторичен приглушен текст */
  --text-light: #9ea5b0;
  --border-color: #e5decfa8;      /* Елегантни рамки в цвят пергамент */
  --border-light: #eee9e0;
  
  /* Статуси */
  --badge-discount: #c92a2a;      /* Червено за процентни намаления */
  --badge-top: #c58f38;           /* Злато за ТОП заглавия */
  --badge-hit: #2b8a3e;           /* Зелено за ХИТ */
  --badge-new: #1971c2;           /* Синьо за НОВО */
  --badge-stock: #2b8a3e;         /* В наличност */
  
  /* Типографика */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  
  /* Размери и плавност */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(25, 39, 56, 0.05);
  --shadow-md: 0 6px 18px rgba(25, 39, 56, 0.08);
  --shadow-lg: 0 14px 32px rgba(25, 39, 56, 0.12);
  --shadow-book: 5px 6px 16px rgba(25, 39, 56, 0.16), 1px 1px 4px rgba(25, 39, 56, 0.1);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

/* --- Основен Нулиращ Стил (Reset & Base) --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

button {
  cursor: pointer;
  background: none;
}

ul, ol {
  list-style: none;
}

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

/* --- Горна Информационна Лента (Top Bar) --- */
.site-topbar {
  background-color: var(--book-navy);
  color: #e3e8ee;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--book-gold);
  flex-shrink: 0;
}

.topbar-promo-badge {
  background: var(--book-burgundy);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.topbar-currency {
  font-weight: 700;
  color: var(--book-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- Главна Заглавна Част (Header) --- */
.site-header {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

/* Логотип */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--book-burgundy), var(--book-burgundy-dark));
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(128, 23, 38, 0.3);
}

.brand-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--book-navy);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-name span {
  color: var(--book-burgundy);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
}

/* Търсачка (WooCommerce Style Live Search) */
.header-search {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-cream);
  overflow: hidden;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--book-burgundy);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(128, 23, 38, 0.1);
}

.search-select-category {
  background: transparent;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-dark);
  font-weight: 600;
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  max-width: 140px;
}

.search-input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: transparent;
  color: var(--text-dark);
  font-size: 0.875rem;
}

.search-btn {
  background: var(--book-burgundy);
  color: #ffffff;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--book-burgundy-dark);
}

.search-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Бутони за връзка, Любими и Количка */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-phone-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--book-gold-light);
  border: 1px solid var(--book-gold);
  color: var(--book-gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon-bubble svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.phone-details {
  display: flex;
  flex-direction: column;
}

.phone-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.phone-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--book-navy);
}

/* Количка */
.header-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
}

.header-cart-btn:hover {
  border-color: var(--book-burgundy);
  background: var(--bg-paper);
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--book-burgundy);
}

.cart-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--badge-discount);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.cart-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cart-meta-title {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-meta-total {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--book-burgundy);
}

/* --- Навигационна Лента (Navigation Bar) --- */
.site-nav {
  background: var(--book-navy);
  color: #ffffff;
}

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

.nav-categories-trigger {
  background: var(--book-burgundy);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-categories-trigger:hover {
  background: var(--book-burgundy-dark);
}

.nav-categories-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #dbe2ea;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.promo-highlight {
  color: #ffc078;
  font-weight: 700;
}

.nav-link.promo-highlight:hover {
  color: #ffa94d;
}

.nav-quick-order-btn {
  background: var(--book-gold);
  color: var(--book-navy);
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.nav-quick-order-btn:hover {
  background: var(--book-gold-hover);
  color: #ffffff;
}

/* Мобилен бутон (Hamburger) */
.mobile-nav-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--book-navy);
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* --- Хлябни трохи (Breadcrumbs) --- */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumbs a {
  color: var(--text-body);
}

.breadcrumbs a:hover {
  color: var(--book-burgundy);
  text-decoration: underline;
}

.breadcrumbs span.separator {
  color: var(--text-light);
}

.breadcrumbs span.current {
  color: var(--book-burgundy);
  font-weight: 600;
}

/* --- Главни Банери (Hero Slider / Banner) --- */
.hero-bookstore {
  padding: 2rem 0;
  background: linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-cream) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.hero-banner-main {
  background: linear-gradient(135deg, #2b1216 0%, #541720 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner-main::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(197, 143, 56, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 480px;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-display);
  color: var(--book-gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 0.95rem;
  color: #f1e4e6;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-image-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-book-stack {
  width: 220px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: -12px 14px 28px rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.1);
  transform: rotate(3deg);
  transition: var(--transition);
}

.hero-book-stack:hover {
  transform: rotate(0deg) scale(1.03);
}

/* Странични промо карти в Hero */
.hero-side-banners {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-banner-item {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.side-banner-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--book-burgundy);
}

.side-banner-item.gold-theme {
  background: linear-gradient(135deg, #fefaf3 0%, #faeee0 100%);
  border-color: #ebd6be;
}

.side-banner-thumb {
  width: 85px;
  height: 115px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-book);
  flex-shrink: 0;
}

.side-banner-content h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--book-navy);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.side-banner-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.side-banner-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--book-burgundy);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.side-banner-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- Предимства (Features / Trust Badges) --- */
.features-section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-paper);
}

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

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--book-burgundy-light);
  color: var(--book-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.feature-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--book-navy);
  margin-bottom: 0.2rem;
}

.feature-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* --- Заглавни секции (Section Headings) --- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 90px;
  height: 2px;
  background: var(--book-burgundy);
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--book-burgundy);
  margin-bottom: 0.25rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--book-navy);
  line-height: 1.2;
}

.section-more-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--book-burgundy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.section-more-link:hover {
  color: var(--book-burgundy-dark);
  text-decoration: underline;
}

.section-more-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- Сетки за Продукти (Product Grids) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* 1. Класическа Картотека на Книга (Standard Book Card) */
.book-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--book-burgundy);
  box-shadow: var(--shadow-md);
}

/* Корица и Снимка на Книгата с 3D ефект */
.book-card-cover {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.book-cover-img {
  max-height: 100%;
  width: auto;
  max-width: 85%;
  object-fit: cover;
  border-radius: 2px 5px 5px 2px;
  box-shadow: var(--shadow-book);
  transition: transform 0.3s ease;
  position: relative;
}

/* Имитация на реалистичен книжен гръбнак */
.book-card-cover::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}

.book-card:hover .book-cover-img {
  transform: scale(1.04);
}

/* Бейджове за отстъпки и статус */
.book-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 5;
}

.badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.badge-discount {
  background: var(--badge-discount);
  color: #ffffff;
}

.badge-top {
  background: var(--badge-top);
  color: #ffffff;
}

.badge-hit {
  background: var(--badge-hit);
  color: #ffffff;
}

.badge-new {
  background: var(--badge-new);
  color: #ffffff;
}

/* Мета данни за книгата */
.book-genre {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.book-author {
  font-size: 0.8125rem;
  color: var(--book-gold-hover);
  font-weight: 600;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--book-navy);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

.book-title a:hover {
  color: var(--book-burgundy);
}

/* Рейтинг */
.book-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
}

.rating-stars {
  color: #f59f00;
  display: inline-flex;
  gap: 1px;
}

.rating-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.rating-count {
  color: var(--text-muted);
}

/* Ценови Блок (Евро €) */
.book-price-block {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-light);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.prices-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--book-burgundy);
}

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

.price-save-badge {
  font-size: 0.7rem;
  background: var(--book-gold-light);
  color: var(--book-gold-hover);
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

/* Бутони за действие в картата */
.book-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.btn-buy {
  background: var(--book-burgundy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-buy:hover {
  background: var(--book-burgundy-dark);
  box-shadow: 0 4px 10px rgba(128, 23, 38, 0.25);
}

.btn-buy svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-quick-view {
  background: var(--bg-surface-alt);
  color: var(--book-navy);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-quick-view:hover {
  background: var(--book-navy);
  color: #ffffff;
  border-color: var(--book-navy);
}

.btn-quick-view svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* 2. Голяма Препоръчана Книга / Книга на Деня (Spotlight Book Card) */
.spotlight-card {
  background: var(--bg-paper);
  border: 2px solid var(--book-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: "КНИГА НА ДЕНЯ";
  position: absolute;
  top: 18px;
  right: -35px;
  background: var(--book-gold);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.35rem 3rem;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.spotlight-cover-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.spotlight-cover {
  max-height: 330px;
  width: auto;
  object-fit: cover;
  box-shadow: -8px 10px 24px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.spotlight-details {
  display: flex;
  flex-direction: column;
}

.spotlight-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.spotlight-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--book-navy);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.spotlight-author {
  font-size: 1rem;
  font-weight: 600;
  color: var(--book-gold-hover);
  margin-bottom: 1rem;
}

.spotlight-excerpt {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.spotlight-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: var(--bg-surface-alt);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
}

.spec-item span:first-child {
  color: var(--text-muted);
  display: block;
}

.spec-item span:last-child {
  font-weight: 700;
  color: var(--book-navy);
}

.spotlight-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: auto;
}

/* --- Категории (Categories Grid) --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.category-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.85rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.category-card:hover {
  border-color: var(--book-burgundy);
  background: var(--bg-surface-alt);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.category-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--book-burgundy);
  transition: var(--transition);
}

.category-card:hover .category-icon-wrap {
  background: var(--book-burgundy);
  color: #ffffff;
  border-color: var(--book-burgundy);
}

.category-icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.category-name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--book-navy);
  line-height: 1.2;
}

.category-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- Каталог Страница (Catalog Layout) --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.catalog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-widget {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.filter-widget-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--book-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-body);
  cursor: pointer;
}

.filter-item input[type="checkbox"] {
  accent-color: var(--book-burgundy);
  margin-right: 0.5rem;
}

.filter-item .count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

/* Каталог Тулбар */
.catalog-toolbar {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-results-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.catalog-sorting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.catalog-sort-select {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* Пагинация */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-paper);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition);
}

.page-link:hover, .page-link.active {
  background: var(--book-burgundy);
  color: #ffffff;
  border-color: var(--book-burgundy);
}

/* --- Страница на Продукт (Single Product Layout) --- */
.product-layout {
  padding: 2rem 0 3.5rem;
}

.product-main-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-main-image-wrap {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.product-main-image {
  max-height: 440px;
  width: auto;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: -10px 12px 28px rgba(0, 0, 0, 0.22);
}

.product-thumbnails {
  display: flex;
  gap: 0.75rem;
}

.product-thumb {
  width: 75px;
  height: 95px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  object-fit: cover;
  padding: 0.25rem;
  background: #ffffff;
  transition: var(--transition);
}

.product-thumb.active, .product-thumb:hover {
  border-color: var(--book-burgundy);
}

/* Детайли за Продукта */
.product-details {
  display: flex;
  flex-direction: column;
}

.product-author-badge {
  font-size: 1.05rem;
  color: var(--book-gold-hover);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.product-page-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--book-navy);
  margin-bottom: 0.75rem;
}

.product-status-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.status-in-stock {
  color: var(--badge-stock);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-in-stock svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Ценови панел на страницата */
.product-pricing-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.pricing-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.product-current-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--book-burgundy);
}

.product-old-price {
  font-size: 1.15rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.vat-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-order-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-add-cart {
  background: var(--book-burgundy);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--book-burgundy-dark);
  box-shadow: 0 6px 14px rgba(128, 23, 38, 0.3);
}

.btn-add-cart svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Бутон за Бърза Поръчка (1-Клик) */
.btn-fast-order-modal {
  background: var(--book-gold);
  color: var(--book-navy);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-fast-order-modal:hover {
  background: var(--book-gold-hover);
  color: #ffffff;
}

.btn-fast-order-modal svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Табове (Tabs) */
.product-tabs-wrapper {
  margin-top: 2rem;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.tab-btn {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.75rem 0;
  position: relative;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  color: var(--book-burgundy);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--book-burgundy);
}

.tab-content {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  line-height: 1.7;
}

/* --- ОФОРМЛЕНИЕ НА ПОРЪЧКА (CHECKOUT - САМО ИМЕ И ТЕЛЕФОН) --- */
.checkout-page-section {
  padding: 2.5rem 0 4rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.checkout-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--book-burgundy);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.checkout-card-header h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--book-navy);
}

.checkout-intro-text {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 1.75rem;
  line-height: 1.5;
  background: var(--book-gold-light);
  border-left: 4px solid var(--book-gold);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Форма с две полета: Име и Телефон */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--book-navy);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--badge-discount);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: var(--bg-cream);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--book-burgundy);
  box-shadow: 0 0 0 3px rgba(128, 23, 38, 0.1);
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: block;
}

/* Доставка и Плащане бележки */
.delivery-notice-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin: 1.5rem 0;
}

.delivery-notice-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--book-navy);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.delivery-notice-title svg {
  width: 18px;
  height: 18px;
  fill: var(--badge-stock);
}

.delivery-notice-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.terms-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-body);
}

.terms-checkbox-wrap input {
  margin-top: 0.25rem;
  accent-color: var(--book-burgundy);
}

.btn-submit-order {
  width: 100%;
  background: var(--book-burgundy);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(128, 23, 38, 0.25);
}

.btn-submit-order:hover {
  background: var(--book-burgundy-dark);
  box-shadow: 0 8px 18px rgba(128, 23, 38, 0.35);
}

.btn-submit-order svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Обобщение на поръчката (Order Summary) */
.order-summary-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-light);
}

.summary-item-img {
  width: 55px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-book);
  flex-shrink: 0;
}

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

.summary-item-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--book-navy);
  line-height: 1.3;
}

.summary-item-qty {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.summary-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--book-burgundy);
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding-top: 0.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-body);
}

.summary-row.total-row {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--book-navy);
  border-top: 2px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.total-row span:last-child {
  color: var(--book-burgundy);
}

/* --- СТРАНИЦА БЛАГОДАРИМ ВИ (THANK YOU PAGE) --- */
.thank-you-section {
  padding: 3.5rem 0 5rem;
}

.thank-you-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.success-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: #ebfbee;
  color: #2b8a3e;
  border: 3px solid #b2f2bb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon-wrap svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.thank-you-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--book-navy);
  margin-bottom: 0.75rem;
}

.order-code-badge {
  display: inline-block;
  background: var(--book-gold-light);
  border: 1px dashed var(--book-gold);
  color: var(--book-gold-hover);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.thank-you-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.25rem 0;
  text-align: left;
}

.thank-step {
  background: var(--bg-cream);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.thank-step-num {
  font-weight: 800;
  color: var(--book-burgundy);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.thank-step h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--book-navy);
  margin-bottom: 0.25rem;
}

.thank-step p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* --- ИНФОРМАЦИОННИ И ПРАВНИ СТРАНИЦИ (GDPR, Terms, Shipping) --- */
.policy-page-section {
  padding: 2.5rem 0 4rem;
}

.policy-content-box {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
}

.policy-content-box h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--book-navy);
  margin-bottom: 0.5rem;
}

.policy-updated-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.policy-content-box h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--book-navy);
  margin: 1.75rem 0 0.75rem;
}

.policy-content-box h3 {
  font-size: 1.05rem;
  color: var(--book-burgundy);
  margin: 1.25rem 0 0.5rem;
}

.policy-content-box p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.policy-content-box ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.company-requisites-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.company-requisites-table th, .company-requisites-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.company-requisites-table th {
  background: var(--bg-cream);
  font-weight: 700;
  color: var(--book-navy);
  width: 35%;
}

/* --- ФУТЪР В СТИЛ WOOCOMMERCE (Comprehensive Footer) --- */
.site-footer {
  background: var(--book-navy);
  color: #ccd4dc;
  margin-top: auto;
  border-top: 3px solid var(--book-burgundy);
}

.footer-top {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--book-gold);
}

.footer-about-text {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: #aeb9c6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--book-gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Долен бар на футера (Bottom Legal Bar) */
.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #8c97a5;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-badges-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.courier-logo-badge {
  background: #ffffff;
  color: #111111;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.courier-logo-badge.speedy {
  color: #e02424;
}

.courier-logo-badge.econt {
  color: #1a56db;
}

/* --- МОДАЛНИ ПРОЗОРЦИ (1-КЛИК ПОРЪЧКА И БЪРЗ ПРЕГЛЕД) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 28, 40, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-paper);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-cream);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--book-burgundy);
  color: #ffffff;
}

.modal-close-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- БИСКВИТКИ (GDPR COOKIE BANNER) --- */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  max-width: 440px;
  background: var(--book-navy);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.cookie-banner.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
}

.cookie-banner h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--book-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #d1d9e2;
}

.cookie-banner p a {
  color: var(--book-gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-cookie-accept {
  flex: 1;
  background: var(--book-burgundy);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-cookie-accept:hover {
  background: var(--book-burgundy-dark);
}

.btn-cookie-decline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-cookie-decline:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Уведомление за добавена книга (Toast Notification) */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--book-navy);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
  border-left: 4px solid var(--badge-stock);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}
