/* ==========================================================================
   Vyfarbovanky.sk - Custom High-Performance Design System & CSS
   Optimized for Core Web Vitals (CLS 0.0), A4 Printing & Dual-Canvas Studio
   ========================================================================== */

:root {
  /* Brand Typography */
  --font-heading: 'Nunito', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color System - Coral & Watermelon Primary, Sunny Amber & Fresh Mint Accents */
  --coral: #ff4d6d;
  --coral-dark: #e63946;
  --coral-light: #fff0f3;
  --coral-glow: rgba(255, 77, 109, 0.25);
  
  --amber: #ffb703;
  --amber-light: #fff8e6;
  --amber-dark: #fb8500;
  
  --mint: #06d6a0;
  --mint-dark: #059669;
  --mint-light: #e6faf5;
  --mint-glow: rgba(6, 214, 160, 0.25);
  
  --turquoise: #00b4d8;
  --turquoise-light: #e0f7fa;

  /* Neutrals */
  --snow-white: #ffffff;
  --canvas-cream: #fcfbf9;
  --charcoal: #1e293b;
  --slate-dark: #334155;
  --slate-medium: #64748b;
  --slate-light: #94a3b8;
  --border-soft: #f1f5f9;
  --border-medium: #e2e8f0;

  /* Semantic Variables */
  --primary: var(--coral);
  --primary-hover: var(--coral-dark);
  --primary-bg: var(--coral-light);
  --accent: var(--amber);
  --accent-mint: var(--mint);
  --bg-page: var(--canvas-cream);
  --card-bg: var(--snow-white);
  --text-main: var(--charcoal);
  --text-muted: var(--slate-medium);

  /* Shadows & Shapes */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 16px 36px rgba(30, 41, 59, 0.12);
  --shadow-coral: 0 8px 20px rgba(255, 77, 109, 0.28);
  --shadow-mint: 0 8px 20px rgba(6, 214, 160, 0.28);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  background-image: url('bg-doodles-sk.svg?v=1');
  background-repeat: repeat;
  background-size: 360px 360px;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--charcoal);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* ==========================================================================
   Header & Pill-Style Navigation
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
  gap: 1.25rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--charcoal);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--coral-glow);
  color: #fff;
  font-size: 1.2rem;
}

.brand-logo-text {
  letter-spacing: -0.02em;
}

.brand-logo-text span {
  color: var(--coral);
}

/* Desktop Navigation with Cluster Tabs */
.desktop-nav {
  display: none;
}
@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
    flex: 1;
    margin: 0 0.5rem;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-item-has-dropdown {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--slate-dark);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  background: transparent;
  border: 1.5px solid transparent;
}

button.nav-link {
  background: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.nav-link:hover, 
.nav-item-has-dropdown:hover .nav-link,
.nav-item-has-dropdown.is-open .nav-link,
.nav-link.is-active,
.current-parent-item > .nav-link {
  color: var(--coral-dark);
  background: var(--coral-light);
  border-color: rgba(255, 77, 109, 0.2);
  transform: translateY(-1px);
}

.nav-icon {
  font-size: 1.05rem;
}

.dropdown-chevron {
  opacity: 0.6;
  transition: transform var(--transition-fast);
}

.nav-item-has-dropdown:hover .dropdown-chevron,
.nav-item-has-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: var(--snow-white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-item-has-dropdown:hover .nav-dropdown-menu,
.nav-item-has-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-header {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--border-soft);
}

.dropdown-header strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.dropdown-header p {
  font-size: 0.8rem;
  color: var(--slate-medium);
  line-height: 1.4;
}

.dropdown-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  max-height: 280px;
  overflow-y: auto;
}

.dropdown-list li a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-dark);
  transition: all var(--transition-fast);
}

.dropdown-list li a:hover,
.dropdown-list li a.current-menu-item {
  background: var(--coral-light);
  color: var(--coral-dark);
  padding-left: 0.85rem;
}

/* Megamenu layout for Kategórie */
.nav-dropdown-menu.nav-dropdown-megamenu {
  width: min(94vw, 980px);
  min-width: min(94vw, 880px);
  padding: 1.5rem;
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.megamenu-col {
  display: flex;
  flex-direction: column;
}

.megamenu-col .dropdown-header {
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border-soft);
}

.megamenu-col .dropdown-header strong {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--charcoal);
  white-space: nowrap;
}

.megamenu-col .dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: none;
  overflow: visible;
  grid-template-columns: 1fr;
}

.megamenu-col .dropdown-list li a {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: var(--slate-dark);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.megamenu-col .dropdown-list li a:hover {
  background: var(--coral-light);
  color: var(--coral-dark);
  padding-left: 0.75rem;
}

/* Live Search Bar with Animated Colorful Border */
.header-search-wrap {
  position: relative;
  display: none;
}
@media (min-width: 1200px) {
  .header-search-wrap {
    display: block;
    width: 240px;
  }
}

.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 2px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--mint), var(--coral));
  background-size: 300% 100%;
  animation: borderRotate 8s linear infinite;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.header-search-form:focus-within {
  animation: borderRotate 3s linear infinite;
  transform: scale(1.02);
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.header-search-form input {
  width: 100%;
  background: #ffffff;
  border: none;
  outline: none;
  border-radius: var(--radius-full);
  padding: 0.45rem 2rem 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--charcoal);
}

.header-search-form button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-form button:hover {
  color: var(--coral);
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-free-a4 {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--mint-light);
  color: var(--mint-dark);
  border: 1.5px solid rgba(6, 214, 160, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--snow-white);
  border: 1.5px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.hamburger-btn:hover {
  border-color: var(--coral);
  background: var(--coral-light);
}

.hamburger-bar {
  width: 20px;
  height: 2.2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

/* ==========================================================================
   Mobile Off-Canvas Navigation Drawer (Clean CSS, No Inline Style Bugs)
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: var(--snow-white);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
  overflow: hidden;
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

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

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-soft);
  color: var(--charcoal);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--coral-light);
  color: var(--coral);
}

.mobile-drawer-search {
  padding: 1rem 1.25rem;
  border-bottom: 1.5px solid var(--border-soft);
}

.mobile-drawer-search form {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-drawer-search input {
  width: 100%;
  padding: 0.65rem 2.4rem 0.65rem 1rem;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  background: var(--bg-page);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.mobile-drawer-search input:focus {
  border-color: var(--coral);
  background: #fff;
}

.mobile-drawer-search button {
  position: absolute;
  right: 12px;
  color: var(--slate-medium);
}

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

.mobile-nav-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.mobile-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-acc-item {
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--snow-white);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.mobile-acc-item.is-active {
  border-color: var(--coral);
  box-shadow: 0 4px 12px var(--coral-glow);
}

.mobile-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--charcoal);
  text-align: left;
}

.acc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.acc-badge {
  background: var(--border-soft);
  color: var(--slate-medium);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  margin-left: auto;
  margin-right: 0.65rem;
}

.acc-chevron {
  transition: transform var(--transition-fast);
  color: var(--slate-medium);
}

.mobile-acc-item.is-active .acc-chevron {
  transform: rotate(180deg);
  color: var(--coral);
}

.mobile-acc-content,
.mobile-acc-panel {
  display: none;
  padding: 0.25rem 1rem 0.85rem;
  border-top: 1px dashed var(--border-soft);
  background: var(--canvas-cream);
}

.mobile-acc-item.is-active .mobile-acc-content,
.mobile-acc-item.is-active .mobile-acc-panel {
  display: block;
}

.mobile-subcat-list,
.mobile-sub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.5rem;
}

.mobile-subcat-list a,
.mobile-sub-list a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-dark);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-subcat-list a:hover,
.mobile-sub-list a:hover {
  background: var(--coral-light);
  color: var(--coral);
  padding-left: 0.85rem;
}

.mobile-subcat-list a:hover,
.mobile-subcat-list a.current-menu-item {
  background: var(--coral-light);
  color: var(--coral-dark);
}

.mobile-drawer-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--border-soft);
  text-align: center;
}

.drawer-foot-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--border-soft);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.drawer-note {
  font-size: 0.78rem;
  color: var(--slate-medium);
}

/* ==========================================================================
   Front Page - Clean Pastel Aesthetic & Layout (Matching Reference)
   ========================================================================== */

/* 1. Hero Reference (Split Hero with Mascot Illustration) */
.hero-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 0 2.5rem;
}

@media (max-width: 960px) {
  .hero-reference {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 1rem 0 1.5rem;
  }
}

.hero-left {
  flex: 1.1;
  max-width: 620px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--snow-white);
  color: #c2410c;
  border: 1.5px solid #fed7aa;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.15);
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--slate-medium);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 520px;
}

@media (max-width: 960px) {
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

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

@media (max-width: 960px) {
  .hero-cta-wrap {
    justify-content: center;
  }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff4d6d 0%, #e63946 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(230, 57, 70, 0.45);
  color: #ffffff;
}

.hero-right {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration-card {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 0%, #fff7ed 100%);
  padding: 1.25rem;
  box-shadow: 0 20px 45px rgba(251, 146, 60, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 2px solid #fed7aa;
}

.hero-art-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  display: block;
}

/* 2. Large Search Bar Section */
.home-search-section {
  margin: 1rem 0 2.5rem;
}

.home-big-search {
  display: flex;
  align-items: center;
  background: var(--snow-white);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.55rem 0.45rem 1.4rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.home-big-search:focus-within {
  border-color: var(--coral);
  box-shadow: 0 8px 30px var(--coral-glow);
}

.search-lens-icon {
  color: var(--slate-light);
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.home-big-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 0.65rem 0;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--charcoal);
}

.home-big-search input::placeholder {
  color: var(--slate-light);
  font-weight: 500;
}

.btn-search-submit {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: #ffffff;
  border: none;
  outline: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-coral);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--coral-glow);
}

/* 3. 5 Pastel Category Quick Tiles */
.pastel-category-tiles {
  margin-bottom: 3.5rem;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.tile-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.85rem 0.6rem 0.65rem;
  min-height: 115px;
  border-radius: 20px;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.tile-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.tile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #ffffff;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
  max-width: 92%;
  margin-bottom: 2px;
}

.tile-card:hover .tile-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.tile-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-chevron {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.tile-card:hover .tile-chevron {
  transform: translateX(2px);
}

.tile-bg-zvieratka {
  background-image: url('tile_zvieratka.webp');
  border-color: #6ee7b7;
}
.tile-bg-zvieratka:hover {
  border-color: #10b981;
}

.tile-bg-dinosaury {
  background-image: url('tile_dinosaury.webp');
  border-color: #c4b5fd;
}
.tile-bg-dinosaury:hover {
  border-color: #8b5cf6;
}

.tile-bg-pojazdy {
  background-image: url('tile_pojazdy.webp');
  border-color: #fdba74;
}
.tile-bg-pojazdy:hover {
  border-color: #f97316;
}

.tile-bg-rozpravky {
  background-image: url('tile_rozpravky.webp');
  border-color: #fde047;
}
.tile-bg-rozpravky:hover {
  border-color: #eab308;
}

.tile-bg-priroda {
  background-image: url('tile_priroda.webp');
  border-color: #86efac;
}
.tile-bg-priroda:hover {
  border-color: #22c55e;
}

.tile-bg-najmensi {
  background-image: url('tile_najmensi.webp');
  border-color: #93c5fd;
}
.tile-bg-najmensi:hover {
  border-color: #3b82f6;
}

.tile-bg-predskolaci {
  background-image: url('tile_predskolaci.webp');
  border-color: #fde047;
}
.tile-bg-predskolaci:hover {
  border-color: #eab308;
}

.tile-bg-chlapci {
  background-image: url('tile_chlapci.webp');
  border-color: #7dd3fc;
}
.tile-bg-chlapci:hover {
  border-color: #0284c7;
}

.tile-bg-dievcata {
  background-image: url('tile_dievcata.webp');
  border-color: #f9a8d4;
}
.tile-bg-dievcata:hover {
  border-color: #ec4899;
}

.tile-bg-zachranari {
  background-image: url('tile_zachranari.webp');
  border-color: #fda4af;
}
.tile-bg-zachranari:hover {
  border-color: #f43f5e;
}

.tile-bg-vesmir {
  background-image: url('tile_vesmir.webp');
  border-color: #c4b5fd;
}
.tile-bg-vesmir:hover {
  border-color: #8b5cf6;
}

.tile-bg-mandaly {
  background-image: url('tile_mandaly.webp');
  border-color: #d8b4fe;
}
.tile-bg-mandaly:hover {
  border-color: #a855f7;
}

.tile-bg-vianoce {
  background-image: url('tile_vianoce.webp');
  border-color: #67e8f9;
}
.tile-bg-vianoce:hover {
  border-color: #06b6d4;
}

.tile-bg-velkanoc {
  background-image: url('tile_velkanoc.webp');
  border-color: #fde047;
}
.tile-bg-velkanoc:hover {
  border-color: #eab308;
}

.tile-bg-jednorozce {
  background-image: url('tile_jednorozce.webp');
  border-color: #f0abfc;
}
.tile-bg-jednorozce:hover {
  border-color: #d946ef;
}

/* 4. Najpopulárnejšie vyfarbovačky (Featured 4-Card Grid) */
.featured-colorings-section {
  margin-bottom: 3.5rem;
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--charcoal);
  letter-spacing: -0.015em;
}

.section-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--coral);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.section-link-more:hover {
  gap: 0.65rem;
  color: var(--coral-dark);
}

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

@media (max-width: 1024px) {
  .featured-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 580px) {
  .featured-cards-grid {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  background: var(--snow-white);
  border-radius: 22px;
  border: 1.5px solid var(--border-soft);
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.featured-img-wrap {
  position: relative;
  background: #fdfdfd;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.featured-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-img-wrap img {
  transform: scale(1.04);
}

.card-fav-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-medium);
  color: var(--slate-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.card-fav-heart:hover,
.card-fav-heart.is-favorite {
  background: var(--coral-light);
  color: var(--coral);
  border-color: #ffccd5;
  transform: scale(1.1);
}

.featured-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.age-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 0.6rem;
  align-self: flex-start;
}

.age-green {
  background: #dcfce7;
  color: #15803d;
}

.age-yellow {
  background: #fef9c3;
  color: #a16207;
}

.age-pink {
  background: #ffe4e6;
  color: #be123c;
}

.age-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.card-item-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.card-item-desc {
  font-size: 0.88rem;
  color: var(--slate-medium);
  line-height: 1.45;
  margin-bottom: 1.2rem;
  flex: 1;
}

.card-action-row {
  margin-top: auto;
}

.btn-card-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  background: var(--coral);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px var(--coral-glow);
}

.btn-card-primary:hover {
  background: var(--coral-dark);
  box-shadow: 0 6px 18px var(--coral-glow);
  transform: translateY(-1px);
}

/* 5. Bottom Creative Banner (Reference Match) */
.creative-banner-section {
  margin: 3.5rem 0 4rem;
}

.creative-banner-card {
  border-radius: 28px;
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 45%, #a855f7 100%);
  color: #ffffff;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 16px 36px rgba(254, 180, 123, 0.3);
}

@media (max-width: 900px) {
  .creative-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
}

.creative-banner-content {
  flex: 1;
}

.creative-banner-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.creative-banner-desc {
  font-size: 1.02rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 720px;
  color: #ffffff;
}

.creative-banner-action {
  flex-shrink: 0;
}

.btn-banner-collections {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #c2410c;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.btn-banner-collections:hover {
  background: #fff7ed;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: #9a3412;
}

/* Cluster Filter Chips */
.home-cat-chips-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 3rem;
}

.home-cat-chip {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--slate-dark);
  background: var(--snow-white);
  border: 1.5px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.home-cat-chip:hover {
  border-color: var(--amber);
  background: var(--amber-light);
  transform: translateY(-2px);
}

.home-cat-chip.is-active {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-coral);
  transform: translateY(-2px);
}

/* Category Block on Homepage */
.home-cat-block {
  background: var(--snow-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-medium);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.home-cat-block:hover {
  box-shadow: var(--shadow-md);
}

.home-cat-block-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid var(--border-soft);
}

.home-cat-block-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--coral-dark);
  margin-bottom: 0.4rem;
}

.home-cat-block-title {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
}

.home-cat-block-title a:hover {
  color: var(--coral);
}

.home-cat-block-count {
  display: block;
  font-size: 0.88rem;
  color: var(--slate-medium);
  font-weight: 600;
  margin-top: 0.25rem;
}

.home-cat-block-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--coral-light);
  color: var(--coral-dark);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.home-cat-block-cta:hover {
  background: var(--coral);
  color: #ffffff;
  transform: translateX(3px);
}

.home-cat-4grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-cat-4grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Load More Engine */
.home-load-more-wrap {
  text-align: center;
  margin: 2rem 0 4.5rem;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 2.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-coral);
  transition: all var(--transition-fast);
}

.btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--coral-glow);
}

.btn-load-more:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.home-loaded-count {
  font-size: 0.9rem;
  color: var(--slate-medium);
  margin-top: 0.75rem;
  font-weight: 600;
}

.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: 0.2em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Coloring Cards Grid & Interactive Cards
   ========================================================================== */
.coloring-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .coloring-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .coloring-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.coloring-card {
  background: var(--snow-white);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.coloring-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 109, 0.4);
  box-shadow: var(--shadow-md);
}

.coloring-card.is-selected {
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 2px var(--mint), var(--shadow-md);
  background: var(--mint-light);
}

/* Image Container */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 566;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1.5px solid var(--border-soft);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.coloring-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

/* Batch Printing Checkbox (Top Left of Card) */
.coloring-batch-check-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  cursor: pointer;
  display: block;
}

.coloring-batch-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.coloring-batch-box {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: transparent;
  transition: all var(--transition-fast);
}

.coloring-batch-check:checked + .coloring-batch-box {
  background: var(--mint-dark);
  border-color: var(--mint-dark);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: var(--shadow-mint);
}

.coloring-batch-check-wrap:hover .coloring-batch-box {
  border-color: var(--mint);
}

/* Card Hover Overlay Actions */
.card-overlay-actions {
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 10;
}

.coloring-card:hover .card-overlay-actions {
  opacity: 1;
  pointer-events: auto;
}

.overlay-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.overlay-btn:hover {
  transform: scale(1.12);
  background: var(--snow-white);
}

.overlay-btn-paint {
  background: var(--coral);
  color: #ffffff;
}

.overlay-btn-paint:hover {
  background: var(--coral-dark);
}

.overlay-btn-pinterest {
  background: #e60023;
  color: #ffffff;
}

.overlay-btn-pinterest:hover {
  background: #cc001f;
}

/* Card Body & Quick Actions */
.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: auto;
}

/* Quick Action Buttons: 'Vyfarbiť' (Coral CTA) & 'Tlač' (Mint CTA) */
.btn-action-paint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--coral-glow);
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-width: 0;
  box-sizing: border-box;
}

.btn-action-paint:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--coral-glow);
}

.btn-action-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--mint-glow);
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-width: 0;
  box-sizing: border-box;
}

.btn-action-print:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--mint-glow);
}

.btn-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--border-soft);
  color: var(--slate-dark);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  min-width: 0;
  box-sizing: border-box;
}

.btn-action-icon:hover {
  background: var(--border-medium);
  color: var(--charcoal);
}

.btn-action-paint span,
.btn-action-print span {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ==========================================================================
   Responsive Coloring Cards & Action Buttons (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding-inline: 0.95rem;
  }

  .coloring-grid {
    gap: 0.85rem;
  }

  .coloring-card .card-body {
    padding: 0.85rem 0.65rem 0.75rem;
  }

  .card-title {
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 0.75rem;
  }

  .coloring-grid {
    gap: 0.65rem;
    margin-bottom: 2.5rem;
  }

  .coloring-card {
    border-radius: 14px;
  }

  .coloring-card .card-body {
    padding: 0.65rem 0.45rem 0.55rem;
  }

  .card-title {
    font-size: 0.84rem;
    line-height: 1.3;
    margin-bottom: 0.45rem;
    height: 2.6em;
  }

  .card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .btn-action-paint,
  .btn-action-print {
    padding: 0.48rem 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.22rem;
    min-height: 36px;
    letter-spacing: -0.01em;
    border-radius: 8px;
  }

  .btn-action-paint svg,
  .btn-action-print svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .btn-action-icon {
    padding: 0.42rem 0.2rem;
    min-height: 32px;
    border-radius: 8px;
  }

  .btn-action-icon svg {
    width: 14px;
    height: 14px;
  }
}

/* Extra Compact Mobile Devices (e.g. iPhone SE 1, Galaxy Fold outer, screens <= 360px) */
@media (max-width: 360px) {
  .container {
    padding-inline: 0.5rem;
  }

  .coloring-grid {
    gap: 0.45rem;
  }

  .coloring-card .card-body {
    padding: 0.55rem 0.3rem 0.45rem;
  }

  .card-title {
    font-size: 0.78rem;
  }

  .btn-action-paint,
  .btn-action-print {
    padding: 0.42rem 0.15rem;
    font-size: 0.7rem;
    gap: 0.18rem;
  }

  .btn-action-paint svg,
  .btn-action-print svg {
    width: 11px;
    height: 11px;
  }
}

/* ==========================================================================
   Category Template - Breadcrumbs, Hero & Rich Prose
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 1.5rem 0 0.5rem;
  font-size: 0.86rem;
  color: var(--slate-medium);
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--slate-medium);
}

.breadcrumbs a:hover {
  color: var(--coral);
}

.breadcrumbs .sep {
  opacity: 0.5;
}

.breadcrumbs span[aria-current="page"] {
  color: var(--charcoal);
  font-weight: 700;
}

.page-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1rem 0;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 1rem;
}

.page-hero .subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--slate-dark);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Article Container */
.article-container {
  background: var(--snow-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-medium);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin: 3.5rem auto;
  box-shadow: var(--shadow-sm);
  max-width: 1040px;
}

.prose-custom h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.prose-custom h2:first-child {
  margin-top: 0;
}

.prose-custom h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-custom p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1.25rem;
}

.prose-custom ul, .prose-custom ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
  line-height: 1.75;
  color: #374151;
}

.prose-custom li {
  margin-bottom: 0.5rem;
}

.prose-custom a {
  color: var(--coral);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-custom a:hover {
  color: var(--coral-dark);
}

/* FAQ Accordion Section */
.faq-section {
  margin: 3.5rem auto;
  max-width: 1040px;
}

.faq-section h2 {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  text-align: center;
  margin-bottom: 2rem;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-acc-item {
  background: var(--snow-white);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-acc-item:hover {
  border-color: var(--coral);
}

.faq-acc-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--charcoal);
}

.faq-chevron {
  color: var(--coral);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-acc-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-acc-body {
  display: none;
  padding: 0 1.5rem 1.35rem;
  font-size: 1.02rem;
  color: var(--slate-dark);
  line-height: 1.7;
  border-top: 1px dashed var(--border-soft);
}

.faq-acc-item.is-open .faq-acc-body {
  display: block;
}

/* Related Categories Grid */
.related-section {
  margin: 4rem 0 5rem;
}

.related-section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.related-section-head h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
}

.related-section-head p {
  color: var(--slate-medium);
  font-size: 1.05rem;
}

.related-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .related-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-cards-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.related-rich-card {
  background: var(--snow-white);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

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

.related-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fdfdfd;
  overflow: hidden;
  border-bottom: 1.5px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.related-card-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.related-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.related-card-pill {
  font-size: 0.75rem;
  background: var(--border-soft);
  color: var(--slate-medium);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
  font-weight: 700;
}

.related-card-btn {
  font-size: 0.8rem;
  color: var(--coral);
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Floating Batch Printing Action Bar
   ========================================================================== */
.batch-print-bar {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 680px);
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  z-index: 70;
  transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.batch-print-bar.is-active {
  bottom: 24px;
}

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

.batch-bar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
}

.batch-badge {
  background: var(--mint);
  color: var(--charcoal);
  font-weight: 900;
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.batch-text {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.batch-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.batch-btn-print {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-mint);
  white-space: nowrap;
}

.batch-btn-print:hover {
  transform: translateY(-1px);
}

.batch-btn-toggle {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.batch-btn-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.batch-btn-clear {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.batch-btn-clear:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Lightbox Preview Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.modal-box {
  background: var(--snow-white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .modal-box {
  transform: scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1.5px solid var(--border-soft);
}

.modal-head h4 {
  font-size: 1.2rem;
  color: var(--charcoal);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-soft);
  color: var(--charcoal);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--coral-light);
  color: var(--coral);
}

.modal-body {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdfdfd;
  max-height: 60vh;
  overflow: hidden;
}

.modal-body img {
  max-height: 55vh;
  max-width: 100%;
  object-fit: contain;
}

.modal-foot {
  padding: 1.25rem 1.5rem;
  border-top: 1.5px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--snow-white);
}

.modal-foot .btn-action-paint,
.modal-foot .btn-action-print {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.modal-foot .modal-btn-pinterest {
  width: auto;
  padding: 0.65rem 1rem;
  gap: 0.4rem;
  background: #e60023;
  color: #fff;
}

.modal-foot .modal-btn-pinterest:hover {
  background: #ad081b;
}

.modal-foot .modal-btn-download {
  width: auto;
  padding: 0.65rem 1rem;
  gap: 0.4rem;
}

@media (max-width: 640px) {
  .modal-foot {
    padding: 0.75rem;
    gap: 0.45rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-foot .btn-action-paint,
  .modal-foot .btn-action-print,
  .modal-foot .btn-action-icon {
    width: 100% !important;
    max-width: none !important;
    padding: 0.55rem 0.35rem !important;
    font-size: 0.78rem;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* Favorites Modal & Grid */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem;
  width: 100%;
}

.fav-item-card {
  position: relative;
  background: var(--snow-white);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-fast);
}

.fav-item-checkbox-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fav-item-checkbox-wrap input {
  width: 18px;
  height: 18px;
  accent-color: var(--coral);
  cursor: pointer;
}

.fav-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: var(--shadow-sm);
}

.fav-item-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.fav-item-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.fav-item-actions {
  display: flex;
  gap: 0.35rem;
  width: 100%;
}

.fav-item-print {
  flex: 1;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--coral);
  color: #fff;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.fav-item-print:hover {
  background: var(--coral-dark);
}

.fav-item-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border-soft);
  color: var(--slate-medium);
  border: none;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fav-item-remove:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Header Favorites Badge */
.header-fav-btn {
  position: relative;
}

.fav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 77, 109, 0.4);
}

/* ==========================================================================
   Dual-Canvas Online Coloring Studio Modal
   ========================================================================== */
.studio-modal {
  position: fixed;
  inset: 0;
  background: #111827;
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.studio-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.studio-header {
  background: #1f2937;
  border-bottom: 1px solid #374151;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.studio-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.studio-badge {
  background: var(--coral);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
}

.studio-title {
  color: #ffffff;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.studio-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.studio-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #374151;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.studio-btn-icon:hover:not(:disabled) {
  background: var(--coral);
}

.studio-btn-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.studio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.studio-btn-print {
  background: var(--mint-dark);
  color: #ffffff;
}

.studio-btn-print:hover {
  background: var(--mint);
}

.studio-btn-save {
  background: var(--coral);
  color: #ffffff;
}

.studio-btn-save:hover {
  background: var(--coral-dark);
}

.studio-btn-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #374151;
  color: #ffffff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-btn-close:hover {
  background: #ef4444;
}

/* Studio Workspace Body */
.studio-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .studio-body {
    flex-direction: row;
  }
}

/* Canvas Viewport */
.studio-canvas-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
  background: #0b0f19;
  position: relative;
}

.studio-canvas-wrapper {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  touch-action: none;
  user-select: none;
}

.studio-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.paint-layer {
  z-index: 1;
}

.lineart-layer {
  z-index: 2;
  pointer-events: none;
}

.studio-loading {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.85);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
}

.studio-loading.hidden {
  display: none;
}

.studio-spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: studioSpin 0.8s linear infinite;
}

@keyframes studioSpin {
  to { transform: rotate(360deg); }
}

/* Studio Dock */
.studio-dock {
  background: #1f2937;
  border-top: 1px solid #374151;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .studio-dock {
    width: 260px;
    border-top: none;
    border-left: 1px solid #374151;
  }
}

.studio-dock-top {
  display: flex;
  gap: 1rem;
}

@media (min-width: 768px) {
  .studio-dock-top {
    flex-direction: column;
  }
}

.studio-dock-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dock-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: #9ca3af;
}

.dock-tools-group {
  display: flex;
  gap: 0.4rem;
}

.tool-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.35rem;
  background: #374151;
  color: #d1d5db;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.tool-btn:hover {
  background: #4b5563;
  color: #fff;
}

.tool-btn.is-active {
  background: var(--coral);
  color: #ffffff;
}

.dock-sizes-group {
  display: flex;
  gap: 0.4rem;
}

.size-btn {
  flex: 1;
  height: 38px;
  background: #374151;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.size-btn:hover {
  background: #4b5563;
}

.size-btn.is-active {
  background: var(--coral);
}

.size-dot {
  background: #ffffff;
  border-radius: 50%;
  display: block;
}

.dock-colors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast);
  border: 2px solid transparent;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.is-active {
  transform: scale(1.15);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--coral);
}

.dock-custom-color {
  margin-top: 0.5rem;
}

.custom-color-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #374151;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.custom-color-label input[type="color"] {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}

/* Save Modal for Mobile Photos Save */
.save-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.save-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

.save-modal-content {
  position: relative;
  background: var(--snow-white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1;
}

.save-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1.5px solid var(--border-soft);
}

.save-modal-title {
  font-size: 1.1rem;
  color: var(--charcoal);
}

.save-modal-body {
  padding: 1.25rem;
  text-align: center;
}

.save-hint {
  font-size: 0.9rem;
  color: var(--slate-dark);
  margin-bottom: 1rem;
  background: var(--amber-light);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.save-img-wrap {
  width: 100%;
  max-height: 40vh;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdfdfd;
}

.save-img-wrap img {
  max-height: 38vh;
  object-fit: contain;
}

.save-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--coral);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  line-height: 1.7;
  color: #94a3b8;
  font-size: 0.96rem;
  max-width: 460px;
}

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

.footer-links li a {
  color: #cbd5e1;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.footer-hubs {
  border-top: 1px solid #1e293b;
  padding-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-hubs-heading {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.footer-hubs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-hub-chip {
  background: #1e293b;
  color: #cbd5e1;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.footer-hub-chip:hover {
  background: var(--coral);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.86rem;
  color: #64748b;
}

/* ==========================================================================
   Isolated Single-Page & Multi-Page A4 Print Engine
   ========================================================================== */
.single-print-target,
.batch-print-target {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  /* Single-Page Print Mode */
  html:not(.batch-printing-active),
  body:not(.batch-printing-active) {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    break-before: avoid !important;
    break-after: avoid !important;
  }

  body:not(.batch-printing-active) > *:not(#singlePrintContainer) {
    display: none !important;
  }

  body:not(.batch-printing-active) > #singlePrintContainer.single-print-target {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    break-before: avoid !important;
    break-after: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
  }

  /* Absolute max-height 255mm so NO 2nd empty page is ever generated! */
  .single-print-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 190mm !important;
    height: 255mm !important;
    max-height: 255mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    break-before: avoid !important;
    break-after: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
  }

  #singlePrintImg {
    display: block !important;
    width: 100% !important;
    max-width: 190mm !important;
    height: auto !important;
    max-height: 250mm !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    break-before: avoid !important;
    break-after: avoid !important;
    break-inside: avoid !important;
  }

  /* Multi-Page Batch Print Mode */
  html.batch-printing-active,
  body.batch-printing-active {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.batch-printing-active > *:not(#batchPrintContainer) {
    display: none !important;
  }

  body.batch-printing-active > #batchPrintContainer.batch-print-target {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .batch-print-page {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 190mm !important;
    height: 255mm !important;
    max-height: 255mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
  }

  .batch-print-page:last-child {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .batch-print-page img {
    display: block !important;
    width: 100% !important;
    max-width: 190mm !important;
    height: auto !important;
    max-height: 250mm !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
  }
}
