/* ============================================================
   SilenceDIY — Global Stylesheet
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --brand-primary: #1c314c;
  --brand-accent:  #22a2c4;
  --text-dark:     #e8edf2;
  --text-mid:      #9db4c8;
  --text-light:    #5e7a90;
  --bg:            #0b1826;
  --bg-card:       #132031;
  --white:         #ffffff;
  --border:        rgba(255,255,255,0.08);
  --max-w:         1300px;
  --radius:        14px;
  --header-h:      64px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.55);
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 30px;
}

/* ── Header ─────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

/* Top row: logo left, tagline right */
.header-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 30px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.logo a { color: var(--white); }

.tagline {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

/* ── Site Navigation (below banner, sticky) ─────────────────── */
.site-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 99;
  background: linear-gradient(to right, var(--brand-primary) 0%, #1c3f58 50%, var(--brand-primary) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.site-nav .top-nav {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  height: 46px;
}

.top-nav li { position: relative; }

.top-nav a {
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  font-size: 15px;
  padding: 10px 0;
  display: inline-block;
}
.top-nav a:hover { color: var(--white); }
.top-nav a.active {
  color: var(--white);
  font-weight: 600;
  border-bottom: 3px solid var(--brand-accent);
}

/* ── Nav Dropdown ───────────────────────────────────────────── */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: '\25BE';
  margin-left: 5px;
  font-size: 11px;
  opacity: 0.7;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--text-mid);
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--brand-accent);
}

/* ── Mobile Menu Toggle ─────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Site Banner ────────────────────────────────────────────── */
.site-banner { line-height: 0; position: relative; }
.site-banner img { width: 100%; height: auto; display: block; }
/* Banner text overlay (homepage only) */
.banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.52) 100%);
  padding: 0 40px;
  text-align: center;
}
.banner-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.banner-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .site-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(28,49,76,0.75) 0%, rgba(28,49,76,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
}
.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
  max-width: 600px;
}
.hero-subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.88);
  max-width: 500px;
  margin-bottom: 24px;
  line-height: 1.5;
}
.hero .btn {
  align-self: flex-start;
}

/* ── Product Carousel ───────────────────────────────────────── */
.carousel-section {
  padding: 50px 0;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}
.carousel-section h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  padding: 0 30px;
}
.carousel-section .section-subtitle {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 28px;
  padding: 0 30px;
}

.carousel-wrapper {
  position: relative;
  padding: 0 30px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-card {
  min-width: 350px;
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.carousel-card-img-link { display: block; overflow: hidden; }
.carousel-card-img-link:hover .carousel-card-image { opacity: 0.88; transition: opacity 0.2s; }
.carousel-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.carousel-card-body {
  padding: 18px 20px 22px;
}
.carousel-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carousel-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-accent);
  margin-bottom: 14px;
}
.carousel-card .btn {
  width: 100%;
  text-align: center;
  background: var(--brand-primary);
  color: var(--white);
}
.carousel-card .btn:hover {
  background: #1c3f58;
  opacity: 1;
}

/* Carousel navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--brand-primary);
  box-shadow: var(--shadow-md);
  color: var(--brand-accent);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.carousel-btn:hover {
  background: #1c3f58;
  color: var(--white);
  border-color: var(--brand-accent);
}
.carousel-btn-prev { left: 6px; }
.carousel-btn-next { right: 6px; }

/* ── Page Section ───────────────────────────────────────────── */
.page-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 50px 30px;
}
.page-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text-dark);
}
.page-section h2::after,
.carousel-section h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--brand-accent);
  border-radius: 2px;
  margin: 10px auto 0;
}
.page-section p {
  color: var(--text-mid);
  margin-bottom: 14px;
  line-height: 1.8;
}

/* ── Page Wrap (guides / static pages) ──────────────────────── */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 50px 30px;
}
.page-wrap h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.page-wrap h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 36px;
  margin-bottom: 14px;
}
.page-wrap h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 28px;
  margin-bottom: 10px;
}
.page-wrap p {
  color: var(--text-mid);
  margin-bottom: 14px;
  line-height: 1.8;
}
.page-wrap ul, .page-wrap ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}
.page-wrap ol { list-style: decimal; }
.page-wrap img {
  border-radius: var(--radius);
  margin: 20px 0;
}
.page-wrap pre {
  background: var(--brand-primary);
  color: #e2e8f0;
  padding: 18px 22px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.page-wrap code {
  background: rgba(34,162,196,0.1);
  color: var(--brand-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.page-wrap pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ── Editor.js rendered blocks ──────────────────────────────── */
.page-img { margin: 24px 0; text-align: center; }
.page-img img { max-width: 100%; border-radius: var(--radius); }
.page-img.stretched img { width: 100%; }
.page-img.with-border img { border: 2px solid #2d3748; }
.page-img.with-bg { background: #1a2535; padding: 16px; border-radius: var(--radius); }
.page-img figcaption { font-size: 13px; color: #718096; margin-top: 8px; font-style: italic; }
.page-quote { border-left: 4px solid var(--brand-accent); margin: 24px 0; padding: 16px 20px; background: rgba(34,162,196,0.07); border-radius: 0 8px 8px 0; }
.page-quote p { color: var(--text-mid); font-style: italic; font-size: 17px; line-height: 1.7; margin: 0 0 8px; }
.page-quote cite { color: #718096; font-size: 14px; }
.page-code { background: var(--brand-primary); color: #e2e8f0; padding: 18px 22px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin-bottom: 18px; font-family: 'Fira Code', monospace; }
.page-delimiter {
  border: none; margin: 32px 0; text-align: center; overflow: hidden;
  font-family: 'Consolas', 'Menlo', monospace; font-size: 14px;
  letter-spacing: 1px; color: #5e7a90;
}
.page-delimiter::before {
  content: "=============================================================";
  display: inline-block; white-space: nowrap;
}
.page-table-wrap { overflow-x: auto; margin: 20px 0; }
.page-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page-table th, .page-table td { border: 1px solid #2d3748; padding: 10px 14px; color: var(--text-mid); text-align: left; }
.page-table th { background: rgba(34,162,196,0.1); color: var(--text-dark); font-weight: 600; }
.page-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.page-warning { background: rgba(255,193,7,0.08); border: 1px solid rgba(255,193,7,0.3); border-radius: 8px; padding: 16px 20px; margin: 20px 0; }
.page-warning strong { color: #ffc107; display: block; margin-bottom: 6px; }
.page-warning p { color: var(--text-mid); margin: 0; }
.page-embed { margin: 24px 0; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); }
.page-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.embed-caption { font-size: 13px; color: #718096; margin-top: 8px; text-align: center; font-style: italic; }
.page-checklist { list-style: none; padding: 0; margin: 14px 0; }
.cl-item { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; color: var(--text-mid); }
.cl-box { flex: 0 0 18px; height: 18px; border: 2px solid #4a5568; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: white; margin-top: 2px; }
.cl-item.checked .cl-box { background: var(--brand-accent); border-color: var(--brand-accent); }
.cl-item.checked > span:last-child { color: #718096; text-decoration: line-through; }
.page-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin: 24px 0; align-items: stretch; }
.page-two-col .page-col { display: flex; flex-direction: column; justify-content: flex-start; }
.page-two-col--bordered { gap: 4px; border: 4px solid #3e5267; background: #3e5267; }
.page-two-col--bordered .page-col { padding: 14px 18px; background: #0b1826; }
.img-row img { max-width: 100%; height: auto; border-radius: var(--radius); }
.page-content img:not(.no-zoom) { cursor: zoom-in; }
.page-col { min-width: 0; }
.page-col img { max-width: 100%; height: auto; border-radius: var(--radius); }
.page-col a, .page-grid-cell a { color: var(--brand-accent); text-decoration: underline; }
.page-col a.btn-read-guide, .page-grid-cell a.btn-read-guide { color: var(--white); text-decoration: none; }
.page-col > *:first-child { margin-top: 0; }
.page-col > *:last-child  { margin-bottom: 0; }
.page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 24px 0; align-items: start; }
.page-grid-cell { min-width: 0; }
.page-grid-cell > *:first-child { margin-top: 0; }
.page-grid-cell > *:last-child  { margin-bottom: 0; }
.page-grid-cell img { max-width: 100%; border-radius: var(--radius); height: auto; }
@media (max-width: 768px) {
  .page-two-col { grid-template-columns: 1fr !important; gap: 20px; }
  .page-grid[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  .page-grid[style*="repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .page-grid { grid-template-columns: 1fr !important; gap: 16px; }
}

/* ── Page Gallery (single-image carousel) ───────────────────── */
.page-gallery {
  position: relative; margin: 24px 0; border-radius: var(--radius);
  overflow: hidden; background: #0b1826;
}
.page-gallery-item {
  display: none; position: relative; cursor: zoom-in;
  text-decoration: none !important; background: #0b1826;
}
.page-gallery-item.active { display: block; }
.page-gallery-item img {
  width: 100%; max-height: 640px; object-fit: contain;
  display: block; margin: 0 auto;
}
.page-gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff; font-size: 13px; line-height: 1.4; pointer-events: none;
}
.page-gallery-prev, .page-gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.page-gallery-prev:hover, .page-gallery-next:hover { background: rgba(0,0,0,0.8); }
.page-gallery-prev { left: 12px; }
.page-gallery-next { right: 12px; }
@media (max-width: 600px) {
  .page-gallery-prev, .page-gallery-next { width: 36px; height: 36px; font-size: 20px; }
  .page-gallery-item img { max-height: 400px; }
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lb-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  z-index: 9998; display: none; align-items: center; justify-content: center;
}
.lb-overlay.open { display: flex; }
.lb-stage {
  position: relative; max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lb-img {
  max-width: 92vw; max-height: 82vh; width: auto; height: auto;
  display: block; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lb-caption {
  color: #e8edf2; font-size: 14px; margin-top: 10px; max-width: 80vw;
  text-align: center; line-height: 1.4;
}
.lb-counter {
  position: fixed; top: 20px; left: 20px; color: #9db4c8;
  font-size: 13px; font-family: monospace;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed; background: rgba(255,255,255,0.1); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 20px; }
.lb-prev, .lb-next {
  top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 32px;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 24px; }
  .lb-close { width: 36px; height: 36px; font-size: 16px; top: 12px; right: 12px; }
}

/* ── Blog Cards ─────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 20px;
}
.blog-card-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card-title a:hover { color: var(--brand-accent); }
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-accent);
  transition: opacity 0.2s;
}
.blog-card .read-more:hover { opacity: 0.75; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: #21202e;
  color: var(--white);
  padding: 50px 30px 30px;
  margin-top: 60px;
}

.footer-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}
.footer-section p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.7;
}
.footer-section a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-section a:hover { color: var(--brand-accent); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 22px auto 0;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-accent {
  background: var(--brand-accent);
  color: var(--white);
}
.btn-accent:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent);
}
.btn-ghost:hover {
  background: var(--brand-accent);
  color: var(--white);
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}
.btn-primary:hover { opacity: 0.88; }

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s, transform 0.15s;
  margin: 6px 0;
}
.btn-download:hover { opacity: 0.88; transform: translateY(-1px); }
.dl-btn-version {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}

/* ── Badges (Sim Compatibility) ─────────────────────────────── */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--white);
}
.badge-p3d       { background: #2d6a4f; }
.badge-xplane    { background: #5a189a; }
.badge-msfs2020  { background: #0077b6; }
.badge-msfs2024  { background: #e85d04; }

/* Sim badge (used in download cards) */
.sim-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--white);
}
.sim-badge.p3d      { background: #2d6a4f; }
.sim-badge.xplane   { background: #5a189a; }
.sim-badge.msfs2020 { background: #0077b6; }
.sim-badge.msfs2024 { background: #e85d04; }

/* Bundle badge */
.bundle-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand-accent);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* Download product cards — horizontal row layout */
.product-card {
  display: flex;
  flex-direction: row;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-accent);
  border-right: 4px solid var(--brand-accent);
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card > img {
  flex: 0 0 30%;
  width: 30%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  background: var(--bg);
}
.product-card-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.product-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.product-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-accent);
}
.btn-read-guide {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--brand-accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-read-guide:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.sim-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.product-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4px;
}
.marketplace-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.marketplace-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: rgba(34,162,196,0.1);
  border: 1px solid var(--brand-accent);
  border-radius: 8px;
  padding: 8px 18px;
  transition: all 0.2s;
  min-width: 110px;
}
.marketplace-links a:hover {
  background: var(--brand-accent);
  color: var(--white);
}
.marketplace-links .mp-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-accent);
  transition: color 0.2s;
}
.marketplace-links a:hover .mp-name {
  color: var(--white);
}
.marketplace-links .mp-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-top: 2px;
  transition: color 0.2s;
}
.marketplace-links a:hover .mp-price {
  color: rgba(255,255,255,0.85);
}
.shopify-btn-wrap { margin-top: 4px; }


/* Contact cards */
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border-top: 4px solid var(--brand-accent);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.contact-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--brand-accent);
}
.contact-card h3 {
  color: var(--brand-primary);
  font-size: 18px;
  margin-bottom: 8px;
}
.contact-card a {
  color: var(--brand-accent);
  font-weight: 600;
}
.contact-card p {
  color: var(--text-mid);
  font-size: 14px;
  margin-bottom: 8px;
}

/* ── Product Labels ─────────────────────────────────────────── */
.product-labels {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}
.product-label {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.product-label.new      { background: #27ae60; }
.product-label.sale     { background: #e74c3c; }
.product-label.featured { background: var(--brand-accent); }
.product-label.popular  { background: #f39c12; }
.product-label.free     { background: #6c5ce7; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb-container {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb {
  font-size: 15px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--brand-accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--text-dark); font-weight: 600; }

/* ── Loading Spinner ────────────────────────────────────────── */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.spinner {
  width: 44px; height: 44px;
  border: 4px solid rgba(34,162,196,0.2);
  border-top-color: var(--brand-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Stars Rating ───────────────────────────────────────────── */
.stars { color: #f39c12; font-size: 18px; letter-spacing: 2px; }

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-accent { color: var(--brand-accent); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 16px; }
.mb-1 { margin-bottom: 16px; }
.mt-2 { margin-top: 32px; }
.mb-2 { margin-bottom: 32px; }

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  /* Header: single row only */
  .header-top { padding: 0 20px; }
  .tagline { display: none; }
  .hamburger { display: none; }

  /* Site nav always visible — wrap links on small screens */
  .site-nav .top-nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 46px;
    gap: 0 16px;
    padding: 6px 16px;
  }
  .site-nav .top-nav a {
    font-size: 13px;
    padding: 6px 0;
  }

  /* Carousel: 2 visible */
  .carousel-card {
    min-width: 280px;
    flex: 0 0 calc((100% - 24px) / 2);
  }

  /* Blog grid: 2 columns */
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Footer: 2 columns */
  .footer-content { grid-template-columns: repeat(2, 1fr); }

  /* Hero */
  .hero-overlay { padding: 0 36px; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 17px; }

  /* Page section */
  .page-section { padding: 36px 20px; }
  .page-wrap { padding: 36px 20px; }
  .carousel-section h2,
  .carousel-section .section-subtitle { padding: 0 20px; }
  .carousel-wrapper { padding: 0 20px; }
}

/* Small tablet: 768px */
@media (max-width: 768px) {
  .banner-title { font-size: 24px; }
  .banner-subtitle { font-size: 10px; letter-spacing: 0.1em; }
  .container { padding: 0 16px; }
  .header-top { padding: 0 16px; gap: 12px; }
  .logo { font-size: 20px; }

  /* Hero */
  .hero-overlay { padding: 0 24px; }
  .hero-title { font-size: 28px; max-width: 400px; }
  .hero-subtitle { font-size: 15px; max-width: 360px; }

  /* Carousel */
  .carousel-card { min-width: 260px; }
  .carousel-card-image { height: 200px; }

  /* Blog grid: 1 column */
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }

  /* Footer: single column */
  .footer-content { grid-template-columns: 1fr; gap: 28px; }

  .page-section h2 { font-size: 24px; }
  .page-wrap h1 { font-size: 28px; }
  .page-wrap h2 { font-size: 22px; }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  .banner-title { font-size: 18px; }
  .banner-subtitle { font-size: 9px; letter-spacing: 0.08em; }
  .site-nav .top-nav { gap: 0 10px; padding: 6px 12px; }
  .site-nav .top-nav a { font-size: 12px; }
  .header-top { padding: 0 12px; }
  .logo { font-size: 18px; }

  /* Hero */
  .hero-overlay { padding: 0 16px; }
  .hero-title { font-size: 22px; max-width: 280px; }
  .hero-subtitle { font-size: 14px; max-width: 260px; margin-bottom: 16px; }

  /* Carousel: 1 visible */
  .carousel-card {
    min-width: 0;
    flex: 0 0 100%;
  }
  .carousel-card-image { height: 220px; }
  .carousel-section h2 { font-size: 24px; }
  .carousel-section { padding: 30px 0; }
  .carousel-wrapper { padding: 0 16px; }
  .carousel-section h2,
  .carousel-section .section-subtitle { padding: 0 16px; }

  /* Buttons */
  .btn { padding: 10px 22px; font-size: 14px; }

  /* Page */
  .page-section { padding: 28px 16px; }
  .page-wrap { padding: 28px 16px; }
  .page-wrap h1 { font-size: 24px; }

  /* Blog */
  .blog-card-image { height: 170px; }
  .blog-card-body { padding: 16px; }

  /* Footer */
  footer { padding: 36px 16px 20px; }

  /* Badges */
  .badge { font-size: 10px; padding: 3px 10px; }
}
