/** Shopify CDN: Minification failed

Line 23:10 Expected identifier but found whitespace
Line 23:12 Unexpected "{"
Line 23:22 Expected ":"
Line 24:10 Expected identifier but found whitespace
Line 24:12 Unexpected "{"
Line 24:22 Expected ":"
Line 25:8 Expected identifier but found whitespace
Line 25:10 Unexpected "{"
Line 25:20 Expected ":"
Line 26:13 Expected identifier but found whitespace
... and 8 more hidden warnings

**/
/*
  Книжен свят — Editorial Ivory Shopify Theme
  Тиха, бутикова, премиум естетика.
  Цветове и шрифтове са настроени през theme settings (settings_data.json).
*/

:root {
  --ivory: {{ settings.color_ivory | default: '#F6EFE3' }};
  --cream: {{ settings.color_cream | default: '#EFE5D2' }};
  --ink: {{ settings.color_ink | default: '#2B2620' }};
  --espresso: {{ settings.color_espresso | default: '#3F362B' }};
  --clay: {{ settings.color_clay | default: '#B97E5E' }};
  --sage: {{ settings.color_sage | default: '#8A9A7B' }};

  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container-max: 1240px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(185,126,94,0.05), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(138,154,123,0.06), transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin: 0;
  line-height: 1.1;
}

p { margin: 0; }

::selection {
  background: var(--clay);
  color: var(--ivory);
}

/* Layout */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  max-width: var(--container-max);
}
@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0;
}

.rule {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(63,54,43,0.25), transparent);
  border: 0;
}

.ornament {
  color: var(--clay);
  letter-spacing: 0.4em;
  font-family: var(--font-serif);
  font-style: italic;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--espresso);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--espresso);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.23,1,0.32,1), background-color 200ms ease, border-color 200ms ease;
}
.btn-primary:hover { background: var(--clay); border-color: var(--clay); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso);
  border: 0;
  border-bottom: 1px solid rgba(63,54,43,0.4);
  background: transparent;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}
.btn-ghost:hover { color: var(--clay); border-color: var(--clay); }

/* Cause bar */
.cause-bar {
  background: var(--espresso);
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cause-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  text-align: center;
}
.cause-bar svg { width: 14px; height: 14px; opacity: 0.85; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--ivory) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63,54,43,0.08);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 640px) { .site-header__row { height: 80px; } }
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}
.site-logo__name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--espresso);
  letter-spacing: -0.01em;
  line-height: 1;
}
@media (min-width: 640px) { .site-logo__name { font-size: 26px; } }
.site-logo__sub {
  display: none;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}
@media (min-width: 768px) { .site-logo__sub { display: inline-block; } }
.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 1200px) { .site-nav { display: flex; } }
.site-nav a {
  font-size: 13px;
  color: var(--espresso);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--clay); border-color: var(--clay); }
.site-actions { display: flex; align-items: center; gap: 0.75rem; }
.cart-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso);
}
@media (min-width: 768px) { .cart-link { display: inline-flex; } }
.cart-link svg { width: 18px; height: 18px; }

.menu-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
  cursor: pointer;
}
@media (min-width: 1200px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  background: var(--ivory);
  border-top: 1px solid rgba(63,54,43,0.08);
}
.mobile-nav.is-open { display: block; }
.mobile-nav__inner { display: flex; flex-direction: column; padding: 1rem 0 1.25rem; }
.mobile-nav a {
  padding: 0.75rem 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--espresso);
}

/* Hero */
.hero { padding: 3rem 0 4rem; }
@media (min-width: 1024px) { .hero { padding: 5rem 0 6rem; } }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; }
}
.hero__copy { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .hero__copy { grid-column: span 6; } }
.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  margin-top: 1rem;
}
.hero__title em { font-style: italic; color: var(--clay); }
.hero__lead {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: 1rem;
  color: var(--ink);
  opacity: 0.88;
}
@media (min-width: 768px) { .hero__lead { font-size: 1.05rem; } }
.hero__ctas { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__divider { margin-top: 2.25rem; display: inline-flex; align-items: center; gap: 0.75rem; color: var(--clay); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.hero__divider span { width: 40px; height: 1px; background: var(--clay); display: inline-block; }
.hero__media { position: relative; }
@media (min-width: 1024px) { .hero__media { grid-column: span 6; } }
.hero__image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  overflow: hidden;
}
.hero__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(246,239,227,0.92);
  border: 1px solid rgba(63,54,43,0.1);
  padding: 0.75rem 1rem;
  display: flex; gap: 0.65rem; align-items: center;
  font-size: 12px;
  color: var(--espresso);
}
@media (min-width: 640px) { .hero__badge { left: 1.5rem; right: 1.5rem; padding: 1rem 1.25rem; font-size: 13px; } }
.hero__badge svg { width: 16px; height: 16px; flex: none; }

/* Generic section */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }
.section--cream { background: var(--cream); }
.section__head { text-align: center; }
.section__head .ornament { margin-top: 1.25rem; display: inline-block; }
.section__title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-top: 0.75rem;
}
.section__title em { font-style: italic; color: var(--clay); }
.section__lead {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1rem;
  color: var(--ink);
  opacity: 0.85;
}

/* Two-column with image */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, 1fr); gap: 4rem; }
  .split__image { grid-column: span 5; }
  .split__copy { grid-column: 7 / span 6; }
  .split--reverse .split__image { grid-column: 7 / span 6; order: 2; }
  .split--reverse .split__copy { grid-column: 1 / span 6; order: 1; }
}
.split__image .img-wrap {
  aspect-ratio: 4/3;
  background: var(--cream);
  overflow: hidden;
}
.split__image img { width: 100%; height: 100%; object-fit: cover; }

/* Authors */
.authors { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3.5rem; }
@media (min-width: 768px) { .authors { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.author-card { display: grid; grid-template-columns: 5fr 7fr; gap: 1.25rem; }
.author-card__image { aspect-ratio: 3/4; background: var(--cream); overflow: hidden; }
.author-card__image img { width: 100%; height: 100%; object-fit: cover; }
.author-card__name { font-size: 1.75rem; margin-top: 0.25rem; }
.author-card__role { color: var(--clay); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.author-card__short { margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.6; color: var(--ink); opacity: 0.88; }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.product-card__image {
  aspect-ratio: 3/4;
  background: var(--cream);
  overflow: hidden;
  position: relative;
}
.product-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms cubic-bezier(0.23,1,0.32,1);
}
.product-card:hover .product-card__image img { transform: scale(1.03); }
.product-card__tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 8px;
  background: rgba(246,239,227,0.92);
  color: var(--espresso);
  border: 1px solid rgba(63,54,43,0.1);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.product-card__author { color: var(--clay); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 1rem; }
.product-card__title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--espresso); margin-top: 0.25rem; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.product-card__price { font-size: 0.9rem; color: var(--ink); opacity: 0.85; }

/* Author page hero */
.author-hero { padding: 3rem 0 4rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) {
  .author-hero { grid-template-columns: repeat(12, 1fr); gap: 4rem; padding: 5rem 0 6rem; }
  .author-hero__image { grid-column: span 5; }
  .author-hero__copy { grid-column: span 7; }
}
.author-hero__image .img-wrap { aspect-ratio: 3/4; background: var(--cream); overflow: hidden; }
.author-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.author-hero__name { font-size: clamp(2.2rem, 4.4vw, 3.5rem); margin-top: 1rem; }
.author-hero__bio { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; font-size: 1rem; line-height: 1.7; color: var(--ink); opacity: 0.9; }

.socials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.socials a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(63,54,43,0.2);
  color: var(--espresso);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 200ms ease, color 200ms ease;
}
.socials a:hover { color: var(--clay); border-color: var(--clay); }
.socials a svg { width: 14px; height: 14px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.25rem; }
.filters a, .filters button {
  padding: 0.55rem 1rem;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(63,54,43,0.25);
  color: var(--espresso);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.filters a.is-active, .filters button.is-active {
  background: var(--espresso);
  color: var(--ivory);
  border-color: var(--espresso);
}

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid label { display: flex; flex-direction: column; gap: 0.5rem; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--espresso); }
.form-grid input, .form-grid textarea {
  background: transparent;
  border: 1px solid rgba(63,54,43,0.25);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.form-grid label.full { grid-column: 1 / -1; }
.form-grid textarea { min-height: 160px; resize: vertical; }

/* Footer */
.site-footer {
  margin-top: 6rem;
  background: var(--espresso);
  color: var(--ivory);
}
.site-footer .container { padding-top: 3.5rem; padding-bottom: 1.25rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(12, 1fr); }
  .footer-brand { grid-column: span 4; }
  .footer-authors { grid-column: span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-contact { grid-column: span 3; }
}
.footer-brand__name { font-family: var(--font-serif); font-size: 2rem; color: var(--ivory); }
.footer-brand__tag { margin-top: 0.75rem; font-size: 0.9rem; opacity: 0.85; max-width: 22rem; }
.footer-cause { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.9; }
.footer-author__role { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; }
.footer-author__name { font-family: var(--font-serif); font-size: 1.25rem; color: var(--ivory); margin-top: 0.25rem; }
.footer-author__sub { font-size: 12px; opacity: 0.78; margin-top: 0.25rem; }
.footer-author .socials { margin-top: 1rem; }
.footer-author .socials a {
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid rgba(246,239,227,0.35);
  color: var(--ivory);
  border-radius: 999px;
  justify-content: center;
}
.footer-author__more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(246,239,227,0.4);
  padding-bottom: 2px;
}
.footer-contact__title { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ivory); margin-top: 0.25rem; }
.footer-contact a { display: inline-block; margin-top: 0.4rem; font-size: 0.9rem; opacity: 0.9; word-break: break-word; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-meta {
  border-top: 1px solid rgba(246,239,227,0.15);
  padding-top: 1.25rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 12px; opacity: 0.78;
}
@media (min-width: 640px) { .footer-meta { flex-direction: row; } }
.footer-meta em { font-family: var(--font-serif); font-style: italic; }

/* Utilities */
.muted { color: var(--ink); opacity: 0.85; }
.italic { font-style: italic; }
.note { font-size: 12px; opacity: 0.7; font-style: italic; }
.center { text-align: center; }
.spacer-sm { height: 1rem; }
.spacer { height: 2rem; }
.spacer-lg { height: 4rem; }

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

/* Cause cards */
.cause-cards { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .cause-cards { grid-template-columns: repeat(3, 1fr); } }
.cause-card { display: flex; gap: 1rem; align-items: flex-start; }
.cause-card svg { width: 22px; height: 22px; color: var(--clay); flex: none; margin-top: 4px; }
.cause-card h3 { font-size: 1.5rem; }

/* About strengths */
.strengths { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .strengths { grid-template-columns: repeat(3, 1fr); } }
.strength { border-top: 1px solid rgba(63,54,43,0.18); padding-top: 1rem; }
.strength__num { font-size: 11px; letter-spacing: 0.22em; color: var(--clay); }
.strength__title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--espresso); margin-top: 0.25rem; }
.strength__desc { font-size: 0.9rem; color: var(--ink); opacity: 0.8; margin-top: 0.25rem; }
