
/* Design Tokens */
:root {
  --hsq-accent: #f25420;
  --hsq-accent-hover: #d94a1a;
  --hsq-accent-light: rgba(242, 84, 32, 0.1);
  --hsq-dark: #273a60;
  --hsq-dark-light: rgba(39, 58, 96, 0.06);
  --hsq-text: #404040;
  --hsq-text-heading: #0F1624;
  --hsq-text-label: #666;
  --hsq-bg-light: #f8f8f8;
  --hsq-border: rgba(0, 0, 0, 0.05);
  --hsq-border-medium: rgba(0, 0, 0, 0.08);
  --hsq-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
  --hsq-radius-large: 16px;
  --hsq-radius-card: 12px;
  --hsq-radius-small: 8px;
  --hsq-radius-mini: 6px;
}

/* Shared */
.hsq-product-content {
  font-family: inherit;
  font-size: 18px;
  line-height: 1.6;
  color: var(--hsq-text);
}
.hsq-product-content * { box-sizing: border-box; }

.hsq-section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--hsq-text-heading);
  text-align: center;
  margin: 0 0 32px 0;
}
.hsq-category-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--hsq-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.hsq-divider {
  height: 4px;
  width: 60px;
  background: var(--hsq-accent);
  border-radius: 2px;
  margin: 24px auto;
}
.hsq-check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}
.hsq-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--hsq-text);
  line-height: 1.5;
}
.hsq-check-list li::before {
  content: '\2713';
  color: var(--hsq-accent);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.hsq-value-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--hsq-dark-light);
  border: 1px solid rgba(39, 58, 96, 0.1);
  border-radius: var(--hsq-radius-small);
  font-size: 14px;
  color: var(--hsq-dark);
  font-weight: 600;
  margin: 8px 0;
}
.hsq-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--hsq-accent);
  color: white;
  border-radius: var(--hsq-radius-small);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
}
.hsq-btn:hover { background: var(--hsq-accent-hover); }

/* Block 3: Description */
.hsq-description {
  text-align: center;
  margin: 64px 0 84px 0;
  padding: 0;
}
.hsq-description-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--hsq-text-heading);
  margin: 0 0 16px 0;
}
.hsq-description-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--hsq-text);
  max-width: 800px;
  margin: 0 auto;
}

/* Block 4: Feature Row (Z-Pattern) */
.hsq-features {
  margin: 48px 0;
  padding: 0;
}
.hsq-feature-row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}
.hsq-feature-row:last-child { margin-bottom: 0; }
.hsq-feature-row-reversed { flex-direction: row-reverse; }
.hsq-feature-image-wrapper { flex: 1; }
.hsq-feature-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--hsq-radius-large);
  overflow: hidden;
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hsq-image-placeholder-text {
  font-size: 14px;
  color: #888;
  text-align: center;
  padding: 16px;
}
.hsq-feature-content { flex: 1; }

/* Block 4B: Feature Row bez obrázku — full-width text */
.hsq-feature-row-textonly {
  display: flex;
  margin-bottom: 80px;
}
.hsq-feature-row-textonly:last-child { margin-bottom: 0; }
.hsq-feature-row-textonly .hsq-feature-content {
  flex: 1 0 100%;
  max-width: 800px;
}
.hsq-feature-category {
  font-size: 13px;
  font-weight: 700;
  color: var(--hsq-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.hsq-feature-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--hsq-text-heading);
  margin: 0 0 16px 0;
  line-height: 1.3;
}
.hsq-feature-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--hsq-text);
  margin: 0 0 16px 0;
}
.hsq-feature-highlight {
  display: inline-block;
  background: var(--hsq-accent-light);
  padding: 6px 14px;
  border-radius: var(--hsq-radius-mini);
  font-weight: 700;
  color: var(--hsq-accent);
  margin: 0 0 16px 0;
  font-size: 15px;
}

/* Block 6: Specs Table */
.hsq-specs {
  margin: 48px 0;
  padding: 0;
}
.hsq-specs-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--hsq-radius-card);
  overflow: hidden;
  box-shadow: var(--hsq-shadow-soft);
}
.hsq-specs-table tr { border-bottom: 1px solid var(--hsq-border); }
.hsq-specs-table tr:last-child { border-bottom: none; }
.hsq-specs-table tr:nth-child(odd) { background: var(--hsq-bg-light); }
.hsq-specs-table tr:nth-child(even) { background: white; }
.hsq-specs-table td { padding: 18px; font-size: 15px; }
.hsq-specs-table td:first-child {
  font-weight: 700;
  color: var(--hsq-text-heading);
  width: 40%;
}
.hsq-specs-table td:last-child { color: var(--hsq-text-label); }
.hsq-spec-header td {
  background: var(--hsq-dark) !important;
  color: white !important;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 18px;
}
.hsq-spec-tooltip {
  position: relative;
  border-bottom: 1px dashed var(--hsq-text-label);
  cursor: help;
}
.hsq-spec-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: var(--hsq-dark);
  color: white;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  border-radius: var(--hsq-radius-mini);
  max-width: 280px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
.hsq-spec-tooltip:hover::after {
  opacity: 1;
}

/* Block 8: USP Strip */
.hsq-usp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 48px 0;
  background: var(--hsq-bg-light);
  border-radius: var(--hsq-radius-card);
  overflow: hidden;
}
.hsq-usp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid var(--hsq-border);
}
.hsq-usp-item:last-child { border-right: none; }
.hsq-usp-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--hsq-accent);
  margin-bottom: 8px;
  line-height: 1;
}
.hsq-usp-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--hsq-text-heading);
  margin-bottom: 4px;
}
.hsq-usp-desc {
  font-size: 13px;
  color: var(--hsq-text-label);
  line-height: 1.4;
}

/* Block 10: FAQ Accordion */
.hsq-faq { margin: 48px 0; }
.hsq-faq-list { max-width: 800px; margin: 0 auto; }
.hsq-faq-item { border-bottom: 1px solid var(--hsq-border-medium); }
.hsq-faq-item:last-child { border-bottom: none; }
.hsq-faq-radio { display: none; }
.hsq-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--hsq-text-heading);
  line-height: 1.4;
  user-select: none;
}
.hsq-faq-arrow {
  font-size: 20px;
  color: var(--hsq-accent);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.hsq-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.hsq-faq-answer-inner {
  padding: 0 0 20px 0;
  font-size: 16px;
  color: var(--hsq-text);
  line-height: 1.7;
}
.hsq-faq-radio:checked + .hsq-faq-question + .hsq-faq-answer { max-height: 300px; }
.hsq-faq-radio:checked + .hsq-faq-question .hsq-faq-arrow { transform: rotate(45deg); }

/* Block 13: CTA Banner */
.hsq-cta {
  margin: 48px 0;
  background: linear-gradient(135deg, var(--hsq-dark) 0%, #1a2940 100%);
  border-radius: var(--hsq-radius-large);
  padding: 64px 40px;
  text-align: center;
  color: white;
}
.hsq-cta-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: white;
}
.hsq-cta-text {
  font-size: 18px;
  margin: 0 0 28px 0;
  opacity: 0.85;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.hsq-cta .hsq-btn {
  font-size: 16px;
  padding: 16px 40px;
}

/* Block 15: Package Contents (text-only) */
.hsq-package { margin: 48px 0; }
.hsq-package-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}
.hsq-package-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--hsq-bg-light);
  border-radius: var(--hsq-radius-small);
}
.hsq-package-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--hsq-text-heading);
}
.hsq-package-item-qty {
  font-size: 13px;
  color: var(--hsq-text-label);
  margin-left: auto;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .hsq-description-title, .hsq-section-title { font-size: 28px; }
  .hsq-feature-row, .hsq-feature-row-reversed {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
  }
  .hsq-feature-title { font-size: 24px; }
  .hsq-usp-strip { grid-template-columns: repeat(2, 1fr); }
  .hsq-usp-item { border-bottom: 1px solid var(--hsq-border); }
  .hsq-usp-item:nth-child(3), .hsq-usp-item:nth-child(4) { border-bottom: none; }
  .hsq-cta { padding: 40px 24px; }
  .hsq-cta-title { font-size: 28px; }
  .hsq-package-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hsq-usp-strip { grid-template-columns: 1fr; }
  .hsq-usp-item { border-right: none; border-bottom: 1px solid var(--hsq-border); }
  .hsq-usp-item:last-child { border-bottom: none; }
  .hsq-cta { padding: 32px 16px; }
  .hsq-cta-title { font-size: 24px; }
  .hsq-specs-table td { padding: 10px 8px !important; font-size: 12px !important; }
  .hsq-package-list { grid-template-columns: 1fr; }
}

/* Feature image (real img inside wrapper) */
.hsq-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hsq-feature-row-textonly { margin-bottom: 48px; }
}

/* Block 5: Video Embed */
.hsq-videos {
  margin: 48px 0;
  padding: 0;
}
.hsq-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.hsq-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.hsq-video-embed iframe,
.hsq-video-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .hsq-videos-grid { grid-template-columns: 1fr; }
}

/*
  Shoptet layout fix (extended-description boční sloupec) se řeší
  JS skriptem v Globálních skriptech — CSS nemůže přebít cross-origin
  Shoptet template CSS. Skript:

  (function() {
    var d = document.querySelector('#description .description-inner');
    if (!d || !d.querySelector('.hsq-product-content')) return;
    d.style.setProperty('display', 'block', 'important');
    var e = d.querySelector('.extended-description');
    if (e) {
      e.style.setProperty('display', 'block', 'important');
      e.style.marginTop = '48px';
    }
  })();
*/
