:root {
  --cd-bg: #07111f;
  --cd-bg-soft: #0f1d2f;
  --cd-panel: #12233a;
  --cd-line: rgba(255, 255, 255, .12);
  --cd-text: #f7fafc;
  --cd-muted: #aab7c7;
  --cd-blue: #1b76d1;
  --cd-blue-2: #35a7ff;
  --cd-red: #e1262f;
  --cd-yellow: #f5b301;
  --cd-green: #1fbf75;
}


body {
  color: var(--cd-text);
  background: var(--cd-bg);
}


.site-header {
  background: #07111f;
  border-bottom: 1px solid var(--cd-line);
  padding: 10px 20px;
}


.site-header .custom-logo-link,
.site-header .site-branding {
  display: inline-flex;
  align-items: center;
}


.site-header img.custom-logo {
  width: auto;
  max-width: 190px;
  max-height: 72px;
  object-fit: contain;
}


.site-header .site-description {
  color: var(--cd-muted);
  font-size: 13px;
  margin: 4px 0 0;
}


.home .entry-title,
.page .entry-title {
  display: none;
}


.cd-topbar {
  background: #050b14;
  color: var(--cd-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--cd-line);
}


.cd-header {
  background: rgba(7, 17, 31, .96);
  border-bottom: 1px solid var(--cd-line);
  backdrop-filter: blur(10px);
}


.cd-hero {
  min-height: 320px;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .98), rgba(10, 34, 58, .94), rgba(7, 17, 31, .98));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--cd-line);
}


.cd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cd-blue-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}


.cd-title {
  color: var(--cd-text);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 920px;
}


.cd-lead {
  color: #d7e0ea;
  font-size: 19px;
  line-height: 1.65;
  max-width: 760px;
}


.cd-button-primary .elementor-button,
.cd-btn-primary {
  background: var(--cd-red);
  color: #fff;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(225, 38, 47, .24);
}


.cd-button-secondary .elementor-button,
.cd-btn-secondary {
  background: transparent;
  color: var(--cd-text);
  border: 1px solid var(--cd-line);
  border-radius: 6px;
  font-weight: 800;
}


.cd-trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}


.cd-trust {
  border: 1px solid var(--cd-line);
  background: rgba(18, 35, 58, .72);
  padding: 16px;
  border-radius: 8px;
  color: var(--cd-text);
}


.cd-section-dark {
  background: var(--cd-bg);
}


.cd-section-soft {
  background: var(--cd-bg-soft);
}


.cd-vip-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}


.cd-vip-card {
  min-height: 220px;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid var(--cd-line);
  background: linear-gradient(135deg, rgba(18, 35, 58, .98), rgba(9, 24, 42, .88));
  position: relative;
  overflow: hidden;
}


.cd-vip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--cd-red);
  pointer-events: none;
}


.cd-vip-card.featured {
  grid-row: span 2;
  background:
    radial-gradient(circle at 78% 24%, rgba(53, 167, 255, .22), transparent 32%),
    linear-gradient(135deg, rgba(18, 35, 58, .98), rgba(7, 17, 31, .98));
}


.cd-vip-card h3,
.cd-category-card h3 {
  color: var(--cd-text);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}


.cd-vip-card p,
.cd-category-card p {
  color: var(--cd-muted);
  line-height: 1.55;
}


.cd-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(53, 167, 255, .14);
  color: var(--cd-blue-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}


.cd-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}


.cd-category-card {
  background: #fff;
  color: #101828;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 22px;
  min-height: 178px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}


.cd-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, .12);
  border-color: rgba(27, 118, 209, .38);
}


.cd-category-card h3 {
  color: #101828;
  font-size: 20px;
}


.cd-category-card p {
  color: #526071;
}


.cd-brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.cd-brand {
  padding: 12px 16px;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font-weight: 900;
  border: 1px solid #e6e9ef;
}


.woocommerce ul.products li.product {
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 14px !important;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}


.woocommerce ul.products li.product a img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px;
}


.woocommerce div.product div.images img,
.woocommerce-product-gallery__image img {
  max-height: 520px;
  width: 100%;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
}


.woocommerce div.product div.images {
  max-width: 520px;
}


.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, .12);
}


.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  line-height: 1.32;
  color: #111827;
  min-height: 64px;
}


.woocommerce ul.products li.product .price {
  color: var(--cd-red);
  font-weight: 900;
}


.cd-cta-band {
  background: linear-gradient(90deg, var(--cd-red), #a9151d);
  color: #fff;
  border-radius: 8px;
  padding: 34px;
}


@media (max-width: 1024px) {
  .cd-trust-row,
  .cd-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .cd-vip-grid {
    grid-template-columns: 1fr;
  }


  .cd-vip-card.featured {
    grid-row: auto;
  }
}


@media (max-width: 640px) {
  .cd-hero {
    min-height: 320px;
    background-position: center;
  }


  .cd-trust-row,
  .cd-category-grid {
    grid-template-columns: 1fr;
  }


  .cd-title {
    font-size: 34px;
  }


  .woocommerce ul.products li.product a img {
    height: 170px;
  }
}


/* Car Diag shop branch navigation */
.cd-shop-branches {
  display: grid;
  gap: 22px;
}


.cd-shop-branch {
  border: 1px solid var(--cd-line);
  border-radius: 8px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(18, 35, 58, .96), rgba(7, 17, 31, .98));
}


.cd-branch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}


.cd-branch-head h2 {
  color: var(--cd-text);
  font-size: 34px;
  margin: 0 0 8px;
}


.cd-branch-head p {
  color: var(--cd-muted);
  margin: 0;
  max-width: 780px;
}


.cd-subcat-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}


.cd-subcat-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--cd-text);
  text-decoration: none;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-weight: 800;
  font-size: 14px;
}


.cd-subcat-btn:hover {
  background: var(--cd-blue);
  color: #fff;
}


@media (max-width: 720px) {
  .cd-branch-head {
    grid-template-columns: 1fr;
  }
  .cd-branch-head h2 {
    font-size: 28px;
  }
}


/* Car Diag 2026 premium navigation and unified surfaces */
body,
.site-main,
.site-content,
.content-area,
.entry-content,
.woocommerce,
.woocommerce-page {
  background: var(--cd-bg) !important;
}


.site-header,
.site-footer {
  background: #07111f !important;
  border-color: var(--cd-line) !important;
}


.site-header a,
.site-header .site-description {
  color: var(--cd-text) !important;
}


.site-navigation ul.menu li a,
.main-navigation ul li a,
.site-header .menu a {
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: 850;
}


.site-navigation ul.menu li a:hover,
.main-navigation ul li a:hover,
.site-header .menu a:hover {
  background: rgba(53, 167, 255, .12);
  color: #fff !important;
}


.cd-btn-primary,
.cd-button-primary .elementor-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.cd-subcat-btn.cd-featured-link {
  background: linear-gradient(135deg, #e1262f, #a9151d) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 6px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 12px 28px rgba(225, 38, 47, .24) !important;
}


.cd-btn-secondary,
.cd-button-secondary .elementor-button,
.cd-subcat-btn,
.cd-nav-pill {
  background: rgba(255,255,255,.07) !important;
  color: var(--cd-text) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 6px !important;
  font-weight: 850 !important;
}


.cd-subcat-btn:hover,
.cd-nav-pill:hover {
  background: rgba(53, 167, 255, .18) !important;
  border-color: rgba(53, 167, 255, .50) !important;
  color: #fff !important;
}


.cd-premium-nav {
  display: grid;
  gap: 18px;
}


.cd-premium-panel {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(53,167,255,.16), transparent 34%),
    linear-gradient(135deg, rgba(18,35,58,.98), rgba(7,17,31,.98));
  padding: 24px;
}


.cd-premium-panel h2,
.cd-premium-panel h3 {
  color: var(--cd-text);
  margin-top: 0;
  letter-spacing: 0;
}


.cd-premium-panel p {
  color: var(--cd-muted);
  max-width: 860px;
}


.cd-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.cd-brand-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}


.cd-brand-focus a {
  text-decoration: none;
}


.cd-brand-card {
  min-height: 155px;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e6e9ef;
  color: #101828;
}


.cd-brand-card h3 {
  color: #101828;
  margin: 0 0 8px;
}


.cd-brand-card p {
  color: #526071;
  margin: 0;
}


.blog .site-main,
.single-post .site-main,
.archive .site-main {
  background: var(--cd-bg) !important;
  color: var(--cd-text) !important;
}


.blog article,
.single-post article,
.archive article {
  background: #fff;
  color: #101828;
  border-radius: 8px;
  padding: 22px;
  border: 1px solid #e6e9ef;
}


@media (max-width: 820px) {
  .cd-brand-focus {
    grid-template-columns: 1fr;
  }
}


body, .site-main, .entry-content { background:#07111f !important; color:#f7fafc !important; }
.entry-title { display:none !important; }
.cd-blog-shell { background:#07111f; color:#f7fafc; padding:70px 24px 86px; }
.cd-blog-inner { max-width:1180px; margin:0 auto; }
.cd-blog-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:24px; }
.cd-blog-grid .cd-brand-card { min-height:220px; display:flex; flex-direction:column; gap:12px; }
.cd-blog-grid .cd-brand-card .cd-btn-primary { margin-top:auto; width:max-content; padding:10px 14px; text-decoration:none; }
@media (max-width:760px) { .cd-blog-grid { grid-template-columns:1fr; } }
