/* ======================================================================
   XCSPORT.cz Design System for Shoptet content
   Version: 1.0
   Brand colors based on XCSPORT brand manual:
   Endorphin Red: #DD1E1F
   Winter Night Blue: #3F405F
   Snow White: #FFFFFF
   Font: Sora
   ====================================================================== */

:root {
  --xc-red: #DD1E1F;
  --xc-blue: #3F405F;
  --xc-white: #FFFFFF;
  --xc-black: #111111;
  --xc-text: #1f2430;
  --xc-muted: #646b7a;
  --xc-border: #e5e5e5;
  --xc-bg-soft: #fafafa;
  --xc-bg-blue-soft: #f4f5f9;
  --xc-bg-red-soft: #fff5f5;
  --xc-radius: 10px;
  --xc-radius-sm: 6px;
  --xc-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Base content wrapper - optional */
.xc-content {
  color: var(--xc-text);
  font-family: 'Sora', Arial, sans-serif;
  line-height: 1.65;
}

.xc-content h1,
.xc-content h2,
.xc-content h3,
.xc-content h4 {
  color: var(--xc-black);
  font-weight: 600;
  line-height: 1.25;
}

.xc-content a {
  color: var(--xc-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xc-content a:hover {
  color: var(--xc-blue);
}

/* Universal boxes */
.xc-advice-box,
.xc-info-box,
.xc-note,
.xc-warning,
.xc-success-box,
.xc-cta-box,
.xc-product-tip,
.xc-service-box {
  border-radius: var(--xc-radius);
  padding: 18px 20px;
  margin: 24px 0;
  box-sizing: border-box;
}

.xc-advice-box h2,
.xc-advice-box h3,
.xc-info-box h2,
.xc-info-box h3,
.xc-note h2,
.xc-note h3,
.xc-warning h2,
.xc-warning h3,
.xc-success-box h2,
.xc-success-box h3,
.xc-cta-box h2,
.xc-cta-box h3,
.xc-product-tip h2,
.xc-product-tip h3,
.xc-service-box h2,
.xc-service-box h3 {
  margin-top: 0;
}

.xc-advice-box p:last-child,
.xc-info-box p:last-child,
.xc-note p:last-child,
.xc-warning p:last-child,
.xc-success-box p:last-child,
.xc-cta-box p:last-child,
.xc-product-tip p:last-child,
.xc-service-box p:last-child {
  margin-bottom: 0;
}

/* Recommendation / advisory box */
.xc-advice-box {
  border: 1px solid var(--xc-border);
  border-left: 6px solid var(--xc-blue);
  background: var(--xc-bg-soft);
}

/* Neutral information box */
.xc-info-box {
  border: 1px solid var(--xc-border);
  background: var(--xc-bg-blue-soft);
}

/* Short note */
.xc-note {
  border-left: 6px solid var(--xc-black);
  border-radius: var(--xc-radius-sm) 0 0 var(--xc-radius-sm);
  background: #f7f7f7;
}

/* Warning / important message */
.xc-warning {
  border: 1px solid rgba(221, 30, 31, 0.25);
  border-left: 6px solid var(--xc-red);
  background: var(--xc-bg-red-soft);
}

/* Positive message */
.xc-success-box {
  border: 1px solid #d8ead8;
  border-left: 6px solid #3b8c3b;
  background: #f7fbf7;
}

/* CTA box */
.xc-cta-box {
  border: 2px solid var(--xc-red);
  background: var(--xc-white);
  box-shadow: var(--xc-shadow);
}

/* Product recommendation box */
.xc-product-tip {
  border: 1px solid var(--xc-border);
  background: var(--xc-bg-soft);
}

/* Service / expert box */
.xc-service-box {
  border: 1px solid var(--xc-blue);
  background: var(--xc-bg-blue-soft);
}

/* Buttons */
.xc-btn,
.xc-btn-primary,
.xc-btn-secondary,
.xc-btn-outline {
  display: inline-block;
  padding: 11px 18px;
  border-radius: var(--xc-radius-sm);
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.xc-btn-primary,
.xc-btn {
  background: var(--xc-red);
  color: var(--xc-white) !important;
  border: 1px solid var(--xc-red);
}

.xc-btn-primary:hover,
.xc-btn:hover {
  background: #b81718;
  border-color: #b81718;
  color: var(--xc-white) !important;
}

.xc-btn-secondary {
  background: var(--xc-blue);
  color: var(--xc-white) !important;
  border: 1px solid var(--xc-blue);
}

.xc-btn-secondary:hover {
  background: #30314a;
  border-color: #30314a;
  color: var(--xc-white) !important;
}

.xc-btn-outline {
  background: var(--xc-white);
  color: var(--xc-red) !important;
  border: 1px solid var(--xc-red);
}

.xc-btn-outline:hover {
  background: var(--xc-red);
  color: var(--xc-white) !important;
}

.xc-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Link lists */
.xc-link-list {
  list-style: none;
  padding-left: 0;
  margin: 14px 0;
}

.xc-link-list li {
  margin: 8px 0;
}

.xc-link-list a {
  font-weight: 600;
}

/* Cards / grids for content blocks */
.xc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.xc-card {
  border: 1px solid var(--xc-border);
  border-radius: var(--xc-radius);
  padding: 18px;
  background: var(--xc-white);
  box-shadow: var(--xc-shadow);
}

.xc-card h3 {
  margin-top: 0;
}

/* Tables */
.xc-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

.xc-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--xc-border);
  background: var(--xc-white);
}

.xc-table th,
.xc-table td {
  border: 1px solid var(--xc-border);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.xc-table th {
  background: var(--xc-blue);
  color: var(--xc-white);
  font-weight: 600;
}

.xc-table tr:nth-child(even) td {
  background: #fbfbfb;
}

.xc-table-note {
  border-left: 6px solid var(--xc-black);
  border-radius: var(--xc-radius-sm) 0 0 var(--xc-radius-sm);
  background: #f7f7f7;
  padding: 12px 14px;
  margin: 12px 0 20px;
  font-size: 0.95em;
}

/* Product / category helper */
.xc-category-intro {
  margin: 0 0 24px;
}

.xc-category-intro p {
  max-width: 980px;
}

.xc-category-highlight {
  border: 1px solid var(--xc-border);
  border-left: 6px solid var(--xc-red);
  border-radius: var(--xc-radius);
  padding: 18px 20px;
  margin: 22px 0;
  background: var(--xc-bg-soft);
}

/* Badges */
.xc-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  background: var(--xc-bg-blue-soft);
  color: var(--xc-blue);
}

.xc-badge-red {
  background: var(--xc-red);
  color: var(--xc-white);
}

.xc-badge-blue {
  background: var(--xc-blue);
  color: var(--xc-white);
}

/* FAQ */
.xc-faq {
  margin: 24px 0;
}

.xc-faq-item {
  border: 1px solid var(--xc-border);
  border-radius: var(--xc-radius);
  padding: 16px 18px;
  margin: 12px 0;
  background: var(--xc-white);
}

.xc-faq-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.xc-faq-item p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .xc-advice-box,
  .xc-info-box,
  .xc-note,
  .xc-warning,
  .xc-success-box,
  .xc-cta-box,
  .xc-product-tip,
  .xc-service-box,
  .xc-category-highlight {
    padding: 15px 16px;
    margin: 18px 0;
  }

  .xc-card-grid {
    grid-template-columns: 1fr;
  }

  .xc-btn-row {
    display: block;
  }

  .xc-btn-row .xc-btn,
  .xc-btn-row .xc-btn-primary,
  .xc-btn-row .xc-btn-secondary,
  .xc-btn-row .xc-btn-outline {
    display: block;
    margin: 8px 0;
    text-align: center;
  }
}

.xc-advice-box .xc-link {
  display: inline-block;
  margin: 4px 8px 0 0;
  padding: 8px 14px;
  border-radius: 6px;
  background: #DD1E1F;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
}

.xc-advice-box .xc-link:hover {
  background: #3F405F;
  color: #ffffff !important;
}