/* Cesta ze tmy – stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - "Warm Hope" */
  --color-primary: #0f172a;       /* Deep slate/navy */
  --color-primary-light: #1e293b; /* Medium slate */
  --color-secondary: #d97706;     /* Warm Amber/Gold */
  --color-secondary-hover: #b45309;
  --color-secondary-light: #fef3c7; /* Pale gold */

  --color-bg-base: #fbfaf7;       /* Soft warm cream background */
  --color-bg-card: #ffffff;       /* Pure white for containers */
  --color-bg-muted: #f1f5f9;      /* Cool light grey */

  --color-text-main: #0f172a;
  --color-text-muted: #475569;    /* Slate-600 */
  --color-text-light: #94a3b8;    /* Slate-400 */
  --color-text-white: #ffffff;

  --color-success: #16a34a;       /* Green-600 */
  --color-warning: #ea580c;       /* Orange-600 */
  --color-error: #dc2626;         /* Red-600 */
  --color-border: #e2e8f0;        /* Slate-200 */

  /* Fonts */
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout and effects */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --header-height: 80px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

/* Accent underline for h2 on main pages - spans the full heading width */
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  background-color: var(--color-secondary);
  border-radius: var(--radius-full);
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

/* Layout Wrapper */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
  padding-top: var(--header-height); /* Ensure main content sits below fixed header */
}

/* Header & Navigation */
header {
  height: var(--header-height);
  background-color: rgba(251, 250, 247, 0.85); /* Frosty blurred header */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-base);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-secondary);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

/* X Morph Animation */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(2px, -1px);
}

.mobile-menu-btn.active span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(2px, 1px);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-secondary);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

/* ── Nav dropdown ───────────────────────────────────────────────── */
.nav-dropdown-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-dropdown-arrow {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.2s;
  line-height: 1;
}

.nav-dropdown-group:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--color-bg-card, #1e293b);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 0.4rem 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
}

.nav-dropdown-group:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.is-current {
  background: rgba(217, 119, 6, 0.1);
  color: var(--color-secondary);
}

.nav-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-text-white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.nav-cart-btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cart-count-badge {
  background-color: var(--color-warning);
  color: var(--color-text-white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: #d97706;
  color: var(--color-text-white);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

.btn-primary:hover {
  background: var(--color-secondary-hover);
  color: var(--color-text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--color-text-white);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-white);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.btn-dark {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.btn-dark:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Grid Layouts and Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-light {
  background-color: var(--color-bg-base);
}

/* Dark page section (evangelium): deliberately a different dark than the
   .pg-quote strip (hp-void) sitting inside it, so both stay readable. */
.section-dark {
  background-color: var(--hp-void-2);
}

.section-white {
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Info Box / Banner */
.info-box {
  background-color: var(--color-bg-muted);
  border-left: 4px solid var(--color-primary-light);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.info-box-warning {
  background-color: #fffaf0;
  border-left-color: var(--color-warning);
  color: #8a3b0f;
}

.info-box-warning strong {
  color: #ea580c;
}

/* Core Values Pillars on Homepage */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pillar-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--color-border);
  transition: var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.pillar-card:hover::before {
  background-color: var(--color-secondary);
}

.pillar-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-secondary-light);
  color: var(--color-secondary-hover);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

/* E-shop Catalog Grid and Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Sidebar Filter */
.shop-sidebar {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.sidebar-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-bg-muted);
  font-weight: 700;
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.category-btn:hover {
  background-color: var(--color-bg-muted);
  color: var(--color-primary);
}

.category-btn.active {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary-hover);
  font-weight: 600;
}

.category-count {
  font-size: 0.75rem;
  background-color: var(--color-border);
  color: var(--color-text-muted);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.category-btn.active .category-count {
  background-color: var(--color-secondary);
  color: var(--color-text-white);
}

/* Products Section */
.products-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-muted);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Styled Placeholder Image */
.placeholder-svg-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f1f5f9;
  color: var(--color-text-light);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

.placeholder-svg-img svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-text-light);
  stroke-width: 1.5;
  margin-bottom: 0.5rem;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.badge-origin {
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--color-text-white);
  backdrop-filter: blur(4px);
}

.badge-sold {
  background-color: var(--color-error);
  color: var(--color-text-white);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-cart-warning {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(234, 88, 12, 0.9);
  color: var(--color-text-white);
  text-align: center;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.5rem;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  font-weight: 600;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
  margin-bottom: 0.5rem;
}

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-bg-muted);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-title);
}

.add-to-cart-btn {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary-hover);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.2rem;
}

.add-to-cart-btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-white);
  transform: scale(1.1);
}

.product-card.sold {
  opacity: 0.65;
}

.product-card.sold .add-to-cart-btn {
  background-color: var(--color-border);
  color: var(--color-text-light);
  cursor: not-allowed;
  transform: none;
}

/* About Us & Info Page Typography Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.rich-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rich-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  text-align: justify;
}

.rich-text blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--color-primary-light);
  font-size: 1.1rem;
  margin: 1rem 0;
}

.rich-text ul {
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

.rich-text li {
  margin-bottom: 0.5rem;
}

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

.aside-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid var(--color-bg-muted);
  padding-bottom: 0.5rem;
}

.org-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.org-details-list li {
  display: flex;
  flex-direction: column;
}

.org-details-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-light);
  font-weight: 600;
}

.org-details-val {
  font-weight: 500;
  color: var(--color-primary);
}
.org-details-val--mono {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Cart & Checkout Layout */
.cart-checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.checkout-section {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.checkout-section h3 {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-error {
  color: var(--color-error);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Cart Item List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-bg-muted);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  background-color: var(--color-bg-muted);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-item-info p {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.cart-item-price {
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--color-primary);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--color-error);
}

.cart-summary-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.summary-row.total {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  border-top: 2px solid var(--color-bg-muted);
  padding-top: 1rem;
  margin-top: 1rem;
  font-family: var(--font-title);
}

/* Success Checkout / Bank / QR display page */
.payment-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
  align-items: center;
}

.qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.qr-image {
  max-width: 250px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  background-color: #ffffff;
}

.payment-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bank-details-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.5rem;
  font-size: 1.05rem;
}

.bank-details-grid dt {
  font-weight: 600;
  color: var(--color-text-muted);
}

.bank-details-grid dd {
  font-weight: 700;
  color: var(--color-primary);
  font-family: monospace;
  font-size: 1.1rem;
}

.copy-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.copy-btn:hover {
  background-color: var(--color-bg-muted);
  border-color: var(--color-text-light);
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-primary-light);
  color: var(--color-text-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
}

.toast-msg.show {
  transform: translateY(0);
}

/* Footer styling */
footer {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  padding: 5rem 2rem 2.5rem 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo-desc {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-desc a {
  color: var(--color-text-white);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
}

.footer-logo-desc p {
  color: #94a3b8; /* Slate-400 */
  font-size: 0.9rem;
}

.footer-section h4 {
  font-size: 1.05rem;
  color: var(--color-text-white);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #cbd5e1; /* Slate-300 */
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: var(--color-text-white);
}

/* Document List */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.doc-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.doc-icon {
  font-size: 1.5rem;
  color: var(--color-secondary);
}

.doc-title {
  font-weight: 600;
  color: var(--color-primary);
}

.doc-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* Interactive Card drawer / slide-out panel */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background-color: var(--color-bg-card);
  z-index: 2001;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.cart-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
}

.cart-drawer-footer {
  padding: 2rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-base);
}

/* Responsive queries */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .about-grid, .cart-checkout-layout, .payment-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 1rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: rgba(251, 250, 247, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
    box-sizing: border-box;
  }

  nav.active {
    display: flex;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  /* Mobile dropdown — show inline, always visible */
  .nav-dropdown-group {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-secondary);
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    display: flex;
    transition: none;
  }

  .nav-dropdown-item {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    border-bottom: none;
  }

  .nav-cart-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .payment-box {
    padding: 1.5rem;
  }
}

/* Scroll Indicator Utilities */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--color-secondary);
  z-index: 99999;
  width: 0%;
  transition: width 0.05s linear;
}

/* Bottom progress bar used only on mobile to bypass browser chrome collapses */
#scroll-progress-bar-bottom {
  display: none;
}

@media (max-width: 768px) {
  #scroll-progress-bar {
    height: 3.5px; /* slightly thicker on mobile top */
  }

  #scroll-progress-bar-bottom {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: var(--color-secondary);
    z-index: 99999;
    width: 0%;
    transition: width 0.05s linear;
  }
}


/* Floating Back to Top Button */
#back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

#back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top-btn:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.08);
}

#back-to-top-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Floating On-Page Navigation for Long Pages */
.floating-toc {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0.5rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 768px) {
  .floating-toc {
    display: none; /* Hide TOC on mobile for better space usage */
  }
}

.floating-toc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e1;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.floating-toc-dot:hover, .floating-toc-dot.active {
  background-color: var(--color-secondary);
  transform: scale(1.3);
}

.floating-toc-dot::before {
  content: attr(data-title);
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
}

.floating-toc-dot:hover::before {
  opacity: 1;
  visibility: visible;
}

[x-cloak] {
  display: none !important;
}

/* ============================================================
   HOMEPAGE REDESIGN — "Cesta ze tmy"
   Append this block to the END of public/css/style.css.
   All selectors are new (hp-*) and reuse existing design tokens,
   so nothing already in the stylesheet is overridden.
   ============================================================ */

:root {
  --hp-void: #06070d;        /* deep space, matches hero image */
  --hp-void-2: #0c0a18;
  --hp-indigo: #231d46;      /* violet stardust */
  --hp-gold: #d9b26a;        /* warm gold of the light-path */
  --hp-gold-bright: #f4e0a0; /* star highlight */
}

/* shared eyebrow label ------------------------------------- */
.hp-eyebrow {
  font-family: var(--font-title);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--hp-gold);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.hp-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.8; }
.hp-eyebrow--dark { color: var(--color-secondary-hover); }
.hp-eyebrow--center { justify-content: center; }

/* HERO ----------------------------------------------------- */
.hp-hero {
  position: relative;
  min-height: max(560px, calc(100svh - var(--header-height)));
  display: flex; align-items: center;
  background: var(--hp-void);
  overflow: hidden; isolation: isolate;
}
.hp-hero__media { position: absolute; inset: 0; z-index: -2; }
.hp-hero__media picture, .hp-hero__media img { width: 100%; height: 100%; display: block; }
.hp-hero__media img {
  object-fit: cover; object-position: 78% top;
  animation: hp-drift 34s ease-in-out infinite alternate;
}
@keyframes hp-drift { from { transform: scale(1.03); } to { transform: scale(1.09) translateX(-1.5%); } }
.hp-hero__scrim {
  display: none;
}
.hp-hero__inner { max-width: 1200px; width: 100%; margin: 0 auto; padding: 2rem; position: relative; }
.hp-hero__copy {
  max-width: 600px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border: none;
  box-shadow: none;
}
.hp-hero .hp-eyebrow { margin-bottom: 1.5rem; }
.hp-hero__title {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04;
  color: #fff; letter-spacing: -0.025em; margin-bottom: 1.25rem;
}
.hp-hero__title span {
  color: var(--hp-gold);
}
.hp-hero__text { font-size: 1.2rem; color: #cbd5e1; max-width: 560px; margin-bottom: 2.25rem; }
.hp-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hp-scrollcue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: var(--font-title); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 9999px;
  background: transparent;
}
.hp-scrollcue:hover {
  color: var(--hp-gold-bright);
  transform: translateX(-50%) translateY(-3px);
  text-shadow: 0 0 12px rgba(244, 224, 160, 0.6);
}
.hp-scrollcue__label {
  transition: transform 0.3s ease;
  margin-bottom: 2px;
}
.hp-scrollcue:hover .hp-scrollcue__label {
  transform: translateY(-2px);
}
.hp-scrollcue__chevrons {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; margin-top: 4px;
}
.hp-scrollcue__chevron {
  width: 9px; height: 9px;
  border-right: 2px solid var(--hp-gold);
  border-bottom: 2px solid var(--hp-gold);
  transform: rotate(45deg);
  opacity: 0;
  animation: hp-chevron-pulse 2.2s infinite;
}
.hp-scrollcue__chevron:nth-child(2) {
  animation-delay: 0.25s;
}
.hp-scrollcue__chevron:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes hp-chevron-pulse {
  0% { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
  50% { opacity: 0.95; transform: rotate(45deg) translate(0, 0); }
  100% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
}

/* VERSE (dark scripture strip) ----------------------------- */
.hp-verse { background: var(--hp-void); color: #fff; text-align: center; padding: 5.5rem 2rem 6.5rem; }
.hp-verse blockquote {
  max-width: 820px; margin: 0 auto;
  font-family: var(--font-title); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.45; letter-spacing: -0.01em;
}
.hp-verse blockquote em { font-style: normal; color: var(--hp-gold); }
.hp-verse cite {
  display: block; margin-top: 1.5rem; font-style: normal;
  font-family: var(--font-title); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}

/* BRIDGE (dark -> light) ----------------------------------- */
.hp-bridge { height: 1px !important; max-height: 1px !important; overflow: hidden; background: #f7f2e6; }

/* PILLARS as waypoints on the golden path ------------------ */
.hp-pillars { background: var(--color-bg-base); }
.hp-pillars .container { padding-top: 3rem; }
.hp-pillars__head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.hp-pillars__head .hp-eyebrow { margin-bottom: 1rem; }
.hp-pillars__head h2 { display: block; }
.hp-pillars__head h2.section-title::after { left: 50%; transform: translateX(-50%); }
.hp-pillars__head p { color: var(--color-text-muted); font-size: 1.1rem; margin-top: 1rem; }

.hp-thread { position: relative; }
.hp-thread__line { position: absolute; top: 8px; left: 16%; right: 16%; width: 68%; height: 2px; overflow: visible; display: block; }
.hp-thread__line path { stroke: url(#hpTg); stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease; }
.hp-thread.is-in .hp-thread__line path { stroke-dashoffset: 0; }

.hp-waypoints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hp-wp {
  padding: 1.75rem 1.5rem;
  position: relative;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}
.hp-wp__node {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-bg-base); border: 2px solid var(--color-secondary);
  box-shadow: 0 0 0 6px rgba(217,119,6,0.12), 0 0 18px -2px rgba(217,119,6,0.45);
  display: block; margin-bottom: 1.25rem; position: relative; z-index: 2;
}
.hp-wp__num { display: block; font-family: var(--font-title); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--color-secondary-hover); margin-bottom: 0.5rem; }
.hp-wp__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--color-secondary-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  margin-bottom: 1.1rem; box-shadow: var(--shadow-sm);
}
.hp-wp h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.hp-wp p { color: var(--color-text-muted); font-size: 0.96rem; margin-bottom: 1.25rem; flex-grow: 1; }
.hp-wp__link { font-weight: 600; color: var(--color-secondary); display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; }
.hp-wp__link:hover { color: var(--color-secondary-hover); }

/* ARRIVAL CTA (warm light) --------------------------------- */
.hp-arrival {
  position: relative; overflow: hidden; text-align: center; padding: 6rem 2rem;
  background: #f7f2e6;
}
.hp-arrival::after { display: none; }
.hp-arrival__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hp-arrival h2 { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.hp-arrival h2 span { color: var(--color-secondary-hover); }
.hp-arrival p { color: var(--color-text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.hp-arrival__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* RESPONSIVE ----------------------------------------------- */
@media (max-width: 960px) {
  .hp-thread__line { display: none; }
  .hp-wp__node { display: none; }
  .hp-waypoints { grid-template-columns: 1fr; gap: 1.5rem; max-width: 540px; margin: 0 auto; }
  .hp-hero__media img { object-position: 72% top; }
  .hp-hero__scrim {
    display: none;
  }
  .hp-hero__inner {
    padding: 0;
  }
  .hp-hero__copy {
    background: rgba(6, 7, 13, 0.9);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 2.5rem 1.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 560px) {
  .hp-waypoints { grid-template-columns: 1fr; gap: 1.25rem; }
  .hp-wp { padding: 1.5rem 1.25rem; }
  .hp-hero__title { font-size: 2.4rem; }
  .hp-hero__copy { padding: 2rem 1.25rem; }
  .hp-verse { padding: 4rem 1.5rem 4.5rem; }
}
/* UNIFIED SUPPORT & E-SHOP GRID */
.hp-unified-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.hp-unified-card {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hp-unified-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.09);
  border-color: rgba(217, 119, 6, 0.3);
}
.hp-unified-card--accent {
  background: var(--color-bg-muted);
  border-color: rgba(217, 119, 6, 0.2);
}
.hp-unified-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.5rem;
}
.hp-unified-card__title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-primary);
  line-height: 1.3;
}
.hp-unified-card__body {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* SHOP CALL-OUT GRID & RESPONSIVE CARD */
.hp-shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hp-shop-card {
  background-color: var(--color-bg-muted);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--color-border);
}
.hp-shop-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.hp-newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .hp-unified-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hp-unified-card {
    padding: 2.25rem 1.5rem;
  }
  .hp-shop-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hp-shop-card {
    padding: 2rem 1.25rem;
  }
  .hp-shop-tags__bullet {
    display: none;
  }
  .hp-newsletter-form {
    flex-direction: column;
  }
}

/* ============================================================
   SUBPAGE DESIGN SYSTEM — shared "Cesta ze tmy" language
   Reuses hp-* tokens/eyebrow from the homepage redesign above.
   pg-* = generic subpage components, used across all inner pages.
   ============================================================ */

/* HERO (replaces the old flat .page-banner) --------------- */
.pg-hero {
  position: relative;
  background: #0c0e1e;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem 4.5rem;
  overflow: hidden;
  isolation: isolate;
}
.pg-hero::after { display: none; }
.pg-hero__inner { max-width: 740px; margin: 0 auto; position: relative; }
.pg-hero .hp-eyebrow { margin-bottom: 1.25rem; }
.pg-hero__title {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.pg-hero__text { color: #cbd5e1; font-size: 1.08rem; max-width: 620px; margin: 0 auto; }
.pg-hero__icon { font-size: 2.75rem; margin-bottom: 0.75rem; }

/* success variant (order confirmation) */
.pg-hero--success {
  background: #06180e;
}
.pg-hero--success::after { display: none; }
.pg-hero--success .hp-eyebrow { color: #86efac; }

/* DARK QUOTE / STATEMENT STRIP ------------------------------ */
.pg-quote {
  background: var(--hp-void);
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  margin: 0 0 3rem;
}
.pg-quote p {
  max-width: 760px; margin: 0 auto;
  font-family: var(--font-title); font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.55; letter-spacing: -0.005em;
  color: #e2e8f0 !important;
/*  color: #e5e5e5 !important;*/
}
.pg-quote strong { color: var(--hp-gold-bright); font-weight: 600; }
.pg-quote cite {
  display: block; margin-top: 1.25rem; font-style: normal;
  font-family: var(--font-title); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}

/* VERTICAL PATH TIMELINE (status / activity lists) ---------- */
.pg-path { position: relative; display: flex; flex-direction: column; gap: 1.75rem; }
.pg-path::before {
  content: "";
  position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: var(--color-secondary);
}
.pg-path__item { position: relative; padding-left: 2rem; }
.pg-path__item::before {
  content: "";
  position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-bg-base); border: 2px solid var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(217,119,6,0.12);
}
.pg-path__item.is-muted::before { border-color: var(--color-text-light); box-shadow: none; }
.pg-path__item h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; margin-bottom: 0.25rem; }
.pg-path__item p { color: var(--color-text-muted); font-size: 0.85rem; line-height: 1.55; margin: 0; }
.pg-path__tag {
  font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 9999px;
  background: #ecfdf5; color: #047857;
}
.pg-path__tag--muted { background: var(--color-bg-muted); color: var(--color-text-muted); }
.pg-path__tag--upcoming { background: #eff6ff; color: #1d4ed8; }

/* SECTION EYEBROW HEADER (light background) ------------------ */
.pg-section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.pg-section-head .hp-eyebrow { margin-bottom: 1rem; }
.pg-section-head p { color: var(--color-text-muted); font-size: 1.05rem; margin-top: 1rem; }

/* ARRIVAL-STYLE CTA STRIP (warm light close-out) -------------- */
.pg-cta {
  position: relative; overflow: hidden; text-align: center; padding: 4.5rem 2rem;
  background: #f7f2e6;
  border-radius: var(--radius-lg);
}
.pg-cta::after { display: none; }
.pg-cta__inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.pg-cta h2 { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.85rem; }
.pg-cta p { color: var(--color-text-muted); font-size: 1rem; margin-bottom: 1.75rem; }
.pg-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.pg-child-card { transition: var(--transition-normal); }
.pg-child-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

@media (max-width: 560px) {
  .pg-hero { padding: 3.5rem 1.5rem 3rem; }
  .pg-quote { padding: 2.5rem 1.5rem; }
  .pg-cta { padding: 3rem 1.5rem; }
}

/* ============================================================
   COSMIC C THEME (Sole Active Theme — Clean Solid Colors)
   ============================================================ */

:root,
body,
[data-theme="cosmic-c"] body,
.section-white,
.section-light {
  background-color: #fcf9f2 !important;
  color: #1c1917 !important;
}

.hp-verse {
  background: #14121a !important;
  color: #f8fafc !important;
  border-bottom: 1px solid rgba(180, 131, 46, 0.35) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
}

.hp-verse__quote {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.hp-verse__ref {
  color: #c8963e !important;
  font-weight: 700 !important;
}

.hp-bridge {
  height: 1px !important;
  max-height: 1px !important;
  overflow: hidden;
  background: #f7f2e6 !important;
}

.hp-pillars {
  background-color: #f7f2e6 !important;
  color: #1c1917 !important;
}

.hp-wp {
  background: #ffffff !important;
  border: 1px solid rgba(180, 131, 46, 0.25) !important;
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.05), 0 2px 8px rgba(180, 131, 46, 0.04) !important;
  color: #1c1917 !important;
}

.hp-wp:hover {
  border-color: #b4832e !important;
  box-shadow: 0 15px 35px rgba(28, 25, 23, 0.09), 0 4px 15px rgba(180, 131, 46, 0.12) !important;
}

.hp-wp h3,
.section-title,
.hp-pillars__head h2,
h2,
h3 {
  color: #1c1917 !important;
}

.hp-pillars__head p,
.hp-wp p,
.section-white p,
.section-light p {
  color: #292524;
  font-weight: 450;
}

.section-white > .container > div:nth-child(2) {
  background: #f7f2e6 !important;
  border: 1px solid rgba(180, 131, 46, 0.25) !important;
  color: #1c1917 !important;
}

.hp-arrival {
  background: #f7f2e6 !important;
  border-top: 1px solid rgba(180, 131, 46, 0.25) !important;
  color: #1c1917 !important;
}

.hp-arrival h2 {
  color: #1c1917 !important;
}

.hp-arrival p {
  color: #292524 !important;
}

.btn-primary {
  background: #b4832e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(180, 131, 46, 0.25) !important;
}

.btn-primary:hover {
  background: #92671f !important;
  box-shadow: 0 6px 20px rgba(180, 131, 46, 0.35) !important;
}



/* ============================================================
   Level-3 block system utilities (rendered from lang/structure.json)
   ============================================================ */

.cms-zone {
  display: block;
}

/* UNIVERSAL stacking rhythm: sibling blocks in a zone keep the legacy
   .rich-text 1.5rem gap. This is THE single source of block spacing -
   do not add per-page margin patches (that drift caused the recurring
   "too crowded" regressions on legal docs, support boxes, shop banner). */
.cms-zone > .cms-block + .cms-block {
  margin-top: 1.5rem;
}

/* Quote strips hosting richtext blocks (evangelium): the legacy look came
   from `.pg-quote p`, which no longer matches once copy sits in editor
   markers - reapply the same typography AND the soft #e2e8f0 tone (bodies
   are bare text nodes now, so nothing else sets a color). Vertical rhythm
   comes from the universal .cms-zone rule above - no margins here. */
.pg-quote .cms-richtext {
  max-width: 760px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.7;
  letter-spacing: -0.005em;
  color: #e2e8f0;
}

/* On dark sections the strip gets a hairline edge so it reads as a card
   against the slightly different page background. */
.section-dark .pg-quote {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 12-column grid; columns declare their width via --span (1-12). */
.cms-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
}

/* Column widths as STATIC classes - custom properties inside
   `grid-column: span var(...)` are unreliable across engines. */
.cms-col {
  min-width: 0;
}
.cms-col--1  { grid-column: span 1; }
.cms-col--2  { grid-column: span 2; }
.cms-col--3  { grid-column: span 3; }
.cms-col--4  { grid-column: span 4; }
.cms-col--5  { grid-column: span 5; }
.cms-col--6  { grid-column: span 6; }
.cms-col--7  { grid-column: span 7; }
.cms-col--8  { grid-column: span 8; }
.cms-col--9  { grid-column: span 9; }
.cms-col--10 { grid-column: span 10; }
.cms-col--11 { grid-column: span 11; }
.cms-col--12 { grid-column: span 12; }

@media (max-width: 768px) {
  .cms-grid {
    grid-template-columns: 1fr;
  }
  .cms-col,
  .cms-col--1, .cms-col--2, .cms-col--3, .cms-col--4, .cms-col--5,
  .cms-col--6, .cms-col--7, .cms-col--8, .cms-col--9, .cms-col--10,
  .cms-col--11, .cms-col--12 {
    grid-column: 1 / -1;
  }
}

/* Styled rich-text boxes (richtext variants / column card+muted). */
.cms-box {
  padding: 1.5rem;
}
.cms-box--accent {
  background-color: var(--color-bg-muted);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: 2rem;
}
.cms-box--muted {
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.cms-box--card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.cms-box > :last-child {
  margin-bottom: 0;
}

/* Legacy about-page looks as richtext variants:
   footnote - border-top separator note inside the aside card,
   panel    - muted info box with primary h4 (volunteerism),
   callout  - muted call-to-action box with secondary h4 + 💡.
   p gets targeted explicitly: page rules like `.section-light p`
   would otherwise out-specify box inheritance (font/color drift). */
.cms-box--footnote {
  margin-top: 2rem;
  padding: 1.5rem 0 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
}
.cms-box--footnote,
.cms-box--footnote p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.cms-box--footnote a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}
.cms-box--footnote a:hover {
  color: var(--color-secondary);
}
/* Muted info boxes share the legacy card chrome (border + rounded corners). */
.cms-box--panel,
.cms-box--callout {
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
/* Plain columns (no variant => no flex-gap rhythm) breathe between blocks;
   varianted columns (prose/aside/card/muted) handle spacing internally. */
.cms-grid > .cms-col:not(.rich-text):not(.card-aside):not(.cms-box) > .cms-block + .cms-block {
  margin-top: 2rem;
}
.cms-box--panel { background-color: var(--color-bg-muted); }
.cms-box--panel h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}
.cms-box--panel p:last-child {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text);
}
.cms-box--callout h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cms-box--callout p:last-child {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}
/* Small boxed muted note (kontakt 📍 tip) - legacy 0.85rem look.
   The p itself must be targeted: page-level rules like
   `.section-light p { color: … }` would out-specify box inheritance. */
.cms-box--note,
.cms-box--note p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.cms-box--note {
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.cms-box--note p:last-child {
  margin: 0;
}
.cms-box--note strong {
  color: var(--color-primary);
}

/* Feature-card titles are h3 - the site-wide `h2,h3 { color:… !important }`
   contrast rule would paint them black; restore the legacy primary tone. */
.cms-feature--stacked .cms-feature__title,
.cms-feature--vcard .cms-feature__title {
  color: var(--color-primary) !important;
}

/* Africa missions panel (co-delame) - legacy inline styling restored.
   Scoped by block ids; !important counters the global h2/h3 rule. */
[data-cms-id="wwd_af_h"] h3 {
  color: var(--color-primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
[data-cms-id="wwd_af_i"] .cms-richtext p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}
.cms-col[data-cms-id="wwd_ke"],
.cms-col[data-cms-id="wwd_ug"] {
  border-left: 3px solid var(--color-secondary);
  padding-left: 1.5rem;
}
[data-cms-id="wwd_ke_h"] h4,
[data-cms-id="wwd_ug_h"] h4 {
  color: var(--color-secondary) !important;
  font-family: var(--font-title);
  font-weight: 600;
}
[data-cms-id="wwd_ke"] .cms-richtext p,
[data-cms-id="wwd_ug"] .cms-richtext p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: left;
  margin: 0 0 0.25rem;
}
[data-cms-id="wwd_ke"] .cms-richtext ul,
[data-cms-id="wwd_ug"] .cms-richtext ul {
  font-size: 0.85rem;
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

/* CTA strip: sibling button blocks flow inline like the legacy
   .pg-cta__actions row, centered by the strip's text-align. */
.pg-cta [data-cms-type="button"] {
  display: inline-block;
}
.pg-cta [data-cms-type="button"] + [data-cms-type="button"] {
  margin-top: 0;
  margin-left: 1rem;
}

/* Quote block prose variant: author line inside .rich-text blockquote. */
.cms-quote-cite {
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-light);
}

/* Heading blocks level 4 (Africa partner columns): browser default would
   render h4 at 1em - scoped to heading blocks so .pg-path h4 stays put. */
.cms-block[data-cms-type="heading"] h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Lists inside plain richtext blocks (shop banner, volunteering, legal
   docs): keep native disc markers + sane indent in every context. */
.cms-richtext ul {
  list-style: disc outside;
  padding-left: 1.5rem;
  margin: 0.5rem 0 0;
}
.cms-richtext li {
  margin-bottom: 0.35rem;
}

/* Donation preset buttons: the selected amount stays highlighted. */
.donation-preset-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.donation-preset-btn.active:hover {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  color: #fff;
}

/* Zone content inside boxed cards (podporte-nas membership/volunteering/
   prayer boxes): legacy copy was muted .95-.95rem - the generic
   `.section-light p` rule would otherwise paint it full-strength dark. */
.checkout-section .cms-richtext,
.checkout-section .cms-richtext p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: left;
}
.checkout-section .cms-richtext ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
}
.checkout-section .cms-richtext li {
  margin-bottom: 0.35rem;
}
/* Eyebrow above block headings keeps its legacy breathing room. */
.cms-block .hp-eyebrow {
  display: flex;
  margin-bottom: 0.75rem;
}
/* Block buttons in cards use the compact legacy size. */
.cms-btn-row .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
}

/* feature-list "cards" variant: icon rows. */
.cms-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cms-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.cms-feature__icon {
  font-size: 2rem;
  line-height: 1;
}
.cms-feature__title {
  margin: 0;
  font-size: 1rem;
  color: var(--color-primary);
}
.cms-feature__text {
  margin: 0.25rem 0 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* NOTE: feature-list variant rules MUST come after the base .cms-features /
   .cms-feature definitions above - same-specificity overrides lose if the
   base appears later in the file (that ordering bug once collapsed the
   prayer grid back into vertical rows). */

/* feature-list "grid" variant: responsive card grid, icon stacked above
   text - restores the legacy prayer-items look on podporte-nas. */
.cms-features--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.cms-feature--stacked {
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--color-bg-base);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.cms-feature--stacked .cms-feature__icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.cms-feature--stacked .cms-feature__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}
.cms-feature--stacked .cms-feature__text {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* feature-list "vcard" variant: single centered icon card - legacy
   pillar/e-shop side boxes. */
.cms-feature--vcard {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.cms-feature--vcard .cms-feature__icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.cms-feature--vcard .cms-feature__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.cms-feature--vcard .cms-feature__text {
  font-size: 0.9rem;
}

/* Misc block chrome. */
.cms-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}
.cms-btn-row {
  margin: 1.5rem 0 0.5rem;
}

/* Links inside block zones inherit the site's secondary accent
   (sanitizer strips inline style attrs, so this restores the look). */
.cms-zone a:not(.btn) {
  color: var(--color-secondary);
  font-weight: 600;
}
