/* Modern Apothecary — design tokens
 * Zdroj: Claude Design bundle (WEB/project/src/tokens.css)
 * Umístění na serveru: /wp-content/uploads/apothecary-tokens.css
 */
:root {
  --bg: #f9f9f6;
  --surface: #f9f9f6;
  --surface-lowest: #ffffff;
  --surface-low: #f4f4f1;
  --surface-container: #eeeeeb;
  --surface-high: #e8e8e5;
  --surface-highest: #e2e3e0;
  --surface-variant: #e2e3e0;
  --on-surface: #1a1c1b;
  --on-surface-variant: #3f4941;
  --outline: #6f7a70;
  --outline-variant: #becabe;
  --primary: #006a3b;
  --primary-container: #268451;
  --on-primary: #ffffff;
  --secondary: #3b674e;
  --secondary-container: #bdeece;
  --on-secondary-container: #234f38;
  --tertiary: #F59E0B;
  --tertiary-dim: #ffb95f;
  --on-tertiary: #ffffff;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --star: #F59E0B;
  --shadow-card: 0px 12px 24px -6px rgba(26, 28, 27, 0.06);
  --shadow-float: 0px 24px 48px -12px rgba(26, 28, 27, 0.10);
  --glass: rgba(250, 250, 247, 0.82);
}

html.dark {
  --bg: #0f1210;
  --surface: #0f1210;
  --surface-lowest: #171a18;
  --surface-low: #141715;
  --surface-container: #1b1e1c;
  --surface-high: #222623;
  --surface-highest: #2a2e2b;
  --surface-variant: #2a2e2b;
  --on-surface: #e6e8e4;
  --on-surface-variant: #b6beb6;
  --outline: #8a938b;
  --outline-variant: #3a453d;
  --primary: #7ed99e;
  --primary-container: #00522d;
  --on-primary: #00210f;
  --secondary: #a2d1b3;
  --secondary-container: #234f38;
  --on-secondary-container: #bdeece;
  --tertiary: #ffb95f;
  --tertiary-dim: #F59E0B;
  --on-tertiary: #2a1700;
  --glass: rgba(15, 18, 16, 0.78);
}

/* ==================== BASE ==================== */
html, body { background: var(--bg); color: var(--on-surface); }
body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.font-serif, .font-headline, .apo h1, .apo h2, .apo h3, .apo h4 { font-family: 'Newsreader', Georgia, serif; }
.tabular { font-variant-numeric: tabular-nums; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-highest); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* ==================== GHOST BORDER (No-line rule) ==================== */
.ghost-b { box-shadow: inset 0 0 0 1px rgba(190, 202, 190, 0.15); }
html.dark .ghost-b { box-shadow: inset 0 0 0 1px rgba(58, 69, 61, 0.5); }

/* ==================== TRANSITIONS ==================== */
.tx { transition: all .25s cubic-bezier(.2,.7,.2,1); }

/* ==================== FOCUS ==================== */
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ==================== MATERIAL SYMBOLS ==================== */
.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.ms.filled { font-variation-settings: 'FILL' 1; }

/* ==================== SKELETON / LOADING ==================== */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-low) 0%, var(--surface-container) 50%, var(--surface-low) 100%);
  background-size: 800px 100%;
  animation: shimmer 1.4s linear infinite;
}

/* ==================== TOAST ==================== */
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-in { animation: toastIn .32s cubic-bezier(.2,.8,.2,1) both; }

/* ==================== PAGE FADE ==================== */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.page-in { animation: pageIn .36s cubic-bezier(.2,.8,.2,1) both; }

/* ==================== BOTTOM SHEET ==================== */
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-in { animation: sheetIn .3s cubic-bezier(.2,.8,.2,1) both; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn .2s ease both; }

/* ==================== TRUNCATE ==================== */
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ==================== EDITORIAL DETAILS ==================== */
.drop-cap::first-letter {
  font-family: 'Newsreader', serif;
  font-size: 4.2em;
  line-height: .9;
  float: left;
  padding: 6px 10px 0 0;
  font-weight: 600;
  color: var(--primary);
}

/* ==================== CHART BAR ==================== */
.bar-fill { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-container) 100%); }

/* ==================== CTA BUTTONS ==================== */
.cta-amber {
  background: linear-gradient(180deg, #F7AE2B 0%, #E48B05 100%);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(245, 158, 11, .35), inset 0 1px 0 rgba(255,255,255,.35);
}
.cta-amber:hover { filter: brightness(1.04); color: #fff; }

.cta-primary {
  background: linear-gradient(180deg, #0b8049 0%, #00522d 100%);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(0, 106, 59, .35), inset 0 1px 0 rgba(255,255,255,.18);
}
.cta-primary:hover { filter: brightness(1.06); color: #fff; }

/* ==================== NO SCROLLBAR ==================== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ======================================================================
   HOMEPAGE-SPECIFIC COMPONENTS (přepsáno z Claude Design JSX)
   ====================================================================== */

/* --- Glassmorphism TOP NAV --- */
.apo-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(26,28,27,0.04);
}
.apo-nav__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 72px;
}
.apo-nav__logo {
  font-family: 'Newsreader', serif;
  font-style: italic; font-weight: 600;
  font-size: 22px; color: var(--primary);
  text-decoration: none;
}
.apo-nav__links { display: none; gap: 32px; align-items: center; }
.apo-nav__links a {
  color: var(--on-surface-variant);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.apo-nav__links a:hover, .apo-nav__links a.active { color: var(--primary); }
.apo-nav__actions { display: flex; align-items: center; gap: 8px; }
.apo-nav__btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--on-surface);
  transition: background .2s;
}
.apo-nav__btn:hover { background: rgba(0,0,0,0.05); }
@media (min-width: 900px) { .apo-nav__links { display: flex; } }

/* --- Sekce pod nav offsetem --- */
.apo-main { padding-top: 112px; }

/* --- Admin bar offset (WordPress přihlášený uživatel) --- */
.admin-bar .apo-nav { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .apo-nav { top: 46px; }
}
.admin-bar .apo-main { padding-top: 144px; }
@media screen and (max-width: 782px) {
    .admin-bar .apo-main { padding-top: 158px; }
}

/* --- Container --- */
.apo-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .apo-container { padding: 0 40px; } }

/* --- HERO --- */
.apo-hero { padding: 48px 0 96px; }
.apo-hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .apo-hero__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.apo-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface-container);
  color: var(--on-surface-variant);
  margin-bottom: 24px;
}
.apo-hero__eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--primary);
}
.apo-hero__title {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98; letter-spacing: -0.02em;
  color: var(--on-surface);
  margin: 0 0 24px;
}
.apo-hero__title em {
  font-style: italic;
  color: var(--primary);
}
.apo-hero__lead {
  font-size: 18px; line-height: 1.65;
  color: var(--on-surface-variant);
  max-width: 540px;
  margin: 0 0 32px;
}
.apo-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.apo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px;
  border: 0; cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.apo-btn--primary { background: linear-gradient(180deg, #0b8049 0%, #00522d 100%); color: #fff; box-shadow: 0 6px 14px -4px rgba(0, 106, 59, .35); }
.apo-btn--primary:hover { filter: brightness(1.06); color: #fff; }
.apo-btn--outline { background: var(--surface-lowest); color: var(--on-surface); box-shadow: inset 0 0 0 1px rgba(190, 202, 190, 0.4); }
.apo-btn--outline:hover { background: var(--surface-low); color: var(--on-surface); }
.apo-hero__trust {
  margin-top: 48px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 14px; color: var(--on-surface-variant);
}
.apo-hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.apo-hero__trust .ms { color: var(--primary); font-size: 18px; }

/* --- HERO VISUAL (botanical card) --- */
.apo-hero__visual {
  position: relative;
  aspect-ratio: 5/6;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #f4efe3 0%, #e9e4d3 100%);
  box-shadow: var(--shadow-card);
}
/* Dark mode: hero karta musí ztmavnout stejně jako product thumbnaily */
html.dark .apo-hero__visual {
  background: linear-gradient(135deg, var(--surface-low) 0%, var(--surface-high) 100%);
}
html.dark .apo-hero__label .pill {
  background: rgba(30, 40, 34, 0.85);
  color: var(--on-surface);
}
html.dark .apo-hero__pick {
  background: rgba(30, 40, 34, 0.92);
  color: var(--on-surface);
}
html.dark .apo-hero__pick:hover { background: rgba(40, 52, 44, 1); }
.apo-hero__visual::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0, transparent 40px, rgba(46,139,87,0.05) 40px, rgba(46,139,87,0.05) 41px);
  opacity: .6;
}
.apo-hero__label {
  position: absolute; top: 24px; left: 24px; right: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
}
.apo-hero__label .pill {
  background: rgba(255,255,255,0.85);
  color: var(--on-surface);
  padding: 6px 14px; border-radius: 999px;
}
.apo-hero__label .num {
  font-family: 'Newsreader', serif;
  font-style: italic;
  color: var(--on-surface-variant);
  text-transform: none; letter-spacing: 0;
  font-size: 14px;
}
.apo-hero__pick {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  padding: 20px; border-radius: 20px;
  text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 16px;
  transition: background .2s;
}
.apo-hero__pick:hover { background: rgba(255,255,255,1); }
.apo-hero__pick .score {
  font-family: 'Newsreader', serif;
  font-size: 36px; font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.apo-hero__pick .score small {
  font-size: 14px; color: var(--on-surface-variant);
  font-weight: 400;
}
.apo-hero__pick .meta .brand {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--on-surface-variant);
}
.apo-hero__pick .meta .name {
  font-family: 'Newsreader', serif;
  font-size: 18px; font-weight: 600;
  color: var(--on-surface);
  line-height: 1.2;
}

/* --- TRUST STRIP --- */
.apo-trust {
  padding: 32px 0;
  background: var(--surface-low);
  border-top: 1px solid rgba(190, 202, 190, 0.15);
  border-bottom: 1px solid rgba(190, 202, 190, 0.15);
  margin: 0 0 80px;
}
.apo-trust__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.apo-trust__label {
  font-family: 'Newsreader', serif;
  font-size: 18px; font-weight: 500;
  color: var(--on-surface-variant);
}
.apo-trust__items {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.apo-trust__items span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--on-surface-variant);
}
.apo-trust__items .ms { color: var(--primary); font-size: 18px; }

/* --- SECTION HEADER --- */
.apo-section { margin-bottom: 80px; }
.apo-section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 40px;
}
.apo-section__eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
}
.apo-section__title {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  color: var(--on-surface);
  margin: 0;
  letter-spacing: -0.015em;
}
.apo-section__title em { font-style: italic; color: var(--primary); }
.apo-section__link {
  color: var(--primary);
  font-weight: 500; font-size: 14px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.apo-section__link:hover { text-decoration: underline; }

/* --- KATEGORIE GRID --- */
.apo-cats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .apo-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .apo-cats { grid-template-columns: repeat(6, 1fr); } }
.apo-cat {
  background: var(--surface-lowest);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--on-surface);
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.apo-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.apo-cat__icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}
.apo-cat__icon .ms { font-size: 26px; }
.apo-cat__label {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--on-surface);
}
.apo-cat__count {
  font-size: 12px;
  color: var(--on-surface-variant);
  margin-top: 4px;
}

/* --- TOP RECENZE (3-col karusel jako grid) --- */
.apo-picks { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .apo-picks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .apo-picks { grid-template-columns: repeat(3, 1fr); } }
.apo-card {
  background: var(--surface-lowest);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none; color: inherit;
}
.apo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.apo-card__media {
  aspect-ratio: 4/3;
  background: var(--surface-low);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.apo-card__badge {
  position: absolute; top: 16px; left: 16px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--tertiary); color: var(--on-tertiary);
  font-weight: 600;
}
.apo-card__body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.apo-card__brand {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
}
.apo-card__name {
  font-family: 'Newsreader', serif;
  font-weight: 600; font-size: 20px;
  color: var(--on-surface);
  margin: 0 0 12px;
  line-height: 1.25;
}
.apo-card__summary {
  font-size: 14px; line-height: 1.55;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
  flex: 1;
}
.apo-card__row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(190, 202, 190, 0.25);
}
.apo-card__rating {
  font-family: 'Newsreader', serif;
  font-size: 22px; font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.apo-card__rating small { font-size: 13px; color: var(--on-surface-variant); font-weight: 400; }
.apo-card__price {
  font-size: 14px; color: var(--on-surface);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* --- EDITORIAL STRIP ("O metodice / expert section") --- */
.apo-editorial {
  background: var(--surface-lowest);
  border-radius: 32px;
  padding: 64px 48px;
  display: grid; gap: 48px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 900px) { .apo-editorial { grid-template-columns: 1fr 1fr; padding: 80px 64px; } }
.apo-editorial h2 {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--on-surface);
}
.apo-editorial h2 em { font-style: italic; color: var(--primary); }
.apo-editorial p {
  font-size: 16px; line-height: 1.7;
  color: var(--on-surface-variant);
  margin: 0 0 16px;
}
.apo-editorial .apo-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 32px;
}
.apo-editorial .apo-stats .n {
  font-family: 'Newsreader', serif;
  font-size: 36px; font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.apo-editorial .apo-stats .l {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-top: 4px;
}

/* --- NEWSLETTER CTA --- */
.apo-newsletter {
  background: var(--primary);
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: var(--on-primary);
  border-radius: 32px;
  padding: 64px 48px;
  text-align: center;
}
.apo-newsletter h2 {
  font-family: 'Newsreader', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--on-primary);
}
.apo-newsletter p {
  font-size: 16px; opacity: 0.92;
  max-width: 560px; margin: 0 auto 32px;
}
.apo-newsletter form {
  display: flex; gap: 8px; max-width: 440px; margin: 0 auto;
  flex-wrap: wrap;
}
.apo-newsletter input[type="email"] {
  flex: 1; min-width: 0;
  height: 48px; padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.95);
  font-family: inherit; font-size: 15px;
  color: var(--on-surface);
}
.apo-newsletter button {
  height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0;
  background: var(--tertiary);
  background-image: linear-gradient(180deg, #F7AE2B 0%, #E48B05 100%);
  color: #fff;
  font-weight: 500; font-size: 15px;
  cursor: pointer;
  transition: filter .2s;
}
.apo-newsletter button:hover { filter: brightness(1.06); }

/* --- DISCLAIMER BOX (auto-insert na konci článku) --- */
.apo-disclaimer {
  display: flex;
  gap: 20px;
  margin: 64px 0 32px;
  padding: 24px 28px;
  background: var(--surface-low);
  border-radius: 20px;
  border-left: 4px solid var(--tertiary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-surface-variant);
}
.apo-disclaimer__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F7AE2B 0%, #E48B05 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -2px rgba(245, 158, 11, .35);
}
.apo-disclaimer__icon .ms { font-size: 22px; }
.apo-disclaimer__body { flex: 1; min-width: 0; }
.apo-disclaimer__body strong:first-child {
  display: block;
  color: var(--on-surface);
  font-family: 'Newsreader', serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.apo-disclaimer__body strong { color: var(--on-surface); font-weight: 600; }
@media (max-width: 640px) {
  .apo-disclaimer { flex-direction: column; gap: 12px; padding: 20px; }
  .apo-disclaimer__icon { width: 40px; height: 40px; }
}

/* --- FOOTER --- */
.apo-footer {
  background: var(--surface-low);
  border-radius: 32px 32px 0 0;
  margin-top: 80px;
  padding: 64px 24px 32px;
}
.apo-footer__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .apo-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.apo-footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
  margin: 0 0 16px;
  font-weight: 600;
}
.apo-footer a {
  display: block;
  color: var(--on-surface);
  font-size: 14px;
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s;
}
.apo-footer a:hover { color: var(--primary); }
.apo-footer__bottom {
  max-width: 1280px; margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(190, 202, 190, 0.25);
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--on-surface-variant);
}

/* =====================================================================
   SINGLE.PHP — Článek / recenze
   ===================================================================== */

.apo-single { padding-top: 120px; padding-bottom: 48px; }
.admin-bar .apo-single { padding-top: 152px; }

/* Reading progress bar */
.apo-progress {
  position: fixed; top: 72px; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 40; pointer-events: none;
}
.admin-bar .apo-progress { top: 104px; }
@media screen and (max-width: 782px) {
  .admin-bar .apo-progress { top: 118px; }
}
.apo-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-container) 100%);
  transition: width .15s ease-out;
}

/* Breadcrumb */
.apo-breadcrumb {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.apo-breadcrumb a {
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color .2s;
}
.apo-breadcrumb a:hover { color: var(--primary); }
.apo-breadcrumb__sep { opacity: .5; }
.apo-breadcrumb__current {
  color: var(--on-surface);
  font-weight: 500;
  max-width: 280px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Header článku */
.apo-single__header { margin-bottom: 32px; max-width: 820px; }
.apo-single__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.apo-single__meta-sep { opacity: .5; }
.apo-single__title {
  font-family: 'Newsreader', serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  color: var(--on-surface);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.apo-single__excerpt {
  font-size: 17px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  max-width: 680px;
  margin: 0 0 24px;
}
.apo-single__author {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
}
.apo-single__author-avatar {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-low);
  color: var(--primary);
}
.apo-single__author-name {
  font-size: 14px; font-weight: 500;
  color: var(--on-surface);
}
.apo-single__author-role {
  font-size: 12px;
  color: var(--on-surface-variant);
}

/* Featured image */
.apo-single__hero {
  margin: 0 0 40px;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-low);
}
.apo-single__hero-img,
.apo-single__hero img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}

/* 2sloupcové rozvržení */
.apo-single__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .apo-single__layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
  }
}

/* Sticky TOC */
.apo-toc { order: 2; }
@media (min-width: 1024px) { .apo-toc { order: 1; } }
.apo-toc__sticky {
  position: sticky; top: 108px;
}
.admin-bar .apo-toc__sticky { top: 140px; }
.apo-toc__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
}
.apo-toc__nav { display: flex; flex-direction: column; gap: 2px; }
.apo-toc__link {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--on-surface-variant);
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.apo-toc__link:hover { color: var(--on-surface); background: var(--surface-low); }
.apo-toc__link.is-active {
  color: var(--primary);
  background: var(--surface-low);
  font-weight: 600;
}
.apo-toc__link-bar {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 20px;
  background: var(--primary);
  border-radius: 999px;
  transition: transform .2s;
}
.apo-toc__link.is-active .apo-toc__link-bar { transform: translateY(-50%) scaleY(1); }
.apo-toc__link-text { display: block; }
.apo-toc__empty {
  font-size: 12px; color: var(--on-surface-variant);
  padding: 12px; font-style: italic;
}
.apo-toc__actions {
  display: flex; gap: 8px;
  margin-top: 20px;
}
.apo-toc__btn {
  flex: 1;
  border: none;
  background: var(--surface-low);
  color: var(--on-surface-variant);
  border-radius: 999px;
  height: 36px;
  font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.apo-toc__btn:hover { background: var(--surface-high); color: var(--on-surface); }
.apo-toc__btn .ms { font-size: 14px; }

/* Článek */
.apo-article { order: 1; min-width: 0; }
@media (min-width: 1024px) { .apo-article { order: 2; } }

.apo-article__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--on-surface);
}
.apo-article__body > * + * { margin-top: 1em; }
.apo-article__body h2 {
  font-family: 'Newsreader', serif;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--on-surface);
  margin: 2em 0 0.6em;
  letter-spacing: -0.015em;
  scroll-margin-top: 120px;
}
.apo-article__body h3 {
  font-family: 'Newsreader', serif;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2;
  font-weight: 600;
  color: var(--on-surface);
  margin: 1.6em 0 0.5em;
}
.apo-article__body p { margin: 0 0 1em; }
.apo-article__body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.apo-article__body a:hover { color: var(--primary-container); }
.apo-article__body strong { color: var(--on-surface); font-weight: 600; }
.apo-article__body em { font-style: italic; }
.apo-article__body ul,
.apo-article__body ol { padding-left: 1.5em; margin: 0 0 1em; }
.apo-article__body li { margin-bottom: 0.4em; }
.apo-article__body ul li::marker { color: var(--primary); }
.apo-article__body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--surface-low);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin: 1.5em 0;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--on-surface);
}
.apo-article__body blockquote p:last-child { margin-bottom: 0; }
.apo-article__body img {
  max-width: 100%; height: auto;
  border-radius: 16px;
  margin: 1.5em 0;
}
.apo-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: var(--surface-lowest);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 14px;
}
.apo-article__body th,
.apo-article__body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--outline-variant);
}
.apo-article__body th {
  background: var(--surface-low);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface-variant);
}
.apo-article__body tr:last-child td { border-bottom: none; }
.apo-article__body code {
  background: var(--surface-low);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}
.apo-article__body hr {
  border: none;
  border-top: 1px solid var(--outline-variant);
  margin: 2em 0;
}

/* Drop-cap na první odstavec */
.apo-article__body > p:first-child::first-letter {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 4em;
  float: left;
  line-height: 0.9;
  margin: 0.1em 0.1em 0 0;
  color: var(--primary);
}

/* Tagy pod článkem */
.apo-single__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--outline-variant);
}
.apo-tag--link {
  text-decoration: none;
  transition: background .2s, color .2s;
}
.apo-tag--link:hover { background: var(--primary); color: #fff; }

/* =====================================================================
   SHORTCODE: Rychlý verdikt [apo_verdict]
   ===================================================================== */
.apo-verdict {
  background: var(--surface-low);
  border-radius: 20px;
  padding: 28px;
  margin: 2em 0;
}
.apo-verdict__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.apo-verdict__title {
  font-family: 'Newsreader', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--on-surface);
  margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.apo-verdict__title .ms { color: var(--primary); font-size: 24px; }
.apo-verdict__score { text-align: right; }
.apo-verdict__score-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--on-surface-variant);
}
.apo-verdict__score-value {
  font-family: 'Newsreader', serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.apo-verdict__score-value span {
  font-size: 18px; opacity: 0.6; font-weight: 400;
}
.apo-verdict__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-surface);
  margin-bottom: 20px;
}
.apo-verdict__body p:last-child { margin-bottom: 0; }
.apo-verdict__price {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--surface-lowest);
  border-radius: 16px;
  padding: 20px;
}
.apo-verdict__price-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--on-surface-variant);
}
.apo-verdict__price-value {
  font-family: 'Newsreader', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--on-surface);
  display: flex; align-items: baseline; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.apo-verdict__price-value span {
  font-size: 13px; font-weight: 400;
  color: var(--on-surface-variant);
  font-family: 'Inter', sans-serif;
}

/* =====================================================================
   SHORTCODE: Klady/Zápory [apo_proscons]
   ===================================================================== */
.apo-proscons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 2em 0;
}
@media (min-width: 640px) {
  .apo-proscons { grid-template-columns: 1fr 1fr; }
}
.apo-proscons__col {
  background: var(--surface-lowest);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}
.apo-proscons__head {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.apo-proscons__col--pros .apo-proscons__head { color: var(--primary); }
.apo-proscons__col--cons .apo-proscons__head { color: var(--error); }
.apo-proscons__head .ms { font-size: 16px; }
.apo-proscons__col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.apo-proscons__col li {
  display: flex; gap: 8px;
  font-size: 14px; line-height: 1.5;
  color: var(--on-surface);
  margin: 0;
}
.apo-proscons__col li .ms {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.apo-proscons__col--pros li .ms { color: var(--primary); }
.apo-proscons__col--cons li .ms { color: var(--error); }

/* =====================================================================
   SHORTCODE: End CTA [apo_cta]
   ===================================================================== */
.apo-ctabox {
  background: var(--surface-low);
  border-radius: 24px;
  padding: 40px 32px;
  margin: 3em 0 2em;
  text-align: center;
}
.apo-ctabox__title {
  font-family: 'Newsreader', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--on-surface);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.apo-ctabox__subtitle {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 0 0 24px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.apo-ctabox__note {
  font-size: 11px;
  color: var(--on-surface-variant);
  margin-top: 16px;
}

/* =====================================================================
   SHORTCODE: FAQ akordeon [apo_faq]
   ===================================================================== */
.apo-faq {
  display: flex; flex-direction: column; gap: 8px;
  margin: 2em 0;
}
.apo-faq__item {
  background: var(--surface-lowest);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.apo-faq__item.is-open { box-shadow: var(--shadow-card); }
.apo-faq__q {
  width: 100%;
  background: none; border: none;
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--on-surface);
  font-family: inherit;
}
.apo-faq__chev {
  font-size: 20px;
  color: var(--on-surface-variant);
  transition: transform .2s;
}
.apo-faq__item.is-open .apo-faq__chev { transform: rotate(180deg); }
.apo-faq__a {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.apo-faq__item.is-open .apo-faq__a {
  max-height: 1200px;
}
.apo-faq__a p:first-child { margin-top: 0; }
.apo-faq__a p:last-child { margin-bottom: 0; }

/* =====================================================================
   BUTTON (obecné, používá [apo_verdict] a [apo_cta])
   ===================================================================== */
.apo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, filter .2s;
  white-space: nowrap;
}
.apo-btn--lg {
  padding: 14px 28px;
  font-size: 15px;
}
.apo-btn--amber {
  background: linear-gradient(180deg, #F7AE2B 0%, #E48B05 100%);
  color: #2A1E04;
  box-shadow: 0 6px 18px rgba(228,139,5,.28);
}
.apo-btn--amber:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(228,139,5,.35);
}
.apo-btn .ms { font-size: 18px; }

/* =====================================================================
   RELATED ARTICLES
   ===================================================================== */
.apo-related {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--outline-variant);
}
.apo-related__header { margin-bottom: 32px; max-width: 640px; }
.apo-related__eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 8px;
}
.apo-related__title {
  font-family: 'Newsreader', serif;
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--on-surface);
  margin: 0;
  letter-spacing: -0.015em;
}
.apo-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .apo-related__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .apo-related__grid { grid-template-columns: repeat(3, 1fr); } }
.apo-related__card {
  display: block;
  background: var(--surface-lowest);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.apo-related__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.apo-related__thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--surface-low) 0%, var(--surface-high) 100%);
  overflow: hidden;
}
.apo-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.apo-related__thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  opacity: .6;
}
.apo-related__thumb-ph .ms { font-size: 48px; }
.apo-related__body { padding: 20px 22px 22px; }
.apo-related__cat {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 8px;
}
.apo-related__heading {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--on-surface);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  /* clamp na 2 řádky */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.apo-related__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.apo-related__more .ms { font-size: 16px; transition: transform .2s; }
.apo-related__card:hover .apo-related__more .ms { transform: translateX(4px); }

/* =====================================================================
   TAG helper (reusable)
   ===================================================================== */
.apo-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--surface-low);
  color: var(--on-surface-variant);
}
