:root {
  --petrol: #004d55;
  --petrol-dark: #002d33;
  --petrol-light: #f0f7f8;
  --orange: #ff7a00;
  --orange-glow: rgba(255, 122, 0, 0.4);
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-color: #f4f6f7;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --tech-grid: radial-gradient(circle, #e0e0e0 1px, transparent 1px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  background-image: var(--tech-grid);
  background-size: 30px 30px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--petrol);
  margin-bottom: 1rem;
}

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

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

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  color: var(--petrol);
  border: 2px solid var(--petrol);
}

.btn-outline:hover {
  background-color: var(--petrol);
  color: var(--white);
}

#pd-back-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: #ddd;
    color: #666;
}

#pd-back-btn.is-category {
    border-color: var(--orange);
    color: var(--petrol);
}

#pd-back-btn:hover {
    background-color: var(--petrol);
    color: var(--white) !important;
    border-color: var(--petrol);
}

#pd-back-btn.is-category:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white !important;
}

/* Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--petrol);
  letter-spacing: -1px;
}

.logo span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
}

.nav-links a:hover {
  color: var(--orange);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--petrol-dark) 0%, var(--petrol) 100%);
  color: var(--white);
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  opacity: 0.8;
  font-weight: 300;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  /* Oprava WebKit bugu: transform vytvoří compositing layer který správně clipuje obsah */
  transform: translateZ(0);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--orange);
    transition: var(--transition);
    z-index: 10;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--orange-glow);
  background: var(--white);
  border-color: var(--orange);
}

.product-card:hover::before {
    height: 100%;
}

.product-image {
  height: 250px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  /* z-index: 0 zajišťuje, že obrázek zůstane POD textem ve stejném stacking contextu */
  z-index: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.8s ease;
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Na dotykových zařízeních vypnout hover efekty (plovoucí obrázek) */
@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: rgba(0, 0, 0, 0.05);
  }
  .product-card:hover .product-image img {
    transform: none;
  }
  .product-card:hover::before {
    height: 0;
  }
}

/* Menší výška obrázku na mobilu */
@media (max-width: 480px) {
  .product-image {
    height: 180px;
  }
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  /* Zajišťuje, že text je vždy NAD obrázkem v rámci stacking contextu karty */
  position: relative;
  z-index: 1;
  background: var(--white);
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
footer {
  background-color: var(--petrol-dark);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-col p, .footer-col a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* Filtering */
.filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: sticky;
  top: 80px; /* Mírně níže pod nav */
  z-index: 90;
  padding: 10px 0;
  pointer-events: none; /* Aby lišta neblokovala klikání pod ní mimo tlačítka */
  transition: all 0.3s ease;
}

.filters .filter-btn {
  pointer-events: auto;
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.15); /* Posílený oranžový stín */
  background: #fff9f2; /* Velmi jemný oranžový nádech */
  border: 1.5px solid var(--orange);
  color: var(--petrol);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.filters .filter-btn:hover, .filters .filter-btn.active {
  background: var(--orange);
  color: white;
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
  transform: translateY(-2px);
}

/* Konec sekce filtrů */

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.product-detail-image {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price {
  font-size: 2rem;
  color: var(--orange);
  font-weight: bold;
}

.specs-list {
  list-style: none;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.specs-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-list strong {
  color: var(--petrol);
}

/* Tablet a menší: detail přejde na 1 sloupec, nav-links se skryjí */
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }

  /* Filtry – pod 768px nejsou sticky */
  .filters {
    position: static;
    top: auto;
    padding: 10px 0;
  }
}

/* Jeden sloupec: grid minmax(300px,1fr) přechází na 1 sloupec cca od 650px.
   Pod tímto bodem ŽÁDNÉ plovoucí prvky – navbar ani kontaktní bublina. */
@media (max-width: 650px) {
  /* Navbar – neplave nahoře, scrolluje se stránkou */
  .navbar {
    position: static;
  }

  /* Kontaktní bublina – zcela skryta, kontakt je dostupný v patičce */
  .contact-bubble-container {
    display: none !important;
  }

  /* Panel s obrázkem produktu – NESMÍ být sticky na mobilu,
     jinak překrývá text specifikací při scrollování */
  #pd-image-panel {
    position: static !important;
    top: auto !important;
  }

  /* Layout produktu – menší mezera v jednom sloupci */
  #pd-layout {
    gap: 30px !important;
  }

  /* Výška obrázku produktu – zmenšena pro mobil */
  #pd-image-panel > div > div:first-child {
    height: 280px !important;
  }

  /* Filtry kategorií – horizontální scrollování místo zalamování do řádků */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 10px 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .filters .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

/* Contact Bubble Form */
.contact-bubble-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-bubble-btn {
  background-color: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
}

.contact-bubble-btn svg {
  width: 28px;
  height: 28px;
}

.contact-bubble-btn:hover {
  transform: scale(1.1);
  background-color: var(--orange-hover);
}

.contact-bubble-form {
  display: none;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  width: 320px;
  margin-bottom: 20px;
  overflow-y: auto;
  max-height: 85vh;
  border: 1px solid rgba(0,0,0,0.1);
  animation: slideUp 0.3s ease;
  transform-origin: bottom right;
}

@keyframes slideUp {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.contact-bubble-form.active {
  display: block;
}


.contact-form-header {
  background-color: var(--petrol);
  color: var(--white);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-form-header h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.1rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.contact-form-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form-body input,
.contact-form-body textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  resize: vertical;
}

.contact-form-body input:focus,
.contact-form-body textarea:focus {
  outline: none;
  border-color: var(--petrol);
}

.gdpr-notice {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.3;
  margin-bottom: 5px;
}

.gdpr-notice a {
  color: var(--petrol);
  text-decoration: underline;
}

/* Intl Tel Input Override */
.iti {
  width: 100%;
}
.contact-form-body .iti input {
  padding-left: 55px !important;
}

/* Product Page Modern Specs */
.modern-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modern-specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05rem;
}
.modern-specs-list li:last-child {
    border-bottom: none;
}
.modern-specs-list li strong {
    color: var(--petrol);
    font-weight: 600;
}
.modern-specs-list li span {
    color: var(--text-dark);
    text-align: right;
    font-weight: 400;
}

/* Product Page Modern Datasheet Button */
.datasheet-btn-modern {
    font-size: 1.1rem;
    padding: 16px 35px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    text-decoration: none;
    cursor: pointer;
}
.datasheet-btn-modern:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: white;
}

/* Product Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--petrol);
    border: none;
    width: 60px;
    height: 100px;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: none;
    opacity: 0.3;
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}
.gallery-arrow:hover {
    background: transparent;
    color: var(--orange);
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
}
.gallery-arrow.left {
    left: -20px;
}
.gallery-arrow.right {
    right: -20px;
}

/* Product Gallery Thumbnails */
.pd-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--white);
    padding: 5px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.pd-thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-5px);
}
.pd-thumbnail.active {
    opacity: 1;
    border-color: var(--orange);
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(255, 122, 0, 0.3);
}

/* Skrytí scrollbaru pro efekt kolečka */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 10000;
    transition: bottom 0.5s ease;
}
.cookie-banner.active {
    bottom: 0;
}
.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cookie-text {
    font-size: 0.9rem;
    color: var(--text-dark);
}
.cookie-text a {
    color: var(--petrol);
    text-decoration: underline;
}
.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
}

/* PDF Preview Section */
.pdf-preview-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #eee;
    transition: var(--transition);
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.pdf-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--orange);
}

.pdf-icon-wrapper {
    width: 60px;
    height: 80px;
    background: #fff5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    border: 1px solid #ffebeb;
    position: relative;
    overflow: hidden;
}

.pdf-icon-wrapper::after {
    content: 'PDF';
    position: absolute;
    bottom: 5px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.pdf-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--petrol);
}

.pdf-info p {
    margin: 5px 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* PDF Modal Viewer */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.pdf-modal-content {
    width: 90%;
    height: 90%;
    background: white;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pdf-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
}

.pdf-modal-close:hover {
    color: var(--orange);
    transform: rotate(90deg);
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   KARUSEL – Nejžádanější technologie
======================================== */
.carousel-container {
    position: relative;
    width: 1115px;   /* přesně 4 karty: 4×260 + 3×25 */
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0 20px 0;
    cursor: grab;
}
.carousel-container:active { cursor: grabbing; }

.carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: max-content;
    padding: 15px 0;
    user-select: none;
}

/* Menší karty uvnitř karuselu */
.carousel-track .product-card {
    width: 260px;
}

.carousel-track .product-image {
    height: 170px;
}

.carousel-track .product-title {
    font-size: 1rem;
}

.carousel-track .product-info {
    padding: 15px;
}

.carousel-track .product-price {
    font-size: 0.85rem;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.carousel-btn {
    background: var(--white);
    color: var(--petrol);
    border: 2px solid var(--petrol);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.carousel-btn:hover {
    background: var(--petrol);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,61,75,0.2);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,61,75,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dot.active {
    background: var(--petrol);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carousel-track { padding: 10px 20px; gap: 15px; }
}
/* PDF Catalog Styles */
.pdf-page {
    width: 210mm !important;
    min-width: 210mm !important;
    max-width: 210mm !important;
    min-height: 297mm;
    padding: 15mm;
    background-color: #f4f6f7;
    position: relative;
    display: block;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #1a1a1a;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #004d55;
    padding-bottom: 10px;
    margin-bottom: 20px;
    height: 15mm;
}

.pdf-logo {
    height: 12mm;
}

.pdf-footer {
    height: 10mm;
    margin-top: auto;
    padding-top: 5px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4mm;
    flex-grow: 1; /* Nyní přesně vyplní volné místo na A4 */
    width: 100%;
}

.pdf-card {
    background: white;
    border-radius: 8px;
    padding: 3mm;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.1);
    width: 100%;
    height: 58mm; /* Maximální využití A4 */
    box-sizing: border-box;
    overflow: hidden;
}

.pdf-card-top {
    height: 25mm;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3mm;
}

.pdf-card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdf-card-mid {
    margin-bottom: 2mm;
}

.pdf-card-cat {
    font-size: 0.45rem;
    color: #ff7a00;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1mm;
    line-height: 1.1;
}

.pdf-card-title {
    font-size: 0.75rem;
    color: #004d55;
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
    max-height: 2.2em; /* 2 řádky */
    display: block;
}

.pdf-card-bot {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-grow: 1;
    gap: 2mm;
    margin-top: 1mm;
}

.pdf-card-desc {
    font-size: 0.45rem;
    line-height: 1.25;
    color: #555;
    overflow: hidden;
    max-height: 3.75em; /* max 3 řádky */
    display: block;
}

.pdf-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.pdf-qr {
    width: 9mm;
    height: 9mm;
}

.pdf-qr-label {
    font-size: 0.35rem;
    color: #ff7a00;
    margin-top: 1px;
    text-align: center;
    font-weight: bold;
}

/* Fix pro správné zachycení html2canvas na mobilu/malém okně */
#pdf-template-container.pdf-export-mode {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 210mm !important;
    background: white !important;
    z-index: 99999 !important;
    overflow: visible !important;
}

.pdf-selection-group {
    margin-bottom: 25px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.pdf-selection-header {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-selection-header label {
    font-weight: bold;
    color: #004d55;
    cursor: pointer;
}

.pdf-selection-body {
    padding: 15px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.pdf-selection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

.pdf-selection-item input {
    width: 18px;
    height: 18px;
}

.pdf-selection-item label {
    font-size: 0.9rem;
    cursor: pointer;
}
